blood_contracts-core 0.3.1 → 0.3.2

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
  SHA256:
3
- metadata.gz: 51f95387de14e2c9ceea2d10fbb5260d3e6718ebce3e0a41d9754bd3b1bbe99c
4
- data.tar.gz: 93d8a80f9e28f1b9e625f5ed522704e4f2c56cb7d76f4b313661d9a1fe46a5c9
3
+ metadata.gz: d0eafc70e494dca609f476b8d8d910d34d7be58c1699bec33f139b1c6ba85b69
4
+ data.tar.gz: 6ef7c133021e3422c7e56a97e7e71e156cdb97cad8be67ce4da014013b302cf9
5
5
  SHA512:
6
- metadata.gz: 28c699654881ec643f3418378ba91602f153076b2825ab73e23d77c354f08dea226c64d3f986a586d8094dd60787508772c81f481be04a3928f215ec33b2a71d
7
- data.tar.gz: e766de77fc878b6e8db5cac215f0921acf43e8b68af5b6ff499734aaff246cda74ce3d63da1c1f9af1d6a861be781811776c746798b2e7e87fad651fc6d736c9
6
+ metadata.gz: dd33b8390228963b54931953499796365b6056a289856f9e9a7d4a8a864f907a899c30af7d22f0feae141d01391409fc4c3f32917a8c12c5ba3ca27991b2da3e
7
+ data.tar.gz: dd16faf2a2b9d28a1bdcdce86e3203a28b856e8b739e91639be7bbde8f0beadf7745bb390c0740af210e4d2e156d86d74ada387511cd3ed077828f23fe384ac6
@@ -19,10 +19,10 @@ module BloodContracts
19
19
  pipe
20
20
  end
21
21
 
22
- def and_then(other_type)
22
+ def and_then(other_type, **kwargs)
23
23
  raise ArgumentError unless Class === other_type
24
24
  pipe = Class.new(Pipe) { def inspect; super; end }
25
- pipe.instance_variable_set(:@steps, args)
25
+ pipe.instance_variable_set(:@steps, [self, other_type])
26
26
  pipe.instance_variable_set(:@names, kwargs[:names].to_a)
27
27
  pipe.instance_variable_set(:@finalized, true)
28
28
  pipe
@@ -58,5 +58,6 @@ module BloodContracts
58
58
  "#<sum #{self.class.name} is #{self.class.sum_of.to_a.join(' or ')} (value=#{@value})>"
59
59
  end
60
60
  end
61
+ Or = Sum
61
62
  end
62
63
  end
@@ -1,5 +1,5 @@
1
1
  module BloodContracts
2
2
  module Core
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blood_contracts-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Dolganov
8
8
  autorequire:
9
9
  bindir: bin/
10
10
  cert_chain: []
11
- date: 2019-03-26 00:00:00.000000000 Z
11
+ date: 2019-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler