standard 0.2.5 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a18e5c768b6110f9e35e2aa04874b513d5ed2b1729be60a7da7e012bfcb29289
4
- data.tar.gz: bdc337c59b82dafb10689b8e19afa7ba5ba48f005831c60a5b03d39984f79224
3
+ metadata.gz: 7368d84b38b7c89c397955507edcf80bec5faf78ec478c9f5b70969abd1f3cd8
4
+ data.tar.gz: f74eb8f5da9fd6459c9aee08c16ab5a5de09392230e545e9812d29ac3d745720
5
5
  SHA512:
6
- metadata.gz: 1ea3a2e779c8d86e74f0634f4bcdb6cd3d0d52eb04e27c4418b077e18a1179dfddc0c1f894a773ec1f714035fdc97f6b3f6b62507e34c31a1789e3608110f6ae
7
- data.tar.gz: 86d81d2146c84afa97354d3b289067c1112045fc8c9d4a1f86d6323f71da04175b37975113e557a1db82e2796220dac80a45a51637630b9be29c23cf74e4e0a0
6
+ metadata.gz: a357e1a42c1114344a68531cb65a22d2f82256dc98ce9b96ecea78959bae66a9beca785b266ec02d4f09ccbb2e3b2823ea30835682c917c2519b86c2e012b3f2
7
+ data.tar.gz: 2acd01cc74605a7d97e367e24d439a22ee1aa8c3520d1da76f763a0491b2fff31bc3ab6d9884c14d7921f349d2d93039ea5346f3f64ad394574a177784a4ee42
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (0.2.5)
5
- rubocop (~> 0.80.1)
4
+ standard (0.3.0)
5
+ rubocop (~> 0.82.0)
6
6
  rubocop-performance (~> 1.5.2)
7
7
 
8
8
  GEM
@@ -16,7 +16,7 @@ GEM
16
16
  method_source (0.9.2)
17
17
  minitest (5.14.0)
18
18
  parallel (1.19.1)
19
- parser (2.7.1.1)
19
+ parser (2.7.1.2)
20
20
  ast (~> 2.4.0)
21
21
  pry (0.12.2)
22
22
  coderay (~> 1.1.0)
@@ -24,14 +24,14 @@ GEM
24
24
  rainbow (3.0.0)
25
25
  rake (13.0.1)
26
26
  rexml (3.2.4)
27
- rubocop (0.80.1)
27
+ rubocop (0.82.0)
28
28
  jaro_winkler (~> 1.5.1)
29
29
  parallel (~> 1.10)
30
30
  parser (>= 2.7.0.1)
31
31
  rainbow (>= 2.2.2, < 4.0)
32
32
  rexml
33
33
  ruby-progressbar (~> 1.7)
34
- unicode-display_width (>= 1.4.0, < 1.7)
34
+ unicode-display_width (>= 1.4.0, < 2.0)
35
35
  rubocop-performance (1.5.2)
36
36
  rubocop (>= 0.71.0)
37
37
  ruby-progressbar (1.10.1)
@@ -39,7 +39,7 @@ GEM
39
39
  docile (~> 1.1)
40
40
  simplecov-html (~> 0.11)
41
41
  simplecov-html (0.12.0)
42
- unicode-display_width (1.6.1)
42
+ unicode-display_width (1.7.0)
43
43
 
44
44
  PLATFORMS
45
45
  ruby
data/README.md CHANGED
@@ -375,4 +375,10 @@ $ bundle exec rake # to run test suite
375
375
  ```
376
376
 
377
377
  ## Code of Conduct
378
- This project follows Test Double's [code of conduct](https://testdouble.com/code-of-conduct) for all community interactions, including (but not limited to) one-on-one communications, public posts/comments, code reviews, pull requests, and GitHub issues. If violations occur, Test Double will take any action they deem appropriate for the infraction, up to and including blocking a user from the organization's repositories.
378
+
379
+ This project follows Test Double's [code of
380
+ conduct](https://testdouble.com/code-of-conduct) for all community interactions,
381
+ including (but not limited to) one-on-one communications, public posts/comments,
382
+ code reviews, pull requests, and GitHub issues. If violations occur, Test Double
383
+ will take any action they deem appropriate for the infraction, up to and
384
+ including blocking a user from the organization's repositories.
@@ -2,7 +2,7 @@ require:
2
2
  - rubocop-performance
3
3
 
4
4
  AllCops:
5
- # Prevent RuboCop from exploding when it finds an older-than-2.3 .ruby-version
5
+ # Prevent RuboCop from exploding when it finds an older-than-2.4 .ruby-version
6
6
  TargetRubyVersion: 2.5
7
7
  DisabledByDefault: true
8
8
  Exclude: []
@@ -30,6 +30,7 @@ Layout/ArgumentAlignment:
30
30
 
31
31
  Layout/ArrayAlignment:
32
32
  Enabled: true
33
+ EnforcedStyle: with_fixed_indentation
33
34
 
34
35
  Layout/HashAlignment:
35
36
  Enabled: true
@@ -301,7 +302,7 @@ Layout/SpaceInsideStringInterpolation:
301
302
  Enabled: true
302
303
  EnforcedStyle: no_space
303
304
 
304
- Layout/Tab:
305
+ Layout/IndentationStyle:
305
306
  Enabled: true
306
307
  IndentationWidth: ~
307
308
 
@@ -328,6 +329,7 @@ Lint/BigDecimalNew:
328
329
 
329
330
  Lint/BooleanSymbol:
330
331
  Enabled: true
332
+ AutoCorrect: true
331
333
 
332
334
  Lint/CircularArgumentReference:
333
335
  Enabled: true
@@ -366,9 +368,6 @@ Lint/EmptyInterpolation:
366
368
  Lint/EmptyWhen:
367
369
  Enabled: true
368
370
 
369
- Lint/EndInMethod:
370
- Enabled: true
371
-
372
371
  Lint/EnsureReturn:
373
372
  Enabled: true
374
373
 
@@ -437,9 +436,15 @@ Lint/ParenthesesAsGroupedExpression:
437
436
  Lint/PercentSymbolArray:
438
437
  Enabled: true
439
438
 
439
+ Lint/RaiseException:
440
+ Enabled: true
441
+
440
442
  Lint/RandOne:
441
443
  Enabled: true
442
444
 
445
+ Lint/RedundantStringCoercion:
446
+ Enabled: true
447
+
443
448
  Lint/RedundantWithIndex:
444
449
  Enabled: true
445
450
 
@@ -486,7 +491,7 @@ Lint/ShadowedArgument:
486
491
  Lint/ShadowedException:
487
492
  Enabled: true
488
493
 
489
- Lint/RedundantStringCoercion:
494
+ Layout/SpaceAroundMethodCallOperator:
490
495
  Enabled: true
491
496
 
492
497
  Lint/Syntax:
@@ -769,6 +774,7 @@ Style/Encoding:
769
774
 
770
775
  Style/EndBlock:
771
776
  Enabled: true
777
+ AutoCorrect: true
772
778
 
773
779
  Style/EvalWithLocation:
774
780
  Enabled: true
@@ -1015,6 +1021,9 @@ Style/TrailingCommaInArrayLiteral:
1015
1021
  Enabled: true
1016
1022
  EnforcedStyleForMultiline: no_comma
1017
1023
 
1024
+ Style/TrailingCommaInBlockArgs:
1025
+ Enabled: true
1026
+
1018
1027
  Style/TrailingCommaInHashLiteral:
1019
1028
  Enabled: true
1020
1029
  EnforcedStyleForMultiline: no_comma
@@ -1,7 +1,7 @@
1
1
  inherit_from: ./base.yml
2
2
 
3
3
  AllCops:
4
- TargetRubyVersion: 2.3 # The oldest supported
4
+ TargetRubyVersion: 2.4 # The oldest supported
5
5
 
6
6
  Layout:
7
7
  HeredocIndentation:
@@ -9,7 +9,7 @@ class Standard::CreatesConfigStore
9
9
  private
10
10
 
11
11
  def max_rubocop_supported_version(desired_version)
12
- rubocop_supported_version = Gem::Version.new("2.3")
12
+ rubocop_supported_version = Gem::Version.new("2.4")
13
13
  if desired_version < rubocop_supported_version
14
14
  rubocop_supported_version
15
15
  else
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("0.2.5")
2
+ VERSION = Gem::Version.new("0.3.0")
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "rubocop", "~> 0.80.1"
21
+ spec.add_dependency "rubocop", "~> 0.82.0"
22
22
  spec.add_dependency "rubocop-performance", "~> 1.5.2"
23
23
 
24
24
  spec.add_development_dependency "bundler"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-27 00:00:00.000000000 Z
11
+ date: 2020-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.80.1
19
+ version: 0.82.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.80.1
26
+ version: 0.82.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement