standard 0.8.1 → 0.9.0

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: bdafc85bb1387d3491c006a507b527d3831a5980520a918131bb242e899d3a35
4
- data.tar.gz: 4339051c4e2a9f268de90aa67a3de7bf2dbe3abbad8377b73ce1f471f747d210
3
+ metadata.gz: 9f99a474a3bf98f6a36bff3caa65f2fc524932690b6742b707aeb63e08147546
4
+ data.tar.gz: 4d8d2e499196891d193110b75dea57fde03ff91a362ce6e9c1be9aa6db446d21
5
5
  SHA512:
6
- metadata.gz: 3877c41ad4ee463801623eded88e7a715f521acd81bce6b2eb4de86353e379793c6262aec87c7c3034f507249da78a5712232d64d26a829a32bd1bb17d2ed72b
7
- data.tar.gz: 0c74aa040926c89a1587398c712c29943775c8f943113fbf347f79132116c5c237a67e40d8ca98d0c2be4bd059238d9b8c69088c4f6f964bb9a7362e3e1fb375
6
+ metadata.gz: 235b201a61bf99e8ec583abb102be67169fdae2083ef65af21f6d9c059dc6be603740b56ece05305fb44fc054c7d24e0f7607cbc40b1523f743e98e29b579efa
7
+ data.tar.gz: c2d3d28d58eed61973a457b93c02b852ce05422dc96e602163fde4bfa4710df3c3df1603681e1018e351b2a3f669b25b5f5f46e2a18e29a2611d3752c2e0ce89
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0
4
+
5
+ * Update rubocop from 1.0.0 to [1.2.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.2.0) enabling:
6
+ * [`Lint/DuplicateRegexpCharacterClassElement`](https://github.com/rubocop-hq/rubocop/pull/8896)
7
+ * [`Style/ArgumentsForwarding`](https://github.com/rubocop-hq/rubocop/pull/7646)
8
+ * Don't find offense in `Style/SemanticBlocks` when a top-level `rescue` is used
9
+ in a `do`/`end` functional block, fixing
10
+ [#205](https://github.com/testdouble/standard/issues/205)
11
+
3
12
  ## 0.8.1
4
13
 
5
14
  * Make it match semver
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (0.8.1)
5
- rubocop (= 1.0.0)
4
+ standard (0.9.0)
5
+ rubocop (= 1.2.0)
6
6
  rubocop-performance (= 1.8.1)
7
7
 
8
8
  GEM
@@ -24,16 +24,16 @@ GEM
24
24
  rake (13.0.1)
25
25
  regexp_parser (1.8.2)
26
26
  rexml (3.2.4)
27
- rubocop (1.0.0)
27
+ rubocop (1.2.0)
28
28
  parallel (~> 1.10)
29
29
  parser (>= 2.7.1.5)
30
30
  rainbow (>= 2.2.2, < 4.0)
31
31
  regexp_parser (>= 1.8)
32
32
  rexml
33
- rubocop-ast (>= 0.6.0)
33
+ rubocop-ast (>= 1.0.1)
34
34
  ruby-progressbar (~> 1.7)
35
35
  unicode-display_width (>= 1.4.0, < 2.0)
36
- rubocop-ast (1.0.0)
36
+ rubocop-ast (1.1.1)
37
37
  parser (>= 2.7.1.5)
38
38
  rubocop-performance (1.8.1)
39
39
  rubocop (>= 0.87.0)
@@ -372,6 +372,9 @@ Lint/DuplicateHashKey:
372
372
  Lint/DuplicateMethods:
373
373
  Enabled: true
374
374
 
375
+ Lint/DuplicateRegexpCharacterClassElement:
376
+ Enabled: true
377
+
375
378
  Lint/DuplicateRequire:
376
379
  Enabled: true
377
380
 
@@ -766,6 +769,10 @@ Style/AndOr:
766
769
  Enabled: true
767
770
  EnforcedStyle: always
768
771
 
772
+ Style/ArgumentsForwarding:
773
+ Enabled: true
774
+ AllowOnlyRestArgument: true
775
+
769
776
  Style/ArrayJoin:
770
777
  Enabled: true
771
778
 
@@ -18,7 +18,9 @@ module RuboCop::Cop
18
18
  end
19
19
 
20
20
  def on_block(node)
21
- return if ignored_node?(node) || proper_block_style?(node)
21
+ return if ignored_node?(node) ||
22
+ proper_block_style?(node) ||
23
+ (!node.braces? && rescue_child_block?(node))
22
24
 
23
25
  add_offense(node, location: :begin)
24
26
  end
@@ -118,7 +120,7 @@ module RuboCop::Cop
118
120
  end
119
121
 
120
122
  def rescue_child_block?(node)
121
- node.children.any?(&:rescue_type?)
123
+ node.children.any? { |node| node.rescue_type? || node.ensure_type? }
122
124
  end
123
125
 
124
126
  def non_parenthesized_keyword_args?(node)
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("0.8.1")
2
+ VERSION = Gem::Version.new("0.9.0")
3
3
  end
@@ -19,7 +19,7 @@ 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.0.0"
22
+ spec.add_dependency "rubocop", "1.2.0"
23
23
  spec.add_dependency "rubocop-performance", "1.8.1"
24
24
 
25
25
  spec.add_development_dependency "bundler"
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.8.1
4
+ version: 0.9.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: 2020-10-26 00:00:00.000000000 Z
11
+ date: 2020-11-06 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.0.0
19
+ version: 1.2.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.0.0
26
+ version: 1.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement