nxt_cop 1.2.0 → 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: 1ac5de6fd28dbc39bae08541c1b0cefeac69260db7b2d6ff1a30f45cf90c13e3
4
- data.tar.gz: b2f3746245e5f2151b78dc61a1d9296b59c555ea3ea0ca3203a856c7f22bf6ae
3
+ metadata.gz: 78af6281cb547ff41b08a36a19955bc105d26d77de18cabc30e3f7bcbac30925
4
+ data.tar.gz: 0f34a2c51945d1178a6a345661dec279bee3f1eb6fff58f24b54f31b294f2c0d
5
5
  SHA512:
6
- metadata.gz: e64342f7d61a9bfe670a1ba63ad5b3e57c127e467bb67526d9301d3450131049a33ecfcaf8e7962cfb923982760238dc59962b9b5cdbd136a26ccc6451f62173
7
- data.tar.gz: 95f5617edce9fcdef32299d5ea997874ab264c80c23209cb1d67bf5ffbe37d4b3f27ab472cd3735ca3229578ee474b9471500d7562c143444722342fc76653a7
6
+ metadata.gz: 417325d56c7ca90d9d795b28e678c1dd82d51b506d6d1aed547a7aabc1617e64747a252d4c8d854d0a53a1ebe21e0d57d8cb9ed4049fc39206bf1a5b78241536
7
+ data.tar.gz: 4145773f53dc203e9043da35f451d2dc77a5f17053c5c65581db58dbb6c15d70c4c0e5aacfde9b41c49cb69f64481ae61e8f4fbc8844131d2775c2f4a9f3eadc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  # v1.2.0 2023-08-23
2
9
  ## What's Changed
3
10
  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.2.1)
5
5
  rubocop (~> 1.56.1)
6
6
  rubocop-rails (~> 2.8)
7
7
  rubocop-rspec (~> 2.12)
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.2.0'.freeze
2
+ VERSION = '1.2.1'.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.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-08-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