lowered-expectations 1.0.3 → 1.1.0
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 +5 -5
- data/.rubocop.yml +20 -14
- data/.travis.yml +0 -3
- data/Gemfile +6 -6
- data/README.md +1 -1
- data/RELEASENOTES.md +6 -0
- data/lib/lowered/expectations.rb +3 -1
- data/lowered-expectations.gemspec +1 -0
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5215c88af55fe324097c475a538eec6be8d5a94f51ca2bf924d6b30b3cacc202
|
4
|
+
data.tar.gz: ae51d2088f406b46cc5543f4fabc48b1aad4c3add874e638e2f4fb60c4b73bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87c0a477846bdd06e8de5bbdecc5d9e37d90459ba8bfc9e2f0db242d4cc5f3beac7d853e1c5adba67a5323f5a8064ad12e85e4104b19dd8e7f30caa9925adb06
|
7
|
+
data.tar.gz: 99e9fca20ed73a19f0b277a72c3c532dd6361e8259a918dcb4214facd7860d69dbbdf8a09b3fa738d1f60a0faa61d270131e7bbce7c7271270dcdbd480778a15
|
data/.rubocop.yml
CHANGED
@@ -5,6 +5,9 @@
|
|
5
5
|
# Note that changes in the inspected code, or installation of new
|
6
6
|
# versions of RuboCop, may require this file to be generated again.
|
7
7
|
|
8
|
+
AllCops:
|
9
|
+
TargetRubyVersion: 2.3
|
10
|
+
|
8
11
|
# Offense count: 6
|
9
12
|
AmbiguousOperator:
|
10
13
|
Enabled: false
|
@@ -51,13 +54,13 @@ FormatString:
|
|
51
54
|
|
52
55
|
# Offense count: 9
|
53
56
|
# Cop supports --auto-correct.
|
54
|
-
|
57
|
+
Layout/FirstArrayElementIndentation:
|
55
58
|
Enabled: false
|
56
59
|
|
57
60
|
# Offense count: 261
|
58
61
|
# Cop supports --auto-correct.
|
59
62
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
60
|
-
|
63
|
+
Layout/FirstHashElementIndentation:
|
61
64
|
Enabled: false
|
62
65
|
|
63
66
|
# Offense count: 3
|
@@ -133,7 +136,7 @@ SpecialGlobalVars:
|
|
133
136
|
|
134
137
|
# Offense count: 5
|
135
138
|
# Cop supports --auto-correct.
|
136
|
-
|
139
|
+
Lint/RedundantStringCoercion:
|
137
140
|
Enabled: false
|
138
141
|
|
139
142
|
StringLiterals:
|
@@ -164,13 +167,13 @@ Layout/AccessModifierIndentation:
|
|
164
167
|
Naming/AccessorMethodName:
|
165
168
|
Enabled: false
|
166
169
|
|
167
|
-
Layout/
|
170
|
+
Layout/ArrayAlignment:
|
168
171
|
Enabled: false
|
169
172
|
|
170
|
-
Layout/
|
173
|
+
Layout/HashAlignment:
|
171
174
|
Enabled: false
|
172
175
|
|
173
|
-
Layout/
|
176
|
+
Layout/ParameterAlignment:
|
174
177
|
Enabled: false
|
175
178
|
|
176
179
|
Metrics/BlockLength:
|
@@ -179,9 +182,6 @@ Metrics/BlockLength:
|
|
179
182
|
Metrics/BlockNesting:
|
180
183
|
Enabled: false
|
181
184
|
|
182
|
-
Style/BracesAroundHashParameters:
|
183
|
-
Enabled: false
|
184
|
-
|
185
185
|
Layout/CaseIndentation:
|
186
186
|
Enabled: false
|
187
187
|
|
@@ -242,9 +242,6 @@ Style/MultilineIfThen:
|
|
242
242
|
Style/MultilineTernaryOperator:
|
243
243
|
Enabled: false
|
244
244
|
|
245
|
-
Style/MultilineTernaryOperator:
|
246
|
-
Enabled: false
|
247
|
-
|
248
245
|
Style/NilComparison:
|
249
246
|
Enabled: false
|
250
247
|
|
@@ -278,7 +275,7 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
278
275
|
Layout/SpaceInsideParens:
|
279
276
|
Enabled: false
|
280
277
|
|
281
|
-
Layout/
|
278
|
+
Layout/TrailingEmptyLines:
|
282
279
|
Enabled: false
|
283
280
|
|
284
281
|
Style/TrivialAccessors:
|
@@ -290,7 +287,7 @@ Style/WhileUntilDo:
|
|
290
287
|
Style/WhileUntilModifier:
|
291
288
|
Enabled: false
|
292
289
|
|
293
|
-
Layout/
|
290
|
+
Layout/HeredocIndentation:
|
294
291
|
Enabled: false
|
295
292
|
|
296
293
|
Layout/ClosingHeredocIndentation:
|
@@ -340,3 +337,12 @@ UselessAssignment:
|
|
340
337
|
|
341
338
|
WordArray:
|
342
339
|
Enabled: false
|
340
|
+
|
341
|
+
Style/HashEachMethods:
|
342
|
+
Enabled: true
|
343
|
+
|
344
|
+
Style/HashTransformKeys:
|
345
|
+
Enabled: true
|
346
|
+
|
347
|
+
Style/HashTransformValues:
|
348
|
+
Enabled: true
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -3,10 +3,10 @@ source 'https://rubygems.org'
|
|
3
3
|
gemspec
|
4
4
|
|
5
5
|
group :development, :test do
|
6
|
-
gem "bundler"
|
7
|
-
gem "rake"
|
8
|
-
gem "rspec"
|
9
|
-
gem "rspec-mocks"
|
10
|
-
gem "rubocop"
|
11
|
-
gem "rubygems-tasks"
|
6
|
+
gem "bundler"
|
7
|
+
gem "rake"
|
8
|
+
gem "rspec"
|
9
|
+
gem "rspec-mocks"
|
10
|
+
gem "rubocop"
|
11
|
+
gem "rubygems-tasks"
|
12
12
|
end
|
data/README.md
CHANGED
@@ -39,4 +39,4 @@ Please see [TODO.md](TODO.md) for the short list of big things I thought worth w
|
|
39
39
|
|
40
40
|
## Contact Me
|
41
41
|
|
42
|
-
Questions or comments about `
|
42
|
+
Questions or comments about `LoweredExpectations`? Hit me up at ian.chesal@gmail.com.
|
data/RELEASENOTES.md
CHANGED
data/lib/lowered/expectations.rb
CHANGED
@@ -4,7 +4,7 @@ require 'shellwords'
|
|
4
4
|
require 'pty'
|
5
5
|
|
6
6
|
class LoweredExpectations
|
7
|
-
VERSION = '1.0
|
7
|
+
VERSION = '1.1.0'.freeze
|
8
8
|
|
9
9
|
class VersionPatternError < StandardError
|
10
10
|
end
|
@@ -22,6 +22,7 @@ class LoweredExpectations
|
|
22
22
|
vstring = run! which(executable), vopt, quiet: true
|
23
23
|
vmatch = /#{vpattern}/.match(vstring)
|
24
24
|
raise(VersionPatternError.new("unable to match #{vpattern} in version output #{vstring} from #{executable}")) unless vmatch
|
25
|
+
|
25
26
|
verify_version(vmatch[0], version) || raise(VersionPatternError.new("unable to match #{vpattern} in version output #{vstring} from #{executable}"))
|
26
27
|
end
|
27
28
|
|
@@ -61,6 +62,7 @@ class LoweredExpectations
|
|
61
62
|
end
|
62
63
|
end
|
63
64
|
raise CommandExecutionError.new(stderr) unless status.zero?
|
65
|
+
|
64
66
|
stdout
|
65
67
|
end
|
66
68
|
private_class_method :run!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lowered-expectations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Chesal
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-02-29 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: |
|
16
16
|
A Ruby gem that lets you test for the presence of command line tools and ensure
|
@@ -57,15 +57,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '2.3'
|
61
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
63
|
- - ">="
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
|
-
|
68
|
-
rubygems_version: 2.6.14.1
|
67
|
+
rubygems_version: 3.0.3
|
69
68
|
signing_key:
|
70
69
|
specification_version: 4
|
71
70
|
summary: A library for testing versions of command line tools.
|