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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f17c84deb4d08951a3eaba2467b6eb565adc9736
4
- data.tar.gz: febd20b442c3b8fae728ef969951f9264df23289
2
+ SHA256:
3
+ metadata.gz: 5215c88af55fe324097c475a538eec6be8d5a94f51ca2bf924d6b30b3cacc202
4
+ data.tar.gz: ae51d2088f406b46cc5543f4fabc48b1aad4c3add874e638e2f4fb60c4b73bfd
5
5
  SHA512:
6
- metadata.gz: 1e8e70bf8c64473fdd8b524aeec08e6035304ed43c0e04d3dc618f9ac2faef43ae41488dbd4ed67af583388125c770c2b55e5c95ca52131bbf10d0fbd8d267ec
7
- data.tar.gz: 1eb2eeb5f8ba99a4932907815503f3cc5b97d20e79afab708a4adf245ae980688c2800a17d609c124f7be417275d1d60dd6685ae06944c2210acf5f2d486e237
6
+ metadata.gz: 87c0a477846bdd06e8de5bbdecc5d9e37d90459ba8bfc9e2f0db242d4cc5f3beac7d853e1c5adba67a5323f5a8064ad12e85e4104b19dd8e7f30caa9925adb06
7
+ data.tar.gz: 99e9fca20ed73a19f0b277a72c3c532dd6361e8259a918dcb4214facd7860d69dbbdf8a09b3fa738d1f60a0faa61d270131e7bbce7c7271270dcdbd480778a15
@@ -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
- IndentArray:
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
- IndentHash:
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
- StringConversionInInterpolation:
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/AlignArray:
170
+ Layout/ArrayAlignment:
168
171
  Enabled: false
169
172
 
170
- Layout/AlignHash:
173
+ Layout/HashAlignment:
171
174
  Enabled: false
172
175
 
173
- Layout/AlignParameters:
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/TrailingBlankLines:
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/IndentHeredoc:
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
@@ -1,8 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0
4
- - 2.1
5
- - 2.2
6
3
  - 2.3
7
4
  - 2.4
8
5
  - 2.5
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", "~> 1.7"
7
- gem "rake", "~> 10.4"
8
- gem "rspec", "~> 3.0"
9
- gem "rspec-mocks", "~> 3.0"
10
- gem "rubocop", "~> 0.49"
11
- gem "rubygems-tasks", "~> 0.2"
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 `packer-config`? Hit me up at ian.chesal@gmail.com or ianc@squareup.com.
42
+ Questions or comments about `LoweredExpectations`? Hit me up at ian.chesal@gmail.com.
@@ -1,5 +1,11 @@
1
1
  # lowered-expectations Release Notes
2
2
 
3
+ ## 1.1.0
4
+
5
+ * Updated development dependencies to avoid CVEs
6
+ * Updated cops
7
+ * Dropped support for Ruby 2.0, 2.1 and 2.2
8
+
3
9
  ## 1.0.3
4
10
 
5
11
  * Bugfix for exitstatus checks when running in quiet mode
@@ -4,7 +4,7 @@ require 'shellwords'
4
4
  require 'pty'
5
5
 
6
6
  class LoweredExpectations
7
- VERSION = '1.0.3'.freeze
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!
@@ -23,4 +23,5 @@ END
23
23
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
24
24
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
25
25
  spec.require_paths = ["lib"]
26
+ spec.required_ruby_version = '>= 2.3'
26
27
  end
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.3
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: 2018-09-07 00:00:00.000000000 Z
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: '0'
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
- rubyforge_project:
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.