Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added rubyforge_project option to gemspec and thor script

  • Loading branch information...
commit 2a9c8cc2b2839529ed17b645e87a33be10196c12 1 parent da16af6
@soveran soveran authored
Showing with 11 additions and 9 deletions.
  1. +2 −2 joe.thor
  2. +9 −7 sample.gemspec.erb
View
4 joe.thor
@@ -82,10 +82,10 @@ protected
end
def release_file(file)
- project_name = options[:project] || spec.name
+ project_name = options[:project] || spec.rubyforge_project || spec.name
package_name = options[:package] || spec.name
- puts "Releasing #{file} to RubyForge... (#{project_name} #{package_name})"
+ puts "Releasing #{file} to RubyForge... (Project: #{project_name} Package: #{package_name})"
if system "rubyforge add_release #{project_name} #{package_name} #{spec.version} #{file}"
puts "Successfully released #{file} to RubyForge."
View
16 sample.gemspec.erb
@@ -1,13 +1,15 @@
# Read about everything you can do with your gemspec:
# http://rubygems.org/read/chapter/20
Gem::Specification.new do |s|
- s.name = ""
- s.version = "0.0.1"
- s.summary = ""
- s.date = ""
- s.authors = ""
- s.email = ""
- s.homepage = ""
+ s.name = ""
+ s.version = "0.0.1"
+ s.summary = ""
+ s.description = ""
+ s.date = ""
+ s.author = ""
+ s.email = ""
+ s.homepage = ""
+ s.rubyforge_project = ""
s.files = <%= Dir[
"LICENSE",
Please sign in to comment.
Something went wrong with that request. Please try again.