standard 1.20.0 → 1.21.1

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: 1e0ed7905758dc33bf60b4ee211ec73c0623ecce07a80832e823fd0b4c92cc63
4
- data.tar.gz: cf601065a98ddcb9634bb6d0ed7d4a21920fec02f04bc26c31b14af571c48238
3
+ metadata.gz: 7a7fc419962214950950e1f1babe8ea008c878c3309e7066a7a971fea897df23
4
+ data.tar.gz: b0d510b5788332ebca799de9a665ca8df590cb5679360daca36d67dcddf2e539
5
5
  SHA512:
6
- metadata.gz: f08938462874c2e05a7d39caca82c51c4bc74baec78876e1c26f9a0a1ac1c3d3447c2dec0d1f7827cd6f88bc1a28735bea426c38ab4c0031e2c1f92407df6874
7
- data.tar.gz: 0d53496da3a90508936db4a37cb3f4aa134c437dfb30d071992b2cd6d8f05cd602a1debaf2152fb9115727f43a0f228c1d4a8e42ae0c72bae5268d7356218b52
6
+ metadata.gz: 59badefc6eb57920133e0f6440374e60d96211f5496fae8acc1be5b1e90852152c38f44043918818af54a7bfa59489472af47f3b41883b7ab343ee4330d02d84
7
+ data.tar.gz: 44fcaabf3eeedae4935562e4cc73d90e3b6e0116be4b18a0ae9f5359f21c8bb6cce4df77a69d27f7bd680350be052161eb6d7bcc26e2e71f45a0513078a9d25c
@@ -16,7 +16,7 @@ jobs:
16
16
  strategy:
17
17
  matrix:
18
18
  os: [ubuntu-latest]
19
- ruby-version: [2.6, 2.7, '3.0', 3.1]
19
+ ruby-version: [2.6, 2.7, '3.0', 3.1, 3.2]
20
20
 
21
21
  runs-on: ${{ matrix.os }}
22
22
 
@@ -3,7 +3,9 @@ name: Update
3
3
  on:
4
4
  workflow_dispatch:
5
5
  schedule:
6
- - cron: '5 7 * * 1'
6
+ - cron: '0 0 */100,1-7 * 1'
7
+ # https://blog.healthchecks.io/2022/09/schedule-cron-job-the-funky-way/
8
+ # In case you want to know how that cron job works to get the first Monday of each month.
7
9
 
8
10
  jobs:
9
11
  update:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.21.1
4
+
5
+ * Fix standard comment directives [#498](https://github.com/testdouble/standard/pull/498)
6
+
7
+ ## 1.21.0
8
+
9
+ * Update rubocop-performance from 1.15.1 to [1.15.2](https://github.com/rubocop/rubocop-performance/releases/tag/v1.15.2)
10
+ * Update rubocop from 1.40.0 to [1.42.0](https://github.com/rubocop/rubocop/releases/tag/v1.42.0)
11
+
3
12
  ## 1.20.0
4
13
 
5
14
  * Update rubocop from 1.39.0 to [1.40.0](https://github.com/rubocop/rubocop/releases/tag/v1.40.0)
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.20.0)
4
+ standard (1.21.1)
5
5
  language_server-protocol (~> 3.17.0.2)
6
- rubocop (= 1.40.0)
7
- rubocop-performance (= 1.15.1)
6
+ rubocop (= 1.42.0)
7
+ rubocop-performance (= 1.15.2)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
@@ -16,9 +16,9 @@ GEM
16
16
  json (2.6.3)
17
17
  language_server-protocol (3.17.0.2)
18
18
  method_source (1.0.0)
19
- minitest (5.16.3)
19
+ minitest (5.17.0)
20
20
  parallel (1.22.1)
21
- parser (3.1.3.0)
21
+ parser (3.2.0.0)
22
22
  ast (~> 2.4.1)
23
23
  pry (0.14.1)
24
24
  coderay (~> 1.1)
@@ -27,29 +27,29 @@ GEM
27
27
  rake (13.0.6)
28
28
  regexp_parser (2.6.1)
29
29
  rexml (3.2.5)
30
- rubocop (1.40.0)
30
+ rubocop (1.42.0)
31
31
  json (~> 2.3)
32
32
  parallel (~> 1.10)
33
33
  parser (>= 3.1.2.1)
34
34
  rainbow (>= 2.2.2, < 4.0)
35
35
  regexp_parser (>= 1.8, < 3.0)
36
36
  rexml (>= 3.2.5, < 4.0)
37
- rubocop-ast (>= 1.23.0, < 2.0)
37
+ rubocop-ast (>= 1.24.1, < 2.0)
38
38
  ruby-progressbar (~> 1.7)
39
39
  unicode-display_width (>= 1.4.0, < 3.0)
40
- rubocop-ast (1.24.0)
40
+ rubocop-ast (1.24.1)
41
41
  parser (>= 3.1.1.0)
42
- rubocop-performance (1.15.1)
42
+ rubocop-performance (1.15.2)
43
43
  rubocop (>= 1.7.0, < 2.0)
44
44
  rubocop-ast (>= 0.4.0)
45
45
  ruby-progressbar (1.11.0)
46
- simplecov (0.21.2)
46
+ simplecov (0.22.0)
47
47
  docile (~> 1.1)
48
48
  simplecov-html (~> 0.11)
49
49
  simplecov_json_formatter (~> 0.1)
50
50
  simplecov-html (0.12.3)
51
51
  simplecov_json_formatter (0.1.4)
52
- unicode-display_width (2.3.0)
52
+ unicode-display_width (2.4.2)
53
53
 
54
54
  PLATFORMS
55
55
  ruby
data/README.md CHANGED
@@ -499,6 +499,10 @@ regularly updated
499
499
  guide](https://evilmartians.com/chronicles/rubocoping-with-legacy-bring-your-ruby-code-up-to-standard)
500
500
  on how to do so.
501
501
 
502
+ ## How often is Standard updated?
503
+
504
+ We aim to update Standard once a month, in the first week of the month. In between releases, we'll be considering RuboCop updates, RuboCop Performance updates, and community contributions.
505
+
502
506
  ## Does Standard work with [Insert other tool name here]?
503
507
 
504
508
  Maybe! Start by searching the repository to see if there's an existing issue
data/config/base.yml CHANGED
@@ -1213,6 +1213,9 @@ Style/CommentAnnotation:
1213
1213
  Style/CommentedKeyword:
1214
1214
  Enabled: false
1215
1215
 
1216
+ Style/ConcatArrayLiterals:
1217
+ Enabled: false
1218
+
1216
1219
  Style/ConditionalAssignment:
1217
1220
  Enabled: true
1218
1221
  EnforcedStyle: assign_to_condition
@@ -1429,6 +1432,9 @@ Style/MapCompactWithConditionalBlock:
1429
1432
  Style/MapToHash:
1430
1433
  Enabled: false
1431
1434
 
1435
+ Style/MapToSet:
1436
+ Enabled: false
1437
+
1432
1438
  Style/MethodCallWithArgsParentheses:
1433
1439
  Enabled: false
1434
1440
 
@@ -1445,6 +1451,9 @@ Style/MethodDefParentheses:
1445
1451
  Style/MinMax:
1446
1452
  Enabled: false
1447
1453
 
1454
+ Style/MinMaxComparison:
1455
+ Enabled: false
1456
+
1448
1457
  Style/MissingElse:
1449
1458
  Enabled: false
1450
1459
 
@@ -1652,6 +1661,9 @@ Style/RedundantConditional:
1652
1661
  Style/RedundantConstantBase:
1653
1662
  Enabled: false
1654
1663
 
1664
+ Style/RedundantDoubleSplatHashBraces:
1665
+ Enabled: true
1666
+
1655
1667
  Style/RedundantEach:
1656
1668
  Enabled: false
1657
1669
 
@@ -1911,5 +1923,8 @@ Style/YodaCondition:
1911
1923
  Enabled: true
1912
1924
  EnforcedStyle: forbid_for_all_comparison_operators
1913
1925
 
1926
+ Style/YodaExpression:
1927
+ Enabled: false
1928
+
1914
1929
  Style/ZeroLengthPredicate:
1915
1930
  Enabled: false
@@ -13,4 +13,13 @@ module RuboCop
13
13
  .gsub(" ", '\s*')
14
14
  )
15
15
  end
16
+
17
+ class CommentConfig
18
+ alias_method :old_initialize, :initialize
19
+
20
+ def initialize(processed_source)
21
+ old_initialize(processed_source)
22
+ @no_directives &&= !processed_source.raw_source.include?("standard")
23
+ end
24
+ end
16
25
  end
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.20.0")
2
+ VERSION = Gem::Version.new("1.21.1")
3
3
  end
data/standard.gemspec CHANGED
@@ -19,8 +19,8 @@ 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.40.0"
23
- spec.add_dependency "rubocop-performance", "1.15.1"
22
+ spec.add_dependency "rubocop", "1.42.0"
23
+ spec.add_dependency "rubocop-performance", "1.15.2"
24
24
 
25
25
  # not semver: first three are lsp protocol version, last is patch
26
26
  spec.add_dependency "language_server-protocol", "~> 3.17.0.2"
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.20.0
4
+ version: 1.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-20 00:00:00.000000000 Z
11
+ date: 2023-01-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.40.0
19
+ version: 1.42.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.40.0
26
+ version: 1.42.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.15.1
33
+ version: 1.15.2
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.15.1
40
+ version: 1.15.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: language_server-protocol
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.17.0.2
55
- description:
55
+ description:
56
56
  email:
57
57
  - searls@gmail.com
58
58
  executables:
@@ -118,7 +118,7 @@ files:
118
118
  homepage: https://github.com/testdouble/standard
119
119
  licenses: []
120
120
  metadata: {}
121
- post_install_message:
121
+ post_install_message:
122
122
  rdoc_options: []
123
123
  require_paths:
124
124
  - lib
@@ -133,8 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
- rubygems_version: 3.1.6
137
- signing_key:
136
+ rubygems_version: 3.3.26
137
+ signing_key:
138
138
  specification_version: 4
139
139
  summary: Ruby Style Guide, with linter & automatic code fixer
140
140
  test_files: []