Dutchie-Style 1.0.9 → 2.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 304c7a57d19f039460011d0d8a47454bfb838f73de6113da8bac3e552ab29f61
4
- data.tar.gz: 31ef6fbbacf0d729cc0107d59f86267288f7abc6bc396f31b653da4f044976ae
3
+ metadata.gz: 54099a06ca24cda06efc7fbe9bfd66ef6db9915d3d4316001b3e9b3dd2abee86
4
+ data.tar.gz: aa7436def2b17cb725e37902dbf7cc7f59ce80d7124736caa5481241c9ef3d59
5
5
  SHA512:
6
- metadata.gz: 47f5540ae2e8a454664c8776b702080bee8ceb78507b5d876b1cabaa1ff40f3f357325b2041662d779e38d72e5bb7fc0e07e559911bf3e6d69aa3ef8d0318eae
7
- data.tar.gz: cc499085838e10a922164dd1d9596d8f2c978583127d25b3859ee43e68e15237433c4757c7cbf26f67a46e9c4708ab560479d464484fcaf4ade78e595cea60fa
6
+ metadata.gz: 0f199124b20b52f97697d568dfe01e680ba091a6a56b567e7e18240b9c42e1045b4e6cd6a106a3aba7b34c6ad476f8de7397c04b48929c94a7ed33120241297e
7
+ data.tar.gz: 4969c72fdadd133ce3f9e0b9df30719908ea717d0e95098bf6ddbd722268a5b71ad43e48937c43db8a64f0b06a0722715823f813a26e93913e79636b387f98e0
@@ -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.9)
4
+ Dutchie-Style (1.0.10)
5
5
  rubocop (~> 0.93.1)
6
6
  rubocop-rails
7
7
  rubocop-rspec
@@ -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,13 +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
+ RSpec/Capybara:
29
+ Enabled: true
30
+ EnabledMethods: ['feature', 'scenario']
31
+
24
32
  # https://docs.rubocop.org/rubocop/1.10/cops_layout.html#layoutclassstructure
25
33
  Layout/ClassStructure:
26
34
  Enabled: true
27
35
 
28
36
  # Commonly used screens these days easily fit more than 80 characters.
37
+ # Ignores long lines with Heredocs or URIs in them
29
38
  Layout/LineLength:
30
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
+
31
45
 
32
46
  # No space makes the method definition shorter and differentiates
33
47
  # from a regular assignment.
@@ -63,7 +77,9 @@ Layout/SpaceInsideHashLiteralBraces:
63
77
 
64
78
  # Exclude RSpec
65
79
  Metrics/BlockLength:
66
- ExcludedMethods: ['describe', 'context']
80
+ Exclude:
81
+ - "spec/factories/**/*.rb"
82
+ IgnoredMethods: ['describe', 'context']
67
83
 
68
84
  # Too short methods lead to extraction of single-use methods, which can make
69
85
  # the code easier to read (by naming things), but can also clutter the class
@@ -159,7 +175,7 @@ Style/MethodCallWithArgsParentheses:
159
175
  VersionChanged: '0.61'
160
176
  IgnoreMacros: true
161
177
  IgnoredMethods: []
162
- IgnoredPatterns: []
178
+ AllowedPatterns: []
163
179
  IncludedMacros: []
164
180
  AllowParenthesesInMultilineCall: false
165
181
  AllowParenthesesInChaining: false
@@ -203,6 +219,10 @@ Style/SingleLineBlockParams:
203
219
  Style/MethodDefParentheses:
204
220
  Enabled: false
205
221
 
222
+ # Ignores requirement to add underscore to separate every 3 digits in a number
223
+ Style/NumericLiterals:
224
+ Enabled: false
225
+
206
226
  # Shadowing outer local variables with block parameters is often useful
207
227
  # to not reinvent a new name for the same thing, it highlights the relation
208
228
  # between the outer variable and the parameter. The cases where it's actually
@@ -243,6 +263,11 @@ Rails/FindBy:
243
263
  - app/**/*.rb
244
264
 
245
265
  # RSpec
266
+
267
+ # Start context description without 'when', 'with', or 'without'.
268
+ RSpec/ContextWording:
269
+ Enabled: false
270
+
246
271
  RSpec/AlignLeftLetBrace:
247
272
  Enabled: true
248
273
 
@@ -250,7 +275,11 @@ RSpec/AlignRightLetBrace:
250
275
  Enabled: false
251
276
 
252
277
  RSpec/MultipleMemoizedHelpers:
253
- Max: 10
278
+ Enabled: false
254
279
 
255
280
  RSpec/NestedGroups:
256
281
  Max: 5
282
+
283
+ # Allows us to mark specs as "skip"
284
+ RSpec/Pending:
285
+ Enabled: false
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Dutchie
4
4
  module Style
5
- VERSION = '1.0.9'
5
+ VERSION = '2.0.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Dutchie-Style
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Ostrowski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-01 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
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.93.1
19
+ version: 1.30.1
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.93.1
26
+ version: 1.30.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubygems_version: 3.1.2
93
+ rubygems_version: 3.2.22
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Rubocop Settings for all dutchie Ruby Apps