hentry_consumer 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/{LICENSE.txt → LICENSE} +0 -0
- data/README.md +21 -20
- data/hentry_consumer.gemspec +1 -1
- data/lib/hentry_consumer/h_feed.rb +1 -1
- data/lib/hentry_consumer/version.rb +1 -1
- metadata +4 -4
data/{LICENSE.txt → LICENSE}
RENAMED
File without changes
|
data/README.md
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
#
|
1
|
+
# H-Entry Consumer
|
2
2
|
|
3
3
|
A Ruby gem to parse HTML containing one or more Microformat 2 h-entry elements, returning an a collection of
|
4
4
|
serialized h-entry objects. The returned Object structure looks something like this:
|
5
5
|
|
6
6
|
- HFeed
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
[Microformats
|
7
|
+
- HEntry
|
8
|
+
- name
|
9
|
+
- summary
|
10
|
+
- email
|
11
|
+
- content
|
12
|
+
- author
|
13
|
+
- HCard
|
14
|
+
- categories
|
15
|
+
- {}
|
16
|
+
- HEntry
|
17
|
+
- ...
|
18
|
+
|
19
|
+
[Microformats 2 h-entry](http://microformats.org/wiki/microformats-2#h-entry)
|
20
20
|
|
21
21
|
|
22
22
|
## Current Version
|
23
23
|
|
24
|
-
0.1.
|
24
|
+
0.1.1
|
25
25
|
|
26
26
|
|
27
27
|
## Requirements
|
28
28
|
|
29
|
+
* [Ruby 1.9.2](http://www.ruby-lang.org/en/downloads/)
|
29
30
|
* [Nokogiri](http://nokogiri.org)
|
30
31
|
|
31
32
|
|
32
|
-
|
33
33
|
## Installation
|
34
34
|
|
35
35
|
### Gemfile
|
@@ -37,7 +37,7 @@ serialized h-entry objects. The returned Object structure looks something like t
|
|
37
37
|
Add this line to your application's Gemfile.
|
38
38
|
|
39
39
|
```ruby
|
40
|
-
gem
|
40
|
+
gem "hentry_consumer"
|
41
41
|
```
|
42
42
|
|
43
43
|
### Manual
|
@@ -52,9 +52,10 @@ gem install hentry_consumer
|
|
52
52
|
## Usage
|
53
53
|
|
54
54
|
```ruby
|
55
|
+
require "hentry_consumer"
|
55
56
|
HentryConsumer.parse(File|URL)
|
56
57
|
```
|
57
|
-
[Example Gist](https://raw.github.com/gist/
|
58
|
+
[Example Gist of HTML with h-entry posts](https://raw.github.com/gist/3835447/7128a66a3ac7e971a82daac5fa2076d17b88e435/gistfile1.html)
|
58
59
|
|
59
60
|
## Authors
|
60
61
|
|
@@ -71,7 +72,7 @@ HentryConsumer.parse(File|URL)
|
|
71
72
|
7. Create new Pull Request
|
72
73
|
|
73
74
|
If you find bugs, have feature requests or questions, please
|
74
|
-
[file an issue](https://github.com/G5/
|
75
|
+
[file an issue](https://github.com/G5/hentry_consumer/issues).
|
75
76
|
|
76
77
|
### Specs
|
77
78
|
|
@@ -109,4 +110,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
109
110
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
110
111
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
111
112
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
112
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
113
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/hentry_consumer.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["vegan.bookis@gmail.com"]
|
11
11
|
gem.description = %q{A hATOM feed parser}
|
12
12
|
gem.summary = %q{Takes in HTML containing an h-feed classed element and returns serialized data based on the Microformat 2 hEntry specs}
|
13
|
-
gem.homepage = ""
|
13
|
+
gem.homepage = "https://github.com/G5/hentry_consumer"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hentry_consumer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -37,7 +37,7 @@ files:
|
|
37
37
|
- .gitignore
|
38
38
|
- Gemfile
|
39
39
|
- Guardfile
|
40
|
-
- LICENSE
|
40
|
+
- LICENSE
|
41
41
|
- README.md
|
42
42
|
- Rakefile
|
43
43
|
- hentry_consumer.gemspec
|
@@ -53,7 +53,7 @@ files:
|
|
53
53
|
- spec/lib/hentry_consumer_spec.rb
|
54
54
|
- spec/spec_helper.rb
|
55
55
|
- spec/support/example.html
|
56
|
-
homepage:
|
56
|
+
homepage: https://github.com/G5/hentry_consumer
|
57
57
|
licenses: []
|
58
58
|
post_install_message:
|
59
59
|
rdoc_options: []
|