GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Rubygem
Description: A lightweight and flexible website management system.
Homepage: http://webby.rubyforge.org/
Clone URL: git://github.com/TwP/webby.git
Updating rake tasks to the latest version of Mr Bones. These tasks have 
Git support.
Tim Pease (author)
Tue Jun 03 07:45:35 -0700 2008
commit  d024f893b86384d1b152f0a46dde4fb94d1f6c71
tree    127a0dd69cb0dc264a3dcfbe28bbf1bd2604c855
parent  db8beddbfb5cce5eef4702342338cd578eb1b51c
...
91
92
93
94
95
 
 
 
 
 
96
97
98
...
106
107
108
 
 
 
 
 
109
110
111
...
91
92
93
 
 
94
95
96
97
98
99
100
101
...
109
110
111
112
113
114
115
116
117
118
119
0
@@ -91,8 +91,11 @@ namespace :gem do
0
   end
0
 
0
   desc 'Install the gem'
0
- task :install => [:clobber, :package] do
0
- sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{PROJ.gem._spec.full_name}"
0
+ task :install => [:clobber, 'gem:package'] do
0
+ sh "#{SUDO} #{GEM} install --local pkg/#{PROJ.gem._spec.full_name}"
0
+
0
+ # use this version of the command for rubygems > 1.0.0
0
+ #sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{PROJ.gem._spec.full_name}"
0
   end
0
 
0
   desc 'Uninstall the gem'
0
@@ -106,6 +109,11 @@ namespace :gem do
0
   desc 'Reinstall the gem'
0
   task :reinstall => [:uninstall, :install]
0
 
0
+ desc 'Cleanup the gem'
0
+ task :cleanup do
0
+ sh "#{SUDO} #{GEM} cleanup #{PROJ.gem._spec.name}"
0
+ end
0
+
0
 end # namespace :gem
0
 
0
 desc 'Alias to gem:package'
...
7
8
9
10
 
11
12
13
...
7
8
9
 
10
11
12
13
0
@@ -7,7 +7,7 @@ require 'rake/contrib/sshpublisher'
0
 
0
 namespace :gem do
0
   desc 'Package and upload to RubyForge'
0
- task :release => [:clobber, :package] do |t|
0
+ task :release => [:clobber, 'gem:package'] do |t|
0
     v = ENV['VERSION'] or abort 'Must supply VERSION=x.y.z'
0
     abort "Versions don't match #{v} vs #{PROJ.version}" if v != PROJ.version
0
     pkg = "pkg/#{PROJ.gem._spec.full_name}"

Comments

    No one has commented yet.