This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails CMS alternatives | |
====================== | |
Note: project activity was checked on 11/26/09. | |
Active projects: | |
---------------- | |
Railsyard | |
site: http://www.railsyardcms.org/ | |
Last update: 02/07/12 | |
repo: https://github.com/cantierecreativo/railsyardcms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
svn remove log/* | |
svn commit -m 'Removing log files' | |
svn propset svn:ignore "*.log" log/ | |
svn update log/ | |
svn commit -m 'Ignoring all files in /log/ ending in .log' | |
svn move config/database.yml config/database.example | |
svn commit -m 'Moving database.yml to database.example to provide a template for anyone who checks out the code' | |
svn propset svn:ignore "database.yml" config/ | |
svn update config/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Original blog here http://honoluluhacker.com/2009/11/19/install-shoulda-and-rcov-the-right-way/ | |
# Update your test/test_helper.rb, add | |
# require 'shoulda/rails' | |
# | |
require File.expand_path(File.dirname(__FILE__) + "/../../config/boot") | |
require 'rake' | |
require 'rake/testtask' | |
require 'rake/rdoctask' | |
require 'tasks/rails' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## add this to test/test_helper.rb | |
require 'shoulda/rails' | |
## add this to Rakefile | |
require 'shoulda/tasks' | |
namespace :test do | |
desc 'Measures test coverage' | |
task :coverage do | |
rm_f "coverage" | |
rm_f "coverage.data" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'date' | |
require 'rubygems' | |
require 'www/delicious' | |
delicious = WWW::Delicious.new('username', 'password') | |
params = { :fromdt => "#{Date.new(2010, 9, 1)}T00:00:00Z", | |
:todt => "#{Date.new(2010, 9, -1)}T00:00:00Z" } | |
posts = delicious.posts_all(params) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.log | |
database.yml | |
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Original blog here http://bit.ly/5AutLA | |
# | |
namespace :db do | |
namespace :backup do | |
def tables | |
ActiveRecord::Base.connection.tables.sort.reject do |tbl| | |
['schema_migrations'].include?(tbl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you happen to have this problem when loading your SVN dump | |
# svnadmin: Dump stream contains a malformed header (with no ':') at '* Dumped revision 0.' | |
grep --binary-files=text -v '^* Dumped revision' ./repository.dump > ./repository.clear-dump | |
svnadmin load /new/path/to/your/repository < ./repository.clear-dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[kambing-base] | |
name=CentOS $releasever - Base | |
baseurl=http://kambing.ui.ac.id/centos/$releasever/os/$basearch/ | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=http://kambing.ui.ac.id/centos/RPM-GPG-KEY-CentOS-5 | |
[kambing-addons] | |
name=CentOS $releasever - Addons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rcov/rcovtask' | |
namespace :test do | |
namespace :coverage do | |
desc "Delete aggregate coverage data." | |
task(:clean) { rm_f "coverage.data" } | |
end | |
desc 'Aggregate code coverage for unit, functional and integration tests' | |
task :coverage => "test:coverage:clean" | |
%w[unit functional integration].each do |target| |
OlderNewer