standard 1.50.0 → 1.51.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: b1dad1a1aa45aed0a9491752fdfd605a8247b42cc7e7156147a2b9201ba66eae
4
- data.tar.gz: 617989cc9199aa69eb97dc02cd56dff78c988f5aed34e9d35a786f3b4198fd4d
3
+ metadata.gz: aac91abbf5fa593278b6e5d092cca49ff406d646bf9b52a81bdac4f3fcf2e6c6
4
+ data.tar.gz: 41126e18ae9a72a6c386d5b61f1a07659ed9b576d03b8850d57569d7aee6f8fe
5
5
  SHA512:
6
- metadata.gz: ee6a0a8aba970e770c9cb0c5ae8ee1843bf5570e46dd64e927d0fb2045e8e7107610d26e0a2fe633411e7c2f068a9ff6382ae0dba27e68bb89a44eb1b64342db
7
- data.tar.gz: 7617315c4f097ca504993de4ef485daaedcabe34a15a9d8b066d9c390f46b6d2d1e4b9c2370e49fd8234fac498bc54242c1a941fca00619fbdd70b452174c795
6
+ metadata.gz: d22445ecc503a0ebd9f4556413e6fc791551527ddf6b5fbffc64a39b89bc7c58758162374b06fca78a36bb09c32b1bce2523e4f5576f2cb34a299f46259258ad
7
+ data.tar.gz: fc7c20886599877489dc674e4ca773ecb71daa2d98f7d077d6da7113f8f8fc7832d9d7a84a4ad9411943af92a85729656d1f2182fbafc0c76c15266148eefc45
@@ -1,10 +1,11 @@
1
+ # Please see the documentation for all configuration options:
2
+ # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
3
+
1
4
  version: 2
2
5
  updates:
3
- - package-ecosystem: "bundler"
6
+ - package-ecosystem: bundler
4
7
  directory: "/"
5
- allow:
6
- - dependency-name: "rubocop"
7
- - dependency-name: "rubocop-performance"
8
- schedule:
9
- interval: "weekly"
10
- day: monday
8
+ schedule: { interval: weekly, day: monday }
9
+ - package-ecosystem: github-actions
10
+ directory: "/"
11
+ schedule: { interval: weekly }
@@ -2,33 +2,23 @@ name: Tests
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [main]
6
5
  pull_request:
7
- branches: [main]
6
+ workflow_dispatch:
7
+ schedule: [ cron: "42 0 7 * *" ] # https://crontab.guru/#42_0_7_*_*
8
8
  workflow_run:
9
- workflows: ["Update"]
10
- types:
11
- - completed
9
+ workflows: [ "Update" ]
10
+ types: [ completed ]
12
11
 
13
12
  jobs:
14
13
  test:
15
- strategy:
16
- matrix:
17
- os: [ubuntu-latest]
18
- ruby-version:
19
- - "3.1"
20
- - "3.2"
21
- - "3.3"
22
- - "3.4"
23
-
24
- runs-on: ${{ matrix.os }}
25
-
14
+ runs-on: ubuntu-latest
15
+ strategy: {matrix: {ruby: [ '3.0', 3.1, 3.2, 3.3, 3.4 ]}}
26
16
  steps:
27
- - uses: actions/checkout@v4
28
- - name: Set up Ruby ${{ matrix.ruby-version }}
29
- uses: ruby/setup-ruby@v1
17
+ - uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
18
+ with: { egress-policy: audit }
19
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20
+ - uses: ruby/setup-ruby@a4effe49ee8ee5b8b5091268c473a4628afb5651 # v1.245.0
30
21
  with:
31
- ruby-version: ${{ matrix.ruby-version }}
22
+ ruby-version: ${{ matrix.ruby }}
32
23
  bundler-cache: true
33
- - name: Run tests for Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
34
- run: bundle config unset deployment && ./bin/rake
24
+ - run: bin/rake
@@ -14,7 +14,7 @@ jobs:
14
14
  runs-on: ubuntu-latest
15
15
 
16
16
  steps:
17
- - uses: actions/checkout@v4
17
+ - uses: actions/checkout@v5
18
18
  - name: Set up Ruby
19
19
  uses: ruby/setup-ruby@v1
20
20
  with:
@@ -45,7 +45,7 @@ jobs:
45
45
  id: date
46
46
  run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
47
47
  - name: Create Pull Request
48
- uses: peter-evans/create-pull-request@v6
48
+ uses: peter-evans/create-pull-request@v7
49
49
  with:
50
50
  reviewers: camilopayan
51
51
  commit-message: '[ ${{ steps.date.outputs.date }} ] - Update dependencies'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.51.0
4
+
5
+ * Updates rubocop to [1.81.2](https://github.com/rubocop/rubocop/tree/v1.81.2)
6
+
3
7
  ## 1.50.0
4
8
 
5
9
  * Updates rubocop to [1.75.5](https://github.com/rubocop/rubocop/tree/v1.75.5)
data/Gemfile CHANGED
@@ -3,8 +3,8 @@ source "https://rubygems.org"
3
3
  gemspec
4
4
 
5
5
  gem "bundler"
6
- gem "minitest", "~> 5.0"
7
- gem "rake", "~> 13.0"
6
+ gem "minitest", "~> 5.25"
7
+ gem "rake", "~> 13.3"
8
8
  gem "m"
9
9
  gem "mutex_m"
10
10
  gem "ruby-lsp"
data/Gemfile.lock CHANGED
@@ -1,40 +1,40 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.50.0)
4
+ standard (1.51.0)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  lint_roller (~> 1.0)
7
- rubocop (~> 1.75.5)
7
+ rubocop (~> 1.80.2)
8
8
  standard-custom (~> 1.0.0)
9
9
  standard-performance (~> 1.8)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- ast (2.4.2)
14
+ ast (2.4.3)
15
15
  docile (1.4.0)
16
- json (2.6.3)
17
- language_server-protocol (3.17.0.3)
16
+ json (2.13.2)
17
+ language_server-protocol (3.17.0.5)
18
18
  lint_roller (1.1.0)
19
- logger (1.6.0)
19
+ logger (1.7.0)
20
20
  m (1.6.2)
21
21
  method_source (>= 0.6.7)
22
22
  rake (>= 0.9.2.2)
23
23
  method_source (1.0.0)
24
- minitest (5.25.1)
25
- mutex_m (0.2.0)
26
- parallel (1.23.0)
27
- parser (3.3.7.4)
24
+ minitest (5.25.5)
25
+ mutex_m (0.3.0)
26
+ parallel (1.27.0)
27
+ parser (3.3.9.0)
28
28
  ast (~> 2.4.1)
29
29
  racc
30
30
  prism (1.4.0)
31
- racc (1.7.1)
31
+ racc (1.8.1)
32
32
  rainbow (3.1.1)
33
- rake (13.0.6)
34
- rbs (3.5.2)
33
+ rake (13.3.0)
34
+ rbs (3.6.1)
35
35
  logger
36
- regexp_parser (2.9.3)
37
- rubocop (1.75.5)
36
+ regexp_parser (2.11.2)
37
+ rubocop (1.80.2)
38
38
  json (~> 2.3)
39
39
  language_server-protocol (~> 3.17.0.2)
40
40
  lint_roller (~> 1.1.0)
@@ -42,21 +42,20 @@ GEM
42
42
  parser (>= 3.3.0.2)
43
43
  rainbow (>= 2.2.2, < 4.0)
44
44
  regexp_parser (>= 2.9.3, < 3.0)
45
- rubocop-ast (>= 1.44.0, < 2.0)
45
+ rubocop-ast (>= 1.46.0, < 2.0)
46
46
  ruby-progressbar (~> 1.7)
47
47
  unicode-display_width (>= 2.4.0, < 4.0)
48
- rubocop-ast (1.44.0)
48
+ rubocop-ast (1.46.0)
49
49
  parser (>= 3.3.7.2)
50
50
  prism (~> 1.4)
51
51
  rubocop-performance (1.25.0)
52
52
  lint_roller (~> 1.1)
53
53
  rubocop (>= 1.75.0, < 2.0)
54
54
  rubocop-ast (>= 1.38.0, < 2.0)
55
- ruby-lsp (0.23.13)
55
+ ruby-lsp (0.26.1)
56
56
  language_server-protocol (~> 3.17.0)
57
57
  prism (>= 1.2, < 2.0)
58
- rbs (>= 3, < 4)
59
- sorbet-runtime (>= 0.5.10782)
58
+ rbs (>= 3, < 5)
60
59
  ruby-progressbar (1.13.0)
61
60
  simplecov (0.22.0)
62
61
  docile (~> 1.1)
@@ -64,14 +63,15 @@ GEM
64
63
  simplecov_json_formatter (~> 0.1)
65
64
  simplecov-html (0.13.1)
66
65
  simplecov_json_formatter (0.1.4)
67
- sorbet-runtime (0.5.11481)
68
66
  standard-custom (1.0.2)
69
67
  lint_roller (~> 1.0)
70
68
  rubocop (~> 1.50)
71
69
  standard-performance (1.8.0)
72
70
  lint_roller (~> 1.1)
73
71
  rubocop-performance (~> 1.25.0)
74
- unicode-display_width (2.5.0)
72
+ unicode-display_width (3.1.5)
73
+ unicode-emoji (~> 4.0, >= 4.0.4)
74
+ unicode-emoji (4.0.4)
75
75
 
76
76
  PLATFORMS
77
77
  ruby
@@ -80,9 +80,9 @@ PLATFORMS
80
80
  DEPENDENCIES
81
81
  bundler
82
82
  m
83
- minitest (~> 5.0)
83
+ minitest (~> 5.25)
84
84
  mutex_m
85
- rake (~> 13.0)
85
+ rake (~> 13.3)
86
86
  ruby-lsp
87
87
  simplecov
88
88
  standard!
data/README.md CHANGED
@@ -153,14 +153,16 @@ continuous integration systems.
153
153
 
154
154
  We've added a number of editing guides for getting started:
155
155
 
156
- - [VS Code](https://github.com/standardrb/standard/wiki/IDE:-vscode)
157
- - [vim](https://github.com/standardrb/standard/wiki/IDE:-vim)
158
- - [neovim](https://github.com/standardrb/standard/wiki/IDE:-neovim)
159
- - [RubyMine](https://www.jetbrains.com/help/ruby/rubocop.html#disable_rubocop)
160
- - [emacs](https://www.flycheck.org/en/latest/languages.html#syntax-checker-ruby-standard)
161
- - [Helix](https://github.com/helix-editor/helix/wiki/External-formatter-configuration#standardrb)
162
156
  - [Atom](https://github.com/standardrb/standard/wiki/IDE:-Atom)
157
+ - [emacs](https://www.flycheck.org/en/latest/languages.html#syntax-checker-ruby-standard)
158
+ - [Helix](https://github.com/helix-editor/helix/wiki/Formatter-configurations#standardrb)
159
+ - [neovim](https://github.com/standardrb/standard/wiki/IDE:-neovim)
163
160
  - [Nova](https://codeberg.org/edwardloveall/nova-standard)
161
+ - [RubyMine](https://www.jetbrains.com/help/ruby/rubocop.html#disable_rubocop)
162
+ - [vim](https://github.com/standardrb/standard/wiki/IDE:-vim)
163
+ - [VS Code](https://github.com/standardrb/standard/wiki/IDE:-vscode)
164
+ - [Zed](https://zed.dev/docs/languages/ruby#setting-up-ruby-lsp)
165
+ - [Sublime Text](https://github.com/standardrb/standard/wiki/IDE:-Sublime-Text)
164
166
 
165
167
  If you'd like to help by creating a guide, please draft one [in an
166
168
  issue](https://github.com/standardrb/standard/issues/new) and we'll get it
data/config/base.yml CHANGED
@@ -30,6 +30,9 @@ Bundler/OrderedGems:
30
30
  Gemspec/AddRuntimeDependency:
31
31
  Enabled: false
32
32
 
33
+ Gemspec/AttributeAssignment:
34
+ Enabled: false
35
+
33
36
  Gemspec/DependencyVersion:
34
37
  Enabled: false
35
38
 
@@ -122,7 +125,7 @@ Layout/EmptyComment:
122
125
  AllowMarginComment: true
123
126
 
124
127
  Layout/EmptyLineAfterGuardClause:
125
- Enabled: false
128
+ Enabled: true
126
129
 
127
130
  Layout/EmptyLineAfterMagicComment:
128
131
  Enabled: true
@@ -132,12 +135,15 @@ Layout/EmptyLineAfterMultilineCondition:
132
135
 
133
136
  Layout/EmptyLineBetweenDefs:
134
137
  Enabled: true
135
- AllowAdjacentOneLineDefs: false
138
+ AllowAdjacentOneLineDefs: true
136
139
  NumberOfEmptyLines: 1
137
140
 
138
141
  Layout/EmptyLines:
139
142
  Enabled: true
140
143
 
144
+ Layout/EmptyLinesAfterModuleInclusion:
145
+ Enabled: true
146
+
141
147
  Layout/EmptyLinesAroundAccessModifier:
142
148
  Enabled: true
143
149
 
@@ -243,6 +249,7 @@ Layout/InitialIndentation:
243
249
 
244
250
  Layout/LeadingCommentSpace:
245
251
  Enabled: true
252
+ AllowRBSInlineAnnotation: true
246
253
 
247
254
  Layout/LeadingEmptyLines:
248
255
  Enabled: true
@@ -866,6 +873,9 @@ Lint/UselessAssignment:
866
873
  Lint/UselessConstantScoping:
867
874
  Enabled: false
868
875
 
876
+ Lint/UselessDefaultValueArgument:
877
+ Enabled: false
878
+
869
879
  Lint/UselessDefined:
870
880
  Enabled: true
871
881
 
@@ -878,6 +888,9 @@ Lint/UselessMethodDefinition:
878
888
  Lint/UselessNumericOperation:
879
889
  Enabled: false
880
890
 
891
+ Lint/UselessOr:
892
+ Enabled: true
893
+
881
894
  Lint/UselessRescue:
882
895
  Enabled: true
883
896
 
@@ -974,7 +987,10 @@ Naming/MethodName:
974
987
  Naming/MethodParameterName:
975
988
  Enabled: false
976
989
 
977
- Naming/PredicateName:
990
+ Naming/PredicateMethod:
991
+ Enabled: false
992
+
993
+ Naming/PredicatePrefix:
978
994
  Enabled: false
979
995
 
980
996
  Naming/RescuedExceptionsVariableName:
@@ -1101,6 +1117,9 @@ Style/CollectionCompact:
1101
1117
  Style/CollectionMethods:
1102
1118
  Enabled: false
1103
1119
 
1120
+ Style/CollectionQuerying:
1121
+ Enabled: false
1122
+
1104
1123
  Style/ColonMethodCall:
1105
1124
  Enabled: true
1106
1125
 
@@ -1211,6 +1230,10 @@ Style/EmptyMethod:
1211
1230
  Enabled: true
1212
1231
  EnforcedStyle: expanded
1213
1232
 
1233
+ Style/EmptyStringInsideInterpolation:
1234
+ Enabled: true
1235
+ EnforcedStyle: trailing_conditional
1236
+
1214
1237
  Style/Encoding:
1215
1238
  Enabled: true
1216
1239
 
@@ -1604,6 +1627,9 @@ Style/RedundantArgument:
1604
1627
  Style/RedundantArrayConstructor:
1605
1628
  Enabled: true
1606
1629
 
1630
+ Style/RedundantArrayFlatten:
1631
+ Enabled: true
1632
+
1607
1633
  Style/RedundantAssignment:
1608
1634
  Enabled: true
1609
1635
 
@@ -2,6 +2,7 @@ module RubyLsp
2
2
  module Standard
3
3
  class WrapsBuiltinLspStandardizer
4
4
  include RubyLsp::Requests::Support::Formatter
5
+
5
6
  def initialize
6
7
  init!
7
8
  end
@@ -12,6 +12,7 @@ module Standard
12
12
 
13
13
  def puts_once(message)
14
14
  return if @puts_onces.include?(message)
15
+
15
16
  @puts_onces << message
16
17
  puts(message)
17
18
  end
@@ -21,6 +21,7 @@ module Standard
21
21
 
22
22
  def argv_value_for(argv, option_name)
23
23
  return unless (index = argv.index(option_name))
24
+
24
25
  argv[index + 1]
25
26
  end
26
27
  end
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.50.0")
2
+ VERSION = Gem::Version.new("1.51.0")
3
3
  end
data/standard.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ["lib"]
22
22
  spec.metadata["rubygems_mfa_required"] = "true"
23
23
 
24
- spec.add_dependency "rubocop", "~> 1.75.5"
24
+ spec.add_dependency "rubocop", "~> 1.80.2"
25
25
 
26
26
  spec.add_dependency "lint_roller", "~> 1.0"
27
27
  spec.add_dependency "standard-custom", "~> 1.0.0"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.50.0
4
+ version: 1.51.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-05-13 00:00:00.000000000 Z
10
+ date: 2025-09-09 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rubocop
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: 1.75.5
18
+ version: 1.80.2
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: 1.75.5
25
+ version: 1.80.2
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: lint_roller
28
28
  requirement: !ruby/object:Gem::Requirement