command_service_object 0.6.1 → 0.6.2

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: b43254608b94e42bf0f1eff9754ca36a622a0b1f1550c2e33b334f7651300f34
4
- data.tar.gz: fe21cde8e3eac5993a4da826b19b91ca288654f2df2ad544c9c1352987314fef
3
+ metadata.gz: f7cefa6382d8d484a958b67ad037d24fda4b7f3fad92f4bbc0a4a180a7056c32
4
+ data.tar.gz: 1a09682c9b6dd977b096a217d88c2ec5592dd9e185462059c0bfaae6ac5c9af7
5
5
  SHA512:
6
- metadata.gz: 98348e5cba2ad46fd5430c082b976d10f6f84121a303a6b12cc7357d6901577f4ed47569fa73ee14fe1b98d415d92ec64cd93e2a02aec6d03339486f5551be3a
7
- data.tar.gz: cc5d04bd1ca9cd2cd0a880bdb7d604b43b5c67197a26863754bda253d15eb5b22fbd73263da191e2d267e0304a3315add77ec2db3a5eff6611af46150b8fd42c
6
+ metadata.gz: f4ac178e8404280d2275871fe84b07857e54fd19f41f0130de0f2757b5970fb2a4a9931d15baaff969079bf2ded3f6144e14d46694d13e325798e3d254bf459e
7
+ data.tar.gz: daecf44e8b7c62896c46ca91f60e0624065905c4f9b9742ff9fab34b5eeb942449e44c8903e11653ba3bc63767786e9c2e63dfcc4486b405ba43dba28349daf4
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- command_service_object (0.6.1)
4
+ command_service_object (0.6.2)
5
5
  virtus (~> 1.0, >= 1.0.5)
6
6
 
7
7
  GEM
@@ -1,9 +1,9 @@
1
1
  module CommandServiceObject
2
2
  class Failure < StandardError
3
- attr_reader :extra_data
3
+ attr_reader :command
4
4
 
5
- def initialize(message: nil, extra_data: {})
6
- @extra_data = extra_data
5
+ def initialize(message: nil, command: {})
6
+ @command = command
7
7
  super(message)
8
8
  end
9
9
  end
@@ -1,7 +1,7 @@
1
1
  module CommandServiceObject
2
2
  module FailureHelper
3
- def fail!(message: '', extra_data: {})
4
- raise Failure, message: message, extra_data: extra_data
3
+ def fail!(message)
4
+ raise Failure, message: message, command: cmd
5
5
  end
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module CommandServiceObject
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.6.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command_service_object
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
  - Adham EL-Deeb
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-09-27 00:00:00.000000000 Z
12
+ date: 2019-10-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler