nxt_cop 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +18 -18
- data/README.md +10 -0
- data/default.yml +7 -3
- data/lib/nxt_cop/version.rb +1 -1
- data/nxt_cop.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e74a264746f59bb552116446bddd4bef5a845e348ecc0e0f6c0d836c972130f
|
|
4
|
+
data.tar.gz: decc3193febf8c9e6cae676e9caf3b44f4f6e9c9a49a9fe6c65249e26f4280c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 175aed4523a2b4de34251cdc8afe873617f342f1773da0fc3e1d7c077cbd1e1bde4cf12755551c01f3f6854bd4e95aa75f69a2cc8fe7c4ccd5056293d698bc69
|
|
7
|
+
data.tar.gz: 6c160ad53d81f080cdf61cb3e7bfb6910a6e0b4b1bea4deb28a9bf6e46a4ee58edac5aebfe34788e9a29f6b515872106e5c3107e1955673a51df573c56a5c372
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# v1.0.18
|
|
2
|
+
|
|
3
|
+
## What's Changed
|
|
4
|
+
* Add `Rails/Date` cop ([#50](https://github.com/nxt-insurance/nxt_cop/pull/50))
|
|
5
|
+
|
|
6
|
+
**Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.17...v1.0.18
|
|
7
|
+
|
|
8
|
+
# v1.0.17 2022-08-19
|
|
9
|
+
|
|
10
|
+
## What's Changed
|
|
11
|
+
* Adjust severity of the recently added Lint/SymbolConversion cop ([#45](https://github.com/nxt-insurance/nxt_cop/pull/45))
|
|
12
|
+
|
|
13
|
+
**Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.16...v1.0.17
|
|
14
|
+
|
|
1
15
|
# v1.0.16 2022-07-07
|
|
2
16
|
|
|
3
17
|
## What's Changed
|
data/Gemfile.lock
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
nxt_cop (1.0.
|
|
5
|
-
rubocop (~> 1.
|
|
4
|
+
nxt_cop (1.0.18)
|
|
5
|
+
rubocop (~> 1.35.0)
|
|
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.
|
|
12
|
+
activesupport (7.0.4)
|
|
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
18
|
concurrent-ruby (1.1.10)
|
|
19
|
-
i18n (1.
|
|
19
|
+
i18n (1.12.0)
|
|
20
20
|
concurrent-ruby (~> 1.0)
|
|
21
21
|
json (2.6.2)
|
|
22
|
-
minitest (5.16.
|
|
22
|
+
minitest (5.16.3)
|
|
23
23
|
parallel (1.22.1)
|
|
24
|
-
parser (3.1.2.
|
|
24
|
+
parser (3.1.2.1)
|
|
25
25
|
ast (~> 2.4.1)
|
|
26
|
-
rack (
|
|
26
|
+
rack (3.0.0)
|
|
27
27
|
rainbow (3.1.1)
|
|
28
28
|
rake (13.0.6)
|
|
29
|
-
regexp_parser (2.
|
|
29
|
+
regexp_parser (2.6.0)
|
|
30
30
|
rexml (3.2.5)
|
|
31
|
-
rubocop (1.
|
|
31
|
+
rubocop (1.35.1)
|
|
32
32
|
json (~> 2.3)
|
|
33
33
|
parallel (~> 1.10)
|
|
34
|
-
parser (>= 3.1.
|
|
34
|
+
parser (>= 3.1.2.1)
|
|
35
35
|
rainbow (>= 2.2.2, < 4.0)
|
|
36
36
|
regexp_parser (>= 1.8, < 3.0)
|
|
37
37
|
rexml (>= 3.2.5, < 4.0)
|
|
38
|
-
rubocop-ast (>= 1.
|
|
38
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
|
39
39
|
ruby-progressbar (~> 1.7)
|
|
40
40
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
41
|
-
rubocop-ast (1.
|
|
41
|
+
rubocop-ast (1.21.0)
|
|
42
42
|
parser (>= 3.1.1.0)
|
|
43
|
-
rubocop-rails (2.
|
|
43
|
+
rubocop-rails (2.16.1)
|
|
44
44
|
activesupport (>= 4.2.0)
|
|
45
45
|
rack (>= 1.1)
|
|
46
|
-
rubocop (>= 1.
|
|
47
|
-
rubocop-rspec (2.
|
|
48
|
-
rubocop (~> 1.
|
|
46
|
+
rubocop (>= 1.33.0, < 2.0)
|
|
47
|
+
rubocop-rspec (2.13.2)
|
|
48
|
+
rubocop (~> 1.33)
|
|
49
49
|
ruby-progressbar (1.11.0)
|
|
50
|
-
tzinfo (2.0.
|
|
50
|
+
tzinfo (2.0.5)
|
|
51
51
|
concurrent-ruby (~> 1.0)
|
|
52
|
-
unicode-display_width (2.
|
|
52
|
+
unicode-display_width (2.3.0)
|
|
53
53
|
|
|
54
54
|
PLATFORMS
|
|
55
55
|
ruby
|
data/README.md
CHANGED
|
@@ -65,6 +65,16 @@ To install this gem onto your local machine, run `bundle exec rake install`.
|
|
|
65
65
|
|
|
66
66
|
## Release a new version
|
|
67
67
|
|
|
68
|
+
```shell
|
|
69
|
+
bundle config set gem.push_key rubygems
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Add to `~/.gem/credentials` (create if it doesn't exist):
|
|
73
|
+
|
|
74
|
+
```shell
|
|
75
|
+
:rubygems: <your Rubygems API key>
|
|
76
|
+
```
|
|
77
|
+
|
|
68
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).
|
|
69
79
|
|
|
70
80
|
## Contributing
|
data/default.yml
CHANGED
|
@@ -77,6 +77,8 @@ Lint/SelfAssignment:
|
|
|
77
77
|
Enabled: true
|
|
78
78
|
Lint/StructNewOverride:
|
|
79
79
|
Enabled: true
|
|
80
|
+
Lint/SymbolConversion:
|
|
81
|
+
EnforcedStyle: consistent
|
|
80
82
|
Lint/TopLevelReturnWithArgument:
|
|
81
83
|
Enabled: true
|
|
82
84
|
Lint/TrailingCommaInAttributeDeclaration:
|
|
@@ -109,6 +111,8 @@ Style/Semicolon:
|
|
|
109
111
|
- spec/**/*
|
|
110
112
|
Rails/TimeZone:
|
|
111
113
|
Enabled: true
|
|
114
|
+
Rails/Date:
|
|
115
|
+
Enabled: true
|
|
112
116
|
RSpec:
|
|
113
117
|
Enabled: false
|
|
114
118
|
RSpec/Focus:
|
|
@@ -127,16 +131,16 @@ Lint/ConstantOverwrittenInRescue:
|
|
|
127
131
|
Enabled: true
|
|
128
132
|
Lint/NonAtomicFileOperation:
|
|
129
133
|
Enabled: true
|
|
130
|
-
Lint/SymbolConversion:
|
|
131
|
-
Enabled: true
|
|
132
134
|
Lint/UnmodifiedReduceAccumulator:
|
|
133
135
|
Enabled: true
|
|
134
136
|
Lint/OrAssignmentToConstant:
|
|
135
137
|
Enabled: true
|
|
136
138
|
Lint/RedundantDirGlobSort:
|
|
137
139
|
Enabled: true
|
|
140
|
+
Lint/RequireRangeParentheses:
|
|
141
|
+
Enabled: true
|
|
138
142
|
|
|
139
|
-
# These checks are valid, but better left to programmer's discretion, as the effects are harmless.
|
|
143
|
+
# These checks are valid, but better left to programmer's discretion, as the effects of such code are harmless.
|
|
140
144
|
Lint/DuplicateBranch:
|
|
141
145
|
Enabled: false
|
|
142
146
|
Lint/DuplicateRegexpCharacterClassElement:
|
data/lib/nxt_cop/version.rb
CHANGED
data/nxt_cop.gemspec
CHANGED
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
33
33
|
spec.require_paths = ['lib']
|
|
34
34
|
|
|
35
|
-
spec.add_dependency 'rubocop', '~> 1.
|
|
35
|
+
spec.add_dependency 'rubocop', '~> 1.35.0'
|
|
36
36
|
spec.add_dependency 'rubocop-rails', '~> 2.8'
|
|
37
37
|
spec.add_dependency 'rubocop-rspec', '~> 2.12'
|
|
38
38
|
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.0.
|
|
4
|
+
version: 1.0.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Livingstone
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-10-04 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.
|
|
19
|
+
version: 1.35.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: 1.
|
|
26
|
+
version: 1.35.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rubocop-rails
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|