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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d88913e453daf9b338ba361c9d0bcf8bd460c6cbf8f9ba9c8690f8bb72072350
4
- data.tar.gz: 4831a0a79c97caaf4ebe48123e2ae77baa5bf15a95b911e639ead8c43c428186
3
+ metadata.gz: 1518df774602ffe66ea5fe6b9ee101f74644876b9ae8417f575828c8b9ffc961
4
+ data.tar.gz: a9e2201a3df589f2664b565313f1c74d70ae9c4cd3e9c9836aad4507e8a11418
5
5
  SHA512:
6
- metadata.gz: 5b16bca4f276b1aceefb952104e38675ba0bea4792ef4d9b30e61d1b0501ed1dff9d832f97cb17cc2db62711c644e12183900ded11d6382dea0830a91f38c28a
7
- data.tar.gz: 19b9c671278b61dc7a903f2df4861c606914585165bfa3bfd81f82d950db6fa02328ee3d25ead2dd9048690b92238856d7fd8b833def2bc40b045d405c3a4832
6
+ metadata.gz: ae0d8395af236b8487af2812fd05a778f806055e1167d6635f2d91a4f25d07ccc62067423375fbb3e4da1d58c01d4affb4861b62c9a0a2220c30bae709ef7125
7
+ data.tar.gz: 935eab7ccb2ef88db8e01b4faefae22b84d65c5264925432684ae5d67e222bddb0c796672de0d9e4606176f3c321654a220246e889565819cc9116e01a4ce5b5
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decanter (3.0.1)
4
+ decanter (3.1.0)
5
5
  actionpack (>= 4.2.10)
6
6
  activesupport
7
7
  rails-html-sanitizer (>= 1.0.4)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Decanter
2
- VERSION = '3.0.1'.freeze
2
+ VERSION = '3.1.0'.freeze
3
3
  end
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.1
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-03-12 00:00:00.000000000 Z
12
+ date: 2020-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack