trailblazer 2.1.1 → 2.1.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: c855a9f17057fad3419eca6a8ae5307de5db8647e9b4ea5aa52a5826342408e0
4
- data.tar.gz: 460dd54870c5cbec3ef1371d4bc753fd6f92256dae8f02ae3d8e61d1aa0100a6
3
+ metadata.gz: 9408be91d18dd6ffcfd37798706abcd9c3ec53ec60b6b99aff17368bc2c8cba1
4
+ data.tar.gz: 545fbb44de7d6078941e0304c4390e28c92984a7b44cc75dc74f7c160917bffc
5
5
  SHA512:
6
- metadata.gz: de54db4db61277582aa95e18bfa8fd1ad2f907b8729c8f6dbb8df1c1f787bc086c5e68e9602faee4affa343504cb12f98cb1a89fd576a07c51505a4c7f50ad0e
7
- data.tar.gz: 320f445cb11d609abd5aeba9ef9a97a83bfcda0aa299c3bc3bb9a41e6c7623272ff7c2e4b381e73836349dbe78b92eae389ae2c963ff88c9a82f63651aa0f641
6
+ metadata.gz: fc0cc222a82c69e04bfe3c53ee0f166a9705acb09d665a49418b9a61a1e7ae61531609d36d4444e0db386828871fdc6ee9a13ad6df215e96e3560e8d65bd3e8c
7
+ data.tar.gz: af02a1954582ca6c9b767d98613b51b1ca96922b988c3b6a24cd122caf7d998d8a8d60a0c945b01392432983e2cc94eb2921a6b5982796a497e72df15cc7a12a
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
@@ -0,0 +1,19 @@
1
+ ## This file is managed by Terraform.
2
+ ## Do not modify this file directly, as it may be overwritten.
3
+ ## Please open an issue instead.
4
+ name: CI
5
+ on: [push, pull_request]
6
+ jobs:
7
+ test:
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ ruby: [2.7, '3.0', '3.1']
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
19
+ - run: bundle exec rake
@@ -0,0 +1,19 @@
1
+ ## This file is managed by Terraform.
2
+ ## Do not modify this file directly, as it may be overwritten.
3
+ ## Please open an issue instead.
4
+ name: CI JRuby
5
+ on: [push, pull_request]
6
+ jobs:
7
+ test:
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ ruby: [jruby, jruby-head]
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
19
+ - run: bundle exec rake
@@ -0,0 +1,19 @@
1
+ ## This file is managed by Terraform.
2
+ ## Do not modify this file directly, as it may be overwritten.
3
+ ## Please open an issue instead.
4
+ name: CI with EOL ruby versions
5
+ on: [push, pull_request]
6
+ jobs:
7
+ test:
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ ruby: [2.5, 2.6]
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
19
+ - run: bundle exec rake
@@ -0,0 +1,19 @@
1
+ ## This file is managed by Terraform.
2
+ ## Do not modify this file directly, as it may be overwritten.
3
+ ## Please open an issue instead.
4
+ name: CI TruffleRuby
5
+ on: [push, pull_request]
6
+ jobs:
7
+ test:
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ ruby: [truffleruby, truffleruby-head]
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ bundler-cache: true
19
+ - run: bundle exec rake
data/CHANGES.md CHANGED
@@ -1,4 +1,5 @@
1
1
 
2
+
2
3
  # 2.1
3
4
 
4
5
  * Macros now always have to provide an `:id`. This was a bit fuzzy in 2.0.
@@ -31,6 +32,10 @@ document Task API and define step API
31
32
  deprecate step->(options) ?
32
33
  injectable, per-operation step arguments strategy?
33
34
 
35
+ # 2.1.2
36
+
37
+ * Use `trailblazer-activity-dsl-linear` >= 1.1.0.
38
+
34
39
  # 2.1.1
35
40
 
36
41
  * Use `trailblazer-activity-dsl-linear` >= 1.0.0.
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  module Version
3
- VERSION = "2.1.1"
3
+ VERSION = "2.1.2"
4
4
  end
5
5
  end
data/trailblazer.gemspec CHANGED
@@ -27,9 +27,9 @@ Gem::Specification.new do |spec|
27
27
  spec.test_files = `git ls-files -z test`.split("\x0")
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- spec.add_dependency "trailblazer-macro", ">= 2.1.11", "< 2.2.0"
31
- spec.add_dependency "trailblazer-macro-contract", ">= 2.1.3", "< 2.2.0"
32
- spec.add_dependency "trailblazer-operation", ">= 0.8.0", "< 1.0.0"
30
+ spec.add_dependency "trailblazer-macro", ">= 2.1.12", "< 2.2.0"
31
+ spec.add_dependency "trailblazer-macro-contract", ">= 2.1.4", "< 2.2.0"
32
+ spec.add_dependency "trailblazer-operation", ">= 0.9.0", "< 1.0.0"
33
33
 
34
34
  spec.add_development_dependency "bundler"
35
35
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-22 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-macro
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.11
19
+ version: 2.1.12
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.2.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 2.1.11
29
+ version: 2.1.12
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.2.0
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 2.1.3
39
+ version: 2.1.4
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 2.2.0
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 2.1.3
49
+ version: 2.1.4
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 2.2.0
@@ -56,7 +56,7 @@ dependencies:
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 0.8.0
59
+ version: 0.9.0
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
62
  version: 1.0.0
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 0.8.0
69
+ version: 0.9.0
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
72
  version: 1.0.0
@@ -134,11 +134,12 @@ executables: []
134
134
  extensions: []
135
135
  extra_rdoc_files: []
136
136
  files:
137
+ - ".github/dependabot.yml"
138
+ - ".github/workflows/ci.yml"
139
+ - ".github/workflows/ci_jruby.yml"
140
+ - ".github/workflows/ci_legacy.yml"
141
+ - ".github/workflows/ci_truffleruby.yml"
137
142
  - ".gitignore"
138
- - ".rubocop-https---raw-githubusercontent-com-trailblazer-meta-master-rubocop-yml"
139
- - ".rubocop.yml"
140
- - ".rubocop_todo.yml"
141
- - ".travis.yml"
142
143
  - CHANGES.md
143
144
  - COMM-LICENSE
144
145
  - CONTRIBUTING.md
@@ -1,101 +0,0 @@
1
- AllCops:
2
- DisplayCopNames: true
3
- Layout/CaseIndentation:
4
- IndentOneStep: true
5
- Layout/FirstArrayElementLineBreak:
6
- Enabled: true
7
- Layout/FirstHashElementLineBreak:
8
- Enabled: true
9
- Layout/FirstMethodArgumentLineBreak:
10
- Enabled: true
11
- Layout/FirstMethodParameterLineBreak:
12
- Enabled: true
13
- Layout/MultilineAssignmentLayout:
14
- Enabled: true
15
- EnforcedStyle: same_line
16
- Layout/SpaceInsideHashLiteralBraces:
17
- EnforcedStyle: no_space
18
- Metrics/LineLength:
19
- Max: 130
20
- Metrics/ParameterLists:
21
- Max: 5
22
- Naming/VariableNumber:
23
- EnforcedStyle: snake_case
24
- Style/AndOr:
25
- EnforcedStyle: conditionals
26
- Style/AutoResourceCleanup:
27
- Enabled: true
28
- Style/CollectionMethods:
29
- Enabled: true
30
- Style/Documentation:
31
- Enabled: false
32
- Style/EmptyLiteral:
33
- Enabled: false
34
- Style/EmptyMethod:
35
- EnforcedStyle: expanded
36
- Style/FormatStringToken:
37
- EnforcedStyle: template
38
- Style/ImplicitRuntimeError:
39
- Enabled: true
40
- Style/MethodCalledOnDoEndBlock:
41
- Enabled: true
42
- Style/MethodDefParentheses:
43
- EnforcedStyle: require_parentheses
44
- Style/MissingElse:
45
- Enabled: true
46
- EnforcedStyle: case
47
- Style/NumericLiterals:
48
- Enabled: false
49
- Style/OptionHash:
50
- Enabled: true
51
- Style/PercentLiteralDelimiters:
52
- PreferredDelimiters:
53
- "%w": "[]"
54
- "%W": "[]"
55
- "%i": "[]"
56
- "%I": "[]"
57
- "%r": "()"
58
- Style/ReturnNil:
59
- Enabled: true
60
- Style/SafeNavigation:
61
- Enabled: false
62
- Style/Send:
63
- Enabled: true
64
- Style/SignalException:
65
- EnforcedStyle: semantic
66
- Style/StringLiterals:
67
- EnforcedStyle: double_quotes
68
- Style/StringLiteralsInInterpolation:
69
- EnforcedStyle: double_quotes
70
- Style/StringMethods:
71
- Enabled: true
72
- Style/SymbolArray:
73
- Enabled: true
74
- # this allows in rspec to have expect { } with multiple lines
75
- Style/BlockDelimiters:
76
- EnforcedStyle: braces_for_chaining
77
- Layout/EndOfLine:
78
- Enabled: false
79
- # don't need these checks in test folders
80
- Metrics/ModuleLength:
81
- Exclude:
82
- - "spec/**/*"
83
- - "test/**/*"
84
- Metrics/BlockLength:
85
- Exclude:
86
- - "spec/**/*"
87
- - "test/**/*"
88
- - "*.gemspec" # definitely not in the gemspec
89
- Metrics/MethodLength:
90
- Max: 20
91
- Lint/UnreachableCode:
92
- Description: 'Unreachable code.'
93
- Enabled: false
94
- Lint/Void:
95
- Enabled: false
96
- Layout/AlignHash:
97
- EnforcedLastArgumentHashStyle: ignore_implicit
98
- Metrics/AbcSize:
99
- Max: 25
100
- Style/LambdaCall:
101
- Enabled: false
data/.rubocop.yml DELETED
@@ -1,20 +0,0 @@
1
- inherit_from:
2
- - https://raw.githubusercontent.com/trailblazer/meta/master/rubocop.yml
3
- - .rubocop_todo.yml
4
-
5
- # Trailblazer uses constant named methods for macros.
6
- # Ignore the false positives in these files.
7
- Naming/MethodName:
8
- Exclude:
9
- - 'test/docs/macro_test.rb'
10
- - 'lib/trailblazer/operation/model.rb'
11
- - 'lib/trailblazer/operation/contract.rb'
12
- - 'lib/trailblazer/operation/auto_inject.rb'
13
- - 'lib/trailblazer/operation/wrap.rb'
14
- - 'lib/trailblazer/operation/validate.rb'
15
- - 'lib/trailblazer/operation/pundit.rb'
16
- - 'lib/trailblazer/operation/persist.rb'
17
- - 'lib/trailblazer/operation/rescue.rb'
18
- - 'lib/trailblazer/operation/callback.rb'
19
- - 'lib/trailblazer/operation/nested.rb'
20
- - 'lib/trailblazer/operation/guard.rb'
data/.rubocop_todo.yml DELETED
@@ -1,556 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2018-06-20 07:55:52 +0800 using RuboCop version 0.57.2.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 9
10
- # Configuration parameters: Include.
11
- # Include: **/*.gemfile, **/Gemfile, **/gems.rb
12
- Bundler/DuplicatedGem:
13
- Exclude:
14
- - 'Gemfile'
15
-
16
- # Offense count: 4
17
- # Cop supports --auto-correct.
18
- # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
19
- # Include: **/*.gemfile, **/Gemfile, **/gems.rb
20
- Bundler/OrderedGems:
21
- Exclude:
22
- - 'Gemfile'
23
-
24
- # Offense count: 1
25
- # Cop supports --auto-correct.
26
- # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
27
- # Include: **/*.gemspec
28
- Gemspec/OrderedDependencies:
29
- Exclude:
30
- - 'trailblazer.gemspec'
31
-
32
- # Offense count: 1
33
- # Configuration parameters: Include.
34
- # Include: **/*.gemspec
35
- Gemspec/RequiredRubyVersion:
36
- Exclude:
37
- - 'trailblazer.gemspec'
38
-
39
- # Offense count: 1
40
- # Cop supports --auto-correct.
41
- # Configuration parameters: EnforcedStyle, IndentationWidth.
42
- # SupportedStyles: outdent, indent
43
- Layout/AccessModifierIndentation:
44
- Exclude:
45
- - 'lib/trailblazer/dsl.rb'
46
-
47
- # Offense count: 1
48
- # Cop supports --auto-correct.
49
- Layout/BlockEndNewline:
50
- Exclude:
51
- - 'lib/trailblazer/operation/module.rb'
52
-
53
- # Offense count: 19
54
- # Cop supports --auto-correct.
55
- Layout/CommentIndentation:
56
- Exclude:
57
- - 'test/docs/fast_test.rb'
58
- - 'test/docs/operation_test.rb'
59
- - 'test/docs/trace_test.rb'
60
- - 'test/variables_test.rb'
61
-
62
- # Offense count: 5
63
- # Cop supports --auto-correct.
64
- # Configuration parameters: EnforcedStyle.
65
- # SupportedStyles: leading, trailing
66
- Layout/DotPosition:
67
- Exclude:
68
- - 'test/variables_test.rb'
69
-
70
- # Offense count: 7
71
- # Cop supports --auto-correct.
72
- # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
73
- Layout/EmptyLineBetweenDefs:
74
- Exclude:
75
- - 'test/docs/fast_test.rb'
76
- - 'test/test_helper.rb'
77
-
78
- # Offense count: 17
79
- # Cop supports --auto-correct.
80
- Layout/EmptyLines:
81
- Exclude:
82
- - 'test/benchmark.rb'
83
- - 'test/docs/fast_test.rb'
84
- - 'test/docs/operation_test.rb'
85
- - 'test/dsl/contract_test.rb'
86
- - 'test/module_test.rb'
87
-
88
- # Offense count: 2
89
- # Cop supports --auto-correct.
90
- Layout/EmptyLinesAroundAccessModifier:
91
- Exclude:
92
- - 'lib/trailblazer/dsl.rb'
93
- - 'lib/trailblazer/operation/test.rb'
94
-
95
- # Offense count: 2
96
- # Cop supports --auto-correct.
97
- # Configuration parameters: EnforcedStyle.
98
- # SupportedStyles: empty_lines, no_empty_lines
99
- Layout/EmptyLinesAroundBlockBody:
100
- Exclude:
101
- - 'lib/trailblazer/operation/module.rb'
102
- - 'test/dsl/contract_test.rb'
103
-
104
- # Offense count: 1
105
- # Cop supports --auto-correct.
106
- Layout/EmptyLinesAroundMethodBody:
107
- Exclude:
108
- - 'lib/trailblazer/operation/test.rb'
109
-
110
- # Offense count: 24
111
- # Configuration parameters: EnforcedStyle.
112
- # SupportedStyles: native, lf, crlf
113
- Layout/EndOfLine:
114
- Enabled: false
115
-
116
- # Offense count: 16
117
- # Cop supports --auto-correct.
118
- # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
119
- Layout/ExtraSpacing:
120
- Exclude:
121
- - 'lib/trailblazer/deprecation/context.rb'
122
- - 'test/benchmark.rb'
123
- - 'test/docs/fast_test.rb'
124
- - 'test/docs/operation_test.rb'
125
- - 'test/dsl/contract_test.rb'
126
- - 'test/variables_test.rb'
127
-
128
- # Offense count: 1
129
- # Cop supports --auto-correct.
130
- # Configuration parameters: EnforcedStyle, IndentationWidth.
131
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
132
- Layout/IndentHash:
133
- Exclude:
134
- - 'test/variables_test.rb'
135
-
136
- # Offense count: 10
137
- # Cop supports --auto-correct.
138
- # Configuration parameters: EnforcedStyle.
139
- # SupportedStyles: normal, rails
140
- Layout/IndentationConsistency:
141
- Exclude:
142
- - 'test/docs/operation_test.rb'
143
-
144
- # Offense count: 12
145
- # Cop supports --auto-correct.
146
- Layout/LeadingCommentSpace:
147
- Exclude:
148
- - 'test/docs/fast_test.rb'
149
- - 'test/docs/operation_test.rb'
150
- - 'test/dsl/contract_test.rb'
151
- - 'test/variables_test.rb'
152
- - 'trailblazer.gemspec'
153
-
154
- # Offense count: 8
155
- # Cop supports --auto-correct.
156
- Layout/SpaceAfterColon:
157
- Exclude:
158
- - 'test/docs/fast_test.rb'
159
-
160
- # Offense count: 42
161
- # Cop supports --auto-correct.
162
- Layout/SpaceAfterComma:
163
- Exclude:
164
- - 'lib/trailblazer/deprecation/context.rb'
165
- - 'test/docs/fast_test.rb'
166
-
167
- # Offense count: 5
168
- # Cop supports --auto-correct.
169
- # Configuration parameters: .
170
- # SupportedStyles: space, no_space
171
- Layout/SpaceAroundEqualsInParameterDefault:
172
- EnforcedStyle: no_space
173
-
174
- # Offense count: 16
175
- # Cop supports --auto-correct.
176
- # Configuration parameters: AllowForAlignment.
177
- Layout/SpaceAroundOperators:
178
- Exclude:
179
- - 'test/benchmark.rb'
180
- - 'test/deprecation/call_test.rb'
181
- - 'test/deprecation/context_test.rb'
182
- - 'test/docs/operation_test.rb'
183
- - 'test/dsl/contract_test.rb'
184
- - 'test/variables_test.rb'
185
-
186
- # Offense count: 3
187
- # Cop supports --auto-correct.
188
- Layout/SpaceBeforeComma:
189
- Exclude:
190
- - 'test/variables_test.rb'
191
-
192
- # Offense count: 4
193
- # Cop supports --auto-correct.
194
- Layout/SpaceBeforeComment:
195
- Exclude:
196
- - 'lib/trailblazer/dsl.rb'
197
- - 'test/dsl/contract_test.rb'
198
- - 'trailblazer.gemspec'
199
-
200
- # Offense count: 4
201
- # Cop supports --auto-correct.
202
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
203
- # SupportedStyles: space, no_space, compact
204
- # SupportedStylesForEmptyBrackets: space, no_space
205
- Layout/SpaceInsideArrayLiteralBrackets:
206
- Exclude:
207
- - 'lib/trailblazer/deprecation/context.rb'
208
- - 'test/benchmark.rb'
209
-
210
- # Offense count: 26
211
- # Cop supports --auto-correct.
212
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
213
- # SupportedStyles: space, no_space, compact
214
- # SupportedStylesForEmptyBraces: space, no_space
215
- Layout/SpaceInsideHashLiteralBraces:
216
- Exclude:
217
- - 'lib/trailblazer/deprecation/call.rb'
218
- - 'test/deprecation/call_test.rb'
219
- - 'test/docs/fast_test.rb'
220
- - 'test/docs/operation_test.rb'
221
-
222
- # Offense count: 93
223
- # Cop supports --auto-correct.
224
- # Configuration parameters: EnforcedStyle.
225
- # SupportedStyles: space, no_space
226
- Layout/SpaceInsideParens:
227
- Exclude:
228
- - 'lib/trailblazer/deprecation/call.rb'
229
- - 'lib/trailblazer/deprecation/context.rb'
230
- - 'test/deprecation/call_test.rb'
231
- - 'test/deprecation/context_test.rb'
232
- - 'test/docs/fast_test.rb'
233
- - 'test/docs/operation_test.rb'
234
- - 'test/docs/trace_test.rb'
235
- - 'test/dsl/contract_test.rb'
236
- - 'test/variables_test.rb'
237
-
238
- # Offense count: 1
239
- # Cop supports --auto-correct.
240
- # Configuration parameters: EnforcedStyle.
241
- # SupportedStyles: final_newline, final_blank_line
242
- Layout/TrailingBlankLines:
243
- Exclude:
244
- - 'lib/trailblazer/operation/module.rb'
245
-
246
- # Offense count: 2
247
- Lint/NestedMethodDefinition:
248
- Exclude:
249
- - 'test/benchmark.rb'
250
-
251
- # Offense count: 1
252
- Lint/ReturnInVoidContext:
253
- Exclude:
254
- - 'lib/trailblazer/deprecation/context.rb'
255
-
256
- # Offense count: 1
257
- # Configuration parameters: IgnoreImplicitReferences.
258
- Lint/ShadowedArgument:
259
- Exclude:
260
- - 'lib/trailblazer/deprecation/call.rb'
261
-
262
- # Offense count: 1
263
- Lint/ShadowingOuterLocalVariable:
264
- Exclude:
265
- - 'lib/trailblazer/deprecation/context.rb'
266
-
267
- # Offense count: 2
268
- # Cop supports --auto-correct.
269
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
270
- Lint/UnusedBlockArgument:
271
- Exclude:
272
- - 'test/test_helper.rb'
273
-
274
- # Offense count: 9
275
- # Cop supports --auto-correct.
276
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
277
- Lint/UnusedMethodArgument:
278
- Exclude:
279
- - 'lib/trailblazer/deprecation/call.rb'
280
- - 'lib/trailblazer/dsl.rb'
281
- - 'test/docs/fast_test.rb'
282
- - 'test/docs/trace_test.rb'
283
-
284
- # Offense count: 3
285
- Lint/UselessAssignment:
286
- Exclude:
287
- - 'test/deprecation/call_test.rb'
288
- - 'test/deprecation/context_test.rb'
289
-
290
- # Offense count: 1
291
- Metrics/AbcSize:
292
- Max: 18
293
-
294
- # Offense count: 2
295
- # Configuration parameters: CountComments, ExcludedMethods.
296
- Metrics/BlockLength:
297
- Max: 32
298
-
299
- # Offense count: 1
300
- Metrics/CyclomaticComplexity:
301
- Max: 10
302
-
303
- # Offense count: 30
304
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
305
- # URISchemes: http, https
306
- Metrics/LineLength:
307
- Max: 290
308
-
309
- # Offense count: 3
310
- # Configuration parameters: CountComments.
311
- Metrics/MethodLength:
312
- Max: 16
313
-
314
- # Offense count: 1
315
- Metrics/PerceivedComplexity:
316
- Max: 11
317
-
318
- # Offense count: 10
319
- # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
320
- # AllowedNames: io, id, to, by, on, in, at
321
- Naming/UncommunicativeMethodParamName:
322
- Exclude:
323
- - 'test/benchmark.rb'
324
- - 'test/docs/fast_test.rb'
325
-
326
- # Offense count: 2
327
- # Configuration parameters: AllowedChars.
328
- Style/AsciiComments:
329
- Exclude:
330
- - 'test/benchmark.rb'
331
-
332
- # Offense count: 12
333
- # Cop supports --auto-correct.
334
- Style/BlockComments:
335
- Exclude:
336
- - 'test/docs/operation_test.rb'
337
- - 'test/variables_test.rb'
338
-
339
- # Offense count: 3
340
- # Cop supports --auto-correct.
341
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
342
- # SupportedStyles: line_count_based, semantic, braces_for_chaining
343
- # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
344
- # FunctionalMethods: let, let!, subject, watch
345
- # IgnoredMethods: lambda, proc, it
346
- Style/BlockDelimiters:
347
- Exclude:
348
- - 'lib/trailblazer/operation/auto_inject.rb'
349
- - 'lib/trailblazer/operation/module.rb'
350
- - 'test/dsl/contract_test.rb'
351
-
352
- # Offense count: 2
353
- # Cop supports --auto-correct.
354
- # Configuration parameters: EnforcedStyle.
355
- # SupportedStyles: braces, no_braces, context_dependent
356
- Style/BracesAroundHashParameters:
357
- Exclude:
358
- - 'test/docs/operation_test.rb'
359
- - 'test/dsl/contract_test.rb'
360
-
361
- # Offense count: 11
362
- # Cop supports --auto-correct.
363
- # Configuration parameters: AutoCorrect, EnforcedStyle.
364
- # SupportedStyles: nested, compact
365
- Style/ClassAndModuleChildren:
366
- Exclude:
367
- - 'lib/trailblazer/operation/auto_inject.rb'
368
- - 'lib/trailblazer/operation/module.rb'
369
- - 'test/docs/fast_test.rb'
370
- - 'test/docs/operation_test.rb'
371
-
372
- # Offense count: 1
373
- # Cop supports --auto-correct.
374
- # Configuration parameters: EnforcedStyle.
375
- # SupportedStyles: is_a?, kind_of?
376
- Style/ClassCheck:
377
- Exclude:
378
- - 'lib/trailblazer/dsl.rb'
379
-
380
- # Offense count: 1
381
- # Cop supports --auto-correct.
382
- # Configuration parameters: PreferredMethods.
383
- Style/CollectionMethods:
384
- Exclude:
385
- - 'lib/trailblazer/deprecation/context.rb'
386
-
387
- # Offense count: 1
388
- # Cop supports --auto-correct.
389
- # Configuration parameters: Keywords.
390
- # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
391
- Style/CommentAnnotation:
392
- Exclude:
393
- - 'test/variables_test.rb'
394
-
395
- # Offense count: 2
396
- Style/CommentedKeyword:
397
- Exclude:
398
- - 'lib/trailblazer/operation/deprecations.rb'
399
- - 'lib/trailblazer/operation/module.rb'
400
-
401
- # Offense count: 1
402
- # Cop supports --auto-correct.
403
- # Configuration parameters: EnforcedStyle.
404
- # SupportedStyles: compact, expanded
405
- Style/EmptyMethod:
406
- Exclude:
407
- - 'test/docs/fast_test.rb'
408
-
409
- # Offense count: 1
410
- # Cop supports --auto-correct.
411
- Style/ExpandPathArguments:
412
- Exclude:
413
- - 'trailblazer.gemspec'
414
-
415
- # Offense count: 1
416
- # Configuration parameters: MinBodyLength.
417
- Style/GuardClause:
418
- Exclude:
419
- - 'test/docs/fast_test.rb'
420
-
421
- # Offense count: 6
422
- # Cop supports --auto-correct.
423
- # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
424
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
425
- Style/HashSyntax:
426
- Exclude:
427
- - 'Rakefile'
428
- - 'test/docs/operation_test.rb'
429
-
430
- # Offense count: 1
431
- Style/ImplicitRuntimeError:
432
- Exclude:
433
- - 'lib/trailblazer/operation/test.rb'
434
-
435
- # Offense count: 70
436
- # Cop supports --auto-correct.
437
- # Configuration parameters: .
438
- # SupportedStyles: call, braces
439
- Style/LambdaCall:
440
- EnforcedStyle: braces
441
-
442
- # Offense count: 1
443
- Style/MethodMissingSuper:
444
- Exclude:
445
- - 'lib/trailblazer/operation/module.rb'
446
-
447
- # Offense count: 1
448
- Style/MissingRespondToMissing:
449
- Exclude:
450
- - 'lib/trailblazer/operation/module.rb'
451
-
452
- # Offense count: 1
453
- # Cop supports --auto-correct.
454
- Style/MutableConstant:
455
- Exclude:
456
- - 'lib/trailblazer/version.rb'
457
-
458
- # Offense count: 2
459
- Style/OptionalArguments:
460
- Exclude:
461
- - 'lib/trailblazer/dsl.rb'
462
-
463
- # Offense count: 1
464
- # Cop supports --auto-correct.
465
- Style/ParallelAssignment:
466
- Exclude:
467
- - 'lib/trailblazer/deprecation/call.rb'
468
-
469
- # Offense count: 47
470
- # Cop supports --auto-correct.
471
- # Configuration parameters: PreferredDelimiters.
472
- Style/PercentLiteralDelimiters:
473
- Exclude:
474
- - 'test/deprecation/call_test.rb'
475
- - 'test/deprecation/context_test.rb'
476
- - 'test/docs/fast_test.rb'
477
- - 'test/docs/operation_test.rb'
478
- - 'test/docs/trace_test.rb'
479
- - 'test/dsl/contract_test.rb'
480
- - 'test/variables_test.rb'
481
- - 'trailblazer.gemspec'
482
-
483
- # Offense count: 2
484
- # Cop supports --auto-correct.
485
- # Configuration parameters: AllowMultipleReturnValues.
486
- Style/RedundantReturn:
487
- Exclude:
488
- - 'lib/trailblazer/deprecation/call.rb'
489
- - 'test/docs/fast_test.rb'
490
-
491
- # Offense count: 8
492
- # Cop supports --auto-correct.
493
- # Configuration parameters: AllowAsExpressionSeparator.
494
- Style/Semicolon:
495
- Exclude:
496
- - 'test/docs/fast_test.rb'
497
-
498
- # Offense count: 1
499
- Style/Send:
500
- Exclude:
501
- - 'lib/trailblazer/operation/module.rb'
502
-
503
- # Offense count: 1
504
- # Cop supports --auto-correct.
505
- # Configuration parameters: EnforcedStyle.
506
- # SupportedStyles: only_raise, only_fail, semantic
507
- Style/SignalException:
508
- Exclude:
509
- - 'lib/trailblazer/operation/test.rb'
510
-
511
- # Offense count: 20
512
- # Cop supports --auto-correct.
513
- # Configuration parameters: AllowIfMethodIsEmpty.
514
- Style/SingleLineMethods:
515
- Exclude:
516
- - 'test/docs/fast_test.rb'
517
- - 'test/docs/operation_test.rb'
518
- - 'test/test_helper.rb'
519
-
520
- # Offense count: 14
521
- # Cop supports --auto-correct.
522
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
523
- # SupportedStyles: single_quotes, double_quotes
524
- Style/StringLiterals:
525
- Exclude:
526
- - 'Gemfile'
527
- - 'Rakefile'
528
- - 'trailblazer.gemspec'
529
-
530
- # Offense count: 1
531
- # Cop supports --auto-correct.
532
- # Configuration parameters: EnforcedStyleForMultiline.
533
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
534
- Style/TrailingCommaInHashLiteral:
535
- Exclude:
536
- - 'test/variables_test.rb'
537
-
538
- # Offense count: 2
539
- # Cop supports --auto-correct.
540
- # Configuration parameters: AllowNamedUnderscoreVariables.
541
- Style/TrailingUnderscoreVariable:
542
- Exclude:
543
- - 'lib/trailblazer/deprecation/context.rb'
544
-
545
- # Offense count: 2
546
- # Cop supports --auto-correct.
547
- Style/UnneededPercentQ:
548
- Exclude:
549
- - 'trailblazer.gemspec'
550
-
551
- # Offense count: 1
552
- # Cop supports --auto-correct.
553
- # Configuration parameters: MinSize, WordRegex.
554
- # SupportedStyles: percent, brackets
555
- Style/WordArray:
556
- EnforcedStyle: brackets
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- before_install:
4
- - gem update --system
5
- - gem install bundler
6
- rvm:
7
- - 2.5.1
8
- - 2.4.4
9
- - 2.3.7