public
Rubygem
Fork of mislav/will_paginate
Description: Most awesome pagination solution for Rails
Homepage: http://github.com/mislav/will_paginate/wikis
Clone URL: git://github.com/chriseppstein/will_paginate.git
add rake release task
mislav (author)
Sun Apr 06 21:19:24 -0700 2008
commit  e9814cae7ee0e8f8aa2d80e0a95c7063034ca619
tree    addcc61d2c105d58e8ab7fcd3ff078d10f1d0046
parent  4ca58bb6863870d17413c21de047da0febd12af2
...
87
88
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
91
92
...
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
0
@@ -87,6 +87,33 @@ task :manifest do
0
   end
0
 end
0
 
0
+desc 'Package and upload the release to rubyforge.'
0
+task :release do
0
+ require 'yaml'
0
+ require 'rubyforge'
0
+
0
+ meta = YAML::load open('.gemified')
0
+ version = meta[:version]
0
+
0
+ v = ENV['VERSION'] or abort "Must supply VERSION=x.y.z"
0
+ abort "Version doesn't match #{version}" if v != version
0
+
0
+ gem = "#{meta[:name]}-#{version}.gem"
0
+ project = meta[:rubyforge_project]
0
+
0
+ rf = RubyForge.new
0
+ puts "Logging in to RubyForge"
0
+ rf.login
0
+
0
+ c = rf.userconfig
0
+ c['release_notes'] = meta[:summary]
0
+ c['release_changes'] = File.read('CHANGELOG').split(/^== .+\n/)[1].strip
0
+ c['preformatted'] = true
0
+
0
+ puts "Releasing #{meta[:name]} #{version}"
0
+ rf.add_release project, project, version, gem
0
+end
0
+
0
 task :examples do
0
   %x(haml examples/index.haml examples/index.html)
0
   %x(sass examples/pagination.sass examples/pagination.css)

Comments

    No one has commented yet.