dreader 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +4 -3
- data/lib/dreader/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eff0a237ea9c0a4162696790f1689a868fc8a3efb3075eb0c890ddcc4651b5d0
|
|
4
|
+
data.tar.gz: f3ef74d2063aa07e5f42e3569563b37837ee3fa8d83e243a546d49d6699ef0ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 491a031d343211d988d7687601cacaeecac49770510940c56c46a770eddc26d703d8c1eb6e370deb79e0b536ecf2ebc8fbd5eac751f0354067c2242cb90f6268
|
|
7
|
+
data.tar.gz: 2ef1c5b00dadeba9f522f874022ec1e88e2409368144e056268155183f2cd5245f64b9e1445e44210cebbba01a24e409cc988651eddc8284080f85d1f216c394
|
data/README.md
CHANGED
|
@@ -79,7 +79,7 @@ where:
|
|
|
79
79
|
* (optional) `sheet` is the sheet name or number to read from. If not
|
|
80
80
|
specified, the first (default) sheet is used
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
Specify the structure of your file, for the columns you are interested
|
|
83
83
|
to process. You have to specify a name (used to access data) and a
|
|
84
84
|
column reference (used to read data from the file).
|
|
85
85
|
|
|
@@ -89,6 +89,7 @@ preprocess data and to check for errors.
|
|
|
89
89
|
For instance, given the following file:
|
|
90
90
|
|
|
91
91
|
| Name | Surname | Age |
|
|
92
|
+
|------|---------|-----|
|
|
92
93
|
| John | Doe | 30 |
|
|
93
94
|
| Jane | Doe | 31 |
|
|
94
95
|
| ... | ... | ... |
|
|
@@ -115,9 +116,9 @@ i.column :age do
|
|
|
115
116
|
x.to_i
|
|
116
117
|
end
|
|
117
118
|
|
|
118
|
-
# check age is
|
|
119
|
+
# check age is greater than zero
|
|
119
120
|
check do |x|
|
|
120
|
-
x
|
|
121
|
+
x > 0
|
|
121
122
|
end
|
|
122
123
|
end
|
|
123
124
|
|
data/lib/dreader/version.rb
CHANGED