Dutchie-Style 1.0.6 → 2.0.0
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/Dutchie-Style.gemspec +1 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +4 -4
- data/default.yml +45 -1
- data/lib/Dutchie/Style/version.rb +3 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2979ce72ee0581c527a64720f84203514d2d3f9f68ec96a7e48b0785a3b5574a
|
4
|
+
data.tar.gz: '040977d7c8ecdaf0000a5fe714677365bb8361ec743f26a8682fc1b8f39a7f78'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2272007d026c87ea281c4502251e87cd1fc21c238840f5cda86e1a35155b16df1c82763f76b80fee0935b53eaeb6d470767abd46065ad4f37297ab43e86951
|
7
|
+
data.tar.gz: 36c8d0bc49b88c07d86f149966422acf23d17635acd07147a644d9ebc0002bf8a3cdc78576e73ac58b2073759e426a6cd2399cbe2306610c275ac2529510d810
|
data/Dutchie-Style.gemspec
CHANGED
@@ -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", "~>
|
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
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
Dutchie-Style (1.0.
|
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.
|
60
|
+
rubocop-rspec (1.44.1)
|
61
61
|
rubocop (~> 0.87)
|
62
|
-
rubocop-ast (
|
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.
|
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
|
+
IgnoredPatterns: ['["\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,6 +77,8 @@ Layout/SpaceInsideHashLiteralBraces:
|
|
59
77
|
|
60
78
|
# Exclude RSpec
|
61
79
|
Metrics/BlockLength:
|
80
|
+
Exclude:
|
81
|
+
- "spec/factories/**/*.rb"
|
62
82
|
ExcludedMethods: ['describe', 'context']
|
63
83
|
|
64
84
|
# Too short methods lead to extraction of single-use methods, which can make
|
@@ -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
|
|
@@ -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
|
@@ -228,14 +254,32 @@ Lint/ConstantResolution:
|
|
228
254
|
Rails/SaveBang:
|
229
255
|
Enabled: false
|
230
256
|
|
257
|
+
# Temporarily removing until Mongoid is no more...
|
258
|
+
# Mongoid #find_by raises an exception if it can't be found, unlike AR #find_by, so .where().first is preferred
|
259
|
+
# Rubocop can't tell the difference between the two
|
231
260
|
Rails/FindBy:
|
232
|
-
Enabled:
|
261
|
+
Enabled: false
|
233
262
|
Include:
|
234
263
|
- app/**/*.rb
|
235
264
|
|
236
265
|
# RSpec
|
266
|
+
|
267
|
+
# Start context description without 'when', 'with', or 'without'.
|
268
|
+
RSpec/ContextWording:
|
269
|
+
Enabled: false
|
270
|
+
|
237
271
|
RSpec/AlignLeftLetBrace:
|
238
272
|
Enabled: true
|
239
273
|
|
240
274
|
RSpec/AlignRightLetBrace:
|
241
275
|
Enabled: false
|
276
|
+
|
277
|
+
RSpec/MultipleMemoizedHelpers:
|
278
|
+
Enabled: false
|
279
|
+
|
280
|
+
RSpec/NestedGroups:
|
281
|
+
Max: 5
|
282
|
+
|
283
|
+
# Allows us to mark specs as "skip"
|
284
|
+
RSpec/Pending:
|
285
|
+
Enabled: false
|
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:
|
4
|
+
version: 2.0.0
|
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:
|
11
|
+
date: 2022-06-15 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:
|
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:
|
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.
|
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: []
|