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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97911633d5ea509cebc6b53b4e91a2c8421c4e5c
4
- data.tar.gz: 662c859656c3eb13d791c789d3f9c01b6c8d9610
3
+ metadata.gz: cc47375d547c00727b80d8f798de9df5d38b3061
4
+ data.tar.gz: d07756bb850a1c8159ae61d81b131523c8edd7ad
5
5
  SHA512:
6
- metadata.gz: 5c0b471dc118210b6a3d01ce044aee797fbe8ec6cdf63796e310f7238d1955ec542b6d5f7f876f5efda312d2fb7b3cc1d970c4f7f2798fcbb298a319b49c68c6
7
- data.tar.gz: 39062f7008cc98ae5b4a060d355cf8f011f3093b94f5580a8217cb56a6bca6da3b7cedad15aa78fd31ded75d9c5f09246fce73f4680f8d6cc58672a57026f3d0
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(input = nil, options = {})
85
- super(options)
86
- @input = 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?
@@ -1,3 +1,3 @@
1
1
  module ComposableOperations
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
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.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-06-16 00:00:00.000000000 Z
11
+ date: 2013-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smart_properties