remap 2.2.26 → 2.2.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/remap/constructor/argument.rb +0 -5
- data/lib/remap/constructor/keyword.rb +3 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97fa16337a644edef32848dd48ff70278fb40e23bb0ff03fbf800d8dd2bc529e
|
4
|
+
data.tar.gz: a917d4270f30eb710cc0e93fae3e47ec822aa0e95434a499c8b0886328a94ee3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a6d777701ef4c9c42db2a2a103a80ce10e858e92c6c1ca1048498cc8c2c99882cdc4cb1f23eee2384691aef75c01e0fecebd1cde881b84bc7c0816d3f458d31
|
7
|
+
data.tar.gz: 1a5dd13ac57048a33976d78543eed796e7fcfff31435fcfd299d70051be14cabc9fcbaf81b8bf963b775b0c17fe013956678bab4616ce0312a5db8a2ac17302f
|
@@ -27,19 +27,13 @@ module Remap
|
|
27
27
|
#
|
28
28
|
# @return [State]
|
29
29
|
def call(state)
|
30
|
-
super.fmap do |input
|
30
|
+
super.fmap do |input|
|
31
31
|
unless input.is_a?(Hash)
|
32
|
-
|
32
|
+
raise ArgumentError,
|
33
|
+
"Keyword stategy requires a Hash, got %s (%s)" % [input, input.class]
|
33
34
|
end
|
34
35
|
|
35
36
|
target.public_send(id, **input)
|
36
|
-
rescue ArgumentError => e
|
37
|
-
raise e.exception("Failed to create [%p] with input [%s] (%s}) using method %s" % [
|
38
|
-
target,
|
39
|
-
input,
|
40
|
-
input.class,
|
41
|
-
id
|
42
|
-
])
|
43
37
|
end
|
44
38
|
end
|
45
39
|
end
|