rubocop_todo_corrector 0.3.0 → 0.4.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: ff46eb10969e63064eaf439a4879103de5ea54ae8db44c7c185cb939e3d4b2fd
4
- data.tar.gz: d1b4762bf9bdf6c98fb76311c5389b0175f39434c0f0ccfe8dc8ea4dcbecc3c3
3
+ metadata.gz: c85c8d566f2b49425a572f879680331084e81e9d3ef8de784f01d76a02405ea2
4
+ data.tar.gz: b42c06c055c914dd5ec4c26147c9de35f77361b08b621d3dd415d9bbbe498408
5
5
  SHA512:
6
- metadata.gz: 6290910045e5aa18a0c7e5689949836f687fb4d7fcd765769450d5a4c33d63476b99d9f2687be6bac7720cf13cc777b400e913f2f41d17a3fefc866eb70d6829
7
- data.tar.gz: d739558dfa006d7110f36b9289505911cabbe9c500c00fb990781d04a9856a25db11910c1eae0fc9a8145e1e45955784b8a05f0706af710b106e4a35d5ba409a
6
+ metadata.gz: 30fe5e842703e0f9416d15fa5a11a36c8caf66481266381fcad1fcf422bb6b21632276119e3c442710e45a9728ca8c87c035883adb19d59a8a1c966f15d7f989
7
+ data.tar.gz: c8bbb8075412c6f784e39f73455371fabd593e2c3ca9409eb68abd683f54b4170aa46e94375c6f3c6db2cd5a4a72808cc7b8c6acd999e3131f7ba8efb36b155b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.4.0 - 2022-05-16
6
+
7
+ ### Fixed
8
+
9
+ - Fix misspell: `occured` -> `occurred`.
10
+
5
11
  ## 0.3.0 - 2022-05-15
6
12
 
7
13
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop_todo_corrector (0.3.0)
4
+ rubocop_todo_corrector (0.4.0)
5
5
  bundler
6
6
  thor
7
7
  yard
@@ -54,6 +54,7 @@ GEM
54
54
  webrick (~> 1.7.0)
55
55
 
56
56
  PLATFORMS
57
+ x86_64-darwin-21
57
58
  x86_64-linux
58
59
 
59
60
  DEPENDENCIES
data/README.md CHANGED
@@ -86,7 +86,7 @@ Usage:
86
86
  Options:
87
87
  [--mode=MODE]
88
88
  # Default: random
89
- # Possible values: first, last, least_occured, most_occured, random
89
+ # Possible values: first, last, least_occurred, most_occurred, random
90
90
 
91
91
  Output an auto-correctable Cop from .rubocop_todo.yml.
92
92
  ```
@@ -49,8 +49,8 @@ module RubocopTodoCorrector
49
49
  enum: %w[
50
50
  first
51
51
  last
52
- least_occured
53
- most_occured
52
+ least_occurred
53
+ most_occurred
54
54
  random
55
55
  ],
56
56
  type: :string
@@ -57,11 +57,11 @@ module RubocopTodoCorrector
57
57
  auto_correctable_cops.first
58
58
  when 'last'
59
59
  auto_correctable_cops.last
60
- when 'least_occured'
60
+ when 'least_occurred'
61
61
  auto_correctable_cops.min_by do |cop|
62
62
  cop[:offenses_count]
63
63
  end
64
- when 'most_occured'
64
+ when 'most_occurred'
65
65
  auto_correctable_cops.max_by do |cop|
66
66
  cop[:offenses_count]
67
67
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubocopTodoCorrector
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop_todo_corrector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura