jeweler 1.4.0 → 1.5.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. data/.document +14 -0
  2. data/.gitignore +13 -2
  3. data/ChangeLog.markdown +8 -8
  4. data/Gemfile +21 -0
  5. data/Gemfile.lock +57 -0
  6. data/README.markdown +6 -6
  7. data/Rakefile +32 -46
  8. data/features/generator/cucumber.feature +20 -0
  9. data/features/generator/directory_layout.feature +10 -0
  10. data/features/generator/gemfile.feature +71 -0
  11. data/features/generator/git.feature +8 -0
  12. data/features/generator/license.feature +11 -2
  13. data/features/generator/rakefile.feature +25 -23
  14. data/features/generator/test.feature +6 -0
  15. data/features/generator/test_helper.feature +107 -11
  16. data/features/step_definitions/filesystem_steps.rb +5 -3
  17. data/features/step_definitions/generator_steps.rb +68 -4
  18. data/features/support/env.rb +26 -13
  19. data/jeweler.gemspec +222 -207
  20. data/lib/jeweler.rb +7 -5
  21. data/lib/jeweler/commands.rb +1 -3
  22. data/lib/jeweler/commands/check_dependencies.rb +3 -5
  23. data/lib/jeweler/commands/install_gem.rb +1 -2
  24. data/lib/jeweler/commands/release_to_git.rb +5 -3
  25. data/lib/jeweler/commands/release_to_github.rb +24 -8
  26. data/lib/jeweler/commands/{release_to_gemcutter.rb → release_to_rubygems.rb} +1 -2
  27. data/lib/jeweler/commands/version/base.rb +16 -2
  28. data/lib/jeweler/commands/write_gemspec.rb +0 -1
  29. data/lib/jeweler/errors.rb +4 -16
  30. data/lib/jeweler/gemcutter_tasks.rb +4 -32
  31. data/lib/jeweler/gemspec_helper.rb +3 -6
  32. data/lib/jeweler/generator.rb +23 -6
  33. data/lib/jeweler/generator/options.rb +17 -14
  34. data/lib/jeweler/generator/rspec_mixin.rb +1 -1
  35. data/lib/jeweler/generator/shindo_mixin.rb +44 -0
  36. data/lib/jeweler/generator/shoulda_mixin.rb +1 -1
  37. data/lib/jeweler/rubyforge_tasks.rb +5 -29
  38. data/lib/jeweler/rubygems_dot_org_tasks.rb +38 -0
  39. data/lib/jeweler/rubygems_tasks.rb +38 -0
  40. data/lib/jeweler/specification.rb +36 -12
  41. data/lib/jeweler/tasks.rb +49 -13
  42. data/lib/jeweler/templates/.document +6 -0
  43. data/lib/jeweler/templates/.gitignore +34 -16
  44. data/lib/jeweler/templates/Gemfile +12 -0
  45. data/lib/jeweler/templates/LICENSE +1 -1
  46. data/lib/jeweler/templates/Rakefile +1 -0
  47. data/lib/jeweler/templates/bacon/helper.rb +1 -0
  48. data/lib/jeweler/templates/bundler_setup.erb +10 -0
  49. data/lib/jeweler/templates/features/support/env.rb +2 -0
  50. data/lib/jeweler/templates/jeweler_tasks.erb +20 -23
  51. data/lib/jeweler/templates/micronaut/helper.rb +1 -0
  52. data/lib/jeweler/templates/minitest/helper.rb +1 -0
  53. data/lib/jeweler/templates/other_tasks.erb +27 -59
  54. data/lib/jeweler/templates/riot/helper.rb +1 -0
  55. data/lib/jeweler/templates/rspec/{spec.opts → .rspec} +0 -0
  56. data/lib/jeweler/templates/rspec/helper.rb +7 -3
  57. data/lib/jeweler/templates/shindo/flunking.rb +8 -0
  58. data/lib/jeweler/templates/shindo/helper.rb +6 -0
  59. data/lib/jeweler/templates/shoulda/helper.rb +1 -0
  60. data/lib/jeweler/templates/testunit/helper.rb +1 -0
  61. data/lib/jeweler/version.rb +10 -0
  62. data/lib/jeweler/version_helper.rb +1 -2
  63. data/test/fixtures/existing-project-with-version-constant/Rakefile +4 -2
  64. data/test/fixtures/existing-project-with-version-plaintext/Rakefile +4 -2
  65. data/test/fixtures/existing-project-with-version-yaml/Rakefile +4 -2
  66. data/test/jeweler/commands/test_install_gem.rb +2 -2
  67. data/test/jeweler/commands/test_release_to_gemcutter.rb +4 -4
  68. data/test/jeweler/commands/test_release_to_git.rb +32 -25
  69. data/test/jeweler/commands/test_release_to_github.rb +108 -25
  70. data/test/jeweler/generator/test_options.rb +16 -22
  71. data/test/jeweler/test_generator.rb +5 -0
  72. data/test/jeweler/test_specification.rb +18 -7
  73. data/test/jeweler/test_tasks.rb +1 -1
  74. data/test/test_helper.rb +12 -14
  75. data/test/test_jeweler.rb +0 -12
  76. metadata +159 -66
  77. data/VERSION.yml +0 -5
  78. data/lib/jeweler/commands/release_to_rubyforge.rb +0 -52
  79. data/lib/jeweler/commands/setup_rubyforge.rb +0 -63
  80. data/test/jeweler/commands/test_release_to_rubyforge.rb +0 -153
  81. data/test/jeweler/commands/test_setup_rubyforge.rb +0 -178
@@ -6,7 +6,7 @@ class TestTasks < Test::Unit::TestCase
6
6
 
7
7
  context 'instantiating Jeweler::Tasks' do
8
8
  setup do
9
- @gemspec_building_block = lambda {}
9
+ @gemspec_building_block = lambda {|gemspec|}
10
10
  @tasks = Jeweler::Tasks.new &@gemspec_building_block
11
11
  end
12
12
 
@@ -1,28 +1,26 @@
1
1
  require 'test/unit'
2
-
3
2
  require 'rubygems'
4
- require 'rake'
5
3
 
6
4
  begin
7
5
  require 'ruby-debug'
8
6
  rescue LoadError
9
7
  end
10
8
 
9
+ require 'bundler'
11
10
  begin
12
- require 'shoulda'
13
- require 'rr'
14
- require 'redgreen'
15
- require 'construct'
16
- require 'git'
17
- rescue LoadError => e
18
- puts "*" * 80
19
- puts "Some dependencies needed to run tests were missing. Run the following command to find them:"
20
- puts
21
- puts "\trake check_dependencies:development"
22
- puts "*" * 80
23
- exit 1
11
+ Bundler.setup(:default, :development)
12
+ rescue Bundler::BundlerError => e
13
+ $stderr.puts e.message
14
+ $stderr.puts "Run `bundle install` to install missing gems"
15
+ exit e.status_code
24
16
  end
25
17
 
18
+ require 'rake'
19
+ require 'shoulda'
20
+ require 'rr'
21
+ #require 'redgreen'
22
+ require 'construct'
23
+ require 'git'
26
24
  require 'time'
27
25
 
28
26
  $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
@@ -156,18 +156,6 @@ class TestJeweler < Test::Unit::TestCase
156
156
  jeweler.release_to_git
157
157
  end
158
158
 
159
- should "build and run release to rubyforge command when running release to rubyforge" do
160
- jeweler = build_jeweler
161
-
162
- command = Object.new
163
- mock(command).run
164
-
165
- mock(Jeweler::Commands::ReleaseToRubyforge).build_for(jeweler) { command }
166
-
167
- jeweler.release_gem_to_rubyforge
168
- end
169
-
170
-
171
159
  should "respond to gemspec_helper" do
172
160
  assert_respond_to build_jeweler, :gemspec_helper
173
161
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeweler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ prerelease: true
5
+ segments:
6
+ - 1
7
+ - 5
8
+ - 0
9
+ - pre2
10
+ version: 1.5.0.pre2
5
11
  platform: ruby
6
12
  authors:
7
13
  - Josh Nichols
@@ -9,119 +15,197 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-11-19 00:00:00 -08:00
18
+ date: 2010-08-29 00:00:00 -04:00
13
19
  default_executable: jeweler
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
- name: git
17
22
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
23
- version: 1.2.5
24
- version:
27
+ segments:
28
+ - 0
29
+ version: "0"
30
+ name: rake
31
+ requirement: *id001
32
+ prerelease: false
25
33
  - !ruby/object:Gem::Dependency
26
- name: rubyforge
27
34
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
35
+ version_requirements: &id002 !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
- version: 2.0.0
34
- version:
39
+ segments:
40
+ - 1
41
+ - 2
42
+ - 5
43
+ version: 1.2.5
44
+ name: git
45
+ requirement: *id002
46
+ prerelease: false
35
47
  - !ruby/object:Gem::Dependency
36
- name: gemcutter
37
48
  type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
49
+ version_requirements: &id003 !ruby/object:Gem::Requirement
40
50
  requirements:
41
51
  - - ">="
42
52
  - !ruby/object:Gem::Version
43
- version: 0.1.0
44
- version:
53
+ segments:
54
+ - 1
55
+ - 0
56
+ - 0
57
+ - rc
58
+ - 5
59
+ version: 1.0.0.rc.5
60
+ name: bundler
61
+ requirement: *id003
62
+ prerelease: false
45
63
  - !ruby/object:Gem::Dependency
46
- name: thoughtbot-shoulda
47
64
  type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
65
+ version_requirements: &id004 !ruby/object:Gem::Requirement
50
66
  requirements:
51
67
  - - ">="
52
68
  - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
53
71
  version: "0"
54
- version:
72
+ name: shoulda
73
+ requirement: *id004
74
+ prerelease: false
55
75
  - !ruby/object:Gem::Dependency
56
- name: mhennemeyer-output_catcher
57
76
  type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
77
+ version_requirements: &id005 !ruby/object:Gem::Requirement
60
78
  requirements:
61
79
  - - ">="
62
80
  - !ruby/object:Gem::Version
81
+ segments:
82
+ - 0
63
83
  version: "0"
64
- version:
84
+ name: mhennemeyer-output_catcher
85
+ requirement: *id005
86
+ prerelease: false
65
87
  - !ruby/object:Gem::Dependency
66
- name: rr
67
88
  type: :development
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
89
+ version_requirements: &id006 !ruby/object:Gem::Requirement
70
90
  requirements:
71
91
  - - ">="
72
92
  - !ruby/object:Gem::Version
93
+ segments:
94
+ - 0
73
95
  version: "0"
74
- version:
96
+ name: rr
97
+ requirement: *id006
98
+ prerelease: false
75
99
  - !ruby/object:Gem::Dependency
76
- name: mocha
77
100
  type: :development
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
101
+ version_requirements: &id007 !ruby/object:Gem::Requirement
80
102
  requirements:
81
103
  - - ">="
82
104
  - !ruby/object:Gem::Version
105
+ segments:
106
+ - 0
83
107
  version: "0"
84
- version:
108
+ name: mocha
109
+ requirement: *id007
110
+ prerelease: false
85
111
  - !ruby/object:Gem::Dependency
86
- name: redgreen
87
112
  type: :development
88
- version_requirement:
89
- version_requirements: !ruby/object:Gem::Requirement
113
+ version_requirements: &id008 !ruby/object:Gem::Requirement
90
114
  requirements:
91
115
  - - ">="
92
116
  - !ruby/object:Gem::Version
117
+ segments:
118
+ - 0
93
119
  version: "0"
94
- version:
120
+ name: redgreen
121
+ requirement: *id008
122
+ prerelease: false
95
123
  - !ruby/object:Gem::Dependency
96
- name: devver-construct
97
124
  type: :development
98
- version_requirement:
99
- version_requirements: !ruby/object:Gem::Requirement
125
+ version_requirements: &id009 !ruby/object:Gem::Requirement
100
126
  requirements:
101
127
  - - ">="
102
128
  - !ruby/object:Gem::Version
129
+ segments:
130
+ - 0
103
131
  version: "0"
104
- version:
132
+ name: test-construct
133
+ requirement: *id009
134
+ prerelease: false
105
135
  - !ruby/object:Gem::Dependency
106
- name: yard
107
136
  type: :development
108
- version_requirement:
109
- version_requirements: !ruby/object:Gem::Requirement
137
+ version_requirements: &id010 !ruby/object:Gem::Requirement
110
138
  requirements:
111
139
  - - ">="
112
140
  - !ruby/object:Gem::Version
141
+ segments:
142
+ - 0
113
143
  version: "0"
114
- version:
144
+ name: yard
145
+ requirement: *id010
146
+ prerelease: false
115
147
  - !ruby/object:Gem::Dependency
148
+ type: :development
149
+ version_requirements: &id011 !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ segments:
154
+ - 0
155
+ version: "0"
116
156
  name: cucumber
157
+ requirement: *id011
158
+ prerelease: false
159
+ - !ruby/object:Gem::Dependency
160
+ type: :development
161
+ version_requirements: &id012 !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ segments:
166
+ - 0
167
+ version: "0"
168
+ name: rcov
169
+ requirement: *id012
170
+ prerelease: false
171
+ - !ruby/object:Gem::Dependency
172
+ type: :development
173
+ version_requirements: &id013 !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ segments:
178
+ - 0
179
+ version: "0"
180
+ name: timecop
181
+ requirement: *id013
182
+ prerelease: false
183
+ - !ruby/object:Gem::Dependency
184
+ type: :development
185
+ version_requirements: &id014 !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ~>
188
+ - !ruby/object:Gem::Version
189
+ segments:
190
+ - 2
191
+ - 3
192
+ - 5
193
+ version: 2.3.5
194
+ name: activesupport
195
+ requirement: *id014
196
+ prerelease: false
197
+ - !ruby/object:Gem::Dependency
117
198
  type: :development
118
- version_requirement:
119
- version_requirements: !ruby/object:Gem::Requirement
199
+ version_requirements: &id015 !ruby/object:Gem::Requirement
120
200
  requirements:
121
201
  - - ">="
122
202
  - !ruby/object:Gem::Version
203
+ segments:
204
+ - 0
123
205
  version: "0"
124
- version:
206
+ name: ruby-debug
207
+ requirement: *id015
208
+ prerelease: false
125
209
  description: Simple and opinionated helper for creating Rubygem projects on GitHub
126
210
  email: josh@technicalpickles.com
127
211
  executables:
@@ -133,17 +217,20 @@ extra_rdoc_files:
133
217
  - LICENSE
134
218
  - README.markdown
135
219
  files:
220
+ - .document
136
221
  - .gitignore
137
222
  - ChangeLog.markdown
223
+ - Gemfile
224
+ - Gemfile.lock
138
225
  - LICENSE
139
226
  - README.markdown
140
227
  - Rakefile
141
- - VERSION.yml
142
228
  - bin/jeweler
143
229
  - features/generator/cucumber.feature
144
230
  - features/generator/directory_layout.feature
145
231
  - features/generator/dotdocument.feature
146
232
  - features/generator/env_options.feature
233
+ - features/generator/gemfile.feature
147
234
  - features/generator/git.feature
148
235
  - features/generator/license.feature
149
236
  - features/generator/rakefile.feature
@@ -165,11 +252,9 @@ files:
165
252
  - lib/jeweler/commands/build_gem.rb
166
253
  - lib/jeweler/commands/check_dependencies.rb
167
254
  - lib/jeweler/commands/install_gem.rb
168
- - lib/jeweler/commands/release_to_gemcutter.rb
169
255
  - lib/jeweler/commands/release_to_git.rb
170
256
  - lib/jeweler/commands/release_to_github.rb
171
- - lib/jeweler/commands/release_to_rubyforge.rb
172
- - lib/jeweler/commands/setup_rubyforge.rb
257
+ - lib/jeweler/commands/release_to_rubygems.rb
173
258
  - lib/jeweler/commands/validate_gemspec.rb
174
259
  - lib/jeweler/commands/version/base.rb
175
260
  - lib/jeweler/commands/version/bump_major.rb
@@ -190,20 +275,25 @@ files:
190
275
  - lib/jeweler/generator/rdoc_mixin.rb
191
276
  - lib/jeweler/generator/riot_mixin.rb
192
277
  - lib/jeweler/generator/rspec_mixin.rb
278
+ - lib/jeweler/generator/shindo_mixin.rb
193
279
  - lib/jeweler/generator/shoulda_mixin.rb
194
280
  - lib/jeweler/generator/testspec_mixin.rb
195
281
  - lib/jeweler/generator/testunit_mixin.rb
196
282
  - lib/jeweler/generator/yard_mixin.rb
197
283
  - lib/jeweler/rubyforge_tasks.rb
284
+ - lib/jeweler/rubygems_dot_org_tasks.rb
285
+ - lib/jeweler/rubygems_tasks.rb
198
286
  - lib/jeweler/specification.rb
199
287
  - lib/jeweler/tasks.rb
200
288
  - lib/jeweler/templates/.document
201
289
  - lib/jeweler/templates/.gitignore
290
+ - lib/jeweler/templates/Gemfile
202
291
  - lib/jeweler/templates/LICENSE
203
292
  - lib/jeweler/templates/README.rdoc
204
293
  - lib/jeweler/templates/Rakefile
205
294
  - lib/jeweler/templates/bacon/flunking.rb
206
295
  - lib/jeweler/templates/bacon/helper.rb
296
+ - lib/jeweler/templates/bundler_setup.erb
207
297
  - lib/jeweler/templates/features/default.feature
208
298
  - lib/jeweler/templates/features/support/env.rb
209
299
  - lib/jeweler/templates/jeweler_tasks.erb
@@ -214,15 +304,18 @@ files:
214
304
  - lib/jeweler/templates/other_tasks.erb
215
305
  - lib/jeweler/templates/riot/flunking.rb
216
306
  - lib/jeweler/templates/riot/helper.rb
307
+ - lib/jeweler/templates/rspec/.rspec
217
308
  - lib/jeweler/templates/rspec/flunking.rb
218
309
  - lib/jeweler/templates/rspec/helper.rb
219
- - lib/jeweler/templates/rspec/spec.opts
310
+ - lib/jeweler/templates/shindo/flunking.rb
311
+ - lib/jeweler/templates/shindo/helper.rb
220
312
  - lib/jeweler/templates/shoulda/flunking.rb
221
313
  - lib/jeweler/templates/shoulda/helper.rb
222
314
  - lib/jeweler/templates/testspec/flunking.rb
223
315
  - lib/jeweler/templates/testspec/helper.rb
224
316
  - lib/jeweler/templates/testunit/flunking.rb
225
317
  - lib/jeweler/templates/testunit/helper.rb
318
+ - lib/jeweler/version.rb
226
319
  - lib/jeweler/version_helper.rb
227
320
  - test/fixtures/bar/VERSION.yml
228
321
  - test/fixtures/bar/bin/foo_the_ultimate_bin
@@ -264,8 +357,6 @@ files:
264
357
  - test/jeweler/commands/test_release_to_gemcutter.rb
265
358
  - test/jeweler/commands/test_release_to_git.rb
266
359
  - test/jeweler/commands/test_release_to_github.rb
267
- - test/jeweler/commands/test_release_to_rubyforge.rb
268
- - test/jeweler/commands/test_setup_rubyforge.rb
269
360
  - test/jeweler/commands/test_validate_gemspec.rb
270
361
  - test/jeweler/commands/test_write_gemspec.rb
271
362
  - test/jeweler/commands/version/test_base.rb
@@ -290,29 +381,33 @@ homepage: http://github.com/technicalpickles/jeweler
290
381
  licenses: []
291
382
 
292
383
  post_install_message:
293
- rdoc_options:
294
- - --charset=UTF-8
384
+ rdoc_options: []
385
+
295
386
  require_paths:
296
387
  - lib
297
388
  required_ruby_version: !ruby/object:Gem::Requirement
298
389
  requirements:
299
390
  - - ">="
300
391
  - !ruby/object:Gem::Version
392
+ segments:
393
+ - 0
301
394
  version: "0"
302
- version:
303
395
  required_rubygems_version: !ruby/object:Gem::Requirement
304
396
  requirements:
305
- - - ">="
397
+ - - ">"
306
398
  - !ruby/object:Gem::Version
307
- version: "0"
308
- version:
399
+ segments:
400
+ - 1
401
+ - 3
402
+ - 1
403
+ version: 1.3.1
309
404
  requirements: []
310
405
 
311
- rubyforge_project: pickles
312
- rubygems_version: 1.3.5
406
+ rubyforge_project:
407
+ rubygems_version: 1.3.6
313
408
  signing_key:
314
409
  specification_version: 3
315
- summary: Simple and opinionated helper for creating Rubygem projects on GitHub
410
+ summary: Opinionated tool for creating and managing RubyGem projects
316
411
  test_files:
317
412
  - test/fixtures/bar/lib/foo_the_ultimate_lib.rb
318
413
  - test/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb
@@ -329,8 +424,6 @@ test_files:
329
424
  - test/jeweler/commands/test_release_to_gemcutter.rb
330
425
  - test/jeweler/commands/test_release_to_git.rb
331
426
  - test/jeweler/commands/test_release_to_github.rb
332
- - test/jeweler/commands/test_release_to_rubyforge.rb
333
- - test/jeweler/commands/test_setup_rubyforge.rb
334
427
  - test/jeweler/commands/test_validate_gemspec.rb
335
428
  - test/jeweler/commands/test_write_gemspec.rb
336
429
  - test/jeweler/commands/version/test_base.rb