composable_operations 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/composable_operations/operation.rb +8 -3
- data/lib/composable_operations/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc47375d547c00727b80d8f798de9df5d38b3061
|
4
|
+
data.tar.gz: d07756bb850a1c8159ae61d81b131523c8edd7ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3e294ad5a8666e6095d42f15053c9b69d49489ea12502668a0a822a263567af2951850c52fa59009e8bd5fb9aa461e17adb1aaaafc3a44ac66cc6536ad16f68
|
7
|
+
data.tar.gz: af7c521ace799fc7563264ecd535090c6bdc300fcd873ed26ca948b54438c66dbe8980f84351244e3be49c0f3a500287a0e5fec23146f5664d06956a50ec5e4e
|
@@ -81,9 +81,14 @@ module ComposableOperations
|
|
81
81
|
attr_reader :message
|
82
82
|
attr_reader :backtrace
|
83
83
|
|
84
|
-
def initialize(
|
85
|
-
super(
|
86
|
-
@input =
|
84
|
+
def initialize(*args)
|
85
|
+
super(args.last.kind_of?(Hash) ? args.pop : {})
|
86
|
+
@input = case args.length
|
87
|
+
when 0 then nil
|
88
|
+
when 1 then args.first
|
89
|
+
else
|
90
|
+
args
|
91
|
+
end
|
87
92
|
end
|
88
93
|
|
89
94
|
def failed?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: composable_operations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Tennhard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: smart_properties
|