public
Fork of wycats/merb-plugins
Description: Merb Plugins: Even more modules to hook up your Merb installation
Homepage: http://www.merbivore.com
Clone URL: git://github.com/gwynm/merb-plugins.git
Gwyn Morfey (author)
Wed Apr 16 03:58:11 -0700 2008
commit  13beef0e31151c7121baa3f8df595e174ed7e80b
tree    f5722b8af97db1ab24cc40bdd2295e5c7e611ae6
parent  f35d84c0b5b971ded6c0b698884d2d71707ee091
merb-plugins / Rakefile
bfd596c1 » drnic 2008-02-28 Added Rakefile with install... 1 require "rake"
2 require 'fileutils'
3
4 windows = (PLATFORM =~ /win32|cygwin/) rescue nil
5
6 SUDO = windows ? "" : "sudo"
7
adb8dc7f » ivey 2008-03-04 rename rspec to stories 8 gems = %w[merb_activerecord merb_datamapper merb_helpers merb_sequel merb_param_protection merb_test_unit merb_stories]
bfd596c1 » drnic 2008-02-28 Added Rakefile with install... 9
507ff743 » drnic 2008-02-28 renamed sample yml files fo... 10 orm_gems = %w[merb_activerecord merb_datamapper merb_sequel]
11
bfd596c1 » drnic 2008-02-28 Added Rakefile with install... 12 desc "Install it all"
507ff743 » drnic 2008-02-28 renamed sample yml files fo... 13 task :install => "install:gems"
14
15 namespace :install do
16 desc "Install the merb-plugins sub-gems"
17 task :gems do
18 gems.each do |dir|
dba4f95d » Nicos Gollan 2008-04-05 merb-plugins rake install t... 19 Dir.chdir(dir){ sh "rake install" }
507ff743 » drnic 2008-02-28 renamed sample yml files fo... 20 end
21 end
bfd596c1 » drnic 2008-02-28 Added Rakefile with install... 22
6e646728 » ezmobius 2008-03-06 fix rakefile to not build m... 23 desc "Install the ORM merb-plugins sub-gems"
507ff743 » drnic 2008-02-28 renamed sample yml files fo... 24 task :orm do
25 orm_gems.each do |dir|
dba4f95d » Nicos Gollan 2008-04-05 merb-plugins rake install t... 26 Dir.chdir(dir){ sh "rake install" }
507ff743 » drnic 2008-02-28 renamed sample yml files fo... 27 end
bfd596c1 » drnic 2008-02-28 Added Rakefile with install... 28 end
29 end
b4193b78 » ivey 2008-02-29 prep for 0.9.1 release 30
31
32 desc "Bundle up all the merb-plugins gems"
33 task :bundle do
34 mkdir_p "bundle"
35 gems.each do |gem|
36 File.open("#{gem}/Rakefile") do |rakefile|
37 rakefile.read.detect {|l| l =~ /^VERSION\s*=\s*"(.*)"$/ }
18aaca3b » ezmobius 2008-03-24 windows support in rakefile 38 Dir.chdir(gem){ sh "rake package" }
b4193b78 » ivey 2008-02-29 prep for 0.9.1 release 39 sh %{cp #{gem}/pkg/#{gem}-#{$1}.gem bundle/}
40 end
41 end
adb8dc7f » ivey 2008-03-04 rename rspec to stories 42 end