standard 0.6.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: 9654797002b2853c22fb85ce8f30747664f186564b5903e187e9d8b9d443a31e
4
- data.tar.gz: 4f864cebb45664f60b3938d30d17f4ac7f0a04c06e54ebf327a04a4840b8d8e2
3
+ metadata.gz: 9f99a474a3bf98f6a36bff3caa65f2fc524932690b6742b707aeb63e08147546
4
+ data.tar.gz: 4d8d2e499196891d193110b75dea57fde03ff91a362ce6e9c1be9aa6db446d21
5
5
  SHA512:
6
- metadata.gz: 2d003fc55ed2bcc71dc36a71f002c72955c04eac552b3d16f4fb839a948b3bb28f65e3dd11018efb3bbb82a83cce35c4c8c8731413ea8d5161fe809cc9ea5ec4
7
- data.tar.gz: ec117bb9cb8fe46ef3728c870b9171d4c9d48b847b8fe75e26a52f5c957e7f87437636ceef9ccdacbbb9149e77320c261f0ba66c279deee25246895af34465aa
6
+ metadata.gz: 235b201a61bf99e8ec583abb102be67169fdae2083ef65af21f6d9c059dc6be603740b56ece05305fb44fc054c7d24e0f7607cbc40b1523f743e98e29b579efa
7
+ data.tar.gz: c2d3d28d58eed61973a457b93c02b852ce05422dc96e602163fde4bfa4710df3c3df1603681e1018e351b2a3f669b25b5f5f46e2a18e29a2611d3752c2e0ce89
@@ -1,5 +1,39 @@
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
+
12
+ ## 0.8.1
13
+
14
+ * Make it match semver
15
+
16
+ ## 0.8
17
+
18
+ * Update rubocop from 0.93.1 to [1.0.0](https://github.com/rubocop-hq/rubocop/releases/tag/v1.0.0)
19
+ * Update rubocop from 0.92 to
20
+ [0.93](https://github.com/rubocop-hq/rubocop/releases/tag/v0.93) to
21
+ [0.93.1](https://github.com/rubocop-hq/rubocop/releases/tag/v0.93.1) enabling:
22
+ * [`Style/ClassEqualityComparison`](https://github.com/rubocop-hq/rubocop/pull/8833)
23
+ * Disable `Performance/Sum` because #208 and the lack of actual auto-correcting is also causing more trouble
24
+
25
+ ## 0.7
26
+
27
+ * Update rubocop from 0.91.1 to
28
+ [0.92](https://github.com/rubocop-hq/rubocop/releases/tag/v0.92)
29
+
30
+ ## 0.6.2
31
+
32
+ * Update rubocop from 0.91 to
33
+ [0.91.1](https://github.com/rubocop-hq/rubocop/releases/tag/v0.91.1)
34
+ * Update rubocop-performance from 1.8.0 to 1.8.1:
35
+ * Enable `Performance/Sum`
36
+
3
37
  ## 0.6.1
4
38
 
5
39
  * Update Rubocop from
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (0.6.1)
5
- rubocop (~> 0.90)
6
- rubocop-performance (~> 1.8.0)
4
+ standard (0.9.0)
5
+ rubocop (= 1.2.0)
6
+ rubocop-performance (= 1.8.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -15,28 +15,29 @@ GEM
15
15
  method_source (1.0.0)
16
16
  minitest (5.14.2)
17
17
  parallel (1.19.2)
18
- parser (2.7.1.4)
18
+ parser (2.7.2.0)
19
19
  ast (~> 2.4.1)
20
20
  pry (0.13.1)
21
21
  coderay (~> 1.1)
22
22
  method_source (~> 1.0)
23
23
  rainbow (3.0.0)
24
24
  rake (13.0.1)
25
- regexp_parser (1.7.1)
25
+ regexp_parser (1.8.2)
26
26
  rexml (3.2.4)
27
- rubocop (0.91.0)
27
+ rubocop (1.2.0)
28
28
  parallel (~> 1.10)
29
- parser (>= 2.7.1.1)
29
+ parser (>= 2.7.1.5)
30
30
  rainbow (>= 2.2.2, < 4.0)
31
- regexp_parser (>= 1.7)
31
+ regexp_parser (>= 1.8)
32
32
  rexml
33
- rubocop-ast (>= 0.4.0, < 1.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 (0.4.1)
37
- parser (>= 2.7.1.4)
38
- rubocop-performance (1.8.0)
36
+ rubocop-ast (1.1.1)
37
+ parser (>= 2.7.1.5)
38
+ rubocop-performance (1.8.1)
39
39
  rubocop (>= 0.87.0)
40
+ rubocop-ast (>= 0.4.0)
40
41
  ruby-progressbar (1.10.1)
41
42
  simplecov (0.19.0)
42
43
  docile (~> 1.1)
data/README.md CHANGED
@@ -100,7 +100,7 @@ When you run Standard in the future it will ignore these files as if they lived
100
100
  `ignore` section in the `.standard.yml` file.
101
101
 
102
102
  As you refactor your existing project you can remove files from the list. You can
103
- also regenerate the todo file at anytime by re-running the above command.
103
+ also regenerate the todo file at any time by re-running the above command.
104
104
 
105
105
  ### Using with Rake
106
106
 
@@ -384,6 +384,7 @@ Maybe! Start by searching the repository to see if there's an existing issue ope
384
384
  the tool you're interested in. That aside, here are other known integrations aside
385
385
  from editor plugins:
386
386
 
387
+ * [Code Climate](https://github.com/testdouble/standard/wiki/CI:-Code-Climate)
387
388
  * [Pronto](https://github.com/julianrubisch/pronto-standardrb)
388
389
  * [Spring](https://github.com/lakim/spring-commands-standard)
389
390
  * [Guard](https://github.com/JodyVanden/guard-standardrb)
@@ -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
 
@@ -701,9 +704,6 @@ Performance/StartWith:
701
704
  Performance/StringReplacement:
702
705
  Enabled: true
703
706
 
704
- Performance/Sum:
705
- Enabled: false
706
-
707
707
  Performance/UnfreezeString:
708
708
  Enabled: true
709
709
 
@@ -769,6 +769,10 @@ Style/AndOr:
769
769
  Enabled: true
770
770
  EnforcedStyle: always
771
771
 
772
+ Style/ArgumentsForwarding:
773
+ Enabled: true
774
+ AllowOnlyRestArgument: true
775
+
772
776
  Style/ArrayJoin:
773
777
  Enabled: true
774
778
 
@@ -792,6 +796,9 @@ Style/ClassCheck:
792
796
  Enabled: true
793
797
  EnforcedStyle: is_a?
794
798
 
799
+ Style/ClassEqualityComparison:
800
+ Enabled: true
801
+
795
802
  Style/ClassMethods:
796
803
  Enabled: true
797
804
 
@@ -2,7 +2,3 @@ inherit_from: ./base.yml
2
2
 
3
3
  AllCops:
4
4
  TargetRubyVersion: 2.4 # The oldest supported
5
-
6
- Performance:
7
- Sum:
8
- Enabled: false
@@ -22,18 +22,21 @@ really the only one we'll need for releasing the gem to
22
22
  ## Release steps
23
23
 
24
24
  1. Make sure git is up to date and `bundle exec rake` exits cleanly
25
- 2. Bump the appropriate version segment in `lib/standard/version.rb` (basic
25
+ 2. If you upgraded a Rubocop dependency, be sure to lock it down in
26
+ `standard.gemspec`. Until Rubocop hits 1.0, we're going to stick to exact
27
+ release dependencies (e.g. "0.91.0" instead of "~> 0.91")
28
+ 3. Bump the appropriate version segment in `lib/standard/version.rb` (basic
26
29
  semantic versioning rules apply; if the release updates Rubocop, follow its
27
30
  version bump at a minimum—if rubocop saw minor bump, we'll also bump the
28
31
  minor version)
29
- 3. Run `bundle` so that Bundler writes this version to `Gemfile.lock`
30
- 4. Update `CHANGELOG.md` as exhaustively as you are able and set the top header
32
+ 4. Run `bundle` so that Bundler writes this version to `Gemfile.lock`
33
+ 5. Update `CHANGELOG.md` as exhaustively as you are able and set the top header
31
34
  to that of the new version
32
- 5. Commit `lib/standard/version.rb`, `Gemfile.lock`, and `CHANGELOG.md` together
35
+ 6. Commit `lib/standard/version.rb`, `Gemfile.lock`, and `CHANGELOG.md` together
33
36
  with the message equal to the new version (e.g. "0.42.1")
34
- 6. Finally, run `bundle exec rake release`, which will hopefully succeed
35
- 7. Provide your multi-factor-auth token when prompted to finish publishing the
37
+ 7. Finally, run `bundle exec rake release`, which will hopefully succeed
38
+ 8. Provide your multi-factor-auth token when prompted to finish publishing the
36
39
  gem
37
- 8. [Tweet](https://twitter.com) about your awesome new release! (Shameless
40
+ 9. [Tweet](https://twitter.com) about your awesome new release! (Shameless
38
41
  self-promotion is the most important part of open source software)
39
42
 
@@ -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.6.1")
2
+ VERSION = Gem::Version.new("0.9.0")
3
3
  end
@@ -19,8 +19,8 @@ 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", "~> 0.90"
23
- spec.add_dependency "rubocop-performance", "~> 1.8.0"
22
+ spec.add_dependency "rubocop", "1.2.0"
23
+ spec.add_dependency "rubocop-performance", "1.8.1"
24
24
 
25
25
  spec.add_development_dependency "bundler"
26
26
  spec.add_development_dependency "minitest", "~> 5.0"
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.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-09-17 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0.90'
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: '0.90'
26
+ version: 1.2.0
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.8.0
33
+ version: 1.8.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.8.0
40
+ version: 1.8.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement