methadone 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## v.1.2.5 - Feb 24, 2012
3
+ ## v.1.2.6 - Mar 10, 2013
4
+
5
+ * Need `rspec` as a real dev dependency since it's not part of Aruba any longer. See [61].
6
+
7
+ [61]: https://github.com/davetron5000/methadone/issues/61
8
+
9
+ ## v.1.2.5 - Feb 24, 2013
4
10
 
5
11
  * Compatibility Bundler 1.3 - Bundler 1.3 bootstraps files differently than 1.2, and methadone's generated binfile ends up requiring a non-existent file. This verison works with both 1.2 and 1.3 of bundler by parsing its output to figure out which file to include.
6
12
 
data/bin/methadone CHANGED
@@ -43,7 +43,7 @@ main do |app_name|
43
43
 
44
44
  if rspec
45
45
  template_dirs_in(:rspec).each { |dir| mkdir_p dir }
46
- copy_file "spec/tc_something_spec.rb", :from => :rspec, :binding => binding
46
+ copy_file "spec/something_spec.rb", :from => :rspec, :binding => binding
47
47
  else
48
48
  template_dirs_in(:test_unit).each { |dir| mkdir_p dir }
49
49
  copy_file "test/tc_something.rb", :from => :test_unit, :binding => binding
@@ -61,13 +61,20 @@ main do |app_name|
61
61
  copy_file "features/step_definitions/executable_steps.rb", :as => "#{gemname}_steps.rb"
62
62
  copy_file "bin/executable", :as => gemname, :executable => true, :binding => binding
63
63
 
64
- gem_variable = File.open("#{gemname}.gemspec") { |x| x.read }.match(/(\w+)\.executables/)[1]
65
- add_to_file "#{gemname}.gemspec", [
64
+ gemspec = "#{gemname}.gemspec"
65
+ gem_variable = File.open(gemspec) { |x| x.read }.match(/(\w+)\.executables/)[1]
66
+ add_to_file gemspec, [
66
67
  " #{gem_variable}.add_development_dependency('rdoc')",
67
68
  " #{gem_variable}.add_development_dependency('aruba')",
68
69
  " #{gem_variable}.add_development_dependency('rake', '~> 0.9.2')",
69
70
  " #{gem_variable}.add_dependency('methadone', '~> #{Methadone::VERSION}')",
70
71
  ], :before => /^end\s*$/
72
+
73
+ if rspec
74
+ add_to_file gemspec, [
75
+ " #{gem_variable}.add_development_dependency('rspec')",
76
+ ], :before => /^end\s*$/
77
+ end
71
78
  end
72
79
 
73
80
  options[:readme] = true
@@ -6,7 +6,6 @@ Feature: Bootstrap a new command-line app using RSpec instead of Test::Unit
6
6
  Background:
7
7
  Given the directory "tmp/newgem" does not exist
8
8
 
9
- @announce
10
9
  Scenario: Bootstrap a new app from scratch
11
10
  When I successfully run `methadone --rspec tmp/newgem`
12
11
  Then the following directories should exist:
@@ -14,9 +13,10 @@ Feature: Bootstrap a new command-line app using RSpec instead of Test::Unit
14
13
  And the following directories should not exist:
15
14
  |tmp/newgem/test |
16
15
  And the following files should exist:
17
- |tmp/newgem/spec/tc_something_spec.rb |
18
- Given I cd to "tmp/newgem"
19
- When I successfully run `rake -T -I../../lib`
16
+ |tmp/newgem/spec/something_spec.rb |
17
+ And the file "tmp/newgem/newgem.gemspec" should match /add_development_dependency\('rspec'/
18
+ When I cd to "tmp/newgem"
19
+ And I successfully run `rake -T -I../../lib`
20
20
  Then the output should contain:
21
21
  """
22
22
  rake spec # Run RSpec code examples
@@ -1,3 +1,3 @@
1
1
  module Methadone #:nodoc:
2
- VERSION = "1.2.5" #:nodoc:
2
+ VERSION = "1.2.6" #:nodoc:
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: methadone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-24 00:00:00.000000000 Z
12
+ date: 2013-03-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -299,7 +299,7 @@ files:
299
299
  - !binary |-
300
300
  dGVtcGxhdGVzL2Z1bGwvbWl0X0xJQ0VOU0UudHh0LmVyYg==
301
301
  - !binary |-
302
- dGVtcGxhdGVzL3JzcGVjL3NwZWMvdGNfc29tZXRoaW5nX3NwZWMucmIuZXJi
302
+ dGVtcGxhdGVzL3JzcGVjL3NwZWMvc29tZXRoaW5nX3NwZWMucmIuZXJi
303
303
  - !binary |-
304
304
  dGVtcGxhdGVzL3Rlc3RfdW5pdC90ZXN0L3RjX3NvbWV0aGluZy5yYi5lcmI=
305
305
  - !binary |-
@@ -342,7 +342,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
342
342
  version: '0'
343
343
  segments:
344
344
  - 0
345
- hash: 690823420417849416
345
+ hash: -1970632189031122908
346
346
  required_rubygems_version: !ruby/object:Gem::Requirement
347
347
  none: false
348
348
  requirements:
@@ -351,7 +351,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
351
351
  version: '0'
352
352
  segments:
353
353
  - 0
354
- hash: 690823420417849416
354
+ hash: -1970632189031122908
355
355
  requirements: []
356
356
  rubyforge_project: methadone
357
357
  rubygems_version: 1.8.24