trailblazer-developer 0.0.8 → 0.0.9

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: 4ca80026aa28f6e54a1a4b97e9efd20408cacdf0e5b80528856ffffa7ac29870
4
- data.tar.gz: '069c09bff5551db399917d7e4c97a3d9698d281bb2d4efe3b9961f4daab13277'
3
+ metadata.gz: 2c8a254986c9786c115dc449f613827d7a150b45c6c70450cd64b6737f050835
4
+ data.tar.gz: 5cb310e85b4fd1445a502e169272627df7ffb4140adaf839f8528da3b0a56b69
5
5
  SHA512:
6
- metadata.gz: 04c2f24488f25194553750235358290248ffd041df2d75ce839a78df28bccef2630ae7501756225ef597f1a97588a2ac98cdd80184d5080cddcc345141410452
7
- data.tar.gz: 31dfb2eac96ee7b0fa29339ed350ffcdb77297ca4b605ac8f1ac1297f4e05bbf7f126e559f312719590397bb421cd17f2e14dcfe0cbba41656732df0acbe5351
6
+ metadata.gz: 47855c140e29e0aede4c005daee72119b92e51da2260216a6dc6d2d97cb46b6e7f912441114133addd7b4ad21deaccb388e7182485026a4cff98aa2386c76590
7
+ data.tar.gz: '097c4814f05456c2e69762b0c324b070b0ba1e5b269f21a9c4f8d8dd82f5ab8889151851e6df1ebbb1de95319dc5e1363a135c71d39a4ebf0956c26b88a2eff0'
@@ -1,3 +1,8 @@
1
+ # 0.0.9
2
+
3
+ * `Render.strip` is now a class method.
4
+ * Added the `.type` field to the `data` field in `Generate`.
5
+
1
6
  # 0.0.8
2
7
 
3
8
  * Fix `Introspect` references.
@@ -49,7 +49,10 @@ module Trailblazer
49
49
 
50
50
  inter = Activity::Schema::Intermediate
51
51
 
52
- wiring = elements.collect { |el| [inter.TaskRef(el.id, el.data), el.linksTo.collect { |arrow| inter.Out(semantic_for(arrow.to_h), arrow.target) } ] }
52
+ wiring = elements.collect { |el|
53
+ data = data_for(el)
54
+
55
+ [inter.TaskRef(el.id, data), el.linksTo.collect { |arrow| inter.Out(semantic_for(arrow.to_h), arrow.target) } ] }
53
56
  wiring = Hash[wiring]
54
57
 
55
58
  # end events need this stupid special handling
@@ -68,6 +71,10 @@ module Trailblazer
68
71
 
69
72
  # private
70
73
 
74
+ def data_for(element)
75
+ {type: element.type}.merge(element.data)
76
+ end
77
+
71
78
  # We currently use the {:label} field of an arrow to encode an output semantic.
72
79
  # The {:symbol_style} part will be filtered out as semantic. Defaults to {:success}.
73
80
  def semantic_for(label:nil, **)
@@ -42,13 +42,13 @@ module Trailblazer
42
42
  end
43
43
 
44
44
  def inspect_end(task)
45
- class_name = strip(task.class)
45
+ class_name = Render::Circuit.strip(task.class)
46
46
  options = task.to_h
47
47
 
48
48
  "#<#{class_name}/#{options[:semantic].inspect}>"
49
49
  end
50
50
 
51
- def strip(string)
51
+ def self.strip(string)
52
52
  string.to_s.sub("Trailblazer::Activity::", "")
53
53
  end
54
54
  end
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Version
3
3
  module Developer
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-developer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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-09-23 00:00:00.000000000 Z
11
+ date: 2019-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  requirements: []
180
180
  rubyforge_project:
181
- rubygems_version: 2.7.6
181
+ rubygems_version: 2.7.3
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Developer tools for Trailblazer.