trailblazer-activity-dsl-linear 0.1.7 → 0.1.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab6af3f4814612317775e55c788597db4716219d663f553d0ea61541f4eed8d7
|
4
|
+
data.tar.gz: 915ca22ddb9004718d6d1bbf1b49e3a2e9d3742f1d976ef36d0cc90450b913fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 135926b784a7cd31cf3e664836ff8a1ce38ee5d22d9d9e37d329e89089a6517a17a768b4b8141ba2e8a763cdfa110b4daee2a6a89112c07242b5ca77f45a33f0
|
7
|
+
data.tar.gz: eca38645671834ae5d1044438707df31f43f6d7f0541e188e71a30e3916241af1d8aaa8dd21b9f4f6d9b254f284d14c0312f5b6eebe0d1fd9da09a55bc8f2456
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
class Trailblazer::Activity
|
2
3
|
module DSL
|
3
4
|
# Implementing a specific DSL, simplified version of the {Magnetic DSL} from 2017.
|
@@ -153,6 +154,7 @@ class Trailblazer::Activity
|
|
153
154
|
end
|
154
155
|
end
|
155
156
|
|
157
|
+
require "trailblazer-activity"
|
156
158
|
require "trailblazer/activity/dsl/linear/normalizer"
|
157
159
|
require "trailblazer/activity/dsl/linear/state"
|
158
160
|
require "trailblazer/activity/dsl/linear/strategy"
|
@@ -54,12 +54,12 @@ module Trailblazer
|
|
54
54
|
nil
|
55
55
|
end
|
56
56
|
|
57
|
-
seq =
|
57
|
+
seq = strip_start_and_ends(seq, end_id: _end_id) # don't cut off end unless {:connect_to} is set.
|
58
58
|
|
59
59
|
if connect_to
|
60
60
|
output, _ = seq[-1][2][0].(seq, seq[-1]) # FIXME: the Forward() proc contains the row's Output, and the only current way to retrieve it is calling the search strategy. It should be Forward#to_h
|
61
61
|
|
62
|
-
searches = [
|
62
|
+
searches = [Search.ById(output, connect_to.value)]
|
63
63
|
|
64
64
|
row = seq[-1]
|
65
65
|
row = row[0..1] + [searches] + [row[3]] # FIXME: not mutating an array is so hard: we only want to replace the "searches" element, index 2
|
@@ -71,7 +71,7 @@ module Trailblazer
|
|
71
71
|
adds = seq.collect do |row|
|
72
72
|
{
|
73
73
|
row: row,
|
74
|
-
insert: [
|
74
|
+
insert: [Insert.method(:Prepend), "End.success"]
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
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: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trailblazer-activity
|