remap 2.2.23 → 2.2.27
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
- data/lib/remap/extensions/object.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a946688bac42a3dc8afc4629fc9b8a86a78f33533da88ea6a1cd09ad4241242
|
4
|
+
data.tar.gz: f47c15c14edd842c1f28a7322387226202fd3f59ea3ee0251301301b1a80f215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 464c2640ce10cdd4a3431987b76491e9a93eb053493bc8c6accb8acbf5c5b972bf8e4e7b43f0dd61ed63226fa29ee4f3dd1a472b8acb47b7bb7f962af61c74f8
|
7
|
+
data.tar.gz: c49ba3582b6051d9ee4ce0af3399a7a9a47804aee78e6b1996597d9ee9c1b917178501914eb1b4464717d11e56f8badf66a2da4645236f52bd9993f099d9c3b2
|
@@ -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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.27
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Linus Oleander
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|