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.
File without changes
data/README.md CHANGED
@@ -1,35 +1,35 @@
1
- # HentryConsumer
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
- - HEntry
8
- - name
9
- - summary
10
- - email
11
- - content
12
- - author
13
- - HCard
14
- - categories
15
- - {}
16
- - HEntry
17
- - ...
18
-
19
- [Microformats H-Entry](http://microformats.org/wiki/microformats-2#h-entry)
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.0
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 'hentry_consumer'
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/84b2c0b0ea991cc12dfb/84c735583bb90d345a8ede203a3df3d6cb486e10/g5-hub-feed.html)
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/picture_tag-rails/issues).
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.
@@ -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) }
@@ -7,7 +7,7 @@ module HentryConsumer
7
7
  end
8
8
 
9
9
  def parse_html(html)
10
- doc = Nokogiri::HTML(open html)
10
+ doc = Nokogiri::HTML(open(html).read)
11
11
  doc.css(".h-entry").each do |mf_entry|
12
12
  entry = HEntry.new(mf_entry)
13
13
  self.entries << entry
@@ -1,3 +1,3 @@
1
1
  module HentryConsumer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-04 00:00:00.000000000 Z
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.txt
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: []