gemwork 0.7.17 → 0.7.19
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/CHANGELOG.md +8 -0
- data/lib/gemwork/test/support/reporters.rb +2 -1
- data/lib/gemwork/version.rb +1 -1
- data/lib/rubocop/all_cops-rails.yml +1 -1
- data/lib/rubocop/layout.yml +17 -6
- data/lib/rubocop/metrics-rails.yml +7 -7
- data/lib/rubocop/metrics.yml +2 -2
- data/lib/rubocop/style.yml +27 -0
- data/lib/tasks/brakeman.rake +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbc5491e286cd012bfc6af3218a975ab71c2fdf9c5d48e1cc11629e7f0df3fd7
|
4
|
+
data.tar.gz: 5221fbf8bcb678c7415c52b07eb52772ef9c147e745709007ca46448ccc8b864
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64e5a84ea52820dab69533c4572cc0c8d862708ab3595a6d5e718e7d8033ff7cee6e3e133e58750872ce05fce09c7dc1d3a72389994fea4d7fd5fd684330972d
|
7
|
+
data.tar.gz: ddd21dc01acd9d609846c55b894c0c237026159b93dbc1f15e040493f143d9d0a45d911d63bb11fc31f0f9a3320ffa6b2eaac0394ecf8ef90fbe5ef58bf9fd6a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.7.19] - 2025-7-5
|
4
|
+
|
5
|
+
- Update Rubocop styles re: multi-line method definitions/calls.
|
6
|
+
|
7
|
+
## [0.7.18] - 2025-4-18
|
8
|
+
|
9
|
+
- Disable Metrics/BlockLength cop for `given` blocks in Tests
|
10
|
+
|
3
11
|
## [0.7.17] - 2025-4-2
|
4
12
|
|
5
13
|
- Revert Rubocop config to ignore all files in the .gitignore spec
|
data/lib/gemwork/version.rb
CHANGED
data/lib/rubocop/layout.yml
CHANGED
@@ -36,7 +36,12 @@ Layout/FirstMethodParameterLineBreak:
|
|
36
36
|
Enabled: true
|
37
37
|
|
38
38
|
Layout/FirstParameterIndentation:
|
39
|
-
|
39
|
+
# The first parameter should always be indented one step more than the
|
40
|
+
# preceding line. e.g.
|
41
|
+
# def my_method(
|
42
|
+
# my_arg1 # <- 👀EnforcedStyleForMultiline
|
43
|
+
# )
|
44
|
+
Enabled: true
|
40
45
|
|
41
46
|
Layout/HeredocArgumentClosingParenthesis:
|
42
47
|
Enabled: true
|
@@ -77,17 +82,23 @@ Layout/MultilineHashKeyLineBreaks:
|
|
77
82
|
Layout/MultilineMethodArgumentLineBreaks:
|
78
83
|
Enabled: false
|
79
84
|
|
80
|
-
Layout/MultilineMethodParameterLineBreaks:
|
81
|
-
Enabled: false
|
82
|
-
|
83
85
|
Layout/MultilineMethodCallBraceLayout:
|
84
|
-
EnforcedStyle:
|
86
|
+
EnforcedStyle: symmetrical
|
85
87
|
|
86
88
|
Layout/MultilineMethodCallIndentation:
|
87
89
|
EnforcedStyle: indented_relative_to_receiver
|
88
90
|
|
89
91
|
Layout/MultilineMethodDefinitionBraceLayout:
|
90
|
-
|
92
|
+
# The closing brace of a multi-line method definition must be on the line
|
93
|
+
# after the last parameter of the definition. e.g.
|
94
|
+
# def my_method(
|
95
|
+
# my_arg1,
|
96
|
+
# my_arg2,
|
97
|
+
# ) # <- 👀
|
98
|
+
EnforcedStyle: new_line
|
99
|
+
|
100
|
+
Layout/MultilineMethodParameterLineBreaks:
|
101
|
+
Enabled: false
|
91
102
|
|
92
103
|
Layout/MultilineOperationIndentation:
|
93
104
|
Enabled: false # Waiting for e.g. `indented_relative_to_receiver`.
|
@@ -2,13 +2,6 @@ Metrics/AbcSize:
|
|
2
2
|
Exclude:
|
3
3
|
- db/migrate/*.rb
|
4
4
|
|
5
|
-
Metrics/MethodLength:
|
6
|
-
AllowedMethods:
|
7
|
-
- create
|
8
|
-
- update
|
9
|
-
Exclude:
|
10
|
-
- db/migrate/*.rb
|
11
|
-
|
12
5
|
Metrics/BlockLength:
|
13
6
|
Exclude:
|
14
7
|
- config/environments/*.rb
|
@@ -16,3 +9,10 @@ Metrics/BlockLength:
|
|
16
9
|
- db/migrate/*.rb
|
17
10
|
- db/seeds.rb
|
18
11
|
- test/**/*
|
12
|
+
|
13
|
+
Metrics/MethodLength:
|
14
|
+
AllowedMethods:
|
15
|
+
- create
|
16
|
+
- update
|
17
|
+
Exclude:
|
18
|
+
- db/migrate/*.rb
|
data/lib/rubocop/metrics.yml
CHANGED
data/lib/rubocop/style.yml
CHANGED
@@ -186,6 +186,33 @@ Style/SymbolProc:
|
|
186
186
|
Style/TopLevelMethodDefinition:
|
187
187
|
Enabled: false
|
188
188
|
|
189
|
+
Style/TrailingCommaInArguments:
|
190
|
+
# Requires a comma after the last argument, but only for parenthesized method
|
191
|
+
# calls where each argument is on its own line. e.g.
|
192
|
+
# def my_method(
|
193
|
+
# my_arg1,
|
194
|
+
# my_arg2, # <- 👀 Comma required.
|
195
|
+
# )
|
196
|
+
# def my_method(
|
197
|
+
# my_arg1, my_arg2 # <- 👀 No comma required.
|
198
|
+
# )
|
199
|
+
#
|
200
|
+
# NOTE: Prefer `comma` over `consistent` b/c `consistent`:
|
201
|
+
# - Behaves strangely when the last argument is a HEREDOC. e.g.
|
202
|
+
# t.index(
|
203
|
+
# :status,
|
204
|
+
# unique: true,
|
205
|
+
# where: <<~SQL.squish) # <- 👀 Avoids needing: `squish,)`
|
206
|
+
# status IN ('...')
|
207
|
+
# SQL
|
208
|
+
#
|
209
|
+
# - Prevents all visual compression e.g. for final method arrays. e.g.
|
210
|
+
# def_delegators(:array, *%i[
|
211
|
+
# to_a
|
212
|
+
# uniq!
|
213
|
+
# ]) # <- 👀 Avoids needing: `],)`
|
214
|
+
EnforcedStyleForMultiline: comma
|
215
|
+
|
189
216
|
Style/TrailingCommaInArrayLiteral:
|
190
217
|
EnforcedStyleForMultiline: comma
|
191
218
|
|
data/lib/tasks/brakeman.rake
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemwork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul DobbinSchmaltz
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|
@@ -263,7 +263,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '0'
|
265
265
|
requirements: []
|
266
|
-
rubygems_version: 3.6.
|
266
|
+
rubygems_version: 3.6.9
|
267
267
|
specification_version: 4
|
268
268
|
summary: Common gem framework code used by pdobb's Ruby Gems.
|
269
269
|
test_files: []
|