gemstub 1.5.3.2 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gemstub.rb +4 -2
- metadata +3 -3
data/lib/gemstub.rb
CHANGED
@@ -88,6 +88,8 @@ module Gemstub
|
|
88
88
|
|
89
89
|
desc "Release the gem"
|
90
90
|
task :release => :install do |t|
|
91
|
+
gem_pkg = File.join("pkg", "#{@gem_spec.name}-#{@gem_spec.version}.gem")
|
92
|
+
system "gem push #{gem_pkg}"
|
91
93
|
begin
|
92
94
|
ac_path = File.join(ENV["HOME"], ".rubyforge", "auto-config.yml")
|
93
95
|
if File.exists?(ac_path)
|
@@ -100,12 +102,12 @@ module Gemstub
|
|
100
102
|
rf = RubyForge.new
|
101
103
|
rf.configure
|
102
104
|
rf.login
|
103
|
-
rf.add_release(@gem_spec.rubyforge_project, @gem_spec.name, @gem_spec.version,
|
105
|
+
rf.add_release(@gem_spec.rubyforge_project, @gem_spec.name, @gem_spec.version, gem_pkg)
|
104
106
|
rescue Exception => e
|
105
107
|
if e.message.match("Invalid package_id") || e.message.match("no <package_id> configured for")
|
106
108
|
puts "You need to create the package!"
|
107
109
|
rf.create_package(@gem_spec.rubyforge_project, @gem_spec.name)
|
108
|
-
rf.add_release(@gem_spec.rubyforge_project, @gem_spec.name, @gem_spec.version,
|
110
|
+
rf.add_release(@gem_spec.rubyforge_project, @gem_spec.name, @gem_spec.version, gem_pkg)
|
109
111
|
else
|
110
112
|
raise e
|
111
113
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemstub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Bates
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-02 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements: []
|
90
90
|
|
91
91
|
rubyforge_project: gemstub
|
92
|
-
rubygems_version: 1.3.
|
92
|
+
rubygems_version: 1.3.5
|
93
93
|
signing_key:
|
94
94
|
specification_version: 3
|
95
95
|
summary: "Gemstub is a very simple tool for creating the stub code you need to build a gem. Usage: at a command prompt simply type: gemstub your_gem_name_here That's it, after that, you all you have to do is the actual coding of your gem! Enjoy!"
|