remap 2.2.23 → 2.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf5b96526316eeeee096d0ef20dbc52896998ede48ed1953455fb9e96e580530
4
- data.tar.gz: 9aac55f64110dd0f868e6b0bd5e302da020e8931bbd2bd67c38c8c8661f22f81
3
+ metadata.gz: 3a946688bac42a3dc8afc4629fc9b8a86a78f33533da88ea6a1cd09ad4241242
4
+ data.tar.gz: f47c15c14edd842c1f28a7322387226202fd3f59ea3ee0251301301b1a80f215
5
5
  SHA512:
6
- metadata.gz: 7d55af2f245a4108a74364a6a53deef71ca70d49833fe607caff192c2f85f27d084096fb6add2bde941c328133fb43d0709a1b5bd562d6b95b43d0945d92711d
7
- data.tar.gz: 8f0585fe5b62230628d88d44fb5dc5eb179a00ea6f3e3faaa17410c8ae7fe16dbb670cd322619a1733c9231a66bc75e4977a9e398226ee307d3e437ec117db1b
6
+ metadata.gz: 464c2640ce10cdd4a3431987b76491e9a93eb053493bc8c6accb8acbf5c5b972bf8e4e7b43f0dd61ed63226fa29ee4f3dd1a472b8acb47b7bb7f962af61c74f8
7
+ data.tar.gz: c49ba3582b6051d9ee4ce0af3399a7a9a47804aee78e6b1996597d9ee9c1b917178501914eb1b4464717d11e56f8badf66a2da4645236f52bd9993f099d9c3b2
@@ -30,11 +30,6 @@ module Remap
30
30
  def call(state)
31
31
  super.fmap do |input|
32
32
  target.public_send(id, input)
33
- rescue ArgumentError => e
34
- raise e.exception("Failed to create [%p] with input [%s] (%s)" % [
35
- target, input,
36
- input.class
37
- ])
38
33
  end
39
34
  end
40
35
  end
@@ -27,19 +27,13 @@ module Remap
27
27
  #
28
28
  # @return [State]
29
29
  def call(state)
30
- super.fmap do |input, &error|
30
+ super.fmap do |input|
31
31
  unless input.is_a?(Hash)
32
- return error["Input is not a hash"]
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
@@ -34,9 +34,7 @@ module Remap
34
34
  return self if path.empty?
35
35
 
36
36
  unless block_given?
37
- return get(*path, trace: trace) do
38
- raise PathError, trace
39
- end
37
+ raise PathError, trace
40
38
  end
41
39
 
42
40
  yield
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.23
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-10 00:00:00.000000000 Z
11
+ date: 2021-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport