dreader 0.4.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.ORG +45 -0
- data/Gemfile.lock +21 -8
- data/README.org +794 -0
- data/dreader.gemspec +6 -4
- data/examples/age/age.rb +22 -6
- data/examples/age_with_multiple_checks/Birthdays.ods +0 -0
- data/examples/age_with_multiple_checks/age_with_multiple_checks.rb +62 -0
- data/examples/template/template_generation.rb +37 -0
- data/examples/wikipedia_big_us_cities/big_us_cities.rb +20 -18
- data/examples/wikipedia_us_cities/us_cities.rb +28 -27
- data/examples/wikipedia_us_cities/us_cities_bulk_declare.rb +22 -22
- data/lib/dreader/column.rb +39 -0
- data/lib/dreader/engine.rb +473 -0
- data/lib/dreader/options.rb +16 -0
- data/lib/dreader/util.rb +71 -0
- data/lib/dreader/version.rb +1 -1
- data/lib/dreader.rb +5 -411
- metadata +59 -25
- data/Changelog.org +0 -20
- data/README.md +0 -469
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c2efcf5261515d6957bc11526a5e63956bf09c3fd35cf0fb73805e541fa59ef
|
4
|
+
data.tar.gz: 4d6a80ea2112fbe2cbb024819801ca3853dd6046047069770361a4c32d84bcbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7060427113fcf0d8bd33d6db69d42554cd8cf00cbc4b1e4701192c7f846bbfd4c1e4cc904d50277c3b3b6896178ba743dbfb1944da79aaa020b1599cd6f3f856
|
7
|
+
data.tar.gz: 9875ecb098b1085033de36da91917186ba5687028694b0073da71a2ebe4185c594fe31aaf536c2cb5ac7b96bdd7a1f3031fd943b05c9baa4959d0d15e2a5a2f8
|
data/CHANGELOG.ORG
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
#+TITLE: Changelog
|
2
|
+
|
3
|
+
* Version 1.0.0
|
4
|
+
** Changes the DSL to allow declaration in a class
|
5
|
+
|
6
|
+
The preferred way of using Dreader is by declaring options, column,
|
7
|
+
..., in a class and then instantiate the class and do the work
|
8
|
+
|
9
|
+
See the README for more details.
|
10
|
+
|
11
|
+
** The bulk_declare method has been removed. Use ~columns~ instead
|
12
|
+
|
13
|
+
* Version 0.6.2
|
14
|
+
** Adds row_errors and row_numbers in the hash of a row
|
15
|
+
** Support ~{ a: 'A' }~ notation also in column
|
16
|
+
** Now uses a logger and allows to specify logger and logger_level outside the class
|
17
|
+
|
18
|
+
If you pass the read a =logger:= and/or a =logger_level:=, dreader
|
19
|
+
will now honor them and log to the logger you specified, rather
|
20
|
+
than to standard output
|
21
|
+
|
22
|
+
* Version 0.5.0
|
23
|
+
** Fixes issues with Gem declaration
|
24
|
+
|
25
|
+
* Version 0.4.2
|
26
|
+
** Better error messages for process and check functions
|
27
|
+
dreader now captures exceptions raised by process and check and
|
28
|
+
prints and error message to stdout if an error is found.
|
29
|
+
the exception is then propagated in the standard way.
|
30
|
+
** New method bulk_declare
|
31
|
+
bulk_declare allow to easily declare columns which don't need a
|
32
|
+
specific treatment
|
33
|
+
** Read will now complains if the argument passed is not a hash
|
34
|
+
** Virtualcols is now accessible (attr_reader)
|
35
|
+
** Fixed a bug with slice
|
36
|
+
|
37
|
+
* Version 0.4.1
|
38
|
+
** Fixed an issue with ~read~: it always required a hash as input
|
39
|
+
** Changed syntax of ~debug~, which now accepts a hash as argument
|
40
|
+
This makes its syntax similar to ~read~.
|
41
|
+
** Improved output of ~debug~
|
42
|
+
By default ~debug~ now prints the output of ~process~ and ~check~.
|
43
|
+
You can disable this feature by passing ~process: false~ and/or ~check:
|
44
|
+
false~ to the ~debug~. Notice that ~check~ implies ~process~.
|
45
|
+
|
data/Gemfile.lock
CHANGED
@@ -1,28 +1,41 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dreader (0.
|
4
|
+
dreader (0.6.3)
|
5
|
+
fast_excel
|
5
6
|
roo
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
9
10
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
|
11
|
+
debug (1.8.0)
|
12
|
+
irb (>= 1.5.0)
|
13
|
+
reline (>= 0.3.1)
|
14
|
+
fast_excel (0.4.1)
|
15
|
+
ffi (> 1.9, < 2)
|
16
|
+
ffi (1.15.5)
|
17
|
+
io-console (0.6.0)
|
18
|
+
irb (1.7.2)
|
19
|
+
reline (>= 0.3.6)
|
20
|
+
nokogiri (1.15.3-x86_64-linux)
|
21
|
+
racc (~> 1.4)
|
22
|
+
racc (1.7.1)
|
13
23
|
rake (10.5.0)
|
14
|
-
|
24
|
+
reline (0.3.6)
|
25
|
+
io-console (~> 0.5)
|
26
|
+
roo (2.10.0)
|
15
27
|
nokogiri (~> 1)
|
16
|
-
rubyzip (
|
17
|
-
rubyzip (
|
28
|
+
rubyzip (>= 1.3.0, < 3.0.0)
|
29
|
+
rubyzip (2.3.2)
|
18
30
|
|
19
31
|
PLATFORMS
|
20
32
|
ruby
|
21
33
|
|
22
34
|
DEPENDENCIES
|
23
35
|
bundler (~> 1.16)
|
36
|
+
debug (>= 1.0.0)
|
24
37
|
dreader!
|
25
38
|
rake (~> 10.0)
|
26
39
|
|
27
40
|
BUNDLED WITH
|
28
|
-
1.
|
41
|
+
1.17.2
|