standard 1.5.0 → 1.6.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: 981607eacda9cd109ef6934f2aec50efef936e8c2f8c999e0ff2d09a2d71590a
4
- data.tar.gz: 45263d2025da0a33aed7a6fb213942601f4b3e4cf542cd0a44de8b1f32df9cc3
3
+ metadata.gz: 4c7b13ec3c3ce7da4b6ecd6e2c46e563decb8de9eb48b82631c8385853f9564d
4
+ data.tar.gz: f6a2c1993b7e523ba1ed662080db51ea4ee7640156d682262bc07d3b3d88a2e8
5
5
  SHA512:
6
- metadata.gz: 40c29eed2f16d6698b779672977ee76ddc895463c92aaedc185e70263a41569e9ab7c1f3fddc5a7f3a84cb1ab4be3ca695939b8a5ed1df9a6bb427459af9d83b
7
- data.tar.gz: f43c126937613621c350a47583bd1f3c2c71a79d6bbd9f1524a1bb03abc9318ae23356d4425cfa36610cbb3a1f546c340dbf82b0707ef5f02780c38abd630ac1
6
+ metadata.gz: cc07fd96f1b79f272140805c650035092402113a1bcbe28150b5786dfa7edb7b36f23f87679edd82ed3ad32a315835d408e93ba98a1ddfefc4ea007bdb56f792
7
+ data.tar.gz: 6c484f444face8fd603be92bab550c67584842050414c5bf1d7ee4a962c5bf0dba4afeb1eacbc33e1a1f34192480acb32ec959cea249ae4e83b5b3430dc14f3b
@@ -12,7 +12,7 @@ jobs:
12
12
  strategy:
13
13
  matrix:
14
14
  os: [ ubuntu-latest ]
15
- ruby-version: [2.5, 2.6, 2.7, 3.0]
15
+ ruby-version: [2.5, 2.6, 2.7, 3.0, 3.1]
16
16
 
17
17
  runs-on: ${{ matrix.os }}
18
18
 
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.6.0
4
+
5
+ * Update rubocop-performance from 1.12.0 to [1.13.1](https://github.com/rubocop/rubocop-performance/tag/v1.13.1)
6
+ * Update rubocop from 1.23.0 to [1.24.1](https://github.com/rubocop/rubocop/tag/v1.24.1)
7
+
3
8
  ## 1.5.0
4
9
 
5
10
  * Update rubocop-performance from 1.11.5 to [1.12.0](https://github.com/rubocop/rubocop-performance/tag/v1.12.0)
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.5.0)
5
- rubocop (= 1.23.0)
6
- rubocop-performance (= 1.12.0)
4
+ standard (1.6.0)
5
+ rubocop (= 1.24.1)
6
+ rubocop-performance (= 1.13.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -13,29 +13,29 @@ GEM
13
13
  docile (1.4.0)
14
14
  gimme (0.5.0)
15
15
  method_source (1.0.0)
16
- minitest (5.14.4)
16
+ minitest (5.15.0)
17
17
  parallel (1.21.0)
18
- parser (3.0.3.1)
18
+ parser (3.1.0.0)
19
19
  ast (~> 2.4.1)
20
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.6)
25
- regexp_parser (2.1.1)
25
+ regexp_parser (2.2.0)
26
26
  rexml (3.2.5)
27
- rubocop (1.23.0)
27
+ rubocop (1.24.1)
28
28
  parallel (~> 1.10)
29
29
  parser (>= 3.0.0.0)
30
30
  rainbow (>= 2.2.2, < 4.0)
31
31
  regexp_parser (>= 1.8, < 3.0)
32
32
  rexml
33
- rubocop-ast (>= 1.12.0, < 2.0)
33
+ rubocop-ast (>= 1.15.1, < 2.0)
34
34
  ruby-progressbar (~> 1.7)
35
35
  unicode-display_width (>= 1.4.0, < 3.0)
36
- rubocop-ast (1.13.0)
36
+ rubocop-ast (1.15.1)
37
37
  parser (>= 3.0.1.1)
38
- rubocop-performance (1.12.0)
38
+ rubocop-performance (1.13.1)
39
39
  rubocop (>= 1.7.0, < 2.0)
40
40
  rubocop-ast (>= 0.4.0)
41
41
  ruby-progressbar (1.11.0)
@@ -61,4 +61,4 @@ DEPENDENCIES
61
61
  standard!
62
62
 
63
63
  BUNDLED WITH
64
- 2.2.22
64
+ 2.3.4
data/README.md CHANGED
@@ -193,7 +193,6 @@ project healthier.
193
193
  ## Usage via rubocop
194
194
 
195
195
  If you only want to use the rules and not the cli (to keep current IDE/tooling/workflow support).
196
- It needs to repeat `AllCops` because of a [rubocop issue](https://github.com/rubocop/rubocop/issues/10175).
197
196
  Change your `.rubocop.yml` to:
198
197
 
199
198
  ```yaml
@@ -201,9 +200,6 @@ require: standard
201
200
 
202
201
  inherit_gem:
203
202
  standard: config/base.yml
204
-
205
- AllCops:
206
- DisabledByDefault: true
207
203
  ```
208
204
 
209
205
  ## Who uses Ruby Standard Style?
@@ -213,26 +209,27 @@ familiar](https://github.com/standard/standard#who-uses-javascript-standard-styl
213
209
  if you've used StandardJS.)
214
210
 
215
211
  * [Test Double](https://testdouble.com/agency)
212
+ * [Amazon Web Services](https://aws.amazon.com/)
213
+ * [Babylist](https://www.babylist.com/)
214
+ * [Brand New Box](https://brandnewbox.com)
215
+ * [Brave Software](https://github.com/brave-intl/publishers)
216
216
  * [Collective Idea](https://collectiveidea.com/)
217
217
  * [Culture Foundry](https://www.culturefoundry.com/)
218
+ * [Envoy](https://www.envoy.com)
218
219
  * [Evil Martians](https://evilmartians.com)
219
- * [Rebase Interactive](https://www.rebaseinteractive.com/)
220
220
  * [Hashrocket](https://hashrocket.com)
221
- * [Brand New Box](https://brandnewbox.com)
222
- * [Monterail](https://www.monterail.com)
223
- * [Level UP Solutions](https://levups.com)
224
221
  * [Honeybadger](https://www.honeybadger.io)
225
- * [Amazon Web Services](https://aws.amazon.com/)
226
- * [Envoy](https://www.envoy.com)
227
- * [myRent](https://www.myrent.co.nz)
228
- * [Renuo](https://www.renuo.ch/)
229
222
  * [JetThoughts](https://www.jetthoughts.com/)
223
+ * [Level UP Solutions](https://levups.com)
224
+ * [Monterail](https://www.monterail.com)
225
+ * [myRent](https://www.myrent.co.nz)
230
226
  * [Oyster](https://www.oysterhr.com/)
227
+ * [Planet Argon](https://www.planetargon.com/)
231
228
  * [Podia](https://www.podia.com/)
229
+ * [Rebase Interactive](https://www.rebaseinteractive.com/)
230
+ * [Renuo](https://www.renuo.ch/)
232
231
  * [RubyCI](https://ruby.ci)
233
232
  * [thoughtbot](https://thoughtbot.com/)
234
- * [Planet Argon](https://www.planetargon.com/)
235
- * [Brave Software](https://github.com/brave-intl/publishers)
236
233
  * And that's about it so far!
237
234
 
238
235
  If your team starts using Standard, [send a pull
data/config/base.yml CHANGED
@@ -801,7 +801,7 @@ Lint/Void:
801
801
  CheckForMethodsWithNoSideEffects: false
802
802
 
803
803
  Lint/IncompatibleIoSelectWithFiberScheduler:
804
- Enabled: false
804
+ Enabled: true
805
805
 
806
806
  Lint/RequireRelativeSelfPath:
807
807
  Enabled: true
@@ -896,6 +896,9 @@ Naming/VariableName:
896
896
  Naming/VariableNumber:
897
897
  Enabled: false
898
898
 
899
+ Naming/BlockForwarding:
900
+ Enabled: false
901
+
899
902
  Performance/AncestorsInclude:
900
903
  Enabled: false
901
904
 
@@ -1045,6 +1048,9 @@ Performance/UriDefaultParser:
1045
1048
  Performance/ConcurrentMonotonicTime:
1046
1049
  Enabled: true
1047
1050
 
1051
+ Performance/StringIdentifierArgument:
1052
+ Enabled: true
1053
+
1048
1054
  Security/Eval:
1049
1055
  Enabled: true
1050
1056
 
@@ -1824,3 +1830,11 @@ Style/SelectByRegexp:
1824
1830
  Style/OpenStructUse:
1825
1831
  Enabled: false
1826
1832
 
1833
+ Style/MapToHash:
1834
+ Enabled: false
1835
+
1836
+ Style/FileWrite:
1837
+ Enabled: true
1838
+
1839
+ Style/FileRead:
1840
+ Enabled: true
data/config/ruby-1.8.yml CHANGED
@@ -5,3 +5,9 @@ Style/HashSyntax:
5
5
 
6
6
  Style/Lambda:
7
7
  Enabled: false
8
+
9
+ Style/FileWrite:
10
+ Enabled: false
11
+
12
+ Style/FileRead:
13
+ Enabled: false
@@ -0,0 +1,13 @@
1
+ inherit_from: ./base.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 3.0
5
+
6
+ Style/HashExcept:
7
+ Enabled: true
8
+
9
+ Naming/BlockForwarding:
10
+ Enabled: false
11
+
12
+ Naming/BlockForwarding:
13
+ Enabled: false
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.5.0")
2
+ VERSION = Gem::Version.new("1.6.0")
3
3
  end
data/standard.gemspec CHANGED
@@ -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.23.0"
23
- spec.add_dependency "rubocop-performance", "1.12.0"
22
+ spec.add_dependency "rubocop", "1.24.1"
23
+ spec.add_dependency "rubocop-performance", "1.13.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.5.0
4
+ version: 1.6.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-12-02 00:00:00.000000000 Z
11
+ date: 2022-01-05 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.23.0
19
+ version: 1.24.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.23.0
26
+ version: 1.24.1
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.12.0
33
+ version: 1.13.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.12.0
40
+ version: 1.13.1
41
41
  description:
42
42
  email:
43
43
  - searls@gmail.com
@@ -68,6 +68,7 @@ files:
68
68
  - config/ruby-2.5.yml
69
69
  - config/ruby-2.6.yml
70
70
  - config/ruby-2.7.yml
71
+ - config/ruby-3.0.yml
71
72
  - docs/RELEASE.md
72
73
  - exe/standardrb
73
74
  - lib/standard.rb
@@ -112,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
113
  - !ruby/object:Gem::Version
113
114
  version: '0'
114
115
  requirements: []
115
- rubygems_version: 3.2.15
116
+ rubygems_version: 3.2.22
116
117
  signing_key:
117
118
  specification_version: 4
118
119
  summary: Ruby Style Guide, with linter & automatic code fixer