trailblazer-activity-dsl-linear 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +9 -1
- data/Gemfile +1 -1
- data/lib/trailblazer/activity/dsl/linear/feature/variable_mapping/dsl.rb +8 -4
- data/lib/trailblazer/activity/dsl/linear/version.rb +1 -1
- data/lib/trailblazer/activity/railway.rb +1 -0
- data/trailblazer-activity-dsl-linear.gemspec +1 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be269289660eb9d7166d09b6f88032c450ecf8a6ebff8ae2f5bb199a0a1dc29a
|
4
|
+
data.tar.gz: dc9974c13c7dba1fdebe59042a16318405e38d0a9b6ac14721616c757c54b6bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e719946c8b9f7b0782e78f25804efdd2cd488a730da1f255e5f5a1a409a192a100f69c126dd040487b689fde847a158d20fa31c306868a449cf5d19f6142b1c4
|
7
|
+
data.tar.gz: bc37550aeb5ece347414a3861d471582d37878f2f2a51e6fa25cf0da166cead64d437e992156b7dd2f73e8f43fe8edea635e60546cf7da2c430a912d7fa8f189
|
data/CHANGES.md
CHANGED
data/Gemfile
CHANGED
@@ -5,7 +5,7 @@ gemspec
|
|
5
5
|
|
6
6
|
gem "minitest-line"
|
7
7
|
|
8
|
-
|
8
|
+
gem "trailblazer-developer", path: "../trailblazer-developer"
|
9
9
|
# gem "trailblazer-developer", github: "trailblazer/trailblazer-developer"
|
10
10
|
# gem "trailblazer-declarative", path: "../trailblazer-declarative"
|
11
11
|
# gem "trailblazer-activity", path: "../trailblazer-activity"
|
@@ -188,17 +188,21 @@ module Trailblazer
|
|
188
188
|
class FiltersBuilder
|
189
189
|
def self.call(user_filter, with_outer_ctx:, **options)
|
190
190
|
if with_outer_ctx
|
191
|
-
callable
|
192
|
-
|
191
|
+
callable = Trailblazer::Option(user_filter) # FIXME: :instance_method
|
192
|
+
arity = case user_filter
|
193
|
+
when Symbol then nil
|
194
|
+
when Proc then user_filter.arity
|
195
|
+
else user_filter.method(:call).arity
|
196
|
+
end
|
193
197
|
|
194
198
|
options =
|
195
199
|
# TODO: remove {if} and only leave {else}.
|
196
|
-
if
|
200
|
+
if arity == 3
|
197
201
|
Activity::Deprecate.warn Linear::Deprecate.dsl_caller_location,
|
198
202
|
"The positional argument `outer_ctx` is deprecated, please use the `:outer_ctx` keyword argument.\n#{VariableMapping.deprecation_link}"
|
199
203
|
|
200
204
|
options.merge(
|
201
|
-
filter:
|
205
|
+
filter: callable,
|
202
206
|
add_variables_class_for_callable: AddVariables::Output::WithOuterContext_Deprecated, # old positional arg
|
203
207
|
)
|
204
208
|
else
|
@@ -8,8 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.authors = ["Nick Sutterer"]
|
9
9
|
spec.email = ["apotonick@gmail.com"]
|
10
10
|
|
11
|
-
spec.summary = %(
|
12
|
-
spec.description = %(Simple DSL to define Trailblazer activities with arbitrary wirings.)
|
11
|
+
spec.summary = %(The #step DSL for Trailblazer activities.)
|
13
12
|
spec.homepage = "https://trailblazer.to/2.1/docs/activity"
|
14
13
|
spec.licenses = ["LGPL-3.0"]
|
15
14
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-activity-dsl-linear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.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: 2023-
|
11
|
+
date: 2023-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trailblazer-activity
|
@@ -112,7 +112,7 @@ dependencies:
|
|
112
112
|
- - '='
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: 0.0.2
|
115
|
-
description:
|
115
|
+
description:
|
116
116
|
email:
|
117
117
|
- apotonick@gmail.com
|
118
118
|
executables: []
|
@@ -173,5 +173,5 @@ requirements: []
|
|
173
173
|
rubygems_version: 3.2.3
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
|
-
summary:
|
176
|
+
summary: 'The #step DSL for Trailblazer activities.'
|
177
177
|
test_files: []
|