bueller 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. data/ChangeLog.markdown +141 -0
  2. data/LICENSE +20 -0
  3. data/README.markdown +182 -0
  4. data/bin/bueller +5 -0
  5. data/lib/bueller/commands/build_gem.rb +50 -0
  6. data/lib/bueller/commands/git_tag_release.rb +63 -0
  7. data/lib/bueller/commands/install_gem.rb +36 -0
  8. data/lib/bueller/commands/release_to_github.rb +41 -0
  9. data/lib/bueller/commands/release_to_rubygems.rb +26 -0
  10. data/lib/bueller/commands/version/base.rb +36 -0
  11. data/lib/bueller/commands/version/bump_major.rb +11 -0
  12. data/lib/bueller/commands/version/bump_minor.rb +12 -0
  13. data/lib/bueller/commands/version/bump_patch.rb +14 -0
  14. data/lib/bueller/commands/version/write.rb +21 -0
  15. data/lib/bueller/commands/write_gemspec.rb +29 -0
  16. data/lib/bueller/commands.rb +18 -0
  17. data/lib/bueller/errors.rb +8 -0
  18. data/lib/bueller/gemspec_helper.rb +83 -0
  19. data/lib/bueller/generator/application.rb +51 -0
  20. data/lib/bueller/generator/bacon_mixin.rb +43 -0
  21. data/lib/bueller/generator/github_mixin.rb +29 -0
  22. data/lib/bueller/generator/micronaut_mixin.rb +41 -0
  23. data/lib/bueller/generator/minitest_mixin.rb +42 -0
  24. data/lib/bueller/generator/options.rb +154 -0
  25. data/lib/bueller/generator/rdoc_mixin.rb +9 -0
  26. data/lib/bueller/generator/riot_mixin.rb +42 -0
  27. data/lib/bueller/generator/rspec_mixin.rb +50 -0
  28. data/lib/bueller/generator/shindo_mixin.rb +44 -0
  29. data/lib/bueller/generator/shoulda_mixin.rb +42 -0
  30. data/lib/bueller/generator/testspec_mixin.rb +42 -0
  31. data/lib/bueller/generator/testunit_mixin.rb +39 -0
  32. data/lib/bueller/generator/yard_mixin.rb +14 -0
  33. data/lib/bueller/generator.rb +291 -0
  34. data/lib/bueller/rubyforge_tasks.rb +88 -0
  35. data/lib/bueller/tasks.rb +133 -0
  36. data/lib/bueller/templates/.document +11 -0
  37. data/lib/bueller/templates/.gitignore +40 -0
  38. data/lib/bueller/templates/Gemfile +1 -0
  39. data/lib/bueller/templates/LICENSE +20 -0
  40. data/lib/bueller/templates/README.rdoc +17 -0
  41. data/lib/bueller/templates/Rakefile +20 -0
  42. data/lib/bueller/templates/bacon/flunking.rb +7 -0
  43. data/lib/bueller/templates/bacon/helper.rb +8 -0
  44. data/lib/bueller/templates/bueller_tasks.erb +10 -0
  45. data/lib/bueller/templates/features/default.feature +9 -0
  46. data/lib/bueller/templates/features/support/env.rb +16 -0
  47. data/lib/bueller/templates/gemspec +27 -0
  48. data/lib/bueller/templates/micronaut/flunking.rb +7 -0
  49. data/lib/bueller/templates/micronaut/helper.rb +17 -0
  50. data/lib/bueller/templates/minitest/flunking.rb +7 -0
  51. data/lib/bueller/templates/minitest/helper.rb +11 -0
  52. data/lib/bueller/templates/other_tasks.erb +84 -0
  53. data/lib/bueller/templates/riot/flunking.rb +11 -0
  54. data/lib/bueller/templates/riot/helper.rb +3 -0
  55. data/lib/bueller/templates/rspec/.rspec +1 -0
  56. data/lib/bueller/templates/rspec/flunking.rb +7 -0
  57. data/lib/bueller/templates/rspec/helper.rb +19 -0
  58. data/lib/bueller/templates/shindo/flunking.rb +8 -0
  59. data/lib/bueller/templates/shindo/helper.rb +5 -0
  60. data/lib/bueller/templates/shoulda/flunking.rb +7 -0
  61. data/lib/bueller/templates/shoulda/helper.rb +10 -0
  62. data/lib/bueller/templates/testspec/flunking.rb +7 -0
  63. data/lib/bueller/templates/testspec/helper.rb +7 -0
  64. data/lib/bueller/templates/testunit/flunking.rb +7 -0
  65. data/lib/bueller/templates/testunit/helper.rb +9 -0
  66. data/lib/bueller/version_helper.rb +59 -0
  67. data/lib/bueller.rb +139 -0
  68. data/spec/bueller/commands/build_gem_spec.rb +38 -0
  69. data/spec/bueller/commands/git_tag_release_spec.rb +79 -0
  70. data/spec/bueller/commands/install_gem_spec.rb +11 -0
  71. data/spec/bueller/commands/release_to_github_spec.rb +54 -0
  72. data/spec/bueller/commands/release_to_rubygems_spec.rb +15 -0
  73. data/spec/bueller/commands/version/bump_major_spec.rb +12 -0
  74. data/spec/bueller/commands/version/bump_minor_spec.rb +12 -0
  75. data/spec/bueller/commands/version/bump_patch_spec.rb +12 -0
  76. data/spec/bueller/commands/write_gemspec_spec.rb +32 -0
  77. data/spec/bueller/gemspec_helper_spec.rb +55 -0
  78. data/spec/bueller/generator/application_spec.rb +67 -0
  79. data/spec/bueller/generator/options_spec.rb +206 -0
  80. data/spec/bueller/generator_mixins_spec.rb +23 -0
  81. data/spec/bueller/generator_spec.rb +274 -0
  82. data/spec/bueller/tasks_spec.rb +29 -0
  83. data/spec/bueller/version_helper_spec.rb +57 -0
  84. data/spec/bueller_spec.rb +94 -0
  85. data/spec/fixtures/bar/bar.gemspec +41 -0
  86. data/spec/fixtures/bar/bin/foo_the_ultimate_bin +1 -0
  87. data/spec/fixtures/bar/hey_include_me_in_gemspec +0 -0
  88. data/spec/fixtures/bar/lib/foo_the_ultimate_lib.rb +1 -0
  89. data/spec/fixtures/existing-project/LICENSE +20 -0
  90. data/spec/fixtures/existing-project/README.rdoc +7 -0
  91. data/spec/fixtures/existing-project/Rakefile +69 -0
  92. data/spec/fixtures/existing-project/existing-project.gemspec +20 -0
  93. data/spec/fixtures/existing-project/lib/existing_project_with_version.rb +0 -0
  94. data/spec/fixtures/existing-project/test/existing_project_with_version_test.rb +7 -0
  95. data/spec/fixtures/existing-project/test/test_helper.rb +10 -0
  96. data/spec/fixtures/existing-project-with-version-constant/LICENSE +20 -0
  97. data/spec/fixtures/existing-project-with-version-constant/README.rdoc +7 -0
  98. data/spec/fixtures/existing-project-with-version-constant/Rakefile +69 -0
  99. data/spec/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec +19 -0
  100. data/spec/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb +0 -0
  101. data/spec/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb +7 -0
  102. data/spec/fixtures/existing-project-with-version-constant/test/test_helper.rb +10 -0
  103. data/spec/spec_helper.rb +11 -0
  104. data/spec/support/application.rb +28 -0
  105. data/spec/support/file_system.rb +24 -0
  106. data/spec/support/gemspec.rb +28 -0
  107. data/spec/support/git.rb +19 -0
  108. data/spec/support/have_version.rb +18 -0
  109. metadata +381 -0
@@ -0,0 +1,18 @@
1
+ RSpec::Matchers.define :have_version do |major, minor, patch|
2
+ match do |helper|
3
+ helper.major == major &&
4
+ helper.minor == minor &&
5
+ helper.patch == patch &&
6
+ helper.to_s == [major, minor, patch].compact.join('.')
7
+ end
8
+ end
9
+
10
+ RSpec::Matchers.define :have_build_version do |major, minor, patch, build|
11
+ match do |helper|
12
+ helper.major == major &&
13
+ helper.minor == minor &&
14
+ helper.patch == patch &&
15
+ helper.build == build &&
16
+ helper.to_s == [major, minor, patch, build].compact.join('.')
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,381 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bueller
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 1
9
+ version: 0.0.1
10
+ platform: ruby
11
+ authors:
12
+ - Derek Kastner
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-02-15 00:00:00 -05:00
18
+ default_executable: bueller
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: bundler
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 0
30
+ - 0
31
+ version: 1.0.0
32
+ type: :runtime
33
+ prerelease: false
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: git
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ segments:
43
+ - 1
44
+ - 2
45
+ - 5
46
+ version: 1.2.5
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ name: rake
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ name: activesupport
65
+ requirement: &id004 !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ~>
69
+ - !ruby/object:Gem::Version
70
+ segments:
71
+ - 2
72
+ - 3
73
+ - 5
74
+ version: 2.3.5
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: *id004
78
+ - !ruby/object:Gem::Dependency
79
+ name: bluecloth
80
+ requirement: &id005 !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ segments:
86
+ - 0
87
+ version: "0"
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: *id005
91
+ - !ruby/object:Gem::Dependency
92
+ name: cucumber
93
+ requirement: &id006 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ segments:
99
+ - 0
100
+ version: "0"
101
+ type: :development
102
+ prerelease: false
103
+ version_requirements: *id006
104
+ - !ruby/object:Gem::Dependency
105
+ name: mhennemeyer-output_catcher
106
+ requirement: &id007 !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ segments:
112
+ - 0
113
+ version: "0"
114
+ type: :development
115
+ prerelease: false
116
+ version_requirements: *id007
117
+ - !ruby/object:Gem::Dependency
118
+ name: redgreen
119
+ requirement: &id008 !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ segments:
125
+ - 0
126
+ version: "0"
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: *id008
130
+ - !ruby/object:Gem::Dependency
131
+ name: rspec
132
+ requirement: &id009 !ruby/object:Gem::Requirement
133
+ none: false
134
+ requirements:
135
+ - - ~>
136
+ - !ruby/object:Gem::Version
137
+ segments:
138
+ - 2
139
+ - 0
140
+ - 0
141
+ version: 2.0.0
142
+ type: :development
143
+ prerelease: false
144
+ version_requirements: *id009
145
+ - !ruby/object:Gem::Dependency
146
+ name: sandbox
147
+ requirement: &id010 !ruby/object:Gem::Requirement
148
+ none: false
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ segments:
153
+ - 0
154
+ version: "0"
155
+ type: :development
156
+ prerelease: false
157
+ version_requirements: *id010
158
+ - !ruby/object:Gem::Dependency
159
+ name: timecop
160
+ requirement: &id011 !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ segments:
166
+ - 0
167
+ version: "0"
168
+ type: :development
169
+ prerelease: false
170
+ version_requirements: *id011
171
+ - !ruby/object:Gem::Dependency
172
+ name: yard
173
+ requirement: &id012 !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ~>
177
+ - !ruby/object:Gem::Version
178
+ segments:
179
+ - 0
180
+ - 6
181
+ - 0
182
+ version: 0.6.0
183
+ type: :development
184
+ prerelease: false
185
+ version_requirements: *id012
186
+ description: Bueller provides a command to create new gem project directories. Code to help you start testing is generated according to the testing framework you choose. Bueller also provides handy tools for versioning and releasing your gem to github and rubygems.
187
+ email: dkastner@gmail.com
188
+ executables:
189
+ - bueller
190
+ extensions: []
191
+
192
+ extra_rdoc_files:
193
+ - ChangeLog.markdown
194
+ - LICENSE
195
+ - README.markdown
196
+ files:
197
+ - lib/bueller.rb
198
+ - lib/bueller/tasks.rb
199
+ - lib/bueller/rubyforge_tasks.rb
200
+ - lib/bueller/generator.rb
201
+ - lib/bueller/commands/release_to_github.rb
202
+ - lib/bueller/commands/build_gem.rb
203
+ - lib/bueller/commands/release_to_rubygems.rb
204
+ - lib/bueller/commands/install_gem.rb
205
+ - lib/bueller/commands/git_tag_release.rb
206
+ - lib/bueller/commands/write_gemspec.rb
207
+ - lib/bueller/commands/version/bump_patch.rb
208
+ - lib/bueller/commands/version/bump_major.rb
209
+ - lib/bueller/commands/version/bump_minor.rb
210
+ - lib/bueller/commands/version/write.rb
211
+ - lib/bueller/commands/version/base.rb
212
+ - lib/bueller/templates/rspec/flunking.rb
213
+ - lib/bueller/templates/rspec/helper.rb
214
+ - lib/bueller/templates/testspec/flunking.rb
215
+ - lib/bueller/templates/testspec/helper.rb
216
+ - lib/bueller/templates/features/default.feature
217
+ - lib/bueller/templates/features/support/env.rb
218
+ - lib/bueller/templates/other_tasks.erb
219
+ - lib/bueller/templates/LICENSE
220
+ - lib/bueller/templates/riot/flunking.rb
221
+ - lib/bueller/templates/riot/helper.rb
222
+ - lib/bueller/templates/bacon/flunking.rb
223
+ - lib/bueller/templates/bacon/helper.rb
224
+ - lib/bueller/templates/shindo/flunking.rb
225
+ - lib/bueller/templates/shindo/helper.rb
226
+ - lib/bueller/templates/minitest/flunking.rb
227
+ - lib/bueller/templates/minitest/helper.rb
228
+ - lib/bueller/templates/testunit/flunking.rb
229
+ - lib/bueller/templates/testunit/helper.rb
230
+ - lib/bueller/templates/shoulda/flunking.rb
231
+ - lib/bueller/templates/shoulda/helper.rb
232
+ - lib/bueller/templates/micronaut/flunking.rb
233
+ - lib/bueller/templates/micronaut/helper.rb
234
+ - lib/bueller/templates/Gemfile
235
+ - lib/bueller/templates/Rakefile
236
+ - lib/bueller/templates/bueller_tasks.erb
237
+ - lib/bueller/templates/gemspec
238
+ - lib/bueller/templates/README.rdoc
239
+ - lib/bueller/generator/bacon_mixin.rb
240
+ - lib/bueller/generator/github_mixin.rb
241
+ - lib/bueller/generator/shoulda_mixin.rb
242
+ - lib/bueller/generator/yard_mixin.rb
243
+ - lib/bueller/generator/minitest_mixin.rb
244
+ - lib/bueller/generator/options.rb
245
+ - lib/bueller/generator/testunit_mixin.rb
246
+ - lib/bueller/generator/application.rb
247
+ - lib/bueller/generator/shindo_mixin.rb
248
+ - lib/bueller/generator/rspec_mixin.rb
249
+ - lib/bueller/generator/testspec_mixin.rb
250
+ - lib/bueller/generator/rdoc_mixin.rb
251
+ - lib/bueller/generator/riot_mixin.rb
252
+ - lib/bueller/generator/micronaut_mixin.rb
253
+ - lib/bueller/errors.rb
254
+ - lib/bueller/gemspec_helper.rb
255
+ - lib/bueller/version_helper.rb
256
+ - lib/bueller/commands.rb
257
+ - bin/bueller
258
+ - lib/bueller/templates/.gitignore
259
+ - lib/bueller/templates/.document
260
+ - lib/bueller/templates/rspec/.rspec
261
+ - ChangeLog.markdown
262
+ - LICENSE
263
+ - README.markdown
264
+ - spec/bueller_spec.rb
265
+ - spec/support/git.rb
266
+ - spec/support/gemspec.rb
267
+ - spec/support/have_version.rb
268
+ - spec/support/application.rb
269
+ - spec/support/file_system.rb
270
+ - spec/fixtures/existing-project-with-version-constant/LICENSE
271
+ - spec/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb
272
+ - spec/fixtures/existing-project-with-version-constant/test/test_helper.rb
273
+ - spec/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec
274
+ - spec/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb
275
+ - spec/fixtures/existing-project-with-version-constant/Rakefile
276
+ - spec/fixtures/existing-project-with-version-constant/README.rdoc
277
+ - spec/fixtures/existing-project/LICENSE
278
+ - spec/fixtures/existing-project/test/existing_project_with_version_test.rb
279
+ - spec/fixtures/existing-project/test/test_helper.rb
280
+ - spec/fixtures/existing-project/existing-project.gemspec
281
+ - spec/fixtures/existing-project/lib/existing_project_with_version.rb
282
+ - spec/fixtures/existing-project/Rakefile
283
+ - spec/fixtures/existing-project/README.rdoc
284
+ - spec/fixtures/bar/hey_include_me_in_gemspec
285
+ - spec/fixtures/bar/bin/foo_the_ultimate_bin
286
+ - spec/fixtures/bar/lib/foo_the_ultimate_lib.rb
287
+ - spec/fixtures/bar/bar.gemspec
288
+ - spec/bueller/gemspec_helper_spec.rb
289
+ - spec/bueller/commands/git_tag_release_spec.rb
290
+ - spec/bueller/commands/release_to_github_spec.rb
291
+ - spec/bueller/commands/release_to_rubygems_spec.rb
292
+ - spec/bueller/commands/build_gem_spec.rb
293
+ - spec/bueller/commands/write_gemspec_spec.rb
294
+ - spec/bueller/commands/install_gem_spec.rb
295
+ - spec/bueller/commands/version/bump_patch_spec.rb
296
+ - spec/bueller/commands/version/bump_minor_spec.rb
297
+ - spec/bueller/commands/version/bump_major_spec.rb
298
+ - spec/bueller/generator/application_spec.rb
299
+ - spec/bueller/generator/options_spec.rb
300
+ - spec/bueller/generator_mixins_spec.rb
301
+ - spec/bueller/version_helper_spec.rb
302
+ - spec/bueller/generator_spec.rb
303
+ - spec/bueller/tasks_spec.rb
304
+ - spec/spec_helper.rb
305
+ has_rdoc: true
306
+ homepage: http://github.com/dkastner/bueller
307
+ licenses: []
308
+
309
+ post_install_message:
310
+ rdoc_options:
311
+ - --charset=UTF-8
312
+ require_paths:
313
+ - lib
314
+ required_ruby_version: !ruby/object:Gem::Requirement
315
+ none: false
316
+ requirements:
317
+ - - ">="
318
+ - !ruby/object:Gem::Version
319
+ hash: -77423727
320
+ segments:
321
+ - 0
322
+ version: "0"
323
+ required_rubygems_version: !ruby/object:Gem::Requirement
324
+ none: false
325
+ requirements:
326
+ - - ">="
327
+ - !ruby/object:Gem::Version
328
+ segments:
329
+ - 1
330
+ - 3
331
+ - 7
332
+ version: 1.3.7
333
+ requirements: []
334
+
335
+ rubyforge_project:
336
+ rubygems_version: 1.3.7
337
+ signing_key:
338
+ specification_version: 3
339
+ summary: Tools for building gems with bundler and friends
340
+ test_files:
341
+ - spec/bueller_spec.rb
342
+ - spec/support/git.rb
343
+ - spec/support/gemspec.rb
344
+ - spec/support/have_version.rb
345
+ - spec/support/application.rb
346
+ - spec/support/file_system.rb
347
+ - spec/fixtures/existing-project-with-version-constant/LICENSE
348
+ - spec/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb
349
+ - spec/fixtures/existing-project-with-version-constant/test/test_helper.rb
350
+ - spec/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec
351
+ - spec/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb
352
+ - spec/fixtures/existing-project-with-version-constant/Rakefile
353
+ - spec/fixtures/existing-project-with-version-constant/README.rdoc
354
+ - spec/fixtures/existing-project/LICENSE
355
+ - spec/fixtures/existing-project/test/existing_project_with_version_test.rb
356
+ - spec/fixtures/existing-project/test/test_helper.rb
357
+ - spec/fixtures/existing-project/existing-project.gemspec
358
+ - spec/fixtures/existing-project/lib/existing_project_with_version.rb
359
+ - spec/fixtures/existing-project/Rakefile
360
+ - spec/fixtures/existing-project/README.rdoc
361
+ - spec/fixtures/bar/hey_include_me_in_gemspec
362
+ - spec/fixtures/bar/bin/foo_the_ultimate_bin
363
+ - spec/fixtures/bar/lib/foo_the_ultimate_lib.rb
364
+ - spec/fixtures/bar/bar.gemspec
365
+ - spec/bueller/gemspec_helper_spec.rb
366
+ - spec/bueller/commands/git_tag_release_spec.rb
367
+ - spec/bueller/commands/release_to_github_spec.rb
368
+ - spec/bueller/commands/release_to_rubygems_spec.rb
369
+ - spec/bueller/commands/build_gem_spec.rb
370
+ - spec/bueller/commands/write_gemspec_spec.rb
371
+ - spec/bueller/commands/install_gem_spec.rb
372
+ - spec/bueller/commands/version/bump_patch_spec.rb
373
+ - spec/bueller/commands/version/bump_minor_spec.rb
374
+ - spec/bueller/commands/version/bump_major_spec.rb
375
+ - spec/bueller/generator/application_spec.rb
376
+ - spec/bueller/generator/options_spec.rb
377
+ - spec/bueller/generator_mixins_spec.rb
378
+ - spec/bueller/version_helper_spec.rb
379
+ - spec/bueller/generator_spec.rb
380
+ - spec/bueller/tasks_spec.rb
381
+ - spec/spec_helper.rb