Dutchie-Style 1.0.7 → 2.0.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: c69dc43615ecb7c6ff2ed0227adf72aad4624335a4eac8bd05fbd26a77115e88
4
- data.tar.gz: 3ccac1ce08f3b92cf1c6a849861a640e06571a9bda9ef75aae289e18547828ab
3
+ metadata.gz: '05809b57f47f983740e5948849b66372786e6ac31bd78459dc87111c732d22ba'
4
+ data.tar.gz: 02a5a859758bbf8fadd0243a1814d68d866a25e8511d85d9ffbd821e03eac2f7
5
5
  SHA512:
6
- metadata.gz: f8624992de693b1f7ac48151b31ea299b63d3655414c9e24e8a15549153d47dbbb6c07bb22ae5deab5e1521c60a49f6583af6ab9fae3750e53087ddd93ad57f1
7
- data.tar.gz: 5b1ea31e288124fe8f7dd7b679a18c063c804d82c22f494bb9339bf45081cb0a37119d721aa3955e8519b6c9c1832fd8381da3c3b259b81b972cbd6fd3e39502
6
+ metadata.gz: ced791a0e88123001cc593cb8ba13cb7b6cdc20e50c8c94f0d9e8cc749b167b5f24fdd6f7d5cc3c89a0ba7e0536fa853d45ac18ffd9d0755506b30d2689aed8d
7
+ data.tar.gz: 6f1e885173a64467dc7babd2c61afe70faee632b9105fc1bf4822117cd39a6b50e658da922aea5f339e4ab8c4f33bc6f0df083eaecf19abf0294dd7fc038b36a
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency "rubocop", "~> 0.93.1"
29
+ spec.add_dependency "rubocop", "~> 1.30.1"
30
30
  spec.add_dependency "rubocop-rspec"
31
31
  spec.add_dependency "rubocop-rails"
32
32
  end
data/Gemfile CHANGED
@@ -5,5 +5,5 @@ gemspec
5
5
 
6
6
  gem "rake", "~> 12.0"
7
7
  gem "rspec", "~> 3.0"
8
- gem "rubocop", "~> 0.93.1"
9
- gem "rubocop-rails", "~> 2.6.0"
8
+ gem "rubocop", "~> 1.30.1"
9
+ gem "rubocop-rails", "~> 2.14.2"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- Dutchie-Style (1.0.4)
4
+ Dutchie-Style (1.0.10)
5
5
  rubocop (~> 0.93.1)
6
6
  rubocop-rails
7
7
  rubocop-rspec
@@ -57,9 +57,9 @@ GEM
57
57
  activesupport (>= 4.2.0)
58
58
  rack (>= 1.1)
59
59
  rubocop (>= 0.82.0)
60
- rubocop-rspec (1.44.0)
60
+ rubocop-rspec (1.44.1)
61
61
  rubocop (~> 0.87)
62
- rubocop-ast (~> 0.7.1)
62
+ rubocop-ast (>= 0.7.1)
63
63
  ruby-progressbar (1.10.1)
64
64
  thread_safe (0.3.6)
65
65
  tzinfo (1.2.7)
@@ -78,4 +78,4 @@ DEPENDENCIES
78
78
  rubocop-rails (~> 2.6.0)
79
79
 
80
80
  BUNDLED WITH
81
- 2.1.4
81
+ 2.2.27
data/default.yml CHANGED
@@ -21,9 +21,27 @@ AllCops:
21
21
  - '*.yml'
22
22
  - '.pryrc'
23
23
 
24
+
25
+ # Capybara cops
26
+
27
+ # Allows us to use scenario/feature instead of it/describes
28
+ Capybara/FeatureMethods:
29
+ Enabled: true
30
+ EnabledMethods: ['feature', 'scenario']
31
+
32
+ # https://docs.rubocop.org/rubocop/1.10/cops_layout.html#layoutclassstructure
33
+ Layout/ClassStructure:
34
+ Enabled: true
35
+
24
36
  # Commonly used screens these days easily fit more than 80 characters.
37
+ # Ignores long lines with Heredocs or URIs in them
25
38
  Layout/LineLength:
26
39
  Max: 120
40
+ AllowHeredoc: true
41
+ # There's a bug which considers commas after a URI too long so we can't use built-in AllowURI setting.
42
+ # Pattern matches valid URI encapsulated within a string literal.
43
+ AllowedPatterns: ['["\u0027].*https?[\w\:\/\$\–\-\#\.\+\!\*\‘\(\)\,]*.*["\u0027]']
44
+
27
45
 
28
46
  # No space makes the method definition shorter and differentiates
29
47
  # from a regular assignment.
@@ -59,7 +77,9 @@ Layout/SpaceInsideHashLiteralBraces:
59
77
 
60
78
  # Exclude RSpec
61
79
  Metrics/BlockLength:
62
- ExcludedMethods: ['describe', 'context']
80
+ Exclude:
81
+ - "spec/factories/**/*.rb"
82
+ IgnoredMethods: ['describe', 'context']
63
83
 
64
84
  # Too short methods lead to extraction of single-use methods, which can make
65
85
  # the code easier to read (by naming things), but can also clutter the class
@@ -134,6 +154,8 @@ Style/FormatString:
134
154
  Style/CollectionMethods:
135
155
  Enabled: true
136
156
  PreferredMethods:
157
+ # find is not equivalent on mongoid embeds or collections
158
+ find: "detect"
137
159
  # inject seems more common in the community.
138
160
  reduce: "inject"
139
161
 
@@ -153,7 +175,7 @@ Style/MethodCallWithArgsParentheses:
153
175
  VersionChanged: '0.61'
154
176
  IgnoreMacros: true
155
177
  IgnoredMethods: []
156
- IgnoredPatterns: []
178
+ AllowedPatterns: []
157
179
  IncludedMacros: []
158
180
  AllowParenthesesInMultilineCall: false
159
181
  AllowParenthesesInChaining: false
@@ -197,6 +219,10 @@ Style/SingleLineBlockParams:
197
219
  Style/MethodDefParentheses:
198
220
  Enabled: false
199
221
 
222
+ # Ignores requirement to add underscore to separate every 3 digits in a number
223
+ Style/NumericLiterals:
224
+ Enabled: false
225
+
200
226
  # Shadowing outer local variables with block parameters is often useful
201
227
  # to not reinvent a new name for the same thing, it highlights the relation
202
228
  # between the outer variable and the parameter. The cases where it's actually
@@ -237,6 +263,11 @@ Rails/FindBy:
237
263
  - app/**/*.rb
238
264
 
239
265
  # RSpec
266
+
267
+ # Start context description without 'when', 'with', or 'without'.
268
+ RSpec/ContextWording:
269
+ Enabled: false
270
+
240
271
  RSpec/AlignLeftLetBrace:
241
272
  Enabled: true
242
273
 
@@ -244,7 +275,11 @@ RSpec/AlignRightLetBrace:
244
275
  Enabled: false
245
276
 
246
277
  RSpec/MultipleMemoizedHelpers:
247
- Max: 10
278
+ Enabled: false
248
279
 
249
280
  RSpec/NestedGroups:
250
281
  Max: 5
282
+
283
+ # Allows us to mark specs as "skip"
284
+ RSpec/Pending:
285
+ Enabled: false
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Dutchie
2
4
  module Style
3
- VERSION = "1.0.7"
5
+ VERSION = '2.0.1'
4
6
  end
5
7
  end
metadata CHANGED
@@ -1,38 +1,38 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Dutchie-Style
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Ostrowski
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-09 00:00:00.000000000 Z
11
+ date: 2022-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
15
- prerelease: false
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
17
  - - "~>"
19
18
  - !ruby/object:Gem::Version
20
- version: 0.93.1
19
+ version: 1.30.1
21
20
  type: :runtime
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.93.1
26
+ version: 1.30.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
- prerelease: false
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
31
  - - ">="
33
32
  - !ruby/object:Gem::Version
34
33
  version: '0'
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
@@ -40,13 +40,13 @@ dependencies:
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rails
43
- prerelease: false
44
43
  requirement: !ruby/object:Gem::Requirement
45
44
  requirements:
46
45
  - - ">="
47
46
  - !ruby/object:Gem::Version
48
47
  version: '0'
49
48
  type: :runtime
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
@@ -75,7 +75,7 @@ metadata:
75
75
  homepage_uri: https://github.com/GetDutchie/Dutchie-Style
76
76
  source_code_uri: https://github.com/GetDutchie/Dutchie-Style
77
77
  changelog_uri: https://github.com/GetDutchie/Dutchie-Style/releases
78
- post_install_message:
78
+ post_install_message:
79
79
  rdoc_options: []
80
80
  require_paths:
81
81
  - lib
@@ -90,8 +90,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubygems_version: 3.0.3
94
- signing_key:
93
+ rubygems_version: 3.2.22
94
+ signing_key:
95
95
  specification_version: 4
96
96
  summary: Rubocop Settings for all dutchie Ruby Apps
97
97
  test_files: []