humans_rb 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/humans_rb/parser.rb +3 -1
- data/lib/humans_rb/version.rb +1 -1
- data/lib/humans_rb.rb +3 -2
- 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: dde684101ac3814b2193f370849a1be9b2d34ed5
|
4
|
+
data.tar.gz: 8b4b31b761892b9527862976d412da7e72d0ca02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac07ba55eccce60be6391ddcf4fb47f18d2ef5beff6edb013c72c93a1c189c61c254e77c67fe441706ebcef912cd2767341f44386eb1e3127d3bdfb71133d44a
|
7
|
+
data.tar.gz: 511be9d5b84d8d8eb9deed488af9d1e7b9d307e2eeebfe30b8d607fba18e2da6652258e4b1d93b786fc99bb574588246f875c817472ae0b4bb6d51453fd3443d
|
data/lib/humans_rb/parser.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
class HumansRb
|
1
|
+
class HumansRb
|
2
|
+
class Parser < Parslet::Parser
|
2
3
|
rule(:space) { str(" ") }
|
3
4
|
rule(:space?) { space.repeat }
|
4
5
|
rule(:tab) { match("[\t]").repeat(1) }
|
@@ -28,4 +29,5 @@ class HumansRb::Parser < Parslet::Parser
|
|
28
29
|
rule(:document) { section.repeat(1).as(:sections) }
|
29
30
|
|
30
31
|
root :document
|
32
|
+
end
|
31
33
|
end
|
data/lib/humans_rb/version.rb
CHANGED
data/lib/humans_rb.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
require 'typhoeus'
|
2
2
|
require 'parslet'
|
3
|
-
|
4
|
-
|
3
|
+
require_relative "humans_rb/version"
|
4
|
+
require_relative "humans_rb/parser"
|
5
|
+
require_relative "humans_rb/transform"
|
5
6
|
|
6
7
|
class HumansRb
|
7
8
|
def initialize(url_or_string)
|