nxt_cop 1.0.12 → 1.0.15

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: 9ad9ac0bd5f6dae4ead0f97fdcb994717ff15bf73de33b27833ad158d984a887
4
- data.tar.gz: 687a35b7e10e272c4bf4489e53d29b9a0b0f7de501f34ae34a14fdd4dd03c98b
3
+ metadata.gz: efa9b8c9814cf6ad986c1fb4c6ed929c763a10edbf1ac76ae4ff7b8d1f50b861
4
+ data.tar.gz: 651d2007d4e70d1fea8390999c8bcef2eb653aea3a713194bfdb99f9f4ec8770
5
5
  SHA512:
6
- metadata.gz: f7c60202dfcb21defcdc40d7160804c3761fb5ab082ce1a90f52a81b879a36d5e61bad7445414cc30a4fd6a6301c7169a6b1189d80c710d66da691bbc61959f5
7
- data.tar.gz: bd0d3a413be302b40c9ca6628ca9f4cba62d52b19a95ae37df9c5116cb2fe4f84eafd492ee03b6154ab5caf8e4f75f0f6a6c3fabed05fe74f0d60a567d28f9ce
6
+ metadata.gz: 15da21fc7baf7a789d033d37f2262986b0880521feb1bb44a43322240b6208ec099bb7af8518097a8ecbcb38f6cf6079a76be83338bbd86f89d4e9edc9ac1a71
7
+ data.tar.gz: bea53d38306ead281a51a5a0b2e8e7d3f754a6fd832ac5b874ebcee7ab221a08eec60299b015f8ee4c5166a962050b8a719c0b091a9c0a343b56dbe6bb5aa780
data/.gitignore CHANGED
@@ -7,6 +7,7 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  .DS_Store
10
+ .idea/
10
11
 
11
12
  # rspec failure tracking
12
13
  .rspec_status
data/CHANGELOG.md CHANGED
@@ -1,7 +1,26 @@
1
+ # v1.0.15 2022-05-18
2
+
3
+ ## What's Changed
4
+ * Don't enforce trailing comma in hash literals rule ([#30](https://github.com/nxt-insurance/nxt_cop/pull/30))
5
+
6
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.14...v1.0.15
7
+
8
+ # v1.0.14 2022-05-04
9
+
10
+ ## What's Changed
11
+ * 🚨 [security] Upgrade rubocop: 0.92.0 → 1.25.1 (major) by @depfu in https://github.com/nxt-insurance/nxt_cop/pull/19
12
+ * Upgrade rubocop: 1.25.1 → 1.28.2 (minor) by @depfu in https://github.com/nxt-insurance/nxt_cop/pull/26
13
+ * Allow including repos use their own ruby version by @shalvah-gs in https://github.com/nxt-insurance/nxt_cop/pull/27
14
+ * Update rubocop-rails: 2.13.2 → 2.14.2 (minor) by @depfu in https://github.com/nxt-insurance/nxt_cop/pull/22
15
+
16
+ **Full Changelog**: https://github.com/nxt-insurance/nxt_cop/compare/v1.0.13...v1.0.14
17
+
1
18
  # v1.0.12 2020-12-29
19
+
2
20
  ### Update Gems
3
21
 
4
22
  # v1.0.11 2020-12-29
23
+
5
24
  ### Fix
6
25
  - Add `require: rubocop-rails` to `default.yml`
7
26
 
@@ -46,7 +65,7 @@ Updated Rubocop Version
46
65
 
47
66
  ### Added
48
67
 
49
- - Style/TrailingCommaInArguments`
68
+ - `Style/TrailingCommaInArguments`
50
69
 
51
70
  ### Removed
52
71
 
data/Gemfile.lock CHANGED
@@ -1,52 +1,50 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_cop (1.0.12)
5
- rubocop (= 0.92.0)
4
+ nxt_cop (1.0.15)
5
+ rubocop (= 1.28.2)
6
6
  rubocop-rails (~> 2.8)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.1.0)
11
+ activesupport (7.0.2.4)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
15
15
  tzinfo (~> 2.0)
16
- zeitwerk (~> 2.3)
17
- ast (2.4.1)
18
- concurrent-ruby (1.1.7)
19
- i18n (1.8.5)
16
+ ast (2.4.2)
17
+ concurrent-ruby (1.1.10)
18
+ i18n (1.10.0)
20
19
  concurrent-ruby (~> 1.0)
21
- minitest (5.14.2)
22
- parallel (1.20.1)
23
- parser (3.0.0.0)
20
+ minitest (5.15.0)
21
+ parallel (1.22.1)
22
+ parser (3.1.2.0)
24
23
  ast (~> 2.4.1)
25
24
  rack (2.2.3)
26
- rainbow (3.0.0)
27
- rake (13.0.1)
28
- regexp_parser (2.0.3)
29
- rexml (3.2.4)
30
- rubocop (0.92.0)
25
+ rainbow (3.1.1)
26
+ rake (13.0.6)
27
+ regexp_parser (2.3.1)
28
+ rexml (3.2.5)
29
+ rubocop (1.28.2)
31
30
  parallel (~> 1.10)
32
- parser (>= 2.7.1.5)
31
+ parser (>= 3.1.0.0)
33
32
  rainbow (>= 2.2.2, < 4.0)
34
- regexp_parser (>= 1.7)
33
+ regexp_parser (>= 1.8, < 3.0)
35
34
  rexml
36
- rubocop-ast (>= 0.5.0)
35
+ rubocop-ast (>= 1.17.0, < 2.0)
37
36
  ruby-progressbar (~> 1.7)
38
- unicode-display_width (>= 1.4.0, < 2.0)
39
- rubocop-ast (1.3.0)
40
- parser (>= 2.7.1.5)
41
- rubocop-rails (2.9.1)
37
+ unicode-display_width (>= 1.4.0, < 3.0)
38
+ rubocop-ast (1.17.0)
39
+ parser (>= 3.1.1.0)
40
+ rubocop-rails (2.14.2)
42
41
  activesupport (>= 4.2.0)
43
42
  rack (>= 1.1)
44
- rubocop (>= 0.90.0, < 2.0)
45
- ruby-progressbar (1.10.1)
43
+ rubocop (>= 1.7.0, < 2.0)
44
+ ruby-progressbar (1.11.0)
46
45
  tzinfo (2.0.4)
47
46
  concurrent-ruby (~> 1.0)
48
- unicode-display_width (1.7.0)
49
- zeitwerk (2.4.2)
47
+ unicode-display_width (2.1.0)
50
48
 
51
49
  PLATFORMS
52
50
  ruby
data/README.md CHANGED
@@ -56,3 +56,21 @@ Lint/Style:
56
56
  - db/schema.rb
57
57
  - db/migrate/*.rb
58
58
  ```
59
+
60
+ ## Development
61
+
62
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
63
+
64
+ To install this gem onto your local machine, run `bundle exec rake install`.
65
+
66
+ ## Release a new version
67
+
68
+ 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
+
70
+ ## Contributing
71
+
72
+ Bug reports and pull requests are welcome on GitHub at https://github.com/nxt-insurance/nxt_cop.
73
+
74
+ ## License
75
+
76
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/default.yml CHANGED
@@ -11,7 +11,6 @@ AllCops:
11
11
  - db/migrate/*
12
12
  - vendor/**/*
13
13
  - node_modules/**/*
14
- TargetRubyVersion: 2.6
15
14
  DisabledByDefault: true
16
15
  Layout/DotPosition:
17
16
  EnforcedStyle: trailing
@@ -35,6 +34,8 @@ Layout/EmptyLinesAroundClassBody:
35
34
  EnforcedStyle: no_empty_lines
36
35
  Layout/EmptyLinesAroundBlockBody:
37
36
  EnforcedStyle: no_empty_lines
37
+ Layout/TrailingWhitespace:
38
+ AllowInHeredoc: false
38
39
  Lint:
39
40
  Enabled: true
40
41
  Lint/AmbiguousBlockAssociation:
@@ -91,13 +92,14 @@ Style/StringLiterals:
91
92
  Style/SymbolArray:
92
93
  Enabled: true
93
94
  Style/TrailingCommaInHashLiteral:
94
- Enabled: true
95
+ Enabled: false
95
96
  Style/TrailingCommaInArguments:
96
97
  Enabled: true
97
98
  Style/WordArray:
98
99
  Enabled: true
99
100
  Style/HashSyntax:
100
101
  Enabled: true
102
+ EnforcedShorthandSyntax: either
101
103
  Security:
102
104
  Enabled: true
103
105
  Style/Semicolon:
@@ -1,3 +1,3 @@
1
1
  module NxtCop
2
- VERSION = '1.0.12'.freeze
2
+ VERSION = '1.0.15'.freeze
3
3
  end
data/nxt_cop.gemspec CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = 'Getsafe shared Rubocop.'
12
12
  spec.homepage = 'https://github.com/nxt-insurance/nxt_cop'
13
+ spec.license = 'MIT'
13
14
 
14
15
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
15
16
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -31,7 +32,7 @@ Gem::Specification.new do |spec|
31
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
33
  spec.require_paths = ['lib']
33
34
 
34
- spec.add_dependency 'rubocop', '0.92.0'
35
+ spec.add_dependency 'rubocop', '1.28.2'
35
36
  spec.add_dependency 'rubocop-rails', '~> 2.8'
36
37
  spec.add_development_dependency 'bundler', '~> 2.1'
37
38
  spec.add_development_dependency 'rake', '~> 13.0'
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.12
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Livingstone
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-05 00:00:00.000000000 Z
11
+ date: 2022-05-18 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: 0.92.0
19
+ version: 1.28.2
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: 0.92.0
26
+ version: 1.28.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,8 +66,8 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '13.0'
69
- description:
70
- email:
69
+ description:
70
+ email:
71
71
  executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files: []
@@ -82,20 +82,20 @@ files:
82
82
  - Rakefile
83
83
  - bin/console
84
84
  - bin/guard
85
- - bin/release
86
85
  - bin/rspec
87
86
  - bin/setup
88
87
  - default.yml
89
88
  - lib/nxt_cop/version.rb
90
89
  - nxt_cop.gemspec
91
90
  homepage: https://github.com/nxt-insurance/nxt_cop
92
- licenses: []
91
+ licenses:
92
+ - MIT
93
93
  metadata:
94
94
  allowed_push_host: https://rubygems.org
95
95
  homepage_uri: https://github.com/nxt-insurance/nxt_cop
96
96
  source_code_uri: https://github.com/nxt-insurance/nxt_cop
97
97
  changelog_uri: https://github.com/nxt-insurance/nxt_cop/CHANGELOG.md
98
- post_install_message:
98
+ post_install_message:
99
99
  rdoc_options: []
100
100
  require_paths:
101
101
  - lib
@@ -110,8 +110,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  requirements: []
113
- rubygems_version: 3.0.3
114
- signing_key:
113
+ rubygems_version: 3.3.11
114
+ signing_key:
115
115
  specification_version: 4
116
116
  summary: Getsafe shared Rubocop.
117
117
  test_files: []
data/bin/release DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env sh
2
-
3
- GEM_VERSION=$(ruby -e '$LOAD_PATH << File.join(File.dirname(__FILE__), "lib"); require "nxt_cop/version"; print NxtCop::VERSION')
4
-
5
- gem build nxt_cop.gemspec
6
-
7
- if [ ! -d "pkg" ]; then
8
- mkdir pkg
9
- fi
10
-
11
- mv nxt_cop-$GEM_VERSION.gem pkg/nxt_cop-$GEM_VERSION.gem
12
-
13
- git tag -m "Release $GEM_VERSION" -a v$GEM_VERSION HEAD
14
- git push origin --tags
15
-
16
- gem push --key github --host https://rubygems.pkg.github.com/nxt-insurance pkg/nxt_cop-$GEM_VERSION.gem