html-hierarchy-extractor 1.0.1 → 1.0.2
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 +3 -3
- data/html-hierarchy-extractor.gemspec +2 -2
- data/lib/version.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: 90e26530c9a5d82ec576d31614a5107f0defa763
|
|
4
|
+
data.tar.gz: ada6d22330888e48f4a5d274568e93552f964867
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 965435216e5844e62c248bff8b0e4aee5907094ba370ea642e4eedac0901e4b3f1ca3cf35cd2753d4c276a7032a2575ec2ae78786b7b645fd12c2a4ec26d6ddf
|
|
7
|
+
data.tar.gz: e8a74ad80c0dac98abcb5a1e8ac07315389d3644bf0cf992af90e256bbc5feb2a10ac680681f07f9a7fc030c5e268248df425d40f20d2fc9d8a543030e0ae047
|
data/README.md
CHANGED
|
@@ -29,13 +29,13 @@ puts records
|
|
|
29
29
|
|
|
30
30
|
## Records
|
|
31
31
|
|
|
32
|
-
`extract` will return an array of
|
|
32
|
+
`extract` will return an array of records. Each record will represent a `<p>`
|
|
33
33
|
paragraph of the initial text, along with it textual version (HTML removed),
|
|
34
34
|
heading hierarchy, and other interesting bits.
|
|
35
35
|
|
|
36
36
|
## Example
|
|
37
37
|
|
|
38
|
-
Let's take the following HTML as input and see what
|
|
38
|
+
Let's take the following HTML as input and see what records we got as output:
|
|
39
39
|
|
|
40
40
|
```html
|
|
41
41
|
<!doctype html>
|
|
@@ -63,7 +63,7 @@ Let's take the following HTML as input and see what recordes we got as output:
|
|
|
63
63
|
</html>
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
Here is one of the
|
|
66
|
+
Here is one of the records extracted:
|
|
67
67
|
|
|
68
68
|
```ruby
|
|
69
69
|
{
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: html-hierarchy-extractor 1.0.
|
|
5
|
+
# stub: html-hierarchy-extractor 1.0.2 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "html-hierarchy-extractor"
|
|
9
|
-
s.version = "1.0.
|
|
9
|
+
s.version = "1.0.2"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/version.rb
CHANGED