nxt_cop 1.2.0 → 1.3.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: 1ac5de6fd28dbc39bae08541c1b0cefeac69260db7b2d6ff1a30f45cf90c13e3
4
- data.tar.gz: b2f3746245e5f2151b78dc61a1d9296b59c555ea3ea0ca3203a856c7f22bf6ae
3
+ metadata.gz: c9cbb2bc281782ecc8344596723250c60a347e54756fb8ab3e901903fce85437
4
+ data.tar.gz: 1ed23e495e6d4eb4287e58115c442c62a497d8b300db00e41b8d2b5633e7e9cb
5
5
  SHA512:
6
- metadata.gz: e64342f7d61a9bfe670a1ba63ad5b3e57c127e467bb67526d9301d3450131049a33ecfcaf8e7962cfb923982760238dc59962b9b5cdbd136a26ccc6451f62173
7
- data.tar.gz: 95f5617edce9fcdef32299d5ea997874ab264c80c23209cb1d67bf5ffbe37d4b3f27ab472cd3735ca3229578ee474b9471500d7562c143444722342fc76653a7
6
+ metadata.gz: 36b72e877b2d70bc2a51075442e269801cc059e19113948b592e7d6a94c95df5306963175bb06257e7b79843bc15367b53b2d001204178587a93adce73b953d6
7
+ data.tar.gz: aceeda13120fa2354923c432daa796c4eb4ed9675a270a150d984d76408a41c8aa6bce21e23ef881032643a13c4816a65377aa0e8caa543e14a0bb54c571c999
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ # v1.3.0 2023-09-22
2
+ ## What's Changed
3
+ * `inherit_mode` was added to `default.yml`
4
+
5
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.2.1...v1.3.0
6
+
7
+ # v1.2.1 2023-08-23
8
+ ## What's Changed
9
+ * Add `Lint/MixedCaseRange`
10
+ * Add `Lint/RedundantRegexpQuantifiers`
11
+
12
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.2.0...v1.2.1
13
+
1
14
  # v1.2.0 2023-08-23
2
15
  ## What's Changed
3
16
  Bumped dependencies version
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_cop (1.2.0)
4
+ nxt_cop (1.3.0)
5
5
  rubocop (~> 1.56.1)
6
6
  rubocop-rails (~> 2.8)
7
7
  rubocop-rspec (~> 2.12)
@@ -21,7 +21,7 @@ GEM
21
21
  concurrent-ruby (~> 1.0)
22
22
  json (2.6.3)
23
23
  language_server-protocol (3.17.0.3)
24
- minitest (5.19.0)
24
+ minitest (5.20.0)
25
25
  parallel (1.23.0)
26
26
  parser (3.2.2.3)
27
27
  ast (~> 2.4.1)
@@ -32,7 +32,7 @@ GEM
32
32
  rake (13.0.6)
33
33
  regexp_parser (2.8.1)
34
34
  rexml (3.2.6)
35
- rubocop (1.56.1)
35
+ rubocop (1.56.3)
36
36
  base64 (~> 0.1.1)
37
37
  json (~> 2.3)
38
38
  language_server-protocol (>= 3.17.0)
@@ -46,18 +46,15 @@ GEM
46
46
  unicode-display_width (>= 2.4.0, < 3.0)
47
47
  rubocop-ast (1.29.0)
48
48
  parser (>= 3.2.1.0)
49
- rubocop-capybara (2.18.0)
49
+ rubocop-capybara (2.17.1)
50
50
  rubocop (~> 1.41)
51
- rubocop-factory_bot (2.23.1)
52
- rubocop (~> 1.33)
53
- rubocop-rails (2.20.2)
51
+ rubocop-rails (2.18.0)
54
52
  activesupport (>= 4.2.0)
55
53
  rack (>= 1.1)
56
54
  rubocop (>= 1.33.0, < 2.0)
57
- rubocop-rspec (2.23.2)
55
+ rubocop-rspec (2.19.0)
58
56
  rubocop (~> 1.33)
59
57
  rubocop-capybara (~> 2.17)
60
- rubocop-factory_bot (~> 2.22)
61
58
  ruby-progressbar (1.13.0)
62
59
  tzinfo (2.0.6)
63
60
  concurrent-ruby (~> 1.0)
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
@@ -1,6 +1,12 @@
1
1
  require:
2
2
  - rubocop-rails
3
3
  - rubocop-rspec
4
+
5
+ inherit_mode:
6
+ merge:
7
+ - Exclude
8
+ - Include
9
+
4
10
  AllCops:
5
11
  Exclude:
6
12
  - bin/guard
@@ -242,9 +248,15 @@ Lint/ToEnumArguments:
242
248
  Enabled: false
243
249
  Lint/UselessRuby2Keywords:
244
250
  Enabled: false
251
+
252
+ # Since we don't have all cops enabled by default we have to add every new cop explicitly
245
253
  Lint/DuplicateMagicComment:
246
254
  Enabled: true
247
255
  Lint/UselessRescue:
248
256
  Enabled: false
249
257
  Lint/DuplicateMatchPattern:
250
258
  Enabled: true
259
+ Lint/MixedCaseRange:
260
+ Enabled: true
261
+ Lint/RedundantRegexpQuantifiers:
262
+ Enabled: true
@@ -1,3 +1,3 @@
1
1
  module NxtCop
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.3.0'.freeze
3
3
  end
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.2.0
4
+ version: 1.3.0
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-08-23 00:00:00.000000000 Z
11
+ date: 2023-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.4.10
127
+ rubygems_version: 3.4.6
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Getsafe shared Rubocop.