jeweler 1.5.0.pre2 → 1.5.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,9 +1,9 @@
1
- source 'http://gemcutter.org'
2
- source 'http://gems.github.com'
1
+ source "http://rubygems.org"
2
+ source "http://gems.github.com"
3
3
 
4
4
  gem "rake"
5
5
  gem "git", ">= 1.2.5"
6
- gem "bundler", ">= 1.0.0.rc.5"
6
+ gem "bundler", "~> 1.0.0"
7
7
 
8
8
  group :development do
9
9
  gem "shoulda"
@@ -12,10 +12,11 @@ group :development do
12
12
  gem "mocha"
13
13
  gem "redgreen"
14
14
  gem "test-construct"
15
- gem "yard"
15
+ gem "yard", "~> 0.6.0"
16
+ gem "bluecloth"
16
17
  gem "cucumber"
17
18
  gem "rcov"
18
19
  gem "timecop"
19
20
  gem "activesupport", "~> 2.3.5"
20
- gem "ruby-debug"
21
+ gem (RUBY_VERSION =~ /^1\.9/ ? "ruby-debug19" : "ruby-debug")
21
22
  end
@@ -1,8 +1,9 @@
1
1
  GEM
2
- remote: http://gemcutter.org/
2
+ remote: http://rubygems.org/
3
3
  remote: http://gems.github.com/
4
4
  specs:
5
5
  activesupport (2.3.8)
6
+ bluecloth (2.0.7)
6
7
  builder (2.1.2)
7
8
  columnize (0.3.1)
8
9
  cucumber (0.8.5)
@@ -34,14 +35,15 @@ GEM
34
35
  test-construct (1.2.0)
35
36
  timecop (0.3.5)
36
37
  trollop (1.16.2)
37
- yard (0.5.8)
38
+ yard (0.6.0)
38
39
 
39
40
  PLATFORMS
40
41
  ruby
41
42
 
42
43
  DEPENDENCIES
43
44
  activesupport (~> 2.3.5)
44
- bundler (>= 1.0.0.rc.5)
45
+ bluecloth
46
+ bundler (~> 1.0.0)
45
47
  cucumber
46
48
  git (>= 1.2.5)
47
49
  mhennemeyer-output_catcher
@@ -54,4 +56,4 @@ DEPENDENCIES
54
56
  shoulda
55
57
  test-construct
56
58
  timecop
57
- yard
59
+ yard (~> 0.6.0)
data/Rakefile CHANGED
@@ -24,12 +24,7 @@ Jeweler::Tasks.new do |gem|
24
24
  # dependencies defined in Gemfile
25
25
  end
26
26
 
27
- Jeweler::GemcutterTasks.new
28
-
29
- Jeweler::RubyforgeTasks.new do |t|
30
- t.doc_task = :yardoc
31
- end
32
-
27
+ Jeweler::RubygemsDotOrgTasks.new
33
28
 
34
29
  require 'rake/testtask'
35
30
  Rake::TestTask.new(:test) do |test|
@@ -51,7 +46,7 @@ namespace :test do
51
46
  end
52
47
 
53
48
  require 'yard'
54
- YARD::Rake::YardocTask.new(:yardoc) do |t|
49
+ YARD::Rake::YardocTask.new do |t|
55
50
  t.files = FileList['lib/**/*.rb'].exclude('lib/jeweler/templates/**/*.rb')
56
51
  end
57
52
 
@@ -20,7 +20,7 @@ Feature: generated Rakefile
20
20
  And Rakefile has 'zomg, so good' for the Jeweler::Tasks summary
21
21
  And Rakefile has 'Descriptive' for the Jeweler::Tasks description
22
22
  And Rakefile has 'http://github.com/technicalpickles/the-perfect-gem' for the Jeweler::Tasks homepage
23
- And Rakefile instantiates a Jeweler::GemcutterTasks
23
+ And Rakefile instantiates a Jeweler::RubygemsDotOrgTasks
24
24
 
25
25
  Scenario: bacon
26
26
  When I generate a bacon project named 'the-perfect-gem' that is 'zomg, so good'
@@ -88,14 +88,14 @@ Feature: generated Rakefile
88
88
  Scenario: no reek
89
89
  Given I do not want reek
90
90
  When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
91
- Then Rakefile does not require 'reek/adapters/rake_task'
92
- And Rakefile does not instantiate a Reek::RakeTask
91
+ Then Rakefile does not require 'reek/rake/task'
92
+ And Rakefile does not instantiate a Reek::Rake::Task
93
93
 
94
94
  Scenario: reek
95
95
  Given I want reek
96
96
  When I generate a testunit project named 'the-perfect-gem' that is 'zomg, so good'
97
- Then Rakefile requires 'reek/adapters/rake_task'
98
- And Rakefile instantiates a Reek::RakeTask
97
+ Then Rakefile requires 'reek/rake/task'
98
+ And Rakefile instantiates a Reek::Rake::Task
99
99
 
100
100
  Scenario: no roodi
101
101
  Given I do not want roodi
@@ -350,6 +350,6 @@ end
350
350
  Then /^'Gemfile' uses the (.*) source$/ do |source|
351
351
  content = File.read(File.join(@working_dir, @name, 'Gemfile'))
352
352
 
353
- assert_match "source :#{source}", content
353
+ assert_match %Q{source "http://rubygems.org"}, content
354
354
  end
355
355
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jeweler}
8
- s.version = "1.5.0.pre2"
8
+ s.version = "1.5.0.pre3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Josh Nichols"]
12
- s.date = %q{2010-08-29}
12
+ s.date = %q{2010-09-07}
13
13
  s.default_executable = %q{jeweler}
14
14
  s.description = %q{Simple and opinionated helper for creating Rubygem projects on GitHub}
15
15
  s.email = %q{josh@technicalpickles.com}
@@ -55,8 +55,8 @@ Gem::Specification.new do |s|
55
55
  "lib/jeweler/commands/build_gem.rb",
56
56
  "lib/jeweler/commands/check_dependencies.rb",
57
57
  "lib/jeweler/commands/install_gem.rb",
58
+ "lib/jeweler/commands/release_gemspec.rb",
58
59
  "lib/jeweler/commands/release_to_git.rb",
59
- "lib/jeweler/commands/release_to_github.rb",
60
60
  "lib/jeweler/commands/release_to_rubygems.rb",
61
61
  "lib/jeweler/commands/validate_gemspec.rb",
62
62
  "lib/jeweler/commands/version/base.rb",
@@ -228,14 +228,15 @@ Gem::Specification.new do |s|
228
228
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
229
229
  s.add_runtime_dependency(%q<rake>, [">= 0"])
230
230
  s.add_runtime_dependency(%q<git>, [">= 1.2.5"])
231
- s.add_runtime_dependency(%q<bundler>, [">= 1.0.0.rc.5"])
231
+ s.add_runtime_dependency(%q<bundler>, ["~> 1.0.0"])
232
232
  s.add_development_dependency(%q<shoulda>, [">= 0"])
233
233
  s.add_development_dependency(%q<mhennemeyer-output_catcher>, [">= 0"])
234
234
  s.add_development_dependency(%q<rr>, [">= 0"])
235
235
  s.add_development_dependency(%q<mocha>, [">= 0"])
236
236
  s.add_development_dependency(%q<redgreen>, [">= 0"])
237
237
  s.add_development_dependency(%q<test-construct>, [">= 0"])
238
- s.add_development_dependency(%q<yard>, [">= 0"])
238
+ s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
239
+ s.add_development_dependency(%q<bluecloth>, [">= 0"])
239
240
  s.add_development_dependency(%q<cucumber>, [">= 0"])
240
241
  s.add_development_dependency(%q<rcov>, [">= 0"])
241
242
  s.add_development_dependency(%q<timecop>, [">= 0"])
@@ -244,14 +245,15 @@ Gem::Specification.new do |s|
244
245
  else
245
246
  s.add_dependency(%q<rake>, [">= 0"])
246
247
  s.add_dependency(%q<git>, [">= 1.2.5"])
247
- s.add_dependency(%q<bundler>, [">= 1.0.0.rc.5"])
248
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
248
249
  s.add_dependency(%q<shoulda>, [">= 0"])
249
250
  s.add_dependency(%q<mhennemeyer-output_catcher>, [">= 0"])
250
251
  s.add_dependency(%q<rr>, [">= 0"])
251
252
  s.add_dependency(%q<mocha>, [">= 0"])
252
253
  s.add_dependency(%q<redgreen>, [">= 0"])
253
254
  s.add_dependency(%q<test-construct>, [">= 0"])
254
- s.add_dependency(%q<yard>, [">= 0"])
255
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
256
+ s.add_dependency(%q<bluecloth>, [">= 0"])
255
257
  s.add_dependency(%q<cucumber>, [">= 0"])
256
258
  s.add_dependency(%q<rcov>, [">= 0"])
257
259
  s.add_dependency(%q<timecop>, [">= 0"])
@@ -261,14 +263,15 @@ Gem::Specification.new do |s|
261
263
  else
262
264
  s.add_dependency(%q<rake>, [">= 0"])
263
265
  s.add_dependency(%q<git>, [">= 1.2.5"])
264
- s.add_dependency(%q<bundler>, [">= 1.0.0.rc.5"])
266
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
265
267
  s.add_dependency(%q<shoulda>, [">= 0"])
266
268
  s.add_dependency(%q<mhennemeyer-output_catcher>, [">= 0"])
267
269
  s.add_dependency(%q<rr>, [">= 0"])
268
270
  s.add_dependency(%q<mocha>, [">= 0"])
269
271
  s.add_dependency(%q<redgreen>, [">= 0"])
270
272
  s.add_dependency(%q<test-construct>, [">= 0"])
271
- s.add_dependency(%q<yard>, [">= 0"])
273
+ s.add_dependency(%q<yard>, ["~> 0.6.0"])
274
+ s.add_dependency(%q<bluecloth>, [">= 0"])
272
275
  s.add_dependency(%q<cucumber>, [">= 0"])
273
276
  s.add_dependency(%q<rcov>, [">= 0"])
274
277
  s.add_dependency(%q<timecop>, [">= 0"])
@@ -124,8 +124,8 @@ class Jeweler
124
124
  command.run
125
125
  end
126
126
 
127
- def release_gem_to_github
128
- Jeweler::Commands::ReleaseToGithub.build_for(self).run
127
+ def release_gemspec
128
+ Jeweler::Commands::ReleaseGemspec.build_for(self).run
129
129
  end
130
130
 
131
131
  def release_to_git
@@ -4,7 +4,7 @@ class Jeweler
4
4
  autoload :InstallGem, 'jeweler/commands/install_gem'
5
5
  autoload :CheckDependencies, 'jeweler/commands/check_dependencies'
6
6
  autoload :ReleaseToGit, 'jeweler/commands/release_to_git'
7
- autoload :ReleaseToGithub, 'jeweler/commands/release_to_github'
7
+ autoload :ReleaseGemspec, 'jeweler/commands/release_gemspec'
8
8
  autoload :ReleaseToRubygems, 'jeweler/commands/release_to_rubygems'
9
9
  autoload :ValidateGemspec, 'jeweler/commands/validate_gemspec'
10
10
  autoload :WriteGemspec, 'jeweler/commands/write_gemspec'
@@ -2,7 +2,7 @@ require 'pathname'
2
2
 
3
3
  class Jeweler
4
4
  module Commands
5
- class ReleaseToGithub
5
+ class ReleaseGemspec
6
6
  attr_accessor :gemspec, :version, :repo, :output, :gemspec_helper, :base_dir
7
7
 
8
8
  def initialize(attributes = {})
@@ -95,7 +95,7 @@ class Jeweler
95
95
  development_dependencies << ["cucumber", ">= 0"] if should_use_cucumber
96
96
 
97
97
  # TODO make bundler optional?
98
- development_dependencies << ["bundler", ">= 1.0.0.rc.5"]
98
+ development_dependencies << ["bundler", "~> 1.0.0"]
99
99
  development_dependencies << ["jeweler", "~> #{Jeweler::Version::STRING}"]
100
100
  development_dependencies << ["rcov", ">= 0"]
101
101
 
@@ -2,7 +2,7 @@ class Jeweler
2
2
  class Generator
3
3
  module YardMixin
4
4
  def self.extended(generator)
5
- generator.development_dependencies << ["yard", ">= 0"]
5
+ generator.development_dependencies << ["yard", "~> 0.6.0"]
6
6
  end
7
7
 
8
8
  def doc_task
@@ -15,18 +15,23 @@ end
15
15
  class Jeweler
16
16
  # Rake tasks for managing your gem.
17
17
  #
18
- # Here's a basic example of using it:
18
+ # Here's a basic usage example:
19
19
  #
20
20
  # Jeweler::Tasks.new do |gem|
21
21
  # gem.name = "jeweler"
22
- # gem.summary = "Simple and opinionated helper for creating Rubygem projects on GitHub"
22
+ # gem.summary = "Simple and opinionated helper for creating RubyGem projects on GitHub"
23
23
  # gem.email = "josh@technicalpickles.com"
24
24
  # gem.homepage = "http://github.com/technicalpickles/jeweler"
25
- # gem.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
25
+ # gem.description = "Simple and opinionated helper for creating RubyGem projects on GitHub"
26
26
  # gem.authors = ["Josh Nichols"]
27
27
  # end
28
28
  #
29
- # The block variable gem is actually a Gem::Specification, so you can do anything you would normally do with a Gem::Specification. For more details, see the official gemspec reference: http://docs.rubygems.org/read/chapter/20 . In addition, it has a defaults set for you. See Jeweler::Specification for more details.
29
+ # The block variable gem is actually a Gem::Specification, so you can
30
+ # do anything you would normally do with a Gem::Specification.
31
+ # For more details, see the official gemspec reference:
32
+ # http://docs.rubygems.org/read/chapter/20
33
+ #
34
+ # In addition, it provides reasonable defaults for several values. See Jeweler::Specification for more details.
30
35
  class Tasks < ::Rake::TaskLib
31
36
  attr_accessor :gemspec, :jeweler, :gemspec_building_block
32
37
 
@@ -74,32 +79,42 @@ class Jeweler
74
79
  end
75
80
 
76
81
 
77
- desc "Build gem"
82
+ desc "Build gem into pkg/"
78
83
  task :build do
79
84
  jeweler.build_gem
80
85
  end
81
86
 
82
- desc "Install gem"
87
+ desc "Build and install gem using `gem install`"
83
88
  task :install => [:build] do
84
89
  jeweler.install_gem
85
90
  end
86
91
 
87
- desc "Generate and validates gemspec"
92
+ desc "Displays the current version"
93
+ task :version => :version_required do
94
+ $stdout.puts "Current version: #{jeweler.version}"
95
+ end
96
+
97
+ desc "Release gem"
98
+ task :release do
99
+ end
100
+
101
+ desc "Generate and validate gemspec"
88
102
  task :gemspec => ['gemspec:generate', 'gemspec:validate']
89
103
 
90
104
  namespace :gemspec do
91
- desc "Validates the gemspec"
105
+ desc "Validates the gemspec on the filesystem"
92
106
  task :validate => :gemspec_required do
93
107
  jeweler.validate_gemspec
94
108
  end
95
109
 
96
- desc "Generates the gemspec, using version from VERSION"
110
+ desc "Regenreate the gemspec on the filesystem"
97
111
  task :generate => :version_required do
98
112
  jeweler.write_gemspec
99
113
  end
100
114
 
101
- desc "Display the gemspec for debugging purposes, as jeweler knows it (not from disk)"
115
+ desc "Display the gemspec for debugging purposes, as jeweler knows it (not from the filesystem)"
102
116
  task :debug do
117
+ # TODO move to a command
103
118
  jeweler.gemspec_helper.spec.version ||= begin
104
119
  jeweler.version_helper.refresh
105
120
  jeweler.version_helper.to_s
@@ -108,16 +123,14 @@ class Jeweler
108
123
  puts jeweler.gemspec_helper.to_ruby
109
124
  end
110
125
 
111
- desc "Release Gemspec"
126
+ desc "Regenerate and validate gemspec, and then commits and pushes to git"
112
127
  task :release do
113
- jeweler.release_gem_to_github
128
+ jeweler.release_gemspec
114
129
  end
115
130
  end
116
131
 
117
- desc "Displays the current version"
118
- task :version => :version_required do
119
- $stdout.puts "Current version: #{jeweler.version}"
120
- end
132
+ task :release => 'gemspec:release'
133
+
121
134
 
122
135
  unless yield_gemspec_set_version?
123
136
  namespace :version do
@@ -129,19 +142,19 @@ class Jeweler
129
142
  end
130
143
 
131
144
  namespace :bump do
132
- desc "Bump the gemspec by a major version."
145
+ desc "Bump the major version by 1"
133
146
  task :major => [:version_required, :version] do
134
147
  jeweler.bump_major_version
135
148
  $stdout.puts "Updated version: #{jeweler.version}"
136
149
  end
137
150
 
138
- desc "Bump the gemspec by a minor version."
151
+ desc "Bump the a minor version by 1"
139
152
  task :minor => [:version_required, :version] do
140
153
  jeweler.bump_minor_version
141
154
  $stdout.puts "Updated version: #{jeweler.version}"
142
155
  end
143
156
 
144
- desc "Bump the gemspec by a patch version."
157
+ desc "Bump the patch version by 1"
145
158
  task :patch => [:version_required, :version] do
146
159
  jeweler.bump_patch_version
147
160
  $stdout.puts "Updated version: #{jeweler.version}"
@@ -150,14 +163,9 @@ class Jeweler
150
163
  end
151
164
  end
152
165
 
153
- desc "Release gem"
154
- task :release do
155
- end
156
-
157
- task :release => 'gemspec:release'
158
166
 
159
167
  namespace :git do
160
- desc "Tag a release in Git"
168
+ desc "Tag and push release to git. (happens by default with `rake release`)"
161
169
  task :release do
162
170
  jeweler.release_to_git
163
171
  end
@@ -184,6 +192,7 @@ class Jeweler
184
192
 
185
193
  desc "Start IRB with all runtime dependencies loaded"
186
194
  task :console, [:script] do |t,args|
195
+ # TODO move to a command
187
196
  dirs = ['ext', 'lib'].select { |dir| File.directory?(dir) }
188
197
 
189
198
  original_load_path = $LOAD_PATH
@@ -8,6 +8,9 @@ rdoc
8
8
  doc
9
9
  .yardoc
10
10
 
11
+ # bundler
12
+ .bundle
13
+
11
14
  # jeweler generated
12
15
  pkg
13
16
 
@@ -1,4 +1,4 @@
1
- source :gemcutter
1
+ source "http://rubygems.org"
2
2
  # Add dependencies required to use your gem here.
3
3
  # Example:
4
4
  # gem "activesupport", ">= 2.3.5"
@@ -18,7 +18,7 @@ Jeweler::Tasks.new do |gem|
18
18
  gem.add_development_dependency "<%= name %>", "<%= version %>"
19
19
  <% end %>
20
20
  end
21
- Jeweler::RubygemsDotOrgsTasks.new
21
+ Jeweler::RubygemsDotOrgTasks.new
22
22
  <% if should_setup_rubyforge %>
23
23
  Jeweler::RubyforgeTasks.new do |rubyforge|
24
24
  rubyforge.doc_task = "<%= doc_task %>"
@@ -3,7 +3,7 @@ class Jeweler
3
3
  MAJOR = 1
4
4
  MINOR = 5
5
5
  PATCH = 0
6
- BUILD = 'pre2'
6
+ BUILD = 'pre3'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
@@ -3,7 +3,7 @@ require 'pathname'
3
3
 
4
4
  class Jeweler
5
5
  module Commands
6
- class TestReleaseToGithub < Test::Unit::TestCase
6
+ class TestReleaseGemspec < Test::Unit::TestCase
7
7
 
8
8
  rubyforge_command_context "running" do
9
9
  context "happily" do
@@ -133,7 +133,7 @@ class Jeweler
133
133
 
134
134
  build_command_context "building from jeweler" do
135
135
  setup do
136
- @command = Jeweler::Commands::ReleaseToGithub.build_for(@jeweler)
136
+ @command = Jeweler::Commands::ReleaseGemspec.build_for(@jeweler)
137
137
  end
138
138
 
139
139
  should "assign gemspec" do
@@ -167,7 +167,7 @@ class Jeweler
167
167
  # should "be false if there added files" do
168
168
  # repo = build_repo :added => %w(README)
169
169
 
170
- # command = Jeweler::Commands::ReleaseToGithub.new :repo => repo
170
+ # command = Jeweler::Commands::ReleaseGemspec.new :repo => repo
171
171
 
172
172
  # assert ! command.clean_staging_area?
173
173
  # end
@@ -175,7 +175,7 @@ class Jeweler
175
175
  # should "be false if there are changed files" do
176
176
  # repo = build_repo :changed => %w(README)
177
177
 
178
- # command = Jeweler::Commands::ReleaseToGithub.new
178
+ # command = Jeweler::Commands::ReleaseGemspec.new
179
179
  # command.repo = repo
180
180
 
181
181
  # assert ! command.clean_staging_area?
@@ -184,7 +184,7 @@ class Jeweler
184
184
  # should "be false if there are deleted files" do
185
185
  # repo = build_repo :deleted => %w(README)
186
186
 
187
- # command = Jeweler::Commands::ReleaseToGithub.new
187
+ # command = Jeweler::Commands::ReleaseGemspec.new
188
188
  # command.repo = repo
189
189
 
190
190
  # assert ! command.clean_staging_area?
@@ -193,7 +193,7 @@ class Jeweler
193
193
  # should "be true if nothing added, changed, or deleted" do
194
194
  # repo = build_repo
195
195
 
196
- # command = Jeweler::Commands::ReleaseToGithub.new
196
+ # command = Jeweler::Commands::ReleaseGemspec.new
197
197
  # command.repo = repo
198
198
 
199
199
  # assert command.clean_staging_area?
@@ -217,7 +217,7 @@ class Jeweler
217
217
 
218
218
  @output = StringIO.new
219
219
 
220
- @command = Jeweler::Commands::ReleaseToGithub.new :output => @output,
220
+ @command = Jeweler::Commands::ReleaseGemspec.new :output => @output,
221
221
  :repo => @repo,
222
222
  :gemspec_helper => @gemspec_helper,
223
223
  :version => '1.2.3'
@@ -250,7 +250,7 @@ class Jeweler
250
250
 
251
251
  @output = StringIO.new
252
252
 
253
- @command = Jeweler::Commands::ReleaseToGithub.new :output => @output,
253
+ @command = Jeweler::Commands::ReleaseGemspec.new :output => @output,
254
254
  :repo => @repo,
255
255
  :gemspec_helper => @gemspec_helper,
256
256
  :version => '1.2.3'
@@ -286,7 +286,7 @@ class Jeweler
286
286
 
287
287
  @output = StringIO.new
288
288
 
289
- @command = Jeweler::Commands::ReleaseToGithub.new :output => @output,
289
+ @command = Jeweler::Commands::ReleaseGemspec.new :output => @output,
290
290
  :repo => @repo,
291
291
  :gemspec_helper => @gemspec_helper,
292
292
  :version => '1.2.3',
@@ -323,7 +323,7 @@ class Jeweler
323
323
 
324
324
  @output = StringIO.new
325
325
 
326
- @command = Jeweler::Commands::ReleaseToGithub.new :output => @output,
326
+ @command = Jeweler::Commands::ReleaseGemspec.new :output => @output,
327
327
  :repo => @repo,
328
328
  :gemspec_helper => @gemspec_helper,
329
329
  :version => '1.2.3',
@@ -350,7 +350,7 @@ class Jeweler
350
350
 
351
351
  @output = StringIO.new
352
352
 
353
- @command = Jeweler::Commands::ReleaseToGithub.new
353
+ @command = Jeweler::Commands::ReleaseGemspec.new
354
354
  @command.output = @output
355
355
  @command.repo = @repo
356
356
  @command.version = '1.2.3'
@@ -371,7 +371,7 @@ class Jeweler
371
371
 
372
372
  @output = StringIO.new
373
373
 
374
- @command = Jeweler::Commands::ReleaseToGithub.new
374
+ @command = Jeweler::Commands::ReleaseGemspec.new
375
375
  @command.output = @output
376
376
  @command.repo = @repo
377
377
  @command.version = '1.2.3'
@@ -134,15 +134,15 @@ class TestJeweler < Test::Unit::TestCase
134
134
  jeweler.write_version(1, 5, 2, 'a1')
135
135
  end
136
136
 
137
- should "build and run release to github command when running release_gem_to_github" do
137
+ should "build and run release to github command when running release_gemspec" do
138
138
  jeweler = build_jeweler
139
139
 
140
140
  command = Object.new
141
141
  mock(command).run
142
142
 
143
- mock(Jeweler::Commands::ReleaseToGithub).build_for(jeweler) { command }
143
+ mock(Jeweler::Commands::ReleaseGemspec).build_for(jeweler) { command }
144
144
 
145
- jeweler.release_gem_to_github
145
+ jeweler.release_gemspec
146
146
  end
147
147
 
148
148
  should "build and run release to git command when running release_to_git" do
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 5
8
8
  - 0
9
- - pre2
10
- version: 1.5.0.pre2
9
+ - pre3
10
+ version: 1.5.0.pre3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Nichols
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-29 00:00:00 -04:00
18
+ date: 2010-09-07 00:00:00 -04:00
19
19
  default_executable: jeweler
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -48,15 +48,13 @@ dependencies:
48
48
  type: :runtime
49
49
  version_requirements: &id003 !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
51
+ - - ~>
52
52
  - !ruby/object:Gem::Version
53
53
  segments:
54
54
  - 1
55
55
  - 0
56
56
  - 0
57
- - rc
58
- - 5
59
- version: 1.0.0.rc.5
57
+ version: 1.0.0
60
58
  name: bundler
61
59
  requirement: *id003
62
60
  prerelease: false
@@ -136,11 +134,13 @@ dependencies:
136
134
  type: :development
137
135
  version_requirements: &id010 !ruby/object:Gem::Requirement
138
136
  requirements:
139
- - - ">="
137
+ - - ~>
140
138
  - !ruby/object:Gem::Version
141
139
  segments:
142
140
  - 0
143
- version: "0"
141
+ - 6
142
+ - 0
143
+ version: 0.6.0
144
144
  name: yard
145
145
  requirement: *id010
146
146
  prerelease: false
@@ -153,7 +153,7 @@ dependencies:
153
153
  segments:
154
154
  - 0
155
155
  version: "0"
156
- name: cucumber
156
+ name: bluecloth
157
157
  requirement: *id011
158
158
  prerelease: false
159
159
  - !ruby/object:Gem::Dependency
@@ -165,7 +165,7 @@ dependencies:
165
165
  segments:
166
166
  - 0
167
167
  version: "0"
168
- name: rcov
168
+ name: cucumber
169
169
  requirement: *id012
170
170
  prerelease: false
171
171
  - !ruby/object:Gem::Dependency
@@ -177,12 +177,24 @@ dependencies:
177
177
  segments:
178
178
  - 0
179
179
  version: "0"
180
- name: timecop
180
+ name: rcov
181
181
  requirement: *id013
182
182
  prerelease: false
183
183
  - !ruby/object:Gem::Dependency
184
184
  type: :development
185
185
  version_requirements: &id014 !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ segments:
190
+ - 0
191
+ version: "0"
192
+ name: timecop
193
+ requirement: *id014
194
+ prerelease: false
195
+ - !ruby/object:Gem::Dependency
196
+ type: :development
197
+ version_requirements: &id015 !ruby/object:Gem::Requirement
186
198
  requirements:
187
199
  - - ~>
188
200
  - !ruby/object:Gem::Version
@@ -192,11 +204,11 @@ dependencies:
192
204
  - 5
193
205
  version: 2.3.5
194
206
  name: activesupport
195
- requirement: *id014
207
+ requirement: *id015
196
208
  prerelease: false
197
209
  - !ruby/object:Gem::Dependency
198
210
  type: :development
199
- version_requirements: &id015 !ruby/object:Gem::Requirement
211
+ version_requirements: &id016 !ruby/object:Gem::Requirement
200
212
  requirements:
201
213
  - - ">="
202
214
  - !ruby/object:Gem::Version
@@ -204,7 +216,7 @@ dependencies:
204
216
  - 0
205
217
  version: "0"
206
218
  name: ruby-debug
207
- requirement: *id015
219
+ requirement: *id016
208
220
  prerelease: false
209
221
  description: Simple and opinionated helper for creating Rubygem projects on GitHub
210
222
  email: josh@technicalpickles.com
@@ -252,8 +264,8 @@ files:
252
264
  - lib/jeweler/commands/build_gem.rb
253
265
  - lib/jeweler/commands/check_dependencies.rb
254
266
  - lib/jeweler/commands/install_gem.rb
267
+ - lib/jeweler/commands/release_gemspec.rb
255
268
  - lib/jeweler/commands/release_to_git.rb
256
- - lib/jeweler/commands/release_to_github.rb
257
269
  - lib/jeweler/commands/release_to_rubygems.rb
258
270
  - lib/jeweler/commands/validate_gemspec.rb
259
271
  - lib/jeweler/commands/version/base.rb