trailblazer-operation 0.0.12 → 0.0.13

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
  SHA1:
3
- metadata.gz: ea04dd0790a33b1d8ed216bc6c38b2051c8879dd
4
- data.tar.gz: 5950c507d31e4ae46c90ef9b1b22789bdcb5c87b
3
+ metadata.gz: c4a0c7253d802e980c74cd74a538803a76fee4a4
4
+ data.tar.gz: 0e44522d1373cfa7733fdc5591bad5df8b94dd57
5
5
  SHA512:
6
- metadata.gz: 9a0b2ec25620b01f1f3ddef0ef93bae31de3b7df540d7c6048252ab8d3d1ed294ba9744cf751fdeeffdd1771a8cefd05aba100b3f15a1f1b9750e094ef0602dc
7
- data.tar.gz: bc2d57beb613557e4594dba1734424cb39fa4d49e88247fa9d9d800ca1a7c6d7e3f30157a5a2360f9355adad9214f8af63deebde0a04caec53dc13abfc60e63a
6
+ metadata.gz: 1a6187f6f92373ed7dc908ca819ff8b72503e3dfdf72addc8aa2c3140c05a5502d241e8109482fe51e3ea34f6aaa012f3c8751df898d3eb7aac4ec62641a0a23
7
+ data.tar.gz: 7486af11d465c14f21506bcf48201d2b917766e9906e72c610d14f6d6598c1a498a7558f578c37f562def2cbe0b7929e6313d5714e584f63a048153be7770e90
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.0.13
2
+
3
+ * Rename `Operation::New` to `:Instantiate` to avoid name clashes with `New` operations in applications.
4
+ * Fix Ruby > 2.3.3's `Forwardable` issue.
5
+
1
6
  ## 0.0.12
2
7
 
3
8
  * Allow passing tmp options into `KW::Option` that will be merged with `options` and then transformed into kw args, but only locally for the step scope (or wherever you do `Option.()`). The API:
@@ -1,3 +1,4 @@
1
+ require "forwardable"
1
2
  require "declarative"
2
3
  require "trailblazer/operation/skill"
3
4
  require "trailblazer/operation/pipetree"
@@ -9,7 +9,7 @@ else
9
9
  end
10
10
 
11
11
  class Trailblazer::Operation
12
- New = ->(klass, options) { klass.new(options) } # returns operation instance.
12
+ Instantiate = ->(klass, options) { klass.new(options) } # returns operation instance.
13
13
 
14
14
  # Implements the API to populate the operation's pipetree and
15
15
  # `Operation::call` to invoke the latter.
@@ -41,7 +41,7 @@ class Trailblazer::Operation
41
41
 
42
42
  self["pipetree"] = Railway.new
43
43
 
44
- strut = ->(last, input, options) { [last, New.(input, options)] } # first step in pipe.
44
+ strut = ->(last, input, options) { [last, Instantiate.(input, options)] } # first step in pipe.
45
45
  self["pipetree"].add(Railway::Right, strut, name: "operation.new") # DISCUSS: using pipe API directly here. clever?
46
46
  end
47
47
  end
@@ -1,5 +1,5 @@
1
1
  module Trailblazer
2
2
  class Operation
3
- VERSION = "0.0.12"
3
+ VERSION = "0.0.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-operation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-21 00:00:00.000000000 Z
11
+ date: 2017-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uber
@@ -128,11 +128,8 @@ files:
128
128
  - test/call_test.rb
129
129
  - test/dry_container_test.rb
130
130
  - test/gemfiles/Gemfile.ruby-1.9
131
- - test/gemfiles/Gemfile.ruby-1.9.lock
132
131
  - test/gemfiles/Gemfile.ruby-2.0
133
- - test/gemfiles/Gemfile.ruby-2.0.lock
134
132
  - test/gemfiles/Gemfile.ruby-2.3
135
- - test/gemfiles/Gemfile.ruby-2.3.lock
136
133
  - test/inheritance_test.rb
137
134
  - test/operation_skill_test.rb
138
135
  - test/pipetree_test.rb
@@ -171,11 +168,8 @@ test_files:
171
168
  - test/call_test.rb
172
169
  - test/dry_container_test.rb
173
170
  - test/gemfiles/Gemfile.ruby-1.9
174
- - test/gemfiles/Gemfile.ruby-1.9.lock
175
171
  - test/gemfiles/Gemfile.ruby-2.0
176
- - test/gemfiles/Gemfile.ruby-2.0.lock
177
172
  - test/gemfiles/Gemfile.ruby-2.3
178
- - test/gemfiles/Gemfile.ruby-2.3.lock
179
173
  - test/inheritance_test.rb
180
174
  - test/operation_skill_test.rb
181
175
  - test/pipetree_test.rb
@@ -1,30 +0,0 @@
1
- PATH
2
- remote: ../../
3
- specs:
4
- trailblazer-operation (0.0.11)
5
- declarative
6
- pipetree (>= 0.1.1, < 0.2.0)
7
- uber
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- declarative (0.0.8)
13
- uber (>= 0.0.15)
14
- minitest (5.10.1)
15
- pipetree (0.1.1)
16
- rake (12.0.0)
17
- uber (0.1.0)
18
-
19
- PLATFORMS
20
- ruby
21
-
22
- DEPENDENCIES
23
- bundler
24
- declarative
25
- minitest
26
- rake
27
- trailblazer-operation!
28
-
29
- BUNDLED WITH
30
- 1.13.6
@@ -1,39 +0,0 @@
1
- PATH
2
- remote: ../../
3
- specs:
4
- trailblazer-operation (0.0.9)
5
- declarative
6
- pipetree (>= 0.0.5, < 0.1.0)
7
- uber (>= 0.1.0, < 0.2.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- concurrent-ruby (1.0.2)
13
- declarative (0.0.8)
14
- uber (>= 0.0.15)
15
- dry-configurable (0.4.0)
16
- concurrent-ruby (~> 1.0)
17
- dry-container (0.6.0)
18
- concurrent-ruby (~> 1.0)
19
- dry-configurable (~> 0.1, >= 0.1.3)
20
- minitest (5.10.1)
21
- pipetree (0.0.5)
22
- uber
23
- rake (12.0.0)
24
- uber (0.1.0)
25
-
26
- PLATFORMS
27
- ruby
28
-
29
- DEPENDENCIES
30
- bundler
31
- declarative
32
- dry-container
33
- minitest
34
- pipetree
35
- rake
36
- trailblazer-operation!
37
-
38
- BUNDLED WITH
39
- 1.12.5
@@ -1,40 +0,0 @@
1
- PATH
2
- remote: ../../
3
- specs:
4
- trailblazer-operation (2.0.0)
5
- declarative
6
- pipetree (>= 0.0.4, < 0.1.0)
7
- uber (>= 0.1.0, < 0.2.0)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- concurrent-ruby (1.0.2)
13
- declarative (0.0.8)
14
- uber (>= 0.0.15)
15
- dry-auto_inject (0.4.2)
16
- dry-container (>= 0.3.4)
17
- dry-configurable (0.3.0)
18
- concurrent-ruby (~> 1.0)
19
- dry-container (0.5.0)
20
- concurrent-ruby (~> 1.0)
21
- dry-configurable (~> 0.1, >= 0.1.3)
22
- dry-matcher (0.5.0)
23
- minitest (5.9.1)
24
- pipetree (0.0.4)
25
- rake (11.3.0)
26
- uber (0.1.0)
27
-
28
- PLATFORMS
29
- ruby
30
-
31
- DEPENDENCIES
32
- bundler
33
- dry-auto_inject
34
- dry-matcher
35
- minitest
36
- rake
37
- trailblazer-operation!
38
-
39
- BUNDLED WITH
40
- 1.12.5