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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0302dd8b35ae2d64dd482bbc330604e5c55b65c
4
- data.tar.gz: fb8028b158f2be7fff5778ceffe5f2730dbccad5
3
+ metadata.gz: fa4ab9036f38cd68c0237c2498b0a37445c52d8a
4
+ data.tar.gz: c8a30650151fb381614dce92b2babfc40c952b07
5
5
  SHA512:
6
- metadata.gz: 7f55c1460c22161d1ab7c75461da57476b6aee19abb8041132ac6b33893b9711616852cd553aa606929e732b8584f296b5df92d049905c609d2a2599df991ad9
7
- data.tar.gz: 0f7dc9a51dbf361dc519e47c1fdb0fd1161326ace7fd78a253813c751ec007c8c07641967bf497d24e4e0fd535cb23d51a7af62d3abf57bf1704a8a26b75b65d
6
+ metadata.gz: e4547a6ac0d1c5cde8319ed1e00f99dde8cacf8801affb7ea0ab892f86fc087ac481416f48528ae8caab3b6e8c8a48701655e4ae22ef7bc0d5d2f2fd589da71f
7
+ data.tar.gz: 97148b9ef2c060f48bd23172e8b88d46cbb8dee2954a2935a6458a48155325bb04691a16c189838e46c26d1d3456696ed23dc25590baecd33816ec8e91cc0508
@@ -1,4 +1,4 @@
1
- require "declarative" # FIXME: here?
1
+ require "declarative"
2
2
  require "trailblazer/operation/skill"
3
3
  require "trailblazer/operation/pipetree"
4
4
  require "trailblazer/operation/generic"
@@ -6,7 +6,7 @@ module Trailblazer
6
6
  end
7
7
 
8
8
  # dependency interface
9
- extend Uber::Delegates
10
- delegates :@skills, :[], :[]=
9
+ extend Forwardable
10
+ def_delegators :@skills, :[], :[]=
11
11
  end
12
12
  end
@@ -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 Uber::Delegates
8
- delegates :@data, :[] # DISCUSS: make it a real delegator? see Nested.
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 Uber::Delegates
21
- delegates :skills, :[], :[]=
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,5 +1,5 @@
1
1
  module Trailblazer
2
2
  class Operation
3
- VERSION = "0.0.10"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: ../../
3
3
  specs:
4
- trailblazer-operation (0.0.10)
4
+ trailblazer-operation (0.0.11)
5
5
  declarative
6
- pipetree (>= 0.1.0, < 0.2.0)
7
- uber (>= 0.1.0, < 0.2.0)
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.0)
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", ">= 0.1.0", "< 0.2.0"
21
+ spec.add_dependency "uber" # Uber::Callable is all we need.
22
22
  spec.add_dependency "declarative"
23
- spec.add_dependency "pipetree", ">= 0.1.0", "< 0.2.0"
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.10
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-19 00:00:00.000000000 Z
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.1.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.1.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.0
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.0
57
+ version: 0.1.1
64
58
  - - "<"
65
59
  - !ruby/object:Gem::Version
66
60
  version: 0.2.0