nxt_cop 1.1.1 → 1.2.1

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: 6112111fba4374f2a6b3e77138ca365affbcae5970e6f7a92810686afe2b48f4
4
- data.tar.gz: 6de5fe935225f782701848106935879661176c05268c556eca5839382c4e5180
3
+ metadata.gz: 78af6281cb547ff41b08a36a19955bc105d26d77de18cabc30e3f7bcbac30925
4
+ data.tar.gz: 0f34a2c51945d1178a6a345661dec279bee3f1eb6fff58f24b54f31b294f2c0d
5
5
  SHA512:
6
- metadata.gz: 1905c5002d100702f6df402b5c1d6e05f8c05e5c88638179148c4affbf7699b6add7c3fa4d5cab2efc7cf2ae1560c4308cdcec78b7716051277b8e1f77edd432
7
- data.tar.gz: ffdd34e5872c47f2f50d39109556164ba04e760a949cc2c06ac735e1f8f56c7871726798fb8b9f5f4cccacacac62586e4dadd7a437014b60fca7782e91110b7e
6
+ metadata.gz: 417325d56c7ca90d9d795b28e678c1dd82d51b506d6d1aed547a7aabc1617e64747a252d4c8d854d0a53a1ebe21e0d57d8cb9ed4049fc39206bf1a5b78241536
7
+ data.tar.gz: 4145773f53dc203e9043da35f451d2dc77a5f17053c5c65581db58dbb6c15d70c4c0e5aacfde9b41c49cb69f64481ae61e8f4fbc8844131d2775c2f4a9f3eadc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # v1.2.1 2023-08-23
2
+ ## What's Changed
3
+ * Add `Lint/MixedCaseRange`
4
+ * Add `Lint/RedundantRegexpQuantifiers`
5
+
6
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.2.0...v1.2.1
7
+
8
+ # v1.2.0 2023-08-23
9
+ ## What's Changed
10
+ Bumped dependencies version
11
+
12
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.1.1...v1.2.0
13
+
1
14
  # v1.1.1 2023-05-23
2
15
  ## What's Changed
3
16
  * Add `Lint/DuplicateMatchPattern`
data/Gemfile.lock CHANGED
@@ -1,54 +1,60 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_cop (1.1.1)
5
- rubocop (~> 1.51.0)
4
+ nxt_cop (1.2.1)
5
+ rubocop (~> 1.56.1)
6
6
  rubocop-rails (~> 2.8)
7
7
  rubocop-rspec (~> 2.12)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (7.0.4.3)
12
+ activesupport (7.0.7.2)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
16
16
  tzinfo (~> 2.0)
17
17
  ast (2.4.2)
18
+ base64 (0.1.1)
18
19
  concurrent-ruby (1.2.2)
19
- i18n (1.13.0)
20
+ i18n (1.14.1)
20
21
  concurrent-ruby (~> 1.0)
21
22
  json (2.6.3)
22
- minitest (5.18.0)
23
+ language_server-protocol (3.17.0.3)
24
+ minitest (5.19.0)
23
25
  parallel (1.23.0)
24
- parser (3.2.2.1)
26
+ parser (3.2.2.3)
25
27
  ast (~> 2.4.1)
26
- rack (3.0.7)
28
+ racc
29
+ racc (1.7.1)
30
+ rack (3.0.8)
27
31
  rainbow (3.1.1)
28
32
  rake (13.0.6)
29
- regexp_parser (2.8.0)
30
- rexml (3.2.5)
31
- rubocop (1.51.0)
33
+ regexp_parser (2.8.1)
34
+ rexml (3.2.6)
35
+ rubocop (1.56.1)
36
+ base64 (~> 0.1.1)
32
37
  json (~> 2.3)
38
+ language_server-protocol (>= 3.17.0)
33
39
  parallel (~> 1.10)
34
- parser (>= 3.2.0.0)
40
+ parser (>= 3.2.2.3)
35
41
  rainbow (>= 2.2.2, < 4.0)
36
42
  regexp_parser (>= 1.8, < 3.0)
37
43
  rexml (>= 3.2.5, < 4.0)
38
- rubocop-ast (>= 1.28.0, < 2.0)
44
+ rubocop-ast (>= 1.28.1, < 2.0)
39
45
  ruby-progressbar (~> 1.7)
40
46
  unicode-display_width (>= 2.4.0, < 3.0)
41
- rubocop-ast (1.28.1)
47
+ rubocop-ast (1.29.0)
42
48
  parser (>= 3.2.1.0)
43
49
  rubocop-capybara (2.18.0)
44
50
  rubocop (~> 1.41)
45
51
  rubocop-factory_bot (2.23.1)
46
52
  rubocop (~> 1.33)
47
- rubocop-rails (2.19.1)
53
+ rubocop-rails (2.20.2)
48
54
  activesupport (>= 4.2.0)
49
55
  rack (>= 1.1)
50
56
  rubocop (>= 1.33.0, < 2.0)
51
- rubocop-rspec (2.22.0)
57
+ rubocop-rspec (2.23.2)
52
58
  rubocop (~> 1.33)
53
59
  rubocop-capybara (~> 2.17)
54
60
  rubocop-factory_bot (~> 2.22)
data/README.md CHANGED
@@ -64,7 +64,7 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
64
64
  To install this gem onto your local machine, run `bundle exec rake install`.
65
65
 
66
66
  ## Release a new version
67
-
67
+ ### Setup credentials
68
68
  ```shell
69
69
  bundle config set gem.push_key rubygems
70
70
  ```
@@ -75,7 +75,16 @@ Add to `~/.gem/credentials` (create if it doesn't exist):
75
75
  :rubygems: <your Rubygems API key>
76
76
  ```
77
77
 
78
- To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
78
+ ### Release process
79
+ - Merge all Depfu updates
80
+ - Run `bundle install` to update dependencies
81
+ - Run `rubocop` to see if new rules were added
82
+ - If yes, add them to `default.yml` to prevent "New rules" warning
83
+ - Update the version number in `version.rb`
84
+ - Update the `CHANGELOG.md`
85
+ - Open the PR, merge everything to `main`
86
+
87
+ Once PR is merged, switch to main and run `bundle exec rake release` which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
79
88
 
80
89
  ## Contributing
81
90
 
data/default.yml CHANGED
@@ -242,9 +242,15 @@ Lint/ToEnumArguments:
242
242
  Enabled: false
243
243
  Lint/UselessRuby2Keywords:
244
244
  Enabled: false
245
+
246
+ # Since we don't have all cops enabled by default we have to add every new cop explicitly
245
247
  Lint/DuplicateMagicComment:
246
248
  Enabled: true
247
249
  Lint/UselessRescue:
248
250
  Enabled: false
249
251
  Lint/DuplicateMatchPattern:
250
252
  Enabled: true
253
+ Lint/MixedCaseRange:
254
+ Enabled: true
255
+ Lint/RedundantRegexpQuantifiers:
256
+ Enabled: true
@@ -1,3 +1,3 @@
1
1
  module NxtCop
2
- VERSION = '1.1.1'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
data/nxt_cop.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
33
 
34
- spec.add_dependency 'rubocop', '~> 1.51.0'
34
+ spec.add_dependency 'rubocop', '~> 1.56.1'
35
35
  spec.add_dependency 'rubocop-rails', '~> 2.8'
36
36
  spec.add_dependency 'rubocop-rspec', '~> 2.12'
37
37
  spec.add_development_dependency 'bundler', '~> 2.1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nxt_cop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Livingstone
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2023-08-24 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.51.0
19
+ version: 1.56.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.51.0
26
+ version: 1.56.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rails
29
29
  requirement: !ruby/object:Gem::Requirement