trailblazer-operation 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/Gemfile +1 -1
- data/lib/trailblazer/operation.rb +1 -0
- data/lib/trailblazer/operation/trace.rb +2 -2
- data/lib/trailblazer/operation/version.rb +1 -1
- data/test/call_test.rb +1 -1
- data/test/trace_test.rb +2 -2
- data/trailblazer-operation.gemspec +2 -1
- metadata +32 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 228e261fc19eec5d741437141b0eae01552aaaf08caa617c2ad2a3f226e5fa94
|
4
|
+
data.tar.gz: f316ca1a182fc7f8b730f89d59b0e575e9a43365b571486079f7b95e6749717d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca04555c63aabc959539399ae7daf3e11b79c5ffb946326abb9abbf1db284379f4bacc19f7ee9013bacbb7735f35b350e42f2e17b38278fed9f9c259524264b1
|
7
|
+
data.tar.gz: 54ba90ec3dd1f4977fffc95ab20a93a625b341fd74f110416ae4dd28cd3a9fb2e6960378e6e3deb93ac7b39decccc4011c7e5716233ab928ca70e0295206c628
|
data/CHANGES.md
CHANGED
data/Gemfile
CHANGED
@@ -10,7 +10,7 @@ gem "dry-auto_inject"
|
|
10
10
|
gem "benchmark-ips"
|
11
11
|
gem "minitest-line"
|
12
12
|
|
13
|
-
# gem "trailblazer-developer", path: "../developer"
|
13
|
+
# gem "trailblazer-developer", path: "../trailblazer-developer"
|
14
14
|
# gem "trailblazer-developer", git: "https://github.com/trailblazer/trailblazer-developer"
|
15
15
|
# gem "trailblazer-activity", path: "../trailblazer-activity"
|
16
16
|
# gem "trailblazer-activity-dsl-linear", path: "../trailblazer-activity-dsl-linear"
|
@@ -68,6 +68,7 @@ require "trailblazer/operation/deprecated_macro" # TODO: remove in 2.2.
|
|
68
68
|
require "trailblazer/operation/result"
|
69
69
|
require "trailblazer/operation/railway"
|
70
70
|
|
71
|
+
require "trailblazer/developer"
|
71
72
|
require "trailblazer/operation/trace"
|
72
73
|
|
73
74
|
require "trailblazer/operation/railway/macaroni"
|
@@ -5,7 +5,7 @@ module Trailblazer
|
|
5
5
|
def self.call(operation, options)
|
6
6
|
ctx = PublicCall.options_for_public_call(options) # redundant with PublicCall::call.
|
7
7
|
|
8
|
-
stack, signal, (ctx, _flow_options) =
|
8
|
+
stack, signal, (ctx, _flow_options) = Developer::Trace.(operation, [ctx, {}])
|
9
9
|
|
10
10
|
result = Railway::Result(signal, ctx) # redundant with PublicCall::call.
|
11
11
|
|
@@ -31,7 +31,7 @@ module Trailblazer
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def wtf
|
34
|
-
Trailblazer::
|
34
|
+
Trailblazer::Developer::Trace::Present.(@stack)
|
35
35
|
end
|
36
36
|
|
37
37
|
def wtf?
|
data/test/call_test.rb
CHANGED
data/test/trace_test.rb
CHANGED
@@ -17,7 +17,7 @@ class TraceTest < Minitest::Spec
|
|
17
17
|
it "allows using low-level Activity::Trace" do
|
18
18
|
->(*args) { puts "@@@@@ #{args.last.inspect}"; Create.__call__(*args) }
|
19
19
|
|
20
|
-
stack, = Trailblazer::
|
20
|
+
stack, = Trailblazer::Developer::Trace.(
|
21
21
|
Create,
|
22
22
|
[
|
23
23
|
{a_return: true, params: {}},
|
@@ -25,7 +25,7 @@ class TraceTest < Minitest::Spec
|
|
25
25
|
]
|
26
26
|
)
|
27
27
|
|
28
|
-
puts output = Trailblazer::
|
28
|
+
puts output = Trailblazer::Developer::Trace::Present.(stack)
|
29
29
|
|
30
30
|
output.gsub(/0x\w+/, "").gsub(/@.+_test/, "").must_equal %{`-- TraceTest::Create
|
31
31
|
|-- Start.default
|
@@ -18,12 +18,13 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
|
20
20
|
spec.add_dependency "trailblazer-activity-dsl-linear", ">= 0.2.1", "< 1.0.0"
|
21
|
+
spec.add_dependency "trailblazer-activity", ">= 0.10.0", "< 1.0.0"
|
22
|
+
spec.add_dependency "trailblazer-developer", ">= 0.0.8"
|
21
23
|
|
22
24
|
spec.add_development_dependency "bundler"
|
23
25
|
spec.add_development_dependency "minitest"
|
24
26
|
spec.add_development_dependency "rake"
|
25
27
|
spec.add_development_dependency "rubocop"
|
26
|
-
spec.add_development_dependency "trailblazer-developer", ">= 0.0.3"
|
27
28
|
|
28
29
|
spec.required_ruby_version = ">= 2.1.0"
|
29
30
|
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.
|
4
|
+
version: 0.6.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: 2019-09-
|
11
|
+
date: 2019-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trailblazer-activity-dsl-linear
|
@@ -31,21 +31,41 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: trailblazer-activity
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
40
|
-
|
39
|
+
version: 0.10.0
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.0.0
|
43
|
+
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
43
46
|
requirements:
|
44
47
|
- - ">="
|
45
48
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
49
|
+
version: 0.10.0
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.0.0
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
54
|
+
name: trailblazer-developer
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.0.8
|
60
|
+
type: :runtime
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 0.0.8
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: bundler
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
50
70
|
requirements:
|
51
71
|
- - ">="
|
@@ -59,7 +79,7 @@ dependencies:
|
|
59
79
|
- !ruby/object:Gem::Version
|
60
80
|
version: '0'
|
61
81
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
82
|
+
name: minitest
|
63
83
|
requirement: !ruby/object:Gem::Requirement
|
64
84
|
requirements:
|
65
85
|
- - ">="
|
@@ -73,7 +93,7 @@ dependencies:
|
|
73
93
|
- !ruby/object:Gem::Version
|
74
94
|
version: '0'
|
75
95
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
96
|
+
name: rake
|
77
97
|
requirement: !ruby/object:Gem::Requirement
|
78
98
|
requirements:
|
79
99
|
- - ">="
|
@@ -87,19 +107,19 @@ dependencies:
|
|
87
107
|
- !ruby/object:Gem::Version
|
88
108
|
version: '0'
|
89
109
|
- !ruby/object:Gem::Dependency
|
90
|
-
name:
|
110
|
+
name: rubocop
|
91
111
|
requirement: !ruby/object:Gem::Requirement
|
92
112
|
requirements:
|
93
113
|
- - ">="
|
94
114
|
- !ruby/object:Gem::Version
|
95
|
-
version: 0
|
115
|
+
version: '0'
|
96
116
|
type: :development
|
97
117
|
prerelease: false
|
98
118
|
version_requirements: !ruby/object:Gem::Requirement
|
99
119
|
requirements:
|
100
120
|
- - ">="
|
101
121
|
- !ruby/object:Gem::Version
|
102
|
-
version: 0
|
122
|
+
version: '0'
|
103
123
|
description: Trailblazer's operation object.
|
104
124
|
email:
|
105
125
|
- apotonick@gmail.com
|