bueller 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,6 +39,7 @@ class Bueller
39
39
  def commit_version
40
40
  if repo and commit
41
41
  repo.add gemspec_helper.path
42
+ repo.add version_helper.path
42
43
  repo.commit "Version bump to #{version_helper.to_s}"
43
44
  end
44
45
  end
@@ -1,3 +1,3 @@
1
1
  class Bueller
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -13,12 +13,12 @@ class Bueller
13
13
  parse_version
14
14
  end
15
15
 
16
- def version_path
16
+ def path
17
17
  File.join(gemspec_helper.base_dir, 'lib', gemspec_helper.project_name, 'version.rb')
18
18
  end
19
19
 
20
20
  def version_source
21
- @version_source ||= File.read version_path
21
+ @version_source ||= File.read path
22
22
  end
23
23
 
24
24
  def parse_version
@@ -34,7 +34,7 @@ class Bueller
34
34
 
35
35
  def write_version
36
36
  version_source.sub! /VERSION\s*=.*/, %Q{VERSION = "#{to_s}"}
37
- File.open(version_path, 'w') { |f| f.puts version_source }
37
+ File.open(path, 'w') { |f| f.puts version_source }
38
38
  parse_version
39
39
  end
40
40
 
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bueller
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 5
9
- version: 0.0.5
4
+ prerelease:
5
+ version: 0.0.6
10
6
  platform: ruby
11
7
  authors:
12
8
  - Derek Kastner
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-02-02 00:00:00 -05:00
13
+ date: 2011-03-05 00:00:00 -05:00
18
14
  default_executable: bueller
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -24,10 +20,6 @@ dependencies:
24
20
  requirements:
25
21
  - - ~>
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 0
30
- - 9
31
23
  version: 1.0.9
32
24
  type: :runtime
33
25
  prerelease: false
@@ -39,10 +31,6 @@ dependencies:
39
31
  requirements:
40
32
  - - ">="
41
33
  - !ruby/object:Gem::Version
42
- segments:
43
- - 1
44
- - 2
45
- - 5
46
34
  version: 1.2.5
47
35
  type: :runtime
48
36
  prerelease: false
@@ -54,8 +42,6 @@ dependencies:
54
42
  requirements:
55
43
  - - ">="
56
44
  - !ruby/object:Gem::Version
57
- segments:
58
- - 0
59
45
  version: "0"
60
46
  type: :runtime
61
47
  prerelease: false
@@ -67,10 +53,6 @@ dependencies:
67
53
  requirements:
68
54
  - - ~>
69
55
  - !ruby/object:Gem::Version
70
- segments:
71
- - 2
72
- - 3
73
- - 5
74
56
  version: 2.3.5
75
57
  type: :development
76
58
  prerelease: false
@@ -82,8 +64,6 @@ dependencies:
82
64
  requirements:
83
65
  - - ">="
84
66
  - !ruby/object:Gem::Version
85
- segments:
86
- - 0
87
67
  version: "0"
88
68
  type: :development
89
69
  prerelease: false
@@ -95,8 +75,6 @@ dependencies:
95
75
  requirements:
96
76
  - - ">="
97
77
  - !ruby/object:Gem::Version
98
- segments:
99
- - 0
100
78
  version: "0"
101
79
  type: :development
102
80
  prerelease: false
@@ -108,8 +86,6 @@ dependencies:
108
86
  requirements:
109
87
  - - ">="
110
88
  - !ruby/object:Gem::Version
111
- segments:
112
- - 0
113
89
  version: "0"
114
90
  type: :development
115
91
  prerelease: false
@@ -121,8 +97,6 @@ dependencies:
121
97
  requirements:
122
98
  - - ">="
123
99
  - !ruby/object:Gem::Version
124
- segments:
125
- - 0
126
100
  version: "0"
127
101
  type: :development
128
102
  prerelease: false
@@ -134,10 +108,6 @@ dependencies:
134
108
  requirements:
135
109
  - - ~>
136
110
  - !ruby/object:Gem::Version
137
- segments:
138
- - 2
139
- - 0
140
- - 0
141
111
  version: 2.0.0
142
112
  type: :development
143
113
  prerelease: false
@@ -149,8 +119,6 @@ dependencies:
149
119
  requirements:
150
120
  - - ">="
151
121
  - !ruby/object:Gem::Version
152
- segments:
153
- - 0
154
122
  version: "0"
155
123
  type: :development
156
124
  prerelease: false
@@ -162,8 +130,6 @@ dependencies:
162
130
  requirements:
163
131
  - - ">="
164
132
  - !ruby/object:Gem::Version
165
- segments:
166
- - 0
167
133
  version: "0"
168
134
  type: :development
169
135
  prerelease: false
@@ -175,10 +141,6 @@ dependencies:
175
141
  requirements:
176
142
  - - ~>
177
143
  - !ruby/object:Gem::Version
178
- segments:
179
- - 0
180
- - 6
181
- - 0
182
144
  version: 0.6.0
183
145
  type: :development
184
146
  prerelease: false
@@ -219,21 +181,21 @@ files:
219
181
  - lib/bueller/generator.rb
220
182
  - lib/bueller/rubyforge_tasks.rb
221
183
  - lib/bueller/tasks.rb
184
+ - lib/bueller/templates/Gemfile
185
+ - lib/bueller/templates/LICENSE
186
+ - lib/bueller/templates/README.rdoc
187
+ - lib/bueller/templates/Rakefile
222
188
  - lib/bueller/templates/bacon/flunking.rb
223
189
  - lib/bueller/templates/bacon/helper.rb
224
190
  - lib/bueller/templates/bueller_tasks.erb
225
191
  - lib/bueller/templates/features/default.feature
226
192
  - lib/bueller/templates/features/support/env.rb
227
- - lib/bueller/templates/Gemfile
228
193
  - lib/bueller/templates/gemspec
229
- - lib/bueller/templates/LICENSE
230
194
  - lib/bueller/templates/micronaut/flunking.rb
231
195
  - lib/bueller/templates/micronaut/helper.rb
232
196
  - lib/bueller/templates/minitest/flunking.rb
233
197
  - lib/bueller/templates/minitest/helper.rb
234
198
  - lib/bueller/templates/other_tasks.erb
235
- - lib/bueller/templates/Rakefile
236
- - lib/bueller/templates/README.rdoc
237
199
  - lib/bueller/templates/riot/flunking.rb
238
200
  - lib/bueller/templates/riot/helper.rb
239
201
  - lib/bueller/templates/rspec/flunking.rb
@@ -271,19 +233,19 @@ files:
271
233
  - spec/fixtures/bar/bin/foo_the_ultimate_bin
272
234
  - spec/fixtures/bar/hey_include_me_in_gemspec
273
235
  - spec/fixtures/bar/lib/foo_the_ultimate_lib.rb
236
+ - spec/fixtures/existing-project/LICENSE
237
+ - spec/fixtures/existing-project/README.rdoc
238
+ - spec/fixtures/existing-project/Rakefile
274
239
  - spec/fixtures/existing-project/existing-project.gemspec
275
240
  - spec/fixtures/existing-project/lib/existing-project/version.rb
276
241
  - spec/fixtures/existing-project/lib/existing_project_with_version.rb
277
- - spec/fixtures/existing-project/LICENSE
278
- - spec/fixtures/existing-project/Rakefile
279
- - spec/fixtures/existing-project/README.rdoc
280
242
  - spec/fixtures/existing-project/test/existing_project_with_version_test.rb
281
243
  - spec/fixtures/existing-project/test/test_helper.rb
282
- - spec/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec
283
- - spec/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb
284
244
  - spec/fixtures/existing-project-with-version-constant/LICENSE
285
- - spec/fixtures/existing-project-with-version-constant/Rakefile
286
245
  - spec/fixtures/existing-project-with-version-constant/README.rdoc
246
+ - spec/fixtures/existing-project-with-version-constant/Rakefile
247
+ - spec/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec
248
+ - spec/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb
287
249
  - spec/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb
288
250
  - spec/fixtures/existing-project-with-version-constant/test/test_helper.rb
289
251
  - spec/spec_helper.rb
@@ -306,7 +268,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
306
268
  requirements:
307
269
  - - ">="
308
270
  - !ruby/object:Gem::Version
309
- hash: 3954278857675132921
271
+ hash: -284523475245255330
310
272
  segments:
311
273
  - 0
312
274
  version: "0"
@@ -315,15 +277,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
315
277
  requirements:
316
278
  - - ">="
317
279
  - !ruby/object:Gem::Version
318
- segments:
319
- - 1
320
- - 3
321
- - 7
322
280
  version: 1.3.7
323
281
  requirements: []
324
282
 
325
283
  rubyforge_project:
326
- rubygems_version: 1.3.7
284
+ rubygems_version: 1.6.1
327
285
  signing_key:
328
286
  specification_version: 3
329
287
  summary: Tools for building gems with bundler and friends
@@ -344,19 +302,19 @@ test_files:
344
302
  - spec/fixtures/bar/bin/foo_the_ultimate_bin
345
303
  - spec/fixtures/bar/hey_include_me_in_gemspec
346
304
  - spec/fixtures/bar/lib/foo_the_ultimate_lib.rb
305
+ - spec/fixtures/existing-project/LICENSE
306
+ - spec/fixtures/existing-project/README.rdoc
307
+ - spec/fixtures/existing-project/Rakefile
347
308
  - spec/fixtures/existing-project/existing-project.gemspec
348
309
  - spec/fixtures/existing-project/lib/existing-project/version.rb
349
310
  - spec/fixtures/existing-project/lib/existing_project_with_version.rb
350
- - spec/fixtures/existing-project/LICENSE
351
- - spec/fixtures/existing-project/Rakefile
352
- - spec/fixtures/existing-project/README.rdoc
353
311
  - spec/fixtures/existing-project/test/existing_project_with_version_test.rb
354
312
  - spec/fixtures/existing-project/test/test_helper.rb
355
- - spec/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec
356
- - spec/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb
357
313
  - spec/fixtures/existing-project-with-version-constant/LICENSE
358
- - spec/fixtures/existing-project-with-version-constant/Rakefile
359
314
  - spec/fixtures/existing-project-with-version-constant/README.rdoc
315
+ - spec/fixtures/existing-project-with-version-constant/Rakefile
316
+ - spec/fixtures/existing-project-with-version-constant/existing-project-with-version.gemspec
317
+ - spec/fixtures/existing-project-with-version-constant/lib/existing_project_with_version.rb
360
318
  - spec/fixtures/existing-project-with-version-constant/test/existing_project_with_version_test.rb
361
319
  - spec/fixtures/existing-project-with-version-constant/test/test_helper.rb
362
320
  - spec/spec_helper.rb