homeschool 0.0.1.10 → 0.0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/Rakefile +13 -2
  2. metadata +1 -1
data/Rakefile CHANGED
@@ -74,7 +74,18 @@ end
74
74
 
75
75
  desc "Publish the release files to RubyForge."
76
76
  task :release => :package do
77
- %w( gem tgz zip ).each do |ext|
78
- `rubyforge #{ext == 'gem'? 'add_release': 'add_file'} #{PKG_RUBYFORGE_PROJECT} #{PKG_NAME} #{PKG_NAME}-#{PKG_VERSION} pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}`
77
+ rubyforge do
78
+ throw RubyForgeNotConfigured if userconfig[:username] == 'username'
79
+ puts %{Preparing to release #{PKG_NAME}-#{PKG_VERSION}}
80
+ [:gem, :tgz, :zip].each_with_index do |ext, index|
81
+ send(index<1? :add_release : :add_file, PKG_RUBYFORGE_PROJECT, PKG_NAME, [PKG_NAME, PKG_VERSION]*'-', "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}")
82
+ puts %{Uploaded #{PKG_NAME}-#{PKG_VERSION}.#{ext}}
83
+ end
79
84
  end
85
+ end
86
+
87
+ def rubyforge(&block)
88
+ require 'rubyforge' unless defined?(RubyForge)
89
+ return RubyForge.new unless block_given?
90
+ rubyforge.instance_eval(&block)
80
91
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: homeschool
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1.10
6
+ version: 0.0.1.12
7
7
  date: 2007-09-08 00:00:00 -04:00
8
8
  summary: The homeschool gem
9
9
  require_paths: