decanter 4.0.2 → 4.0.3
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/README.md +9 -1
- 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: 6e9d0d0e614da38a16d45d56bee4977a6e2092538d6909a373e705ca30a06860
|
4
|
+
data.tar.gz: 1a468f81cedf900e10614d8328d486494d9b91ae0fbf9ee3876c3825377f4ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7acb57f4a7c60c17c4fa175d735c619d0f5e3b0b9f5f5f0095d00c8f27e0cb2a80369cdea8ed1334007bf93c8094e2de1994b3258463d93e77c9c696f73d7a1
|
7
|
+
data.tar.gz: 96195a3c43d867c73e4e6fb6a39d0d69248e66179c4756615e20cbc93c1b3d8056b654956459cb2daf4d29b16d28006a354cba2f2608a0d4c0271d057b37de85
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -137,11 +137,19 @@ input :ids, :array, parse_each: :integer
|
|
137
137
|
|
138
138
|
### Parser options
|
139
139
|
|
140
|
-
|
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
|
|
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: 4.0.
|
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:
|
12
|
+
date: 2024-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|