trailblazer-activity-dsl-linear 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2eccbd6b077b017f81d57ddc1dbc564c903fec72a83e4496118e31098be0a06e
4
- data.tar.gz: 92ed613fe58920562d059b2b3affc155b07aca0f1a7c0a20813d45da1f6be5b5
3
+ metadata.gz: ab6af3f4814612317775e55c788597db4716219d663f553d0ea61541f4eed8d7
4
+ data.tar.gz: 915ca22ddb9004718d6d1bbf1b49e3a2e9d3742f1d976ef36d0cc90450b913fc
5
5
  SHA512:
6
- metadata.gz: 68564dcce8e6b423868b5633e5ab7cb1c46402e1d74b963eb4898e994aadc605d75f365f172436aa59b20c074f1b65440b68af4cc1e623be789a33dc0adb299e
7
- data.tar.gz: 695efbb135d86cc05d93387e9b24ee422806a3fb5a98099b29a4bc034f58d385d18670994131aa442ce92bd547980caded1a1e65bbf0d5c2297c501c176a8e87
6
+ metadata.gz: 135926b784a7cd31cf3e664836ff8a1ce38ee5d22d9d9e37d329e89089a6517a17a768b4b8141ba2e8a763cdfa110b4daee2a6a89112c07242b5ca77f45a33f0
7
+ data.tar.gz: eca38645671834ae5d1044438707df31f43f6d7f0541e188e71a30e3916241af1d8aaa8dd21b9f4f6d9b254f284d14c0312f5b6eebe0d1fd9da09a55bc8f2456
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.8.
2
+
3
+ * Fix `Linear` namespacing and `require`s.
4
+
1
5
  # 0.1.7
2
6
 
3
7
  * Add `:connect_to` option to `Path()` to allow re-joining a branched activity.
@@ -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 = Linear.strip_start_and_ends(seq, end_id: _end_id) # don't cut off end unless {:connect_to} is set.
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 = [Linear::Search.ById(output, connect_to.value)]
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: [Linear::Insert.method(:Prepend), "End.success"]
74
+ insert: [Insert.method(:Prepend), "End.success"]
75
75
  }
76
76
  end
77
77
 
@@ -3,7 +3,7 @@ module Trailblazer
3
3
  module Activity
4
4
  module DSL
5
5
  module Linear
6
- VERSION = "0.1.7"
6
+ VERSION = "0.1.8"
7
7
  end
8
8
  end
9
9
  end
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.7
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-10 00:00:00.000000000 Z
11
+ date: 2019-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-activity