trailblazer-operation 0.6.1 → 0.6.2

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: 569ffef484d0783c9f16d35ce6848f8506687140e3fede28f15ab506d832ad5c
4
- data.tar.gz: e646b0c9b05dbaba40c136d8345c896727b30cfeba1ee62b5f180e87ff6c05b8
3
+ metadata.gz: afed7aa7228e84255ee7930bcf57a6ca49fe70147c6906f76ebb4a0b87416ecf
4
+ data.tar.gz: 3d014dd0a2fd09fb1452f531261ffc5cfaddf67cd595b430494b35b4b0708718
5
5
  SHA512:
6
- metadata.gz: 4d1f804fb97272a858374a5204b033e4ef3ee0a8fe29e29a36e6c3c9f0314b1059b4731b32e9aaf35a9e921b3158cfed53302e6b58fa3070bd3b89b239e49365
7
- data.tar.gz: 03353eadeaa413e25ba9deb4847ddedf07827f8b71d16f943a5bf980c499eed231fa8158e60e4492bf449bdbc341c711c109c4fbbb77ade2c858e816a7aff0c9
6
+ metadata.gz: c753482038ce14dad0d7118b4bff634afb6d9f45b2a3e3cdab2560a0a6181e89a9473b027cf3d9bc1743408ba7cf1764f35f1303cbdeaeb68fcc1c0abe0517dd
7
+ data.tar.gz: 168d5b349059eb495e40691d7e92de1cf28fd290b89102db997037ec96a31e5cf343d6dd603f95082f22bc10a705055e4b786855b011bc47f5a9a0f6e61f249f
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.2
2
+
3
+ * Fix Trace so it works with Ruby <= 2.4
4
+
1
5
  ## 0.6.1
2
6
 
3
7
  * Reintroduce `ClassDependencies` by leveraging `State.fields`.
@@ -1,3 +1,5 @@
1
+ require 'delegate'
2
+
1
3
  module Trailblazer
2
4
  class Operation
3
5
  module Trace
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Version
3
3
  module Operation
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.2"
5
5
  end
6
6
  end
7
7
  end
@@ -1,7 +1,9 @@
1
+ $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
2
+ require "trailblazer/operation"
3
+
1
4
  require "pp"
2
5
 
3
6
  require "minitest/autorun"
4
- require "trailblazer/operation"
5
7
  require "trailblazer/activity/testing"
6
8
  require "trailblazer/developer/render/linear"
7
9
 
@@ -14,18 +14,13 @@ class TraceTest < Minitest::Spec
14
14
  end
15
15
  # raise Create["__task_wraps__"].inspect
16
16
 
17
- it "allows using low-level Activity::Trace" do
18
- ->(*args) { puts "@@@@@ #{args.last.inspect}"; Create.__call__(*args) }
19
-
20
- stack, = Trailblazer::Developer::Trace.(
17
+ it "allows using low-level Operation::Trace" do
18
+ result = Trailblazer::Operation::Trace.(
21
19
  Create,
22
- [
23
- {a_return: true, params: {}},
24
- {}
25
- ]
20
+ { a_return: true, params: {} },
26
21
  )
27
22
 
28
- puts output = Trailblazer::Developer::Trace::Present.(stack)
23
+ output = result.wtf
29
24
 
30
25
  output.gsub(/0x\w+/, "").gsub(/@.+_test/, "").must_equal %{`-- TraceTest::Create
31
26
  |-- Start.default
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.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-17 00:00:00.000000000 Z
11
+ date: 2020-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-activity-dsl-linear