buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject svn commit: r1406347 - /buildr/trunk/rakelib/release.rake
Date Tue, 06 Nov 2012 21:31:45 GMT
Author: donaldp
Date: Tue Nov  6 21:31:44 2012
New Revision: 1406347

URL: http://svn.apache.org/viewvc?rev=1406347&view=rev
Log:
* Remove rubyforge release announcements form the release process as the rubyforge gem no
longer seems to work.
* Add a task description to release task

Modified:
    buildr/trunk/rakelib/release.rake

Modified: buildr/trunk/rakelib/release.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/release.rake?rev=1406347&r1=1406346&r2=1406347&view=diff
==============================================================================
--- buildr/trunk/rakelib/release.rake (original)
+++ buildr/trunk/rakelib/release.rake Tue Nov  6 21:31:44 2012
@@ -13,7 +13,7 @@
 # License for the specific language governing permissions and limitations under
 # the License.
 
-
+desc "Release the next version of buildr from existing staged repository"
 task 'release' do
   # First, we need to get all the staged files from Apache to _release.
   mkpath '_release'
@@ -24,7 +24,6 @@ task 'release' do
     puts '[X] Staged files are now in _release'
   end.call
 
-
   # Upload binary and source packages and new Web site
   lambda do
     target = "people.apache.org:/www/www.apache.org/dist/#{spec.name}/#{spec.version}"
@@ -42,25 +41,6 @@ task 'release' do
     puts "[X] Uploaded new site to #{spec.name}.apache.org"
   end.call
 
-
-  # Upload binary and source packages to RubyForge.
-  lambda do
-    # update rubyforge projects, processors, etc. in local config
-    sh 'rubyforge', 'config'
-    files = FileList["_release/#{spec.version}/dist/*.{gem,tgz,zip}"]
-    puts "Uploading #{spec.version} to RubyForge ... "
-    rubyforge = RubyForge.new.configure
-    rubyforge.login
-    rubyforge.userconfig.merge!('release_changes'=>"_release/#{spec.version}/CHANGES",
 'preformatted' => true)
-    rubyforge.add_release spec.rubyforge_project.downcase, spec.name.downcase, spec.version.to_s,
*files
-
-    puts 'Posting news to RubyForge ...'
-    changes = File.read("_release/#{spec.version}/CHANGES")[/.*?\n(.*)/m, 1]
-    rubyforge.post_news spec.rubyforge_project.downcase, "Buildr #{spec.version} released",
-      "#{spec.description}\n\nNew in Buildr #{spec.version}:\n#{changes.gsub(/^/, '  ')}\n"
-    puts "[X] Uploaded gems and source files to #{spec.name}.rubyforge.org"
-  end.call
-
   # Push gems to Rubyforge.org / Gemcutter
   lambda do
     files = FileList["_release/#{spec.version}/dist/*.{gem}"]



Mime
View raw message