decanter 4.0.2 → 4.0.3

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: f2c8921ba27d831a863fd3220d2df2a538549b7bd2b12ba6cfac022abdc7f0fd
4
- data.tar.gz: 22afd46a49a2e3b1ca797b84b9c145317fc61cf759f6b46988a079a965578635
3
+ metadata.gz: 6e9d0d0e614da38a16d45d56bee4977a6e2092538d6909a373e705ca30a06860
4
+ data.tar.gz: 1a468f81cedf900e10614d8328d486494d9b91ae0fbf9ee3876c3825377f4ebf
5
5
  SHA512:
6
- metadata.gz: cef98a3a32c715d298c65c08bfaa5d5e9093d15be4c21bdf152093117444153dcf74327be75dbbb3f1981b7727d3b230b1369b8e9d459fbb3ab615a2bee8b9d3
7
- data.tar.gz: 5d679309905d5a66b62b00ccdb1132738d462f8594c6c50b18a82caa13ba8f9ddcb62df2f92e2a6f3cf36a67e9c85305dc0eb1ad3f6689ab36e8584ae58fa701
6
+ metadata.gz: f7acb57f4a7c60c17c4fa175d735c619d0f5e3b0b9f5f5f0095d00c8f27e0cb2a80369cdea8ed1334007bf93c8094e2de1994b3258463d93e77c9c696f73d7a1
7
+ data.tar.gz: 96195a3c43d867c73e4e6fb6a39d0d69248e66179c4756615e20cbc93c1b3d8056b654956459cb2daf4d29b16d28006a354cba2f2608a0d4c0271d057b37de85
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decanter (4.0.2)
4
+ decanter (4.0.3)
5
5
  actionpack (>= 4.2.10)
6
6
  activesupport
7
7
  rails-html-sanitizer (>= 1.0.4)
data/README.md CHANGED
@@ -137,11 +137,19 @@ input :ids, :array, parse_each: :integer
137
137
 
138
138
  ### Parser options
139
139
 
140
- Parsers can receive options that modify their behavior. These options are passed in as named arguments to `input`:
140
+ Some parsers can receive options that modify their behavior. These options are passed in as named arguments to `input`:
141
+
142
+ **Example:**
141
143
 
142
144
  ```ruby
143
145
  input :start_date, :date, parse_format: '%Y-%m-%d'
144
146
  ```
147
+ **Available Options:**
148
+ | Parser | Option | Default | Notes
149
+ | ----------- | ----------- | -----------| -----------
150
+ | `ArrayParser` | `parse_each`| N/A | Accepts a parser type, then uses that parser to parse each element in the array. If this option is not defined, each element is simply returned.
151
+ | `DateParser`| `parse_format` | `'%m/%d/%Y'`| Accepts any format string accepted by Ruby's `strftime` method
152
+ | `DateTimeParser` | `parse_format` | `'%m/%d/%Y %I:%M:%S %p'` | Accepts any format string accepted by Ruby's `strftime` method
145
153
 
146
154
  ### Exceptions
147
155
 
@@ -1,3 +1,3 @@
1
1
  module Decanter
2
- VERSION = '4.0.2'.freeze
2
+ VERSION = '4.0.3'.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: 4.0.2
4
+ version: 4.0.3
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: 2023-10-19 00:00:00.000000000 Z
12
+ date: 2024-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack