standard 1.42.0 → 1.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +5 -6
- data/CHANGELOG.md +8 -2
- data/Gemfile.lock +12 -12
- data/README.md +1 -0
- data/Rakefile +5 -2
- data/bin/rake +27 -0
- data/config/base.yml +19 -1
- data/config/ruby-1.9.yml +3 -0
- data/docs/RELEASE.md +3 -4
- data/docs/UPGRADING.md +4 -4
- data/lib/standard/version.rb +1 -1
- data/standard.gemspec +2 -2
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a63a20b7b80727310a27e1943a539b1981d88c2da2bf67ae4707488809069553
|
4
|
+
data.tar.gz: 8a4c8281e35dc0359c9400238c581a8c00f836528b852067d7293146153d7f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b5cac5e093cfbafceb8dce7d1f95163aa3cf76543a648715af26f15d084ea6d9a3c23fa7b221e4acd4f194cd87aed986b980573d591ffea291c3c0b77eef891
|
7
|
+
data.tar.gz: f0e69c6094538f45b2d79a7cbd5dab8d88ac5ab0202ce6a01b04e3997e8de33478ed46e75d1c694ff4c6359828a4ddbbc1dc5abf211a9378d970294b923a163e
|
data/.github/workflows/test.yml
CHANGED
@@ -12,15 +12,14 @@ on:
|
|
12
12
|
|
13
13
|
jobs:
|
14
14
|
test:
|
15
|
-
|
16
15
|
strategy:
|
17
16
|
matrix:
|
18
17
|
os: [ubuntu-latest]
|
19
18
|
ruby-version:
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
19
|
+
- "3.0"
|
20
|
+
- "3.1"
|
21
|
+
- "3.2"
|
22
|
+
- "3.3"
|
24
23
|
|
25
24
|
runs-on: ${{ matrix.os }}
|
26
25
|
|
@@ -32,4 +31,4 @@ jobs:
|
|
32
31
|
ruby-version: ${{ matrix.ruby-version }}
|
33
32
|
bundler-cache: true
|
34
33
|
- name: Run tests for Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
|
35
|
-
run: bundle config unset deployment &&
|
34
|
+
run: bundle config unset deployment && ./bin/rake
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## 1.43.0
|
4
|
+
|
5
|
+
* Updates rubocop to [1.69.1](https://github.com/rubocop/rubocop/tree/v1.69.1)
|
6
|
+
|
7
|
+
## 1.42.1
|
8
|
+
|
9
|
+
* Fixes a very noisy typo!
|
4
10
|
|
5
11
|
## 1.42.0
|
6
12
|
|
7
|
-
* Updates rubocop to [1.68.0]https://github.com/rubocop/rubocop/tree/v1.68.0)
|
13
|
+
* Updates rubocop to [1.68.0](https://github.com/rubocop/rubocop/tree/v1.68.0)
|
8
14
|
* Inherit from `RuboCop::Cop::Base` fixing deprecation warnings.
|
9
15
|
* Add new cops
|
10
16
|
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
standard (1.
|
4
|
+
standard (1.43.0)
|
5
5
|
language_server-protocol (~> 3.17.0.2)
|
6
6
|
lint_roller (~> 1.0)
|
7
|
-
rubocop (~> 1.
|
7
|
+
rubocop (~> 1.69.1)
|
8
8
|
standard-custom (~> 1.0.0)
|
9
|
-
standard-performance (~> 1.
|
9
|
+
standard-performance (~> 1.6)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
@@ -33,20 +33,20 @@ GEM
|
|
33
33
|
rake (13.0.6)
|
34
34
|
rbs (3.5.2)
|
35
35
|
logger
|
36
|
-
regexp_parser (2.
|
37
|
-
rubocop (1.
|
36
|
+
regexp_parser (2.9.3)
|
37
|
+
rubocop (1.69.1)
|
38
38
|
json (~> 2.3)
|
39
39
|
language_server-protocol (>= 3.17.0)
|
40
40
|
parallel (~> 1.10)
|
41
41
|
parser (>= 3.3.0.2)
|
42
42
|
rainbow (>= 2.2.2, < 4.0)
|
43
|
-
regexp_parser (>= 2.
|
44
|
-
rubocop-ast (>= 1.
|
43
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
44
|
+
rubocop-ast (>= 1.36.2, < 2.0)
|
45
45
|
ruby-progressbar (~> 1.7)
|
46
|
-
unicode-display_width (>= 2.4.0, <
|
47
|
-
rubocop-ast (1.
|
46
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
47
|
+
rubocop-ast (1.36.2)
|
48
48
|
parser (>= 3.3.1.0)
|
49
|
-
rubocop-performance (1.
|
49
|
+
rubocop-performance (1.23.0)
|
50
50
|
rubocop (>= 1.48.1, < 2.0)
|
51
51
|
rubocop-ast (>= 1.31.1, < 2.0)
|
52
52
|
ruby-lsp (0.17.7)
|
@@ -65,9 +65,9 @@ GEM
|
|
65
65
|
standard-custom (1.0.2)
|
66
66
|
lint_roller (~> 1.0)
|
67
67
|
rubocop (~> 1.50)
|
68
|
-
standard-performance (1.
|
68
|
+
standard-performance (1.6.0)
|
69
69
|
lint_roller (~> 1.1)
|
70
|
-
rubocop-performance (~> 1.
|
70
|
+
rubocop-performance (~> 1.23.0)
|
71
71
|
unicode-display_width (2.5.0)
|
72
72
|
|
73
73
|
PLATFORMS
|
data/README.md
CHANGED
@@ -160,6 +160,7 @@ We've added a number of editing guides for getting started:
|
|
160
160
|
- [emacs](https://www.flycheck.org/en/latest/languages.html#syntax-checker-ruby-standard)
|
161
161
|
- [Helix](https://github.com/helix-editor/helix/wiki/External-formatter-configuration#standardrb)
|
162
162
|
- [Atom](https://github.com/standardrb/standard/wiki/IDE:-Atom)
|
163
|
+
- [Nova](https://codeberg.org/edwardloveall/nova-standard)
|
163
164
|
|
164
165
|
If you'd like to help by creating a guide, please draft one [in an
|
165
166
|
issue](https://github.com/standardrb/standard/issues/new) and we'll get it
|
data/Rakefile
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
require "rake/clean"
|
2
3
|
require "rake/testtask"
|
3
4
|
require_relative "lib/standard/rake"
|
4
5
|
|
6
|
+
CLOBBER.include "*.gem"
|
7
|
+
|
8
|
+
task default: [:test, "standard:fix"]
|
9
|
+
|
5
10
|
Rake::TestTask.new(:test) do |t|
|
6
11
|
t.warning = false
|
7
12
|
t.test_files = FileList["test/**/*_test.rb"]
|
8
13
|
end
|
9
|
-
|
10
|
-
task default: [:test, "standard:fix"]
|
data/bin/rake
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
#
|
5
|
+
# This file was generated by Bundler.
|
6
|
+
#
|
7
|
+
# The application 'rake' is installed as part of a gem, and
|
8
|
+
# this file is here to facilitate running it.
|
9
|
+
#
|
10
|
+
|
11
|
+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
+
|
13
|
+
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
+
|
15
|
+
if File.file?(bundle_binstub)
|
16
|
+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
17
|
+
load(bundle_binstub)
|
18
|
+
else
|
19
|
+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
20
|
+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
require "rubygems"
|
25
|
+
require "bundler/setup"
|
26
|
+
|
27
|
+
load Gem.bin_path("rake", "rake")
|
data/config/base.yml
CHANGED
@@ -570,6 +570,9 @@ Lint/FormatParameterMismatch:
|
|
570
570
|
Lint/HashCompareByIdentity:
|
571
571
|
Enabled: false
|
572
572
|
|
573
|
+
Lint/HashNewWithKeywordArgumentsAsDefault:
|
574
|
+
Enabled: true
|
575
|
+
|
573
576
|
Lint/HeredocMethodCallPosition:
|
574
577
|
Enabled: false
|
575
578
|
|
@@ -653,6 +656,9 @@ Lint/NumberConversion:
|
|
653
656
|
Lint/NumberedParameterAssignment:
|
654
657
|
Enabled: true
|
655
658
|
|
659
|
+
Lint/NumericOperationWithConstantResult:
|
660
|
+
Enabled: false
|
661
|
+
|
656
662
|
Lint/OrAssignmentToConstant:
|
657
663
|
Enabled: true
|
658
664
|
|
@@ -837,6 +843,9 @@ Lint/UselessAccessModifier:
|
|
837
843
|
Lint/UselessAssignment:
|
838
844
|
Enabled: true
|
839
845
|
|
846
|
+
Lint/UselessDefined:
|
847
|
+
Enabled: true
|
848
|
+
|
840
849
|
Lint/UselessElseWithoutRescue:
|
841
850
|
Enabled: false
|
842
851
|
|
@@ -1119,6 +1128,9 @@ Style/DateTime:
|
|
1119
1128
|
Style/DefWithParentheses:
|
1120
1129
|
Enabled: true
|
1121
1130
|
|
1131
|
+
Style/DigChain:
|
1132
|
+
Enabled: true
|
1133
|
+
|
1122
1134
|
Style/Dir:
|
1123
1135
|
Enabled: true
|
1124
1136
|
|
@@ -1208,9 +1220,15 @@ Style/FetchEnvVar:
|
|
1208
1220
|
Style/FileEmpty:
|
1209
1221
|
Enabled: false
|
1210
1222
|
|
1223
|
+
Style/FileNull:
|
1224
|
+
Enabled: true
|
1225
|
+
|
1211
1226
|
Style/FileRead:
|
1212
1227
|
Enabled: true
|
1213
1228
|
|
1229
|
+
Style/FileTouch:
|
1230
|
+
Enabled: false
|
1231
|
+
|
1214
1232
|
Style/FileWrite:
|
1215
1233
|
Enabled: true
|
1216
1234
|
|
@@ -1674,7 +1692,7 @@ Style/SafeNavigation:
|
|
1674
1692
|
- try!
|
1675
1693
|
|
1676
1694
|
Style/SafeNavigationChainLength:
|
1677
|
-
|
1695
|
+
Enabled: false
|
1678
1696
|
|
1679
1697
|
Style/Sample:
|
1680
1698
|
Enabled: true
|
data/config/ruby-1.9.yml
CHANGED
data/docs/RELEASE.md
CHANGED
@@ -15,13 +15,13 @@ rake install:local # Build and install standard-x.x.x.gem into system gems wi
|
|
15
15
|
rake release[remote] # Create tag vx.x.x and build and push standard-0.5.2.gem to rubygems.org
|
16
16
|
```
|
17
17
|
|
18
|
-
Most of these commands are depended on (read: run by)
|
18
|
+
Most of these commands are depended on (read: run by) `./bin/rake release`, which is
|
19
19
|
really the only one we'll need for releasing the gem to
|
20
20
|
[Rubygems.org](https://rubygems.org/gems/standard).
|
21
21
|
|
22
22
|
## Release steps
|
23
23
|
|
24
|
-
1. Make sure git is up to date and
|
24
|
+
1. Make sure git is up to date and `./bin/rake` exits cleanly
|
25
25
|
1. If you upgraded a Rubocop dependency, be sure to lock it down in
|
26
26
|
`standard.gemspec`. To avoid being broken transitively, we stick to exact
|
27
27
|
release dependencies (e.g. "0.91.0" instead of "~> 0.91")
|
@@ -34,9 +34,8 @@ really the only one we'll need for releasing the gem to
|
|
34
34
|
1. Run `bundle` so that Bundler writes this version to `Gemfile.lock`
|
35
35
|
1. Commit `lib/standard/version.rb`, `Gemfile.lock`, and `CHANGELOG.md` together
|
36
36
|
with the message equal to the new version (e.g. "0.42.1")
|
37
|
-
1. Finally, run
|
37
|
+
1. Finally, run `./bin/rake release`, which will hopefully succeed
|
38
38
|
1. Provide your multi-factor-auth token when prompted to finish publishing the
|
39
39
|
gem
|
40
40
|
1. [Tweet](https://twitter.com) about your awesome new release! (Shameless
|
41
41
|
self-promotion is the most important part of open source software)
|
42
|
-
|
data/docs/UPGRADING.md
CHANGED
@@ -11,21 +11,21 @@ The official standard plug-ins that are included in standard are:
|
|
11
11
|
|
12
12
|
1. Update Rubocop plugin in the gemspec file and gem file.
|
13
13
|
1. Keep standard in the gem file up-to-date. This will bring any testing utilities in standard into the plug-in repository.
|
14
|
-
1. Run
|
14
|
+
1. Run `./bin/rake` to run the tests
|
15
15
|
1. Configure any cops that need to be configured so that the tests pass
|
16
16
|
1. Update the change log to the best of your ability and title it as unreleased
|
17
17
|
1. Make your commit for these updates and push to the main branch
|
18
18
|
1. Update the version in version.rb and update the version in the Changelog replacing the word “Unreleased”
|
19
19
|
1. Run bundle to write the new version number to the lock file
|
20
|
-
1. Run
|
20
|
+
1. Run `./bin/rake release` to release the gem to RubyGems and create the version git tag. Push the tag to GitHub.
|
21
21
|
|
22
22
|
## Updating Standard
|
23
23
|
|
24
24
|
1. Update Rubocop as well as Standard Performance in the gemspec file and gem file.
|
25
|
-
1. Run
|
25
|
+
1. Run `./bin/rake` to run the tests
|
26
26
|
1. Configure any cops that need to be configured so that the tests pass
|
27
27
|
1. Update the change log to the best of your ability and title it as unreleased
|
28
28
|
1. Make your commit for these updates and push to the main branch
|
29
29
|
1. Update the version in version.rb and update the version in the Changelog replacing the word “Unreleased”
|
30
30
|
1. Run bundle to write the new version number to the lock file
|
31
|
-
1. Run
|
31
|
+
1. Run `./bin/rake` to release the gem to RubyGems and create the version git tag. Push the tag to GitHub.
|
data/lib/standard/version.rb
CHANGED
data/standard.gemspec
CHANGED
@@ -21,11 +21,11 @@ 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.
|
24
|
+
spec.add_dependency "rubocop", "~> 1.69.1"
|
25
25
|
|
26
26
|
spec.add_dependency "lint_roller", "~> 1.0"
|
27
27
|
spec.add_dependency "standard-custom", "~> 1.0.0"
|
28
|
-
spec.add_dependency "standard-performance", "~> 1.
|
28
|
+
spec.add_dependency "standard-performance", "~> 1.6"
|
29
29
|
|
30
30
|
# not semver: first three are lsp protocol version, last is patch
|
31
31
|
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.
|
4
|
+
version: 1.43.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: 2024-
|
11
|
+
date: 2024-12-10 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: 1.
|
19
|
+
version: 1.69.1
|
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.
|
26
|
+
version: 1.69.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: lint_roller
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.6'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
68
|
+
version: '1.6'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: language_server-protocol
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- README.md
|
101
101
|
- Rakefile
|
102
102
|
- bin/console
|
103
|
+
- bin/rake
|
103
104
|
- bin/run
|
104
105
|
- bin/setup
|
105
106
|
- config/base.yml
|
@@ -188,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
189
|
- !ruby/object:Gem::Version
|
189
190
|
version: '0'
|
190
191
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
192
|
+
rubygems_version: 3.4.10
|
192
193
|
signing_key:
|
193
194
|
specification_version: 4
|
194
195
|
summary: Ruby Style Guide, with linter & automatic code fixer
|