markbates-gemstub 1.5.4.20090813155947 → 1.5.5.20090820141227

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.
Files changed (2) hide show
  1. data/lib/gemstub.rb +4 -2
  2. metadata +2 -2
@@ -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, File.join("pkg", "#{@gem_spec.name}-#{@gem_spec.version}.gem"))
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, File.join("pkg", "#{@gem_spec.name}-#{@gem_spec.version}.gem"))
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: markbates-gemstub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4.20090813155947
4
+ version: 1.5.5.20090820141227
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-08-13 00:00:00 -07:00
12
+ date: 2009-08-20 00:00:00 -07:00
13
13
  default_executable: gemstub
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency