trailblazer-operation 0.6.2 → 0.6.3

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
  SHA256:
3
- metadata.gz: afed7aa7228e84255ee7930bcf57a6ca49fe70147c6906f76ebb4a0b87416ecf
4
- data.tar.gz: 3d014dd0a2fd09fb1452f531261ffc5cfaddf67cd595b430494b35b4b0708718
3
+ metadata.gz: b3e5248a8515b6f1255116f82ba2b0fc2836b373dcbe03d38fb5c0b93f94c82a
4
+ data.tar.gz: 185922dd1990ae902d2ed5fd4639c0d2788913d63036eb71542945b15eb1995c
5
5
  SHA512:
6
- metadata.gz: c753482038ce14dad0d7118b4bff634afb6d9f45b2a3e3cdab2560a0a6181e89a9473b027cf3d9bc1743408ba7cf1764f35f1303cbdeaeb68fcc1c0abe0517dd
7
- data.tar.gz: 168d5b349059eb495e40691d7e92de1cf28fd290b89102db997037ec96a31e5cf343d6dd603f95082f22bc10a705055e4b786855b011bc47f5a9a0f6e61f249f
6
+ metadata.gz: a4f01d8601c8e97e72f1cabb52adabd9371d416472fa1784573aa13cc1252108f2c5a6f12157e7e3379f21cfb7b7ebe2d5f1213813473a6796f05a6652b8cc55
7
+ data.tar.gz: ff7522a5ec8c73ad8ec76ef2e3f2019309fa2d9f708463c9e6b96a83cc07ac8cc6878714b4f730d4701848b69ceec11a999b65c5576514292f0da1b56c27b41a
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ test/tmp
15
15
  test/version_tmp
16
16
  tmp
17
17
  /**/*.log
18
+ .rubocop-*yml
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.3
2
+
3
+ * Require forwardable module from standard lib.
4
+
1
5
  ## 0.6.2
2
6
 
3
7
  * Fix Trace so it works with Ruby <= 2.4
data/README.md CHANGED
@@ -15,6 +15,6 @@ An operation can be used exaclty like an activity, including nesting, tracing, e
15
15
 
16
16
  ## Copyright
17
17
 
18
- Copyright (c) 2016 Nick Sutterer <apotonick@gmail.com>
18
+ Copyright (c) 2016-2020 Nick Sutterer <apotonick@gmail.com>
19
19
 
20
20
  `trailblazer-operation` is released under the [MIT License](http://www.opensource.org/licenses/MIT).
@@ -1,10 +1,10 @@
1
+ require 'forwardable'
1
2
  require "trailblazer/option"
2
3
  require "trailblazer/context"
3
4
  require "trailblazer/container_chain"
4
5
 
5
6
  require "trailblazer/activity/dsl/linear"
6
7
 
7
-
8
8
  module Trailblazer
9
9
  # DISCUSS: I don't know where else to put this. It's not part of the {Activity} concept
10
10
  class Activity
@@ -61,6 +61,8 @@ module Trailblazer
61
61
  end
62
62
  end
63
63
 
64
+ require 'trailblazer/operation/version'
65
+
64
66
  require "trailblazer/operation/class_dependencies"
65
67
  require "trailblazer/operation/deprecated_macro" # TODO: remove in 2.2.
66
68
 
@@ -33,7 +33,7 @@ module Trailblazer
33
33
  end
34
34
 
35
35
  def wtf
36
- Trailblazer::Developer::Trace::Present.(@stack)
36
+ Developer::Trace::Present.(@stack)
37
37
  end
38
38
 
39
39
  def wtf?
@@ -1,7 +1,5 @@
1
1
  module Trailblazer
2
- module Version
3
- module Operation
4
- VERSION = "0.6.2"
5
- end
2
+ class Operation
3
+ VERSION = "0.6.3"
6
4
  end
7
5
  end
@@ -173,11 +173,12 @@ class StepTest < Minitest::Spec
173
173
  #-
174
174
  # not existent :name
175
175
  it do
176
- assert_raises Trailblazer::Activity::DSL::Linear::Sequence::IndexError do
176
+ op = assert_raises Trailblazer::Activity::DSL::Linear::Sequence::IndexError do
177
177
  Class.new(Trailblazer::Operation) do
178
178
  step :a, before: "I don't exist!"
179
179
  end
180
- end.inspect.must_equal %{#<Trailblazer::Activity::DSL::Linear::Sequence::IndexError: "I don't exist!">}
180
+ end
181
+ assert_match /<Trailblazer::Activity::DSL::Linear::Sequence::IndexError: "I don't exist!" is not a valid step ID. Did you mean any of these ?/, op.inspect
181
182
  end
182
183
 
183
184
  #---
@@ -4,7 +4,7 @@ require 'trailblazer/operation/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "trailblazer-operation"
7
- spec.version = Trailblazer::Version::Operation::VERSION
7
+ spec.version = Trailblazer::Operation::VERSION
8
8
  spec.authors = ["Nick Sutterer"]
9
9
  spec.email = ["apotonick@gmail.com"]
10
10
  spec.description = %q(Trailblazer's operation object.)
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.files = `git ls-files`.split($/)
16
16
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.test_files = spec.files.grep(%r{^(test)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
20
  spec.add_dependency "trailblazer-activity-dsl-linear", ">= 0.2.6", "< 1.0.0"
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.2
4
+ version: 0.6.3
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-21 00:00:00.000000000 Z
11
+ date: 2020-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-activity-dsl-linear