standard 1.0.5 → 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
2
  SHA256:
3
- metadata.gz: 894f7c1e0ac785bcd41ca52663e0a28a65d4c92cb44b7c5891785b903cd5cc7f
4
- data.tar.gz: 11c9b6b3eab63f29481b1db1caaefc956999bdf9d315332c2fb6e7c76fb1c705
3
+ metadata.gz: 16ec4288b1ec5d16ae48f2b6ccd9bee9dd3a644ea1461f0745b629bca3367599
4
+ data.tar.gz: d2eb8efc1ca7e9561806ed7820e3ad17fc30c44d02c7ffc0d69f0ad56dac2ce3
5
5
  SHA512:
6
- metadata.gz: d4a206598bc766b5193c811f85d730836f0832b941154d10c8edf1878aa5e68dbf83da7f189041d44771ffd01434a01cf3e88ae39a07679b7da3b208fd4c6879
7
- data.tar.gz: 85be3986b60be4b7dd57fe95e35c8929fa7601f3c6224256deb3c4de6caf569b76227c4326f7f832bec36ed61350db6d46e8205187b543a8dd43fbc27961d40a
6
+ metadata.gz: 5e9b1e0954d2e9df13ce44cf0a5bbf18bb5c76093828c6205467ac67065061c0eee839b7caf3da2cc48563770c6355ad4b5d256b6ad9f50a938266b8dabe08df
7
+ data.tar.gz: 49effa8819996f2eec32ad46b1a333bf9edd1e99a048d2f9443868494c2dcc939e0f248904426d953dd7e63450b2388ba0fa222ce62e89a0ffefc9af702cff78
@@ -12,7 +12,7 @@ jobs:
12
12
  strategy:
13
13
  matrix:
14
14
  os: [ ubuntu-latest ]
15
- ruby-version: [2.4, 2.7, 3.0]
15
+ ruby-version: [2.5, 2.7, 3.0]
16
16
 
17
17
  runs-on: ${{ matrix.os }}
18
18
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.0
4
+
5
+ * Update rubocop from 1.12.1 to [1.13.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.13.0)
6
+ * Update rubocop-performance from 1.9.2 to [1.11.1](https://github.com/rubocop-hq/rubocop-performance/releases/tag/v1.11.1)
7
+ * Enabled the following rules:
8
+ * [`Performance/RedundantSplitRegexpArgument`](https://github.com/rubocop/rubocop-performance/pull/190)
9
+ * [`Style/IfWithBooleanLiteralBranches`](https://github.com/rubocop-hq/rubocop/pull/9396)
10
+ * [`Lint/TripleQuotes`](https://github.com/rubocop-hq/rubocop/pull/9402)
11
+ * [`Lint/SymbolConversion`](https://github.com/rubocop/rubocop/pull/9362)
12
+ * [`Lint/OrAssignmentToConstant`](https://github.com/rubocop-hq/rubocop/pull/9363)
13
+ * [`Lint/NumberedParameterAssignment`](https://github.com/rubocop-hq/rubocop/pull/9326)
14
+ * [`Style/HashConversion`](https://github.com/rubocop-hq/rubocop/pull/9478)
15
+ * [`Gemspec/DateAssignment`](https://github.com/rubocop-hq/rubocop/pull/9496)
16
+ * [`Style/StringChars`](https://github.com/rubocop/rubocop/pull/9615)
17
+
3
18
  ## 1.0.5
4
19
 
5
20
  * Update rubocop from 1.11.0 to [1.12.1](https://github.com/rubocop-hq/rubocop/releases/tag/v1.12.1)
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.0.5)
5
- rubocop (= 1.12.1)
6
- rubocop-performance (= 1.10.1)
4
+ standard (1.1.0)
5
+ rubocop (= 1.13.0)
6
+ rubocop-performance (= 1.11.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -15,16 +15,16 @@ GEM
15
15
  method_source (1.0.0)
16
16
  minitest (5.14.4)
17
17
  parallel (1.20.1)
18
- parser (3.0.1.0)
18
+ parser (3.0.1.1)
19
19
  ast (~> 2.4.1)
20
- pry (0.14.0)
20
+ pry (0.14.1)
21
21
  coderay (~> 1.1)
22
22
  method_source (~> 1.0)
23
23
  rainbow (3.0.0)
24
24
  rake (13.0.3)
25
25
  regexp_parser (2.1.1)
26
26
  rexml (3.2.5)
27
- rubocop (1.12.1)
27
+ rubocop (1.13.0)
28
28
  parallel (~> 1.10)
29
29
  parser (>= 3.0.0.0)
30
30
  rainbow (>= 2.2.2, < 4.0)
@@ -33,10 +33,10 @@ GEM
33
33
  rubocop-ast (>= 1.2.0, < 2.0)
34
34
  ruby-progressbar (~> 1.7)
35
35
  unicode-display_width (>= 1.4.0, < 3.0)
36
- rubocop-ast (1.4.1)
37
- parser (>= 2.7.1.5)
38
- rubocop-performance (1.10.1)
39
- rubocop (>= 0.90.0, < 2.0)
36
+ rubocop-ast (1.5.0)
37
+ parser (>= 3.0.1.1)
38
+ rubocop-performance (1.11.1)
39
+ rubocop (>= 1.7.0, < 2.0)
40
40
  rubocop-ast (>= 0.4.0)
41
41
  ruby-progressbar (1.11.0)
42
42
  simplecov (0.21.2)
@@ -44,7 +44,7 @@ GEM
44
44
  simplecov-html (~> 0.11)
45
45
  simplecov_json_formatter (~> 0.1)
46
46
  simplecov-html (0.12.3)
47
- simplecov_json_formatter (0.1.2)
47
+ simplecov_json_formatter (0.1.3)
48
48
  unicode-display_width (2.0.0)
49
49
 
50
50
  PLATFORMS
@@ -61,4 +61,4 @@ DEPENDENCIES
61
61
  standard!
62
62
 
63
63
  BUNDLED WITH
64
- 2.2.3
64
+ 2.2.6
data/config/base.yml CHANGED
@@ -21,6 +21,9 @@ Bundler/InsecureProtocolSource:
21
21
  - '**/Gemfile'
22
22
  - '**/gems.rb'
23
23
 
24
+ Gemspec/DateAssignment:
25
+ Enabled: true
26
+
24
27
  Gemspec/DuplicatedAssignment:
25
28
  Enabled: true
26
29
  Include:
@@ -478,6 +481,12 @@ Lint/NonDeterministicRequireOrder:
478
481
  Lint/NonLocalExitFromIterator:
479
482
  Enabled: true
480
483
 
484
+ Lint/NumberedParameterAssignment:
485
+ Enabled: true
486
+
487
+ Lint/OrAssignmentToConstant:
488
+ Enabled: true
489
+
481
490
  Lint/OrderedMagicComments:
482
491
  Enabled: true
483
492
 
@@ -557,6 +566,9 @@ Lint/ShadowedArgument:
557
566
  Lint/ShadowedException:
558
567
  Enabled: true
559
568
 
569
+ Lint/SymbolConversion:
570
+ Enabled: true
571
+
560
572
  Lint/Syntax:
561
573
  Enabled: true
562
574
 
@@ -566,6 +578,9 @@ Lint/TopLevelReturnWithArgument:
566
578
  Lint/TrailingCommaInAttributeDeclaration:
567
579
  Enabled: true
568
580
 
581
+ Lint/TripleQuotes:
582
+ Enabled: true
583
+
569
584
  Lint/UnderscorePrefixedVariableName:
570
585
  Enabled: true
571
586
 
@@ -689,6 +704,9 @@ Performance/RedundantMerge:
689
704
  Performance/RedundantSortBlock:
690
705
  Enabled: true
691
706
 
707
+ Performance/RedundantSplitRegexpArgument:
708
+ Enabled: true
709
+
692
710
  Performance/RedundantStringChars:
693
711
  Enabled: true
694
712
 
@@ -854,6 +872,9 @@ Style/GlobalVars:
854
872
  Enabled: true
855
873
  AllowedVariables: []
856
874
 
875
+ Style/HashConversion:
876
+ Enabled: true
877
+
857
878
  Style/HashExcept:
858
879
  Enabled: true
859
880
 
@@ -870,6 +891,9 @@ Style/IfInsideElse:
870
891
  Style/IfUnlessModifierOfIfUnless:
871
892
  Enabled: true
872
893
 
894
+ Style/IfWithBooleanLiteralBranches:
895
+ Enabled: true
896
+
873
897
  Style/IfWithSemicolon:
874
898
  Enabled: true
875
899
 
@@ -1089,6 +1113,9 @@ Style/StabbyLambdaParentheses:
1089
1113
  Style/StderrPuts:
1090
1114
  Enabled: true
1091
1115
 
1116
+ Style/StringChars:
1117
+ Enabled: true
1118
+
1092
1119
  Style/StringLiterals:
1093
1120
  Enabled: true
1094
1121
  EnforcedStyle: double_quotes
data/config/ruby-1.9.yml CHANGED
@@ -2,3 +2,6 @@ inherit_from: ./ruby-2.2.yml
2
2
 
3
3
  Style/Encoding:
4
4
  Enabled: false
5
+
6
+ Style/HashConversion:
7
+ Enabled: false
data/config/ruby-2.3.yml CHANGED
@@ -1,4 +1 @@
1
- inherit_from: ./ruby-2.5.yml
2
-
3
- AllCops:
4
- TargetRubyVersion: 2.4 # The oldest supported
1
+ inherit_from: ./ruby-2.4.yml
@@ -0,0 +1,4 @@
1
+ inherit_from: ./ruby-2.5.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.5 # The oldest supported
@@ -18,6 +18,8 @@ class Standard::CreatesConfigStore
18
18
  "ruby-2.2.yml"
19
19
  elsif desired_version < Gem::Version.new("2.4")
20
20
  "ruby-2.3.yml"
21
+ elsif desired_version < Gem::Version.new("2.5")
22
+ "ruby-2.4.yml"
21
23
  elsif desired_version < Gem::Version.new("2.6")
22
24
  "ruby-2.5.yml"
23
25
  elsif desired_version < Gem::Version.new("3.0")
@@ -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.4")
12
+ rubocop_supported_version = Gem::Version.new("2.5")
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("1.0.5")
2
+ VERSION = Gem::Version.new("1.1.0")
3
3
  end
data/standard.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.version = Standard::VERSION
8
8
  spec.authors = ["Justin Searls"]
9
9
  spec.email = ["searls@gmail.com"]
10
- spec.required_ruby_version = ">= 2.4.0"
10
+ spec.required_ruby_version = ">= 2.5.0"
11
11
 
12
12
  spec.summary = "Ruby Style Guide, with linter & automatic code fixer"
13
13
  spec.homepage = "https://github.com/testdouble/standard"
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "rubocop", "1.12.1"
23
- spec.add_dependency "rubocop-performance", "1.10.1"
22
+ spec.add_dependency "rubocop", "1.13.0"
23
+ spec.add_dependency "rubocop-performance", "1.11.1"
24
24
  end
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: 1.0.5
4
+ version: 1.1.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: 2021-04-14 00:00:00.000000000 Z
11
+ date: 2021-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.12.1
19
+ version: 1.13.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: 1.12.1
26
+ version: 1.13.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.10.1
33
+ version: 1.11.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.10.1
40
+ version: 1.11.1
41
41
  description:
42
42
  email:
43
43
  - searls@gmail.com
@@ -62,6 +62,7 @@ files:
62
62
  - config/ruby-1.9.yml
63
63
  - config/ruby-2.2.yml
64
64
  - config/ruby-2.3.yml
65
+ - config/ruby-2.4.yml
65
66
  - config/ruby-2.5.yml
66
67
  - config/ruby-2.7.yml
67
68
  - docs/RELEASE.md
@@ -101,7 +102,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
102
  requirements:
102
103
  - - ">="
103
104
  - !ruby/object:Gem::Version
104
- version: 2.4.0
105
+ version: 2.5.0
105
106
  required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  requirements:
107
108
  - - ">="