trailblazer-operation 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trailblazer/operation.rb +1 -1
- data/lib/trailblazer/operation/generic.rb +2 -2
- data/lib/trailblazer/operation/pipetree.rb +1 -1
- data/lib/trailblazer/operation/result.rb +2 -2
- data/lib/trailblazer/operation/skill.rb +2 -4
- data/lib/trailblazer/operation/version.rb +1 -1
- data/test/gemfiles/Gemfile.ruby-1.9.lock +4 -5
- data/trailblazer-operation.gemspec +2 -2
- metadata +6 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa4ab9036f38cd68c0237c2498b0a37445c52d8a
|
4
|
+
data.tar.gz: c8a30650151fb381614dce92b2babfc40c952b07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4547a6ac0d1c5cde8319ed1e00f99dde8cacf8801affb7ea0ab892f86fc087ac481416f48528ae8caab3b6e8c8a48701655e4ae22ef7bc0d5d2f2fd589da71f
|
7
|
+
data.tar.gz: 97148b9ef2c060f48bd23172e8b88d46cbb8dee2954a2935a6458a48155325bb04691a16c189838e46c26d1d3456696ed23dc25590baecd33816ec8e91cc0508
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require "pipetree"
|
2
2
|
require "pipetree/railway"
|
3
3
|
require "trailblazer/operation/result"
|
4
|
-
require "uber/option"
|
5
4
|
|
6
5
|
if RUBY_VERSION == "1.9.3"
|
7
6
|
require "trailblazer/operation/1.9.3/option" # TODO: rename to something better.
|
@@ -125,6 +124,7 @@ class Trailblazer::Operation
|
|
125
124
|
end # DSL
|
126
125
|
end
|
127
126
|
|
127
|
+
require "uber/callable"
|
128
128
|
# Allows defining dependencies and inject/override them via runtime options, if desired.
|
129
129
|
class Pipetree::Step
|
130
130
|
include Uber::Callable
|
@@ -4,8 +4,8 @@ class Trailblazer::Operation
|
|
4
4
|
@success, @data = success, data # @data is a Skill instance.
|
5
5
|
end
|
6
6
|
|
7
|
-
extend
|
8
|
-
|
7
|
+
extend Forwardable
|
8
|
+
def_delegators :@data, :[] # DISCUSS: make it a real delegator? see Nested.
|
9
9
|
|
10
10
|
def success?
|
11
11
|
@success
|
@@ -1,6 +1,4 @@
|
|
1
1
|
require "trailblazer/skill"
|
2
|
-
require "uber/delegates"
|
3
|
-
|
4
2
|
# Dependency ("skill") management for Operation.
|
5
3
|
# Op::[]
|
6
4
|
# Op::[]=
|
@@ -17,8 +15,8 @@ class Trailblazer::Operation
|
|
17
15
|
@skills ||= {}
|
18
16
|
end
|
19
17
|
|
20
|
-
extend
|
21
|
-
|
18
|
+
extend Forwardable
|
19
|
+
def_delegators :skills, :[], :[]=
|
22
20
|
end
|
23
21
|
|
24
22
|
# Overrides Operation::call, creates the Skill hash and passes it to :call.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../../
|
3
3
|
specs:
|
4
|
-
trailblazer-operation (0.0.
|
4
|
+
trailblazer-operation (0.0.11)
|
5
5
|
declarative
|
6
|
-
pipetree (>= 0.1.
|
7
|
-
uber
|
6
|
+
pipetree (>= 0.1.1, < 0.2.0)
|
7
|
+
uber
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -12,8 +12,7 @@ GEM
|
|
12
12
|
declarative (0.0.8)
|
13
13
|
uber (>= 0.0.15)
|
14
14
|
minitest (5.10.1)
|
15
|
-
pipetree (0.1.
|
16
|
-
uber
|
15
|
+
pipetree (0.1.1)
|
17
16
|
rake (12.0.0)
|
18
17
|
uber (0.1.0)
|
19
18
|
|
@@ -18,9 +18,9 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
|
21
|
-
spec.add_dependency "uber"
|
21
|
+
spec.add_dependency "uber" # Uber::Callable is all we need.
|
22
22
|
spec.add_dependency "declarative"
|
23
|
-
spec.add_dependency "pipetree", ">= 0.1.
|
23
|
+
spec.add_dependency "pipetree", ">= 0.1.1", "< 0.2.0"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler"
|
26
26
|
spec.add_development_dependency "rake"
|
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.
|
4
|
+
version: 0.0.11
|
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-
|
11
|
+
date: 2017-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uber
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.2.0
|
19
|
+
version: '0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.2.0
|
26
|
+
version: '0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: declarative
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,7 +44,7 @@ dependencies:
|
|
50
44
|
requirements:
|
51
45
|
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.1.
|
47
|
+
version: 0.1.1
|
54
48
|
- - "<"
|
55
49
|
- !ruby/object:Gem::Version
|
56
50
|
version: 0.2.0
|
@@ -60,7 +54,7 @@ dependencies:
|
|
60
54
|
requirements:
|
61
55
|
- - ">="
|
62
56
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.1.
|
57
|
+
version: 0.1.1
|
64
58
|
- - "<"
|
65
59
|
- !ruby/object:Gem::Version
|
66
60
|
version: 0.2.0
|