csv_to_products 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/pairs.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95dad4230323887da49e39e4fa9591471889cd30
|
4
|
+
data.tar.gz: 6a469d60252efdf1c62d65b5d249c6b41fdfee10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 901672ef4b305747ff01611ad444b92ce7b7dd801697a6545b88a29eeb0153cdcfe7ca3ff1bec254b9a744021c1a95bdd4162ee4848ff064fdd9637bfbdb8416
|
7
|
+
data.tar.gz: 55bda5f0a5d0e96fc74352dcd93b4ed0d9291655b2ddd5dda29be50b20256909ab4895fc5cd9e89974b31098e5a9cdc9ff4dfe13cd34b6f0f2a7f6c5f9d27338
|
data/README.md
CHANGED
@@ -22,9 +22,9 @@ If the arguments are missing, it will try to parse `products.csv` into the `_pro
|
|
22
22
|
|
23
23
|
Each product must have a unique name and a numeric price.
|
24
24
|
|
25
|
-
##
|
25
|
+
## Array
|
26
26
|
|
27
|
-
Any field name of the form `
|
27
|
+
Any field name of the form `array[Member]` with be treated as a array. For example a csv with fields like this,
|
28
28
|
|
29
29
|
| available_sizes[Small] | available_sizes[Medium] | available_sizes[Large] |
|
30
30
|
| ---------------------- | ----------------------- | ---------------------- |
|
@@ -33,7 +33,7 @@ Any field name of the form `collection[Member]` with be treated as a collection.
|
|
33
33
|
Will be collected into the front matter as:
|
34
34
|
|
35
35
|
```yaml
|
36
|
-
available_sizes: Small Large
|
36
|
+
available_sizes: [Small, Large]
|
37
37
|
```
|
38
38
|
|
39
39
|
All values will be treated as false, except for: `y`, `Y`, `1`, `true`, `yes`, and `Yes`.
|
data/lib/pairs.rb
CHANGED