methadone 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm use 1.9.3@methadone-dev --create
1
+ rvm use 1.9.3-p286@methadone-dev --create
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v.1.2.5 - Feb 24, 2012
4
+
5
+ * 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
+
3
7
  ## v.1.2.4 - Dec 26, 2012
4
8
 
5
9
  * Fix for my fix on apps with dashes in their name (see [59], thanks to [@terryfinn]
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'http://www.rubygems.org'
2
2
 
3
3
  gem 'open4', :platform => :ruby_18
4
4
  # Specify your gem's dependencies in methadone.gemspec
data/bin/methadone CHANGED
@@ -22,7 +22,14 @@ main do |app_name|
22
22
 
23
23
  chdir File.dirname(app_name)
24
24
 
25
- sh! "bundle gem #{gemname}"
25
+ require_file = nil
26
+ sh! "bundle gem #{gemname} --no-color" do |stdout|
27
+ require_file = stdout.split(/\n/).select { |file|
28
+ file =~ /\.rb$/ && file !~ /version.rb$/
29
+ }.first
30
+ end
31
+ require_file = gemname if require_file.nil?
32
+ require_file.gsub!(/^.*lib\//,'')
26
33
 
27
34
  chdir gemname
28
35
 
@@ -52,17 +52,20 @@ Feature: Bootstrap a new command-line app
52
52
  When I successfully run `rake -T -I../../lib`
53
53
  Then the output should contain:
54
54
  """
55
- rake build # Build newgem-0.0.1.gem into the pkg directory
56
55
  rake clean # Remove any temporary products.
57
56
  rake clobber # Remove any generated file.
58
57
  rake clobber_rdoc # Remove RDoc HTML files
59
58
  rake features # Run Cucumber features
60
- rake install # Build and install newgem-0.0.1.gem into system gems
59
+ """
60
+ And the output should contain:
61
+ """
61
62
  rake rdoc # Build RDoc HTML files
62
63
  rake release # Create tag v0.0.1 and build and push newgem-0.0.1.gem to Rubygems
63
64
  rake rerdoc # Rebuild RDoc HTML files
64
65
  rake test # Run tests
65
- """
66
+ """
67
+ And the output should match /rake install # Build and install newgem-0.0.1.gem into system gems/
68
+ And the output should match /rake build # Build newgem-0.0.1.gem into the pkg directory/
66
69
  When I run `rake -I../../../../lib`
67
70
  Then the exit status should be 0
68
71
  And the output should match /1 tests, 1 assertions, 0 failures, 0 errors/
@@ -1,3 +1,3 @@
1
1
  module Methadone #:nodoc:
2
- VERSION = "1.2.4" #:nodoc:
2
+ VERSION = "1.2.5" #:nodoc:
3
3
  end
data/methadone.gemspec CHANGED
@@ -24,7 +24,8 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency("aruba")
25
25
  s.add_development_dependency("simplecov", "~> 0.5")
26
26
  s.add_development_dependency("clean_test")
27
- s.add_development_dependency("mocha")
27
+ s.add_development_dependency("mocha", "0.13.2")
28
+ s.add_development_dependency("minitest", "4.6.1")
28
29
  s.add_development_dependency("sdoc")
29
30
  s.add_development_dependency("rspec") # needed so that rspec-bootstrapped app test can run
30
31
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'optparse'
4
4
  require 'methadone'
5
- require '<%= gemname %>'
5
+ require '<%= require_file %>'
6
6
 
7
7
  class App
8
8
  include Methadone::Main
@@ -1,5 +1,5 @@
1
1
  require 'base_test'
2
- require 'mocha'
2
+ require 'mocha/setup'
3
3
 
4
4
  # Defined by JRuby, but this test must pass on any Ruby
5
5
  class NativeException
@@ -1,5 +1,5 @@
1
1
  require 'base_test'
2
- require 'mocha'
2
+ require 'mocha/setup'
3
3
  require 'open3'
4
4
 
5
5
  module ExecutionStrategy
@@ -1,5 +1,5 @@
1
1
  require 'base_test'
2
- require 'mocha'
2
+ require 'mocha/setup'
3
3
 
4
4
  # Define this symbol without requiring the library;
5
5
  # all we're goingn to do is mock calls to it
@@ -1,8 +1,8 @@
1
1
  require 'base_test'
2
- require 'mocha'
2
+ require 'mocha/setup'
3
3
 
4
4
  # Define this symbol without requiring the library;
5
- # all we're goingn to do is mock calls to it
5
+ # all we're going to do is mock calls to it
6
6
  module Open4
7
7
  end
8
8
 
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.4
4
+ version: 1.2.5
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: 2012-12-26 00:00:00.000000000 Z
12
+ date: 2013-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -128,17 +128,33 @@ dependencies:
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
- - - ! '>='
131
+ - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: '0'
133
+ version: 0.13.2
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  none: false
138
138
  requirements:
139
- - - ! '>='
139
+ - - '='
140
140
  - !ruby/object:Gem::Version
141
- version: '0'
141
+ version: 0.13.2
142
+ - !ruby/object:Gem::Dependency
143
+ name: minitest
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - '='
148
+ - !ruby/object:Gem::Version
149
+ version: 4.6.1
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - '='
156
+ - !ruby/object:Gem::Version
157
+ version: 4.6.1
142
158
  - !ruby/object:Gem::Dependency
143
159
  name: sdoc
144
160
  requirement: !ruby/object:Gem::Requirement
@@ -326,7 +342,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
326
342
  version: '0'
327
343
  segments:
328
344
  - 0
329
- hash: 2310702819927979182
345
+ hash: 690823420417849416
330
346
  required_rubygems_version: !ruby/object:Gem::Requirement
331
347
  none: false
332
348
  requirements:
@@ -335,10 +351,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
335
351
  version: '0'
336
352
  segments:
337
353
  - 0
338
- hash: 2310702819927979182
354
+ hash: 690823420417849416
339
355
  requirements: []
340
356
  rubyforge_project: methadone
341
- rubygems_version: 1.8.23
357
+ rubygems_version: 1.8.24
342
358
  signing_key:
343
359
  specification_version: 3
344
360
  summary: Kick the bash habit and start your command-line apps off right