standard 0.12.0 → 0.13.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: ece6905a02f43b8e9787ca829e9940f6cd811ce19cc5c73aaa29b39308e86de3
4
- data.tar.gz: 420fa134ef9a26d7ab7d6ce72cebb28ca951d03795e95fdf43072af4b5039848
3
+ metadata.gz: f0e6cc49d6d26e0bb428b7d05637a45b00ea6e0542f04a215a621ae5238c35dc
4
+ data.tar.gz: b7599f068adeff886b013330d72c2dd8fceb415ac6d53299fee208eec6c7b141
5
5
  SHA512:
6
- metadata.gz: 70f35192a65faf716fed5b62ebafd6c6de6e8d54e06e38a8d07bd071b2cff8ff4aab81b8cb9089fd7941ff14b19edf19a37b5468e1eb9eaa7a29e0ece6b925d5
7
- data.tar.gz: 00b5ed175cc6e8a47cee92b132dd1a9bbd32f1a2d21284bec0c07be75341eeedc6a44761b1f5f7978517ab4830704b5324df9c28b110371c81ed308589b7641a
6
+ metadata.gz: 5711e67885d2ed2167fc9ec61614a69397967cbe57f97d313973e17b0d932c822b4fc832e4159caec22a204ac4e4a8144b260bd8368ead6917f9429f8464ce41
7
+ data.tar.gz: 5f1b78ef4a3962a83bfae6b4593c42efc9cdd588da671e912ed66ff1f9d1bd3571cf05960198989405627211207aa4303f58dc173c8a650d37468d984d66ce3e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0
4
+
5
+ * Update rubocop from 1.7.0 to [1.10.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.10.0) enabling:
6
+ * [`Lint/AmbiguousAssignment`](https://github.com/rubocop-hq/rubocop/issues/9223)
7
+ * [`Style/HashExcept`](https://github.com/rubocop-hq/rubocop/pull/9283)
8
+ * [`Lint/DeprecatedConstants`](https://github.com/rubocop-hq/rubocop/pull/9324)
9
+
3
10
  ## 0.12.0
4
11
 
5
12
  * Update rubocop from 1.7.0 to [1.8.1](https://github.com/rubocop-hq/rubocop/releases/tag/v1.8.1)
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (0.12.0)
5
- rubocop (= 1.8.1)
4
+ standard (0.13.0)
5
+ rubocop (= 1.10.0)
6
6
  rubocop-performance (= 1.9.2)
7
7
 
8
8
  GEM
@@ -17,14 +17,14 @@ GEM
17
17
  parallel (1.20.1)
18
18
  parser (3.0.0.0)
19
19
  ast (~> 2.4.1)
20
- pry (0.13.1)
20
+ pry (0.14.0)
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.0.3)
26
26
  rexml (3.2.4)
27
- rubocop (1.8.1)
27
+ rubocop (1.10.0)
28
28
  parallel (~> 1.10)
29
29
  parser (>= 3.0.0.0)
30
30
  rainbow (>= 2.2.2, < 4.0)
data/config/base.yml CHANGED
@@ -329,6 +329,9 @@ Layout/TrailingWhitespace:
329
329
  Enabled: true
330
330
  AllowInHeredoc: true
331
331
 
332
+ Lint/AmbiguousAssignment:
333
+ Enabled: true
334
+
332
335
  Lint/AmbiguousOperator:
333
336
  Enabled: true
334
337
 
@@ -360,6 +363,9 @@ Lint/Debugger:
360
363
  Lint/DeprecatedClassMethods:
361
364
  Enabled: true
362
365
 
366
+ Lint/DeprecatedConstants:
367
+ Enabled: true
368
+
363
369
  Lint/DeprecatedOpenSSLConstant:
364
370
  Enabled: true
365
371
 
@@ -880,6 +886,9 @@ Style/GlobalVars:
880
886
  Enabled: true
881
887
  AllowedVariables: []
882
888
 
889
+ Style/HashExcept:
890
+ Enabled: true
891
+
883
892
  Style/HashSyntax:
884
893
  Enabled: true
885
894
  EnforcedStyle: ruby19_no_mixed_keys
data/config/ruby-2.5.yml CHANGED
@@ -1,4 +1,4 @@
1
- inherit_from: ./base.yml
1
+ inherit_from: ./ruby-2.7.yml
2
2
 
3
3
  AllCops:
4
4
  TargetRubyVersion: 2.5
@@ -0,0 +1,7 @@
1
+ inherit_from: ./base.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.7
5
+
6
+ Style/HashExcept:
7
+ Enabled: true
@@ -20,6 +20,8 @@ class Standard::CreatesConfigStore
20
20
  "ruby-2.3.yml"
21
21
  elsif desired_version < Gem::Version.new("2.6")
22
22
  "ruby-2.5.yml"
23
+ elsif desired_version < Gem::Version.new("3.0")
24
+ "ruby-2.7.yml"
23
25
  else
24
26
  "base.yml"
25
27
  end
@@ -28,7 +28,11 @@ module Standard
28
28
  def print_corrected_code_if_fixing_stdin(rubocop_options)
29
29
  return unless rubocop_options[:stdin] && rubocop_options[:auto_correct]
30
30
 
31
- puts "=" * 20
31
+ if rubocop_options[:stderr]
32
+ warn "=" * 20
33
+ else
34
+ puts "=" * 20
35
+ end
32
36
  print rubocop_options[:stdin]
33
37
  end
34
38
  end
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("0.12.0")
2
+ VERSION = Gem::Version.new("0.13.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.8.1"
22
+ spec.add_dependency "rubocop", "1.10.0"
23
23
  spec.add_dependency "rubocop-performance", "1.9.2"
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: 0.12.0
4
+ version: 0.13.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-01-29 00:00:00.000000000 Z
11
+ date: 2021-02-16 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.8.1
19
+ version: 1.10.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.8.1
26
+ version: 1.10.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -64,6 +64,7 @@ files:
64
64
  - config/ruby-2.2.yml
65
65
  - config/ruby-2.3.yml
66
66
  - config/ruby-2.5.yml
67
+ - config/ruby-2.7.yml
67
68
  - docs/RELEASE.md
68
69
  - exe/standardrb
69
70
  - lib/standard.rb