methadone 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/license.feature +1 -0
- data/lib/methadone/cucumber.rb +1 -1
- data/lib/methadone/version.rb +1 -1
- data/methadone.gemspec +1 -2
- data/templates/full/apache_LICENSE.txt.erb +2 -1
- data/templates/rspec/spec/something_spec.rb.erb +1 -1
- data/test/base_test.rb +11 -3
- data/test/test_sh.rb +5 -5
- metadata +4 -20
- data/features/rspec_2.99.0_version_test.feature +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62d6b61845648eb9ef67b68270c29d36a36b75c3
|
4
|
+
data.tar.gz: 93950790b307186c6dca1bd70978e80ac53135a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a80f01dde40c877f514314d07ded91187d7b9e2ee8c913f1bbdf918b0fc96303a18930e33e513ce3c1b7d2e07f4cb344ef5561a515c89ff6e9825a6b87fdc5b5
|
7
|
+
data.tar.gz: 9395294305318487bc0f653afbcefab6f184e77654c7a92d3db020508c7c37aac8f085fc2c43bb17de722b69252333d6e8cf64d1e9b9a0815c35183664112621
|
data/features/license.feature
CHANGED
data/lib/methadone/cucumber.rb
CHANGED
@@ -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
|
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+/)
|
data/lib/methadone/version.rb
CHANGED
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", "~>
|
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
|
-
|
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.
|
data/test/base_test.rb
CHANGED
@@ -1,11 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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 <
|
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.
|
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-
|
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:
|
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:
|
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
|