action_operation 1.0.0 → 1.0.1

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: ac4f5bc88c4689c01c68d6761631feb15ff1b17e54274be64223b3e9d6190f50
4
- data.tar.gz: ccced431a6f77242476bc749a94c5d3a742f8b91cb24ced140543c14f9cff55f
3
+ metadata.gz: 1ab8543f8272a26b48f0c149d33314ea90ac0de3c28e0b64d5c57988ac5d8ccc
4
+ data.tar.gz: 1f96d1dacd90a9d836ac65e54b517f6cc412fbfd293d02aa296b8ac22b813a33
5
5
  SHA512:
6
- metadata.gz: 1d93d27a24c101660023688e238d7d84743c5586b901dc73942524422f7317587ac9b38925967dbbefd0ad1193a4dc9b39fd295d4b32a1ac280dfceabcca6507
7
- data.tar.gz: 5f9f49b17ca20437080e52466d07195f19fe752adb52237a196b3e6011d39d3ca950b4bd749640be5f62c0eb47db32d419d54dfd5b132efb70d872f8ad0f6b9d
6
+ metadata.gz: 91c8b9e5617dd7fd1bbd6508672f8d7207b715480728b466ef26bf345cbd41b2972b0a59de2b294f5a6dbdf0170dc690c6f01d2d242839c144dfcf49a12877bf
7
+ data.tar.gz: 9c8aebec5f620a2814d0cde5f74d5b1c606e1552527fd1612ad503f898b7a2de4bc154b72942a591e636596dac8e5886509c6a3a3d4fd27f8116b07e4552f90e
@@ -4,6 +4,11 @@ module ActionOperation
4
4
  def initialize(function)
5
5
  @function = function
6
6
  end
7
+
8
+ def message
9
+ binding.pry
10
+ "expected to see #{@function.name} but the receiver (#{@function.receiver.name}) didn't support it"
11
+ end
7
12
  end
8
13
  end
9
14
  end
@@ -4,6 +4,10 @@ module ActionOperation
4
4
  def initialize(function)
5
5
  @function = function
6
6
  end
7
+
8
+ def message
9
+ "expected to see #{function.name} have a schema but the receiver (#{function.receiver.name}) didn't support it"
10
+ end
7
11
  end
8
12
  end
9
13
  end
@@ -4,6 +4,10 @@ module ActionOperation
4
4
  def initialize(function)
5
5
  @function = function
6
6
  end
7
+
8
+ def message
9
+ "expected to see #{function.name} but the receiver (#{function.receiver.name}) didn't support it"
10
+ end
7
11
  end
8
12
  end
9
13
  end
@@ -1,3 +1,3 @@
1
1
  module ActionOperation
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -80,6 +80,14 @@ module ActionOperation
80
80
  end
81
81
 
82
82
  class_methods do
83
+ def inherited(klass)
84
+ klass.class_eval do
85
+ step :reraise do |exception|
86
+ raise exception
87
+ end
88
+ end
89
+ end
90
+
83
91
  def state(name, &structure)
84
92
  schemas[name] = Class.new do
85
93
  include(SmartParams)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_operation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kurtis Rainbolt-Greene
@@ -144,7 +144,7 @@ files:
144
144
  - lib/action_operation/version.rb
145
145
  - lib/action_operation/version_spec.rb
146
146
  - lib/action_operation_spec.rb
147
- homepage: http://krainboltgreene.github.io/action_operation
147
+ homepage: http://github.com/krainboltgreene/action_operation.rb
148
148
  licenses:
149
149
  - ISC
150
150
  metadata: {}