homeschool 0.0.1.10 → 0.0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +13 -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
|
-
|
78
|
-
|
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
|