README.md in csv2hash-0.7.1 vs README.md in csv2hash-0.7.2
- old
+ new
@@ -117,10 +117,16 @@
```
cell name: 'aswering', values: ['yes', 'no'], position: [0,0]
```
+By default values are case sensitive but if you want the value to be a string that can be either 'yes' or 'no' case insentive ('Yes', 'YES', 'No', 'NO') you can define the following validation rule:
+
+```
+cell name: 'aswering', values: ['yes', 'no'], case_sensitive_values: false, position: [0,0]
+```
+
You can define you own message but default message is 'undefined :key on :position'
```
cell name: 'aswering', values: ['yes', 'no'], position: [0,0], message: 'this value is not supported'
```
@@ -153,9 +159,10 @@
* message: 'undefined :key on :position'
* mappable: true
* type: 'string'
* values: nil
+* case_sensitive_values: true
* nested: nil
* allow_blank: false
* extra_validator: nil
### Define where your data are expected