optimum-energy-rubocop 0.7.6 → 0.7.10

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: b8726b8b080718a8b442e9d5f75eba2aabbbf0301b00c933fc73b1961478b0bc
4
- data.tar.gz: 240abb4b944aec7430e689be998d77455d32c56a5d1c666d9779368ca4c06a22
3
+ metadata.gz: cd865dfa79f2eac897b296ee5efb95dac1dd443eb8a568e144fb7e210a2ea997
4
+ data.tar.gz: 5aee7163dcde6412625ded39ab7319205c6ed6ee947ba46258bb0959fbb64a79
5
5
  SHA512:
6
- metadata.gz: 04c60bb88653560cd32d0f97ba47023a3c60bc46e1a8385277ceafaf53ac5cab95c82d04754654a1f4f365326ebcc249d4878fc9d723d73922abad6a55ed1755
7
- data.tar.gz: 5ec4dd663df7e9e8343de39847fe94a8abfdd51295779467cea77d0a94f9dfe3f191e41c0d555c34e520aa9bb410b7b5cb78f94d65ba3f74a1495b4a0e865099
6
+ metadata.gz: ffcf76af502be730c2471e46ac92e5a66f3f7a5d5b4de9212a067b54dff034c5d377ad75a407c615af5d11904d7bd6cbcf1ee60e6caec9a959d5e51ecbd00b8a
7
+ data.tar.gz: 73430a1c3a880ec279e9cbc76ee08e6ff3ba3764bd203150fe9147be22c6d367df07924953aded3b85ff18b382b045934876ef49eac3a3c36182ff7ed47b5f73
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.0
1
+ 2.7.1
data/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM ruby:2.7.0
1
+ FROM ruby:2.7.1
2
2
 
3
3
  # Install the dependencies
4
4
  ADD Gemfile Gemfile.lock .ruby-version optimum-energy-rubocop.gemspec VERSION.txt /app/
data/Gemfile.lock CHANGED
@@ -1,34 +1,51 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- optimum-energy-rubocop (0.7.4)
4
+ optimum-energy-rubocop (0.7.10)
5
5
  rubocop (~> 0.80)
6
- rubocop-rails (~> 2.4.2)
6
+ rubocop-rails (~> 2.7.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.4.0)
12
- jaro_winkler (1.5.4)
13
- parallel (1.19.1)
14
- parser (2.7.1.2)
15
- ast (~> 2.4.0)
16
- rack (2.2.2)
11
+ activesupport (6.1.4.1)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ zeitwerk (~> 2.3)
17
+ ast (2.4.2)
18
+ concurrent-ruby (1.1.9)
19
+ i18n (1.8.10)
20
+ concurrent-ruby (~> 1.0)
21
+ minitest (5.14.4)
22
+ parallel (1.20.1)
23
+ parser (3.0.2.0)
24
+ ast (~> 2.4.1)
25
+ rack (2.2.3)
17
26
  rainbow (3.0.0)
18
- rexml (3.2.4)
19
- rubocop (0.82.0)
20
- jaro_winkler (~> 1.5.1)
27
+ regexp_parser (2.1.1)
28
+ rexml (3.2.5)
29
+ rubocop (0.93.1)
21
30
  parallel (~> 1.10)
22
- parser (>= 2.7.0.1)
31
+ parser (>= 2.7.1.5)
23
32
  rainbow (>= 2.2.2, < 4.0)
33
+ regexp_parser (>= 1.8)
24
34
  rexml
35
+ rubocop-ast (>= 0.6.0)
25
36
  ruby-progressbar (~> 1.7)
26
37
  unicode-display_width (>= 1.4.0, < 2.0)
27
- rubocop-rails (2.4.2)
38
+ rubocop-ast (1.8.0)
39
+ parser (>= 3.0.1.1)
40
+ rubocop-rails (2.7.1)
41
+ activesupport (>= 4.2.0)
28
42
  rack (>= 1.1)
29
- rubocop (>= 0.72.0)
30
- ruby-progressbar (1.10.1)
43
+ rubocop (>= 0.87.0)
44
+ ruby-progressbar (1.11.0)
45
+ tzinfo (2.0.4)
46
+ concurrent-ruby (~> 1.0)
31
47
  unicode-display_width (1.7.0)
48
+ zeitwerk (2.4.2)
32
49
 
33
50
  PLATFORMS
34
51
  ruby
@@ -37,7 +54,7 @@ DEPENDENCIES
37
54
  optimum-energy-rubocop!
38
55
 
39
56
  RUBY VERSION
40
- ruby 2.7.0p0
57
+ ruby 2.7.1p83
41
58
 
42
59
  BUNDLED WITH
43
- 2.1.4
60
+ 2.2.28
data/README.md CHANGED
@@ -15,11 +15,8 @@ gem 'optimum-energy-rubocop'
15
15
  Create a `.rubocop.yml` file and add this configuration.
16
16
 
17
17
  ```
18
- require:
19
- - optimum-energy-rubocop
20
-
21
- inherit_from:
22
- - optimum_energy_rubocop.yml
18
+ inherit_gem:
19
+ optimum-energy-rubocop: optimum_energy_rubocop.yml
23
20
  ```
24
21
 
25
22
  ## Updating This Gem
data/VERSION.txt CHANGED
@@ -1 +1 @@
1
- 0.7.6
1
+ 0.7.10
@@ -1,2 +1,2 @@
1
1
  codeship:v2
2
- JjzJa5IPPlslZNYdlQaBuQwNLu1cNBVcIFyCqOQ1Bz9Rfmo/b673eak7fgsGFNs1cMIvp28L61IfIBKwRsy0x1lrGGIfdjo8lwIGA/JCyM5IpHrpsBazaVjaL0cHzOulATzlwQ==
2
+ IKBJYRm4ObjGLsvovpL6Ov+IwE3JgQtN2ckNn2AbftoBWh9gEKXDRD9LPhZfKPiaDTNrUWIvNFKNqGI6eMNm6r5Uu/1iHZdnmwoP5t9pv+4t8S+dYsSfzNhvJ9psisoN1hTT/8+CtxyZ13BEhS4ejF2aUZ+8IePxKLr+NTk=
@@ -1,6 +1,7 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "optimum-energy-rubocop"
3
3
  spec.version = File.read("VERSION.txt")
4
+ spec.required_ruby_version = "~> 2.7"
4
5
  spec.authors = [ "Optimum Energy" ]
5
6
 
6
7
  spec.summary = "The shared Rubocop configuration for Optimum Energy"
@@ -10,5 +11,5 @@ Gem::Specification.new do |spec|
10
11
  spec.files = `git ls-files -z`.split("\x0")
11
12
 
12
13
  spec.add_dependency "rubocop", "~> 0.80"
13
- spec.add_dependency "rubocop-rails", "~> 2.4.2"
14
+ spec.add_dependency "rubocop-rails", "~> 2.7.1"
14
15
  end
@@ -4,9 +4,19 @@
4
4
  require: rubocop-rails
5
5
 
6
6
  AllCops:
7
+
8
+ # By default, Rubocop now displays warnings for all cops that are going to be enabled in the next
9
+ # minor version. This disables those cops. We'll pick them up when Rubocop decided they're good
10
+ # enough to enable by default for everyone.
11
+ NewCops: disable
12
+
7
13
  Exclude:
8
14
  - 'db/schema.rb'
9
15
  - 'bin/*'
16
+ - 'node_modules/**/*'
17
+ - 'vendor/**/*'
18
+ - 'tmp/**/*'
19
+
10
20
 
11
21
  ##########
12
22
  # LAYOUT #
@@ -72,6 +82,7 @@ Layout/LineLength:
72
82
  Max: 100
73
83
  AllowHeredoc: false
74
84
  AllowURI: false
85
+ AutoCorrect: true
75
86
 
76
87
  Layout/MultilineMethodCallIndentation:
77
88
  EnforcedStyle: indented
@@ -79,6 +90,13 @@ Layout/MultilineMethodCallIndentation:
79
90
  Layout/MultilineOperationIndentation:
80
91
  EnforcedStyle: indented
81
92
 
93
+ # Ideally we'd be able to configure begin/rescue blocks to align how our other blocks do, but for
94
+ # now there doesn't seem to be an option for it.
95
+ #
96
+ # TODO: Move this rule change to optimum-energy-rubocop-config.
97
+ Layout/RescueEnsureAlignment:
98
+ Enabled: false
99
+
82
100
  Layout/SpaceInsideArrayLiteralBrackets:
83
101
  EnforcedStyle: space
84
102
 
@@ -177,6 +195,11 @@ Rails/Date:
177
195
  Rails/FilePath:
178
196
  Enabled: false
179
197
 
198
+ # By default, the Rubocop Rails rules warn against using has_and_belongs_to_many. This disables that
199
+ # behavior. Don't you tell me what to do Rubocop.
200
+ Rails/HasAndBelongsToMany:
201
+ Enabled: false
202
+
180
203
  Rails/NotNullColumn:
181
204
  Enabled: false
182
205
 
@@ -193,6 +216,9 @@ Rails/TimeZone:
193
216
  Style/AccessModifierDeclarations:
194
217
  EnforcedStyle: inline
195
218
 
219
+ Style/ClassAndModuleChildren:
220
+ Enabled: false
221
+
196
222
  Style/ConditionalAssignment:
197
223
  EnforcedStyle: assign_to_condition
198
224
 
@@ -218,6 +244,10 @@ Style/ExponentialNotation:
218
244
  Style/FormatString:
219
245
  EnforcedStyle: percent
220
246
 
247
+ # This rule is wrong for Rails validation messages.
248
+ Style/FormatStringToken:
249
+ Enabled: false
250
+
221
251
  # TODO: This won't be necessary when we upgrade to Ruby 3.0. Until then, rather than adding a
222
252
  # comment to every file, we should only add it to the files where it's necessary.
223
253
  Style/FrozenStringLiteralComment:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optimum-energy-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Optimum Energy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-18 00:00:00.000000000 Z
11
+ date: 2021-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.2
33
+ version: 2.7.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.4.2
40
+ version: 2.7.1
41
41
  description:
42
42
  email:
43
43
  executables: []
@@ -70,9 +70,9 @@ require_paths:
70
70
  - lib
71
71
  required_ruby_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '2.7'
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - ">="