decanter 3.0.1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/decanter/parser/array_parser.rb +4 -5
- data/lib/decanter/version.rb +1 -1
- 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: 1518df774602ffe66ea5fe6b9ee101f74644876b9ae8417f575828c8b9ffc961
|
4
|
+
data.tar.gz: a9e2201a3df589f2664b565313f1c74d70ae9c4cd3e9c9836aad4507e8a11418
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae0d8395af236b8487af2812fd05a778f806055e1167d6635f2d91a4f25d07ccc62067423375fbb3e4da1d58c01d4affb4861b62c9a0a2220c30bae709ef7125
|
7
|
+
data.tar.gz: 935eab7ccb2ef88db8e01b4faefae22b84d65c5264925432684ae5d67e222bddb0c796672de0d9e4606176f3c321654a220246e889565819cc9116e01a4ce5b5
|
data/Gemfile.lock
CHANGED
@@ -13,17 +13,16 @@ module Decanter
|
|
13
13
|
unless item_parsers.all? { |parser| parser <= ValueParser }
|
14
14
|
raise Decanter::ParseError.new 'parser(s) for array items must subclass ValueParser'
|
15
15
|
end
|
16
|
-
# Compose supplied parsers
|
16
|
+
# Compose supplied parsers
|
17
17
|
item_parser = Parser.compose_parsers(item_parsers)
|
18
18
|
# Parse all values
|
19
|
-
val.map do |item|
|
20
|
-
# Value parsers will expect a "key" for the value they're parsing,
|
19
|
+
val.map do |item|
|
20
|
+
# Value parsers will expect a "key" for the value they're parsing,
|
21
21
|
# so we provide a dummy one.
|
22
22
|
result = item_parser.parse(DUMMY_VALUE_KEY, item, options)
|
23
23
|
result[DUMMY_VALUE_KEY]
|
24
|
-
end
|
24
|
+
end.compact
|
25
25
|
end
|
26
|
-
|
27
26
|
end
|
28
27
|
end
|
29
28
|
end
|
data/lib/decanter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decanter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Francis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|