strum 0.0.51 → 0.0.52

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: 8bc25351bc4c52370406e15acfc9156ea9b01d0db205541a3c90dd9db1f19aaa
4
- data.tar.gz: fb264715516e9c487fdd7b18ebdd67024875417f1f8276c9d38c22064601d03b
3
+ metadata.gz: 4994e24727fe0b036ecb4d737fffc9a7072222df1054286c42519206b1274dc2
4
+ data.tar.gz: 82ddc9e2861ae63e2695bf4b757a7bfcd5d00b5917601afbaabebfb4c12e336b
5
5
  SHA512:
6
- metadata.gz: 1a80b35508b221bda2afee9f2e57a9df1b8ba3db412c1fe0e11ebf203a4ef5fe974f4873b5298179db30bfef492b17bd5659692774603d05ec4199d5d544056e
7
- data.tar.gz: 23fd10de66b73567ea161dd2d8ad1799ab4e58f6cd2a297ce0b54436567b9d1c5ee818802b8bbaf2e4e87c21b005e4602813c4d4e55cc44cfea4deb39c8d9dae
6
+ metadata.gz: 6e9919954781bbb5f5d1e804c9b9fbcc0c4119d2da74976c91a5f124c875096f7411e9c7863880700e9c3618b7ae1337531b63d27cf1efdd7cb6a336752876dc
7
+ data.tar.gz: 482210f9df0258609ef4aed3a62fba25f13e4507d1d581edf99591f8f0125e37e87459cc0a43f5b4050238c8635e74d996d59ab37f697b145e98fd8278358932
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strum (0.0.51)
4
+ strum (0.0.52)
5
5
  dry-inflector (~> 0.2.0)
6
6
  dry-struct (~> 1.2)
7
7
  sequel (~> 5.29)
@@ -137,7 +137,7 @@ module Strum
137
137
  end
138
138
 
139
139
  def invalid_result
140
- handler = service_handlers[:failure][((errors.keys << nil) & service_handlers[:failure].keys).first]
140
+ handler = service_handlers[:failure][((errors.values.flatten << nil) & service_handlers[:failure].keys).first]
141
141
  handler.call(errors) if handler.is_a?(Proc)
142
142
  end
143
143
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Strum
4
- VERSION = "0.0.51"
4
+ VERSION = "0.0.52"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.51
4
+ version: 0.0.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhiy Nazarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-21 00:00:00.000000000 Z
11
+ date: 2020-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector