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/myobie/merb-plugins.git
Search Repo:
Spring cleaning Rakefiles
fabien (author)
Tue May 27 08:05:41 -0700 2008
commit  b6ac17784067e8eba89355d67e00b57b6a8689ec
tree    b6b1d1658967fcbf78bf5454a71fb31b17e29902
parent  f465ae94b8da5aa52674ee8c7891e412fb02fb95
...
1
2
3
4
5
6
 
7
8
9
10
11
12
...
28
29
30
31
32
33
34
35
36
37
 
38
39
40
...
1
2
 
 
 
 
3
4
5
 
6
7
8
...
24
25
26
 
27
28
29
30
31
 
32
33
34
35
0
@@ -1,12 +1,8 @@
0
 require "rake"
0
 require 'fileutils'
0
-
0
-windows = (PLATFORM =~ /win32|cygwin/) rescue nil
0
-
0
-SUDO = windows ? "" : "sudo"
0
+require 'merb-core/tasks/merb_rake_helper'
0
 
0
 gems = %w[merb_activerecord merb_helpers merb_sequel merb_param_protection merb_test_unit merb_stories]
0
-
0
 orm_gems = %w[merb_activerecord merb_sequel]
0
 
0
 desc "Install it all"
0
@@ -28,13 +24,12 @@ namespace :install do
0
   end
0
 end
0
 
0
-
0
 desc "Bundle up all the merb-plugins gems"
0
 task :bundle do
0
   mkdir_p "bundle"
0
   gems.each do |gem|
0
     File.open("#{gem}/Rakefile") do |rakefile|
0
- rakefile.read.detect {|l| l =~ /^VERSION\s*=\s*"(.*)"$/ }
0
+ rakefile.read.detect {|l| l =~ /^GEM_VERSION\s*=\s*"(.*)"$/ }
0
       Dir.chdir(gem){ sh "rake package" }
0
       sh %{cp #{gem}/pkg/#{gem}-#{$1}.gem bundle/}
0
     end
...
1
2
 
3
4
5
6
 
7
8
9
 
10
11
12
 
13
14
 
15
16
17
...
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
40
41
42
43
44
45
 
 
 
 
 
 
 
 
46
...
1
2
3
4
 
5
 
6
7
8
 
9
10
11
12
13
14
 
15
16
17
18
...
23
24
25
 
26
27
28
 
 
 
 
29
30
31
32
33
34
 
35
36
37
 
 
 
 
38
39
40
41
42
43
44
45
46
0
@@ -1,17 +1,18 @@
0
 require 'rubygems'
0
 require 'rake/gempackagetask'
0
+require 'merb-core/tasks/merb_rake_helper'
0
 
0
-PLUGIN = "merb_activerecord"
0
 NAME = "merb_activerecord"
0
-VERSION = "0.9.4"
0
+GEM_VERSION = "0.9.4"
0
 AUTHOR = "Duane Johnson"
0
 EMAIL = "canadaduane@gmail.com"
0
-HOMEPAGE = "http://merbivore.com"
0
+HOMEPAGE = "http://merbivore.com/"
0
 SUMMARY = "Merb plugin that provides ActiveRecord support for Merb"
0
 
0
 spec = Gem::Specification.new do |s|
0
+ s.rubyforge_project = 'merb'
0
   s.name = NAME
0
- s.version = VERSION
0
+ s.version = GEM_VERSION
0
   s.platform = Gem::Platform::RUBY
0
   s.has_rdoc = true
0
   s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
@@ -22,24 +23,23 @@ spec = Gem::Specification.new do |s|
0
   s.homepage = HOMEPAGE
0
   s.add_dependency("merb-core", ">= 0.9.4")
0
   s.require_path = "lib"
0
- s.autorequire = PLUGIN
0
   s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,activerecord_generators}/**/*")
0
 end
0
 
0
-windows = (PLATFORM =~ /win32|cygwin/) rescue nil
0
-
0
-SUDO = windows ? "" : "sudo"
0
-
0
 Rake::GemPackageTask.new(spec) do |pkg|
0
   pkg.gem_spec = spec
0
 end
0
 
0
 desc "Install merb_activerecord"
0
 task :install => :package do
0
- sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources}
0
+ sh %{#{sudo} gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION} --no-rdoc --no-ri --no-update-sources}
0
 end
0
 
0
-desc "Release the current version on rubyforge"
0
-task :release => :package do
0
- sh %{rubyforge add_release merb #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
0
-end
0
+namespace :jruby do
0
+
0
+ desc "Run :package and install the resulting .gem with jruby"
0
+ task :install => :package do
0
+ sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
0
+ end
0
+
0
+end
0
\ No newline at end of file
...
2
3
4
 
5
6
7
8
 
9
10
11
 
12
13
14
15
16
17
18
 
19
20
 
21
22
23
...
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
 
43
44
45
...
52
53
54
55
56
57
58
...
67
68
69
70
...
2
3
4
5
6
 
7
 
8
9
10
 
11
12
13
 
 
 
 
14
15
16
 
17
18
19
20
...
25
26
27
 
28
29
30
 
31
32
33
34
35
36
 
37
38
39
40
...
47
48
49
 
50
51
52
...
61
62
63
 
0
@@ -2,22 +2,19 @@ require 'rubygems'
0
 require 'rake/gempackagetask'
0
 require 'rake/rdoctask'
0
 require 'spec/rake/spectask'
0
+require 'merb-core/tasks/merb_rake_helper'
0
 
0
-PLUGIN = "merb_helpers"
0
 NAME = "merb_helpers"
0
-VERSION = "0.9.4"
0
+GEM_VERSION = "0.9.4"
0
 AUTHOR = "Yehuda Katz"
0
 EMAIL = "wycats@gmail.com"
0
-HOMEPAGE = "http://merb.rubyforge.org/"
0
+HOMEPAGE = "http://merbivore.com/"
0
 SUMMARY = "Helper support for merb (similar to the Rails form helpers)"
0
 
0
-windows = (PLATFORM =~ /win32|cygwin/)
0
-
0
-SUDO = windows ? "" : "sudo"
0
-
0
 spec = Gem::Specification.new do |s|
0
+ s.rubyforge_project = 'merb'
0
   s.name = NAME
0
- s.version = VERSION
0
+ s.version = GEM_VERSION
0
   s.platform = Gem::Platform::RUBY
0
   s.has_rdoc = true
0
   s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
@@ -28,18 +25,16 @@ spec = Gem::Specification.new do |s|
0
   s.homepage = HOMEPAGE
0
   s.add_dependency("merb-core", ">=0.9.4")
0
   s.require_path = 'lib'
0
- s.autorequire = PLUGIN
0
   s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
0
 end
0
 
0
-
0
 Rake::GemPackageTask.new(spec) do |pkg|
0
   pkg.gem_spec = spec
0
 end
0
 
0
 desc "Run :package and install resulting .gem"
0
 task :install => [:package] do
0
- sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources}
0
+ sh %{#{sudo} gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION} --no-rdoc --no-ri --no-update-sources}
0
 end
0
 
0
 Rake::RDocTask.new do |rdoc|
0
@@ -52,7 +47,6 @@ Rake::RDocTask.new do |rdoc|
0
       rdoc.options << '--line-numbers' << '--inline-source'
0
 end
0
 
0
-
0
 Spec::Rake::SpecTask.new do |t|
0
    t.spec_opts = ["--format", "specdoc", "--colour"]
0
    t.spec_files = Dir['spec/**/*_spec.rb'].sort
0
@@ -67,4 +61,3 @@ Spec::Rake::SpecTask.new('rcov') do |t|
0
   t.rcov_opts = ['--exclude', 'gems', '--exclude', 'spec']
0
 end
0
 
0
-
...
2
3
4
 
5
6
7
8
 
9
10
11
 
12
13
14
 
15
16
17
...
24
25
26
27
28
29
30
...
34
35
36
37
 
38
39
40
...
48
49
50
51
 
52
53
54
...
2
3
4
5
6
 
7
 
8
9
10
 
11
12
13
14
15
16
17
18
...
25
26
27
 
28
29
30
...
34
35
36
 
37
38
39
40
...
48
49
50
 
51
52
53
54
0
@@ -2,16 +2,17 @@ require 'rubygems'
0
 require 'rake/gempackagetask'
0
 require 'rubygems/specification'
0
 require 'date'
0
+require 'merb-core/tasks/merb_rake_helper'
0
 
0
-PLUGIN = "merb-laszlo"
0
 NAME = "merb-laszlo"
0
-GEM_VERSION = "0.5.0"
0
+GEM_GEM_VERSION = "0.5.0"
0
 AUTHOR = "Yehuda Katz"
0
 EMAIL = "wycats@gmail.com"
0
-HOMEPAGE = "http://merb-plugins.rubyforge.org/merb-laszlo/"
0
+HOMEPAGE = "http://merbivore.com/"
0
 SUMMARY = "Merb plugin that provides support for Laszlo"
0
 
0
 spec = Gem::Specification.new do |s|
0
+ s.rubyforge_project = 'merb'
0
   s.name = NAME
0
   s.version = GEM_VERSION
0
   s.platform = Gem::Platform::RUBY
0
@@ -24,7 +25,6 @@ spec = Gem::Specification.new do |s|
0
   s.homepage = HOMEPAGE
0
   s.add_dependency('merb-core', '>= 0.9.0')
0
   s.require_path = 'lib'
0
- s.autorequire = PLUGIN
0
   s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,spec}/**/*")
0
 end
0
 
0
@@ -34,7 +34,7 @@ end
0
 
0
 desc "install the plugin locally"
0
 task :install => [:package] do
0
- sh %{sudo gem install pkg/#{NAME}-#{GEM_VERSION} --no-update-sources}
0
+ sh %{#{sudo} gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION} --no-update-sources}
0
 end
0
 
0
 desc "create a gemspec file"
0
@@ -48,7 +48,7 @@ namespace :jruby do
0
 
0
   desc "Run :package and install the resulting .gem with jruby"
0
   task :install => :package do
0
- sh %{jruby -S gem install pkg/#{NAME}-#{Merb::VERSION}.gem --no-rdoc --no-ri}
0
+ sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
0
   end
0
 
0
 end
...
1
2
3
 
4
5
6
7
 
8
9
10
 
11
12
13
 
14
15
 
16
17
18
...
20
21
22
23
 
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
41
42
43
44
45
 
 
 
 
 
 
 
46
47
48
...
1
2
3
4
5
 
6
 
7
8
9
 
10
11
12
13
14
15
 
16
17
18
19
...
21
22
23
 
24
25
26
 
27
28
29
 
 
 
 
30
31
32
33
34
35
 
36
37
38
 
 
 
39
40
41
42
43
44
45
46
47
48
0
@@ -1,18 +1,19 @@
0
 require 'rubygems'
0
 require 'rake/gempackagetask'
0
 require 'spec/rake/spectask'
0
+require 'merb-core/tasks/merb_rake_helper'
0
 
0
-PLUGIN = "merb_param_protection"
0
 NAME = "merb_param_protection"
0
-VERSION = "0.9.4"
0
+GEM_VERSION = "0.9.4"
0
 AUTHOR = "Lance Carlson"
0
 EMAIL = "lancecarlson@gmail.com"
0
-HOMEPAGE = "http://merb.devjavu.com"
0
+HOMEPAGE = "http://merbivore.com/"
0
 SUMMARY = "Merb plugin that provides params_accessible and params_protected class methods"
0
 
0
 spec = Gem::Specification.new do |s|
0
+ s.rubyforge_project = 'merb'
0
   s.name = NAME
0
- s.version = VERSION
0
+ s.version = GEM_VERSION
0
   s.platform = Gem::Platform::RUBY
0
   s.has_rdoc = true
0
   s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
@@ -20,29 +21,28 @@ spec = Gem::Specification.new do |s|
0
   s.description = s.summary
0
   s.author = AUTHOR
0
   s.email = EMAIL
0
- #s.homepage = HOMEPAGE
0
+ s.homepage = HOMEPAGE
0
   s.add_dependency('merb-core', '>= 0.9.4')
0
   s.require_path = 'lib'
0
- s.autorequire = PLUGIN
0
   s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs}/**/*")
0
 end
0
 
0
-windows = (PLATFORM =~ /win32|cygwin/) rescue nil
0
-
0
-SUDO = windows ? "" : "sudo"
0
-
0
 Rake::GemPackageTask.new(spec) do |pkg|
0
   pkg.gem_spec = spec
0
 end
0
 
0
 desc "install merb_param_protection"
0
 task :install => [:package] do
0
- sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources}
0
+ sh %{#{sudo} gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION} --no-rdoc --no-ri --no-update-sources}
0
 end
0
 
0
-desc 'Release the current version on rubyforge'
0
-task :release => :package do
0
- sh %{rubyforge add_release merb #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
0
+namespace :jruby do
0
+
0
+ desc "Run :package and install the resulting .gem with jruby"
0
+ task :install => :package do
0
+ sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
0
+ end
0
+
0
 end
0
 
0
 desc "Run all specs"
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
30
31
32
33
34
35
36
37
38
39
40
41
 
42
43
44
45
46
47
 
 
 
 
 
 
 
 
48
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
 
 
 
31
32
33
34
35
36
 
37
38
39
 
 
 
 
40
41
42
43
44
45
46
47
48
0
@@ -1,47 +1,47 @@
0
 require "rubygems"
0
 require "rake/gempackagetask"
0
-
0
-PLUGIN = "merb_sequel"
0
-NAME = "merb_sequel"
0
-VERSION = "0.9.4"
0
-AUTHOR = "Wayne E. Seguin, Lance Carlson"
0
-EMAIL = "wayneeseguin@gmail.com, lancecarlson@gmail.com"
0
-HOMEPAGE = "http://merb-plugins.rubyforge.org/merb_sequel/"
0
-SUMMARY = "Merb plugin that provides support for Sequel and Sequel::Model"
0
-
0
-specification = Gem::Specification.new do |spec|
0
- spec.name = NAME
0
- spec.email = EMAIL
0
- spec.author = AUTHOR
0
- spec.version = VERSION
0
- spec.summary = SUMMARY
0
- spec.platform = Gem::Platform::RUBY
0
- spec.has_rdoc = true
0
- spec.homepage = HOMEPAGE
0
- spec.description = SUMMARY
0
- spec.autorequire = PLUGIN
0
- spec.require_path = "lib"
0
- spec.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
-
0
- spec.add_dependency("merb-core", ">= 0.9.4")
0
- spec.add_dependency("sequel", ">= 1.4.0")
0
- spec.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*")
0
+require 'merb-core/tasks/merb_rake_helper'
0
+
0
+NAME = "merb_sequel"
0
+GEM_VERSION = "0.9.4"
0
+AUTHOR = "Wayne E. Seguin, Lance Carlson"
0
+EMAIL = "wayneeseguin@gmail.com, lancecarlson@gmail.com"
0
+HOMEPAGE = "http://merbivore.com/"
0
+SUMMARY = "Merb plugin that provides support for Sequel and Sequel::Model"
0
+
0
+specification = Gem::Specification.new do |s|
0
+ s.rubyforge_project = 'merb'
0
+ s.name = NAME
0
+ s.email = EMAIL
0
+ s.author = AUTHOR
0
+ s.version = GEM_VERSION
0
+ s.summary = SUMMARY
0
+ s.platform = Gem::Platform::RUBY
0
+ s.has_rdoc = true
0
+ s.homepage = HOMEPAGE
0
+ s.description = SUMMARY
0
+ s.require_path = "lib"
0
+ s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
+
0
+ s.add_dependency("merb-core", ">= 0.9.4")
0
+ s.add_dependency("sequel", ">= 1.4.0")
0
+ s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,sequel_generators}/**/*")
0
 end
0
 
0
-windows = (PLATFORM =~ /win32|cygwin/) rescue nil
0
-
0
-SUDO = windows ? "" : "sudo"
0
-
0
 Rake::GemPackageTask.new(specification) do |package|
0
   package.gem_spec = specification
0
 end
0
 
0
 desc "Install merb_sequel"
0
 task :install => :package do
0
- sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources}
0
+ sh %{#{sudo} gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION} --no-rdoc --no-ri --no-update-sources}
0
 end
0
 
0
-desc 'Release the current version on rubyforge'
0
-task :release => :package do
0
- sh %{rubyforge add_release merb #{PLUGIN} #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
0
-end
0
+namespace :jruby do
0
+
0
+ desc "Run :package and install the resulting .gem with jruby"
0
+ task :install => :package do
0
+ sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
0
+ end
0
+
0
+end
0
\ No newline at end of file
...
1
2
 
3
4
5
6
 
7
8
9
 
10
11
12
 
13
14
 
15
16
17
...
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
41
42
43
44
45
46
47
 
48
49
50
...
1
2
3
4
 
5
 
6
7
8
 
9
10
11
12
13
14
 
15
16
17
18
...
24
25
26
 
27
28
29
 
 
 
 
30
31
32
33
34
35
 
36
37
38
39
40
41
42
 
43
44
45
46
0
@@ -1,17 +1,18 @@
0
 require 'rubygems'
0
 require 'rake/gempackagetask'
0
+require 'merb-core/tasks/merb_rake_helper'
0
 
0
-PLUGIN = "merb_stories"
0
 NAME = "merb_stories"
0
-VERSION = "0.9.4"
0
+GEM_VERSION = "0.9.4"
0
 AUTHOR = "Yehuda Katz"
0
 EMAIL = "ykatz@engineyard.com"
0
-HOMEPAGE = "http://merb-plugins.rubyforge.org/merb-test/"
0
+HOMEPAGE = "http://merbivore.com/"
0
 SUMMARY = "Merb plugin that provides RSpec support"
0
 
0
 spec = Gem::Specification.new do |s|
0
+ s.rubyforge_project = 'merb'
0
   s.name = NAME
0
- s.version = VERSION
0
+ s.version = GEM_VERSION
0
   s.platform = Gem::Platform::RUBY
0
   s.has_rdoc = true
0
   s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
@@ -23,28 +24,23 @@ spec = Gem::Specification.new do |s|
0
   s.add_dependency('merb-core', '>= 0.9.4')
0
   s.add_dependency('rspec', '>= 1.1.3')
0
   s.require_path = 'lib'
0
- s.autorequire = PLUGIN
0
   s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,specs,rspec_generators}/**/*")
0
 end
0
 
0
-windows = (PLATFORM =~ /win32|cygwin/) rescue nil
0
-
0
-SUDO = windows ? "" : "sudo"
0
-
0
 Rake::GemPackageTask.new(spec) do |pkg|
0
   pkg.gem_spec = spec
0
 end
0
 
0
 desc "Install merb_rspec"
0
 task :install => [:package] do
0
- sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources}
0
+ sh %{#{sudo} gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION} --no-rdoc --no-ri --no-update-sources}
0
 end
0
 
0
 namespace :jruby do
0
 
0
   desc "Run :package and install the resulting .gem with jruby"
0
   task :install => :package do
0
- sh %{#{SUDO} jruby -S gem install pkg/#{NAME}-#{Merb::VERSION}.gem --no-rdoc --no-ri}
0
+ sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
0
   end
0
 
0
 end
...
1
2
 
3
4
5
6
 
7
8
9
 
10
11
12
 
13
14
 
15
16
17
...
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
40
41
42
43
44
45
46
 
47
48
49
...
1
2
3
4
 
5
 
6
7
8
 
9
10
11
12
13
14
 
15
16
17
18
...
23
24
25
 
26
27
28
 
 
 
 
29
30
31
32
33
34
 
35
36
37
38
39
40
41
 
42
43
44
45
0
@@ -1,17 +1,18 @@
0
 require 'rubygems'
0
 require 'rake/gempackagetask'
0
+require 'merb-core/tasks/merb_rake_helper'
0
 
0
-PLUGIN = "merb_test_unit"
0
 NAME = "merb_test_unit"
0
-VERSION = "0.9.4"
0
+GEM_VERSION = "0.9.4"
0
 AUTHOR = "Yehuda Katz"
0
 EMAIL = "ykatz@engineyard.com"
0
-HOMEPAGE = "http://merb-plugins.rubyforge.org/merb-test_unit/"
0
+HOMEPAGE = "http://merbivore.com/"
0
 SUMMARY = "Merb plugin that provides Test::Unit support"
0
 
0
 spec = Gem::Specification.new do |s|
0
+ s.rubyforge_project = 'merb'
0
   s.name = NAME
0
- s.version = VERSION
0
+ s.version = GEM_VERSION
0
   s.platform = Gem::Platform::RUBY
0
   s.has_rdoc = true
0
   s.extra_rdoc_files = ["README", "LICENSE", 'TODO']
0
@@ -22,28 +23,23 @@ spec = Gem::Specification.new do |s|
0
   s.homepage = HOMEPAGE
0
   s.add_dependency('merb-core', '>= 0.9.4')
0
   s.require_path = 'lib'
0
- s.autorequire = PLUGIN
0
   s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,test_unit_generators}/**/*")
0
 end
0
 
0
-windows = (PLATFORM =~ /win32|cygwin/) rescue nil
0
-
0
-SUDO = windows ? "" : "sudo"
0
-
0
 Rake::GemPackageTask.new(spec) do |pkg|
0
   pkg.gem_spec = spec
0
 end
0
 
0
 desc "Install merb_test_unit"
0
 task :install => [:package] do
0
- sh %{#{SUDO} gem install pkg/#{NAME}-#{VERSION} --no-rdoc --no-ri --no-update-sources}
0
+ sh %{#{sudo} gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION} --no-rdoc --no-ri --no-update-sources}
0
 end
0
 
0
 namespace :jruby do
0
 
0
   desc "Run :package and install the resulting .gem with jruby"
0
   task :install => :package do
0
- sh %{#{SUDO} jruby -S gem install pkg/#{NAME}-#{Merb::VERSION}.gem --no-rdoc --no-ri}
0
+ sh %{#{sudo} jruby -S gem install #{install_home} pkg/#{NAME}-#{GEM_VERSION}.gem --no-rdoc --no-ri}
0
   end
0
 
0
 end

Comments

    No one has commented yet.