trailblazer-activity-dsl-linear 1.0.0.beta1 → 1.0.0

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: 40f3c629e47f86039e0028f0e82f78a51f9b4d7d9e6c953a3605510b1241c050
4
- data.tar.gz: 54a79c00d4a4505c0da36dcffb209f1fdf6a5c438156620c665443d481039f7d
3
+ metadata.gz: 91482f9f8f3191ea94fccb525e24e55b95edb1f089ee24dd7748364af140476b
4
+ data.tar.gz: f85598f3e6796e6df4aa6a3927654dc882dae26e2e8c39eff4ea2b4a86db98f7
5
5
  SHA512:
6
- metadata.gz: c4c2d3df3fff7dbae401d840c1a4efca1397be7a7839b2d89b05300bd17f4b41df0f86c32c19ea98c2a61e8d1a045278592041605c06c7e4a46797e8f5bc97b7
7
- data.tar.gz: daa3b6f02156a479bda2b6359583be835a6b908415a388714c6e3d17004e6dff3f8682619e83ace151259deca834744de7521d30916626df05a9e207b2705e7e
6
+ metadata.gz: 88644ff777e10df4e7e6337742f4684e487bdac3e2899d5168f9f4769563171c68638608b2d3de495b66467d9046c2d3f2c12c94ebd4d046c9ec66bbb364cce6
7
+ data.tar.gz: 53279e4799c2e08909e4a60e55a139c8455faf1d12b8f2fa78a5c80eef6446981e5468e0f962569be1538ce87a4567aef3ef271923be56e8cb17a83ae11610c9
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gem "minitest-line"
7
7
 
8
8
  gem "rubocop", require: false
9
9
 
10
- # gem "trailblazer-developer", path: "../trailblazer-developer"
10
+ gem "trailblazer-developer", path: "../trailblazer-developer"
11
11
  # gem "trailblazer-developer", github: "trailblazer/trailblazer-developer"
12
12
  # gem "trailblazer-declarative", path: "../trailblazer-declarative"
13
13
  # gem "trailblazer-activity", path: "../trailblazer-activity"
@@ -37,7 +37,7 @@ module Trailblazer
37
37
  # With only injections defined, we do not filter out anything, we use the original ctx
38
38
  # and _add_ defaulting for injected variables.
39
39
  pipeline = add_filter_steps(initial_input_pipeline, in_filters)
40
- pipeline = add_filter_steps(pipeline, inject_filters)
40
+ pipeline = add_filter_steps(pipeline, inject_filters, path_prefix: "inject")
41
41
  end
42
42
 
43
43
  # initial pipleline depending on whether or not we got any In() filters.
@@ -97,13 +97,13 @@ module Trailblazer
97
97
  tuple = DSL.Out(name: ":output", with_outer_ctx: output_with_outer_ctx) # simulate {Out() => output}
98
98
  output_filter = DSL::Tuple.filters_from_options([[tuple, output]])
99
99
 
100
- add_filter_steps(pipeline, output_filter, prepend_to: "output.merge_with_original")
100
+ add_filter_steps(pipeline, output_filter, prepend_to: "output.merge_with_original", path_prefix: "output")
101
101
  end
102
102
 
103
103
  def pipe_for_composable_output(out_filters: [], initial_output_pipeline: initial_output_pipeline(add_default_ctx: Array(out_filters).empty?), **)
104
104
  out_filters = DSL::Tuple.filters_from_options(out_filters)
105
105
 
106
- add_filter_steps(initial_output_pipeline, out_filters, prepend_to: "output.merge_with_original")
106
+ add_filter_steps(initial_output_pipeline, out_filters, prepend_to: "output.merge_with_original", path_prefix: "output")
107
107
  end
108
108
 
109
109
  def initial_output_pipeline(add_default_ctx: false)
@@ -128,11 +128,11 @@ module Trailblazer
128
128
 
129
129
  tuples = DSL::Inject.filters_for_injects(injects) # DISCUSS: should we add passthrough/defaulting here at Inject()-time?
130
130
 
131
- add_filter_steps(pipeline, tuples)
131
+ add_filter_steps(pipeline, tuples, path_prefix: "inject")
132
132
  end
133
133
 
134
- def add_filter_steps(pipeline, rows, prepend_to: "input.scope") # FIXME: do we need all this?
135
- rows = add_variables_steps_for_filters(rows)
134
+ def add_filter_steps(pipeline, rows, prepend_to: "input.scope", path_prefix: "input")
135
+ rows = add_variables_steps_for_filters(rows, path_prefix: path_prefix)
136
136
 
137
137
  adds = Activity::Adds::FriendlyInterface.adds_for(
138
138
  rows.collect { |row| [row[1], id: row[0], prepend: prepend_to] }
@@ -143,9 +143,9 @@ module Trailblazer
143
143
 
144
144
  # Returns array of step rows ("sequence").
145
145
  # @param filters [Array] List of {Filter} objects
146
- def add_variables_steps_for_filters(filters) # FIXME: allow output too!
146
+ def add_variables_steps_for_filters(filters, path_prefix:)
147
147
  filters.collect do |filter|
148
- ["input.add_variables.#{filter.name}", filter.aggregate_step] # FIXME: config name sucks, of course, if we want to allow inserting etc.
148
+ ["#{path_prefix}.add_variables.#{filter.name}", filter.aggregate_step] # FIXME: config name sucks, of course, if we want to allow inserting etc.
149
149
  end
150
150
  end
151
151
 
@@ -269,7 +269,7 @@ module Trailblazer
269
269
  end
270
270
 
271
271
  def self.filter_for(inject, inject_filter, name, type)
272
- DSL.In(name: "inject.#{type}.#{name.inspect}", add_variables_class: AddVariables).(inject_filter)
272
+ DSL.In(name: "#{type}.#{name.inspect}", add_variables_class: AddVariables).(inject_filter)
273
273
  end
274
274
  end
275
275
 
@@ -3,7 +3,7 @@ module Trailblazer
3
3
  module Activity
4
4
  module DSL
5
5
  module Linear
6
- VERSION = "1.0.0.beta1"
6
+ VERSION = "1.0.0"
7
7
  end
8
8
  end
9
9
  end
@@ -35,6 +35,7 @@ require "trailblazer/activity/fast_track"
35
35
  require "trailblazer/activity/dsl/linear/feature/variable_mapping"
36
36
  require "trailblazer/activity/dsl/linear/feature/variable_mapping/dsl"
37
37
  require "trailblazer/activity/dsl/linear/feature/patch"
38
+ require "trailblazer/activity/dsl/linear/feature/variable_mapping/inherit"
38
39
 
39
40
  # feature/variable_mapping
40
41
  Trailblazer::Activity::DSL::Linear::VariableMapping.extend!(Trailblazer::Activity::Path, :step)
@@ -2,7 +2,6 @@ lib = File.expand_path('../lib', __FILE__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require "trailblazer/activity/dsl/linear/version"
4
4
 
5
-
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = "trailblazer-activity-dsl-linear"
8
7
  spec.version = Trailblazer::Version::Activity::DSL::Linear::VERSION
@@ -19,13 +18,13 @@ Gem::Specification.new do |spec|
19
18
  end
20
19
  spec.require_paths = ["lib"]
21
20
 
22
- spec.add_dependency "trailblazer-activity", ">= 0.14.0.beta1", "< 0.15.0"
21
+ spec.add_dependency "trailblazer-activity", ">= 0.14.0", "< 0.15.0"
23
22
  spec.add_dependency "trailblazer-declarative", ">= 0.0.1", "< 0.1.0"
24
23
 
25
24
  spec.add_development_dependency "bundler"
26
25
  spec.add_development_dependency "minitest", "~> 5.0"
27
26
  spec.add_development_dependency "rake"
28
- spec.add_development_dependency "trailblazer-developer", ">= 0.0.24"
27
+ spec.add_development_dependency "trailblazer-developer", ">= 0.0.26"
29
28
 
30
29
  spec.required_ruby_version = '>= 2.1.0'
31
30
  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: 1.0.0.beta1
4
+ version: 1.0.0
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-07-19 00:00:00.000000000 Z
11
+ date: 2022-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-activity
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0.beta1
19
+ version: 0.14.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 0.15.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0.beta1
29
+ version: 0.14.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 0.15.0
@@ -98,14 +98,14 @@ dependencies:
98
98
  requirements:
99
99
  - - ">="
100
100
  - !ruby/object:Gem::Version
101
- version: 0.0.24
101
+ version: 0.0.26
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
- version: 0.0.24
108
+ version: 0.0.26
109
109
  description: Simple DSL to define Trailblazer activities with arbitrary wirings.
110
110
  email:
111
111
  - apotonick@gmail.com
@@ -157,9 +157,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
157
  version: 2.1.0
158
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - ">"
160
+ - - ">="
161
161
  - !ruby/object:Gem::Version
162
- version: 1.3.1
162
+ version: '0'
163
163
  requirements: []
164
164
  rubygems_version: 3.2.3
165
165
  signing_key: