gemstub 1.5.7 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,11 +8,13 @@ Gemstub.test_framework = :test_unit
8
8
  <% end -%>
9
9
 
10
10
  Gemstub.gem_spec do |s|
11
- # s.version = "0.0.1"
12
- # s.rubyforge_project = "<%= app -%>"
11
+ # s.version = '0.0.1'
12
+ # s.rubyforge_project = '<%= app -%>'
13
13
  # s.add_dependency('')
14
+ # s.email = ''
15
+ # s.homepage = ''
14
16
  end
15
17
 
16
18
  Gemstub.rdoc do |rd|
17
- rd.title = "<%= app -%>"
19
+ rd.title = '<%= app -%>'
18
20
  end
data/lib/gemstub.rb CHANGED
@@ -8,7 +8,7 @@ require 'rake/clean'
8
8
  require 'rake/testtask'
9
9
  require 'rake/rdoctask'
10
10
  require 'find'
11
- require 'rubyforge'
11
+ # require 'rubyforge'
12
12
  require 'rubygems'
13
13
  require 'rubygems/gem_runner'
14
14
  require 'spec'
@@ -90,35 +90,35 @@ module Gemstub
90
90
  task :release => :install do |t|
91
91
  gem_pkg = File.join("pkg", "#{@gem_spec.name}-#{@gem_spec.version}.gem")
92
92
  system "gem push #{gem_pkg}"
93
- begin
94
- ac_path = File.join(ENV["HOME"], ".rubyforge", "auto-config.yml")
95
- if File.exists?(ac_path)
96
- fixed = File.open(ac_path).read.gsub(" ~: {}\n\n", '')
97
- fixed.gsub!(/ !ruby\/object:Gem::Version \? \n.+\n.+\n\n/, '')
98
- puts "Fixing #{ac_path}..."
99
- File.open(ac_path, "w") {|f| f.puts fixed}
100
- end
101
- begin
102
- rf = RubyForge.new
103
- rf.configure
104
- rf.login
105
- rf.add_release(@gem_spec.rubyforge_project, @gem_spec.name, @gem_spec.version, gem_pkg)
106
- rescue Exception => e
107
- if e.message.match("Invalid package_id") || e.message.match("no <package_id> configured for")
108
- puts "You need to create the package!"
109
- rf.create_package(@gem_spec.rubyforge_project, @gem_spec.name)
110
- rf.add_release(@gem_spec.rubyforge_project, @gem_spec.name, @gem_spec.version, gem_pkg)
111
- else
112
- raise e
113
- end
114
- end
115
- rescue Exception => e
116
- if e.message == "You have already released this version."
117
- puts e
118
- else
119
- raise e
120
- end
121
- end
93
+ # begin
94
+ # ac_path = File.join(ENV["HOME"], ".rubyforge", "auto-config.yml")
95
+ # if File.exists?(ac_path)
96
+ # fixed = File.open(ac_path).read.gsub(" ~: {}\n\n", '')
97
+ # fixed.gsub!(/ !ruby\/object:Gem::Version \? \n.+\n.+\n\n/, '')
98
+ # puts "Fixing #{ac_path}..."
99
+ # File.open(ac_path, "w") {|f| f.puts fixed}
100
+ # end
101
+ # begin
102
+ # rf = RubyForge.new
103
+ # rf.configure
104
+ # rf.login
105
+ # rf.add_release(@gem_spec.rubyforge_project, @gem_spec.name, @gem_spec.version, gem_pkg)
106
+ # rescue Exception => e
107
+ # if e.message.match("Invalid package_id") || e.message.match("no <package_id> configured for")
108
+ # puts "You need to create the package!"
109
+ # rf.create_package(@gem_spec.rubyforge_project, @gem_spec.name)
110
+ # rf.add_release(@gem_spec.rubyforge_project, @gem_spec.name, @gem_spec.version, gem_pkg)
111
+ # else
112
+ # raise e
113
+ # end
114
+ # end
115
+ # rescue Exception => e
116
+ # if e.message == "You have already released this version."
117
+ # puts e
118
+ # else
119
+ # raise e
120
+ # end
121
+ # end
122
122
  end
123
123
 
124
124
  task :readme do
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.7
4
+ version: 1.6.0
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-09-03 00:00:00 -04:00
12
+ date: 2010-01-15 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency