methadone 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 008f48e3c8144f9e35daf0cc65aa87422aab06f1
4
- data.tar.gz: 92e6a622617ba85211f43a7929d12fcc0bd955da
3
+ metadata.gz: 62d6b61845648eb9ef67b68270c29d36a36b75c3
4
+ data.tar.gz: 93950790b307186c6dca1bd70978e80ac53135a1
5
5
  SHA512:
6
- metadata.gz: e9d00c07ea7713755a356ab7b32205b5bc574121c2cf7eca0e6f314954915cf7df094f7ea699d449bcb12b73789036bbad34fdd4c088a2c5314d078eaf119115
7
- data.tar.gz: a295e7e1605a7eac0214480e824542db858e5b7f3bf6068d5da8fbd52a56d7b07320ead71acd6636ad805fff849b05895c56a29824a6c762e0034367d90e4ff6
6
+ metadata.gz: a80f01dde40c877f514314d07ded91187d7b9e2ee8c913f1bbdf918b0fc96303a18930e33e513ce3c1b7d2e07f4cb344ef5561a515c89ff6e9825a6b87fdc5b5
7
+ data.tar.gz: 9395294305318487bc0f653afbcefab6f184e77654c7a92d3db020508c7c37aac8f085fc2c43bb17de722b69252333d6e8cf64d1e9b9a0815c35183664112621
@@ -29,6 +29,7 @@ Feature: Users should get the license included
29
29
 
30
30
  Examples:
31
31
  |license|
32
+ |apache|
32
33
  |mit|
33
34
  |gplv2|
34
35
  |gplv3|
@@ -108,7 +108,7 @@ end
108
108
 
109
109
  Then /^there should be a one line summary of what the app does$/ do
110
110
  output_lines = all_output.split(/\n/)
111
- output_lines.should have_at_least(3).items
111
+ output_lines.size.should >= 3
112
112
  # [0] is our banner, which we've checked for
113
113
  output_lines[1].should match(/^\s*$/)
114
114
  output_lines[2].should match(/^\w+\s+\w+/)
@@ -1,3 +1,3 @@
1
1
  module Methadone #:nodoc:
2
- VERSION = "1.5.0" #:nodoc:
2
+ VERSION = "1.5.1" #:nodoc:
3
3
  end
data/methadone.gemspec CHANGED
@@ -25,7 +25,6 @@ Gem::Specification.new do |s|
25
25
  s.add_development_dependency("simplecov", "~> 0.5")
26
26
  s.add_development_dependency("clean_test")
27
27
  s.add_development_dependency("mocha", "0.13.2")
28
- s.add_development_dependency("minitest", "4.6.1")
29
28
  s.add_development_dependency("sdoc")
30
- s.add_development_dependency("rspec", "~> 2.99") # needed so that rspec-bootstrapped app test can run
29
+ s.add_development_dependency("rspec", "~> 3.0.0")
31
30
  end
@@ -187,7 +187,8 @@
187
187
  same "printed page" as the copyright notice for easier
188
188
  identification within third-party archives.
189
189
 
190
- Copyright <%= Time.now.year %> <%=`git config.user` %>
190
+ Name: <%= gemspec.name %><%#TODO: Get program name more efficiently -%>
191
+ Copyright <%= Time.now.year %> <%=`git config user.name` %>
191
192
 
192
193
  Licensed under the Apache License, Version 2.0 (the "License");
193
194
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  describe "TestSomething" do
2
2
  it "should be true" do
3
- true.should be_true
3
+ true.should == true
4
4
  end
5
5
  end
data/test/base_test.rb CHANGED
@@ -1,11 +1,19 @@
1
- require 'simplecov'
2
- SimpleCov.start do
3
- add_filter "/test"
1
+ if RUBY_PLATFORM == 'java'
2
+ puts "Simplecov seems to cause JRuby to barf, so use another ruby if you want to check coverage"
3
+ else
4
+ require 'simplecov'
5
+ SimpleCov.start do
6
+ add_filter "/test"
7
+ end
4
8
  end
9
+
5
10
  require 'test/unit'
6
11
  require 'rspec/expectations'
7
12
  require 'clean_test/test_case'
8
13
  require 'ostruct'
9
14
 
15
+ RSpec::Matchers.configuration.syntax = :should
16
+
10
17
  class BaseTest < Clean::Test::TestCase
18
+ include RSpec::Matchers
11
19
  end
data/test/test_sh.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'base_test'
2
2
  require 'methadone'
3
3
 
4
- class TestSH < Clean::Test::TestCase
4
+ class TestSH < BaseTest
5
5
  include Methadone::SH
6
6
  include Methadone::CLILogging
7
7
 
@@ -143,7 +143,7 @@ class TestSH < Clean::Test::TestCase
143
143
  use_capturing_logger
144
144
  @command = test_command("foo")
145
145
  @block_called = false
146
- }
146
+ }
147
147
  When {
148
148
  @exit_code = sh @command do
149
149
  @block_called = true
@@ -160,7 +160,7 @@ class TestSH < Clean::Test::TestCase
160
160
  use_capturing_logger
161
161
  @command = test_command("foo")
162
162
  @block_called = false
163
- }
163
+ }
164
164
  When {
165
165
  @exit_code = sh @command, :expected => [2] do
166
166
  @block_called = true
@@ -180,7 +180,7 @@ class TestSH < Clean::Test::TestCase
180
180
  @command = test_command("foo")
181
181
  @block_called = false
182
182
  @exitstatus_received = nil
183
- }
183
+ }
184
184
  When {
185
185
  @exit_code = self.send(method,@command,:expected => expected) do |_,_,exitstatus|
186
186
  @block_called = true
@@ -242,7 +242,7 @@ class TestSH < Clean::Test::TestCase
242
242
  }
243
243
  end
244
244
 
245
- test_that "sh! runs a command that will fail and includes an error message that appears in the exception" do
245
+ test_that "sh! runs a command that will fail and includes an error message that appears in the exception" do
246
246
  Given {
247
247
  use_capturing_logger
248
248
  @command = test_command("foo")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: methadone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - davetron5000
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-10 00:00:00.000000000 Z
11
+ date: 2014-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -122,20 +122,6 @@ dependencies:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.13.2
125
- - !ruby/object:Gem::Dependency
126
- name: minitest
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '='
130
- - !ruby/object:Gem::Version
131
- version: 4.6.1
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - '='
137
- - !ruby/object:Gem::Version
138
- version: 4.6.1
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: sdoc
141
127
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +142,14 @@ dependencies:
156
142
  requirements:
157
143
  - - ~>
158
144
  - !ruby/object:Gem::Version
159
- version: '2.99'
145
+ version: 3.0.0
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - ~>
165
151
  - !ruby/object:Gem::Version
166
- version: '2.99'
152
+ version: 3.0.0
167
153
  description: Methadone provides a lot of small but useful features for developing
168
154
  a command-line app, including an opinionated bootstrapping process, some helpful
169
155
  cucumber steps, and some classes to bridge logging and output into a simple, unified,
@@ -188,7 +174,6 @@ files:
188
174
  - features/bootstrap.feature
189
175
  - features/license.feature
190
176
  - features/readme.feature
191
- - features/rspec_2.99.0_version_test.feature
192
177
  - features/rspec_support.feature
193
178
  - features/step_definitions/bootstrap_steps.rb
194
179
  - features/step_definitions/license_steps.rb
@@ -270,7 +255,6 @@ test_files:
270
255
  - features/bootstrap.feature
271
256
  - features/license.feature
272
257
  - features/readme.feature
273
- - features/rspec_2.99.0_version_test.feature
274
258
  - features/rspec_support.feature
275
259
  - features/step_definitions/bootstrap_steps.rb
276
260
  - features/step_definitions/license_steps.rb
@@ -1,8 +0,0 @@
1
- Feature: As a User I want to use Rspec
2
- In order to use methadone
3
- As a User
4
- I want to have rspec 2.99
5
-
6
- Scenario: Rspec version test
7
- When I run `rspec --version`
8
- Then the output should contain exactly "2.99.1\n"