hentry_consumer 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - "1.9.3"
4
+ script: bundle exec rspec spec
data/README.md CHANGED
@@ -1,138 +1,3 @@
1
1
  # H-Entry Consumer
2
-
3
- A Ruby gem to parse HTML containing one or more
4
- [microformats 2 h-entry elements](http://microformats.org/wiki/microformats-2#h-entry),
5
- returning an a collection of serialized h-entry objects.
6
-
7
- The returned Object structure looks something like this:
8
-
9
- ```ruby
10
- { :items => [{
11
- :type => ["h-entry"],
12
- :properties => {
13
- :bookmark => "http://foo.bar/baz/qux",
14
- :published_at => "2012-11-16T05:20:18Z",
15
- :name => ["Foo Bar"],
16
- :summary => ["Baz Qux"],
17
- :content => ["<p>all of the html inside of it</p>"],
18
- :categories => {
19
- "Category" => "http://foo.bar/category"
20
- },
21
- :author => [{
22
- :type => ["h-card"],
23
- :properties => {
24
- :name => ["Foo Bar"],
25
- :email => ["foo@bar.com"],
26
- :url => ["http://foo.bar"]
27
- }
28
- }]
29
- }
30
- }
31
- }
32
- ```
33
-
34
-
35
- ## Current Version
36
-
37
- 0.8.1
38
-
39
-
40
- ## Requirements
41
-
42
- * [Ruby 1.9.2](http://www.ruby-lang.org/en/downloads/)
43
- * [Nokogiri](http://nokogiri.org)
44
-
45
-
46
- ## Installation
47
-
48
- ### Gemfile
49
-
50
- Add this line to your application's Gemfile.
51
-
52
- ```ruby
53
- gem "hentry_consumer"
54
- ```
55
-
56
- ### Manual
57
-
58
- Or install it yourself.
59
-
60
- ```bash
61
- gem install hentry_consumer
62
- ```
63
-
64
-
65
- ## Usage
66
-
67
- Write some HTML marked up as a microformats 2 h-entry
68
- * [An example](https://gist.github.com/4085498)
69
- * [Oh look another example](https://gist.github.com/88d6d476483e9528fb3a)
70
-
71
- ```ruby
72
- require "hentry_consumer"
73
-
74
- feed = HentryConsumer.parse("path/to/file") || HentryConsumer.parse("http://foo.bar")
75
-
76
- feed.entries.each do |entry|
77
- puts entry.name.first
78
- puts entry.author.first.name
79
- end
80
- ```
81
-
82
- ## Authors
83
-
84
- * Bookis Smuin / [@bookis](https://github.com/bookis)
85
- * Jessica Lynn Suttles / [@jlsuttles](https://github.com/jlsuttles)
86
-
87
- ## Contributions
88
-
89
- 1. Fork it
90
- 2. Get it running (see Installation above)
91
- 3. Create your feature branch (`git checkout -b my-new-feature`)
92
- 4. Write your code and **specs**
93
- 5. Commit your changes (`git commit -am 'Add some feature'`)
94
- 6. Push to the branch (`git push origin my-new-feature`)
95
- 7. Create new Pull Request
96
-
97
- If you find bugs, have feature requests or questions, please
98
- [file an issue](https://github.com/G5/hentry_consumer/issues).
99
-
100
- ### Specs
101
-
102
- ```bash
103
- guard
104
- ```
105
-
106
- ### Releases
107
-
108
- ```bash
109
- vi lib/hentry_consumer/version.rb # change version
110
- vi README.md # change version
111
- rake release
112
- ```
113
-
114
-
115
- ## License
116
-
117
- Copyright (c) 2012 G5
118
-
119
- MIT License
120
-
121
- Permission is hereby granted, free of charge, to any person obtaining
122
- a copy of this software and associated documentation files (the
123
- "Software"), to deal in the Software without restriction, including
124
- without limitation the rights to use, copy, modify, merge, publish,
125
- distribute, sublicense, and/or sell copies of the Software, and to
126
- permit persons to whom the Software is furnished to do so, subject to
127
- the following conditions:
128
-
129
- The above copyright notice and this permission notice shall be
130
- included in all copies or substantial portions of the Software.
131
-
132
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
133
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
134
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
135
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
136
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
137
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
138
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2
+ ## Fully Deprecated. Please see:
3
+ [microformats2](https://github.com/g5/microformats2)
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
8
8
  gem.version = HentryConsumer::VERSION
9
9
  gem.authors = ["Bookis Smuin", "Jessica Lynn Suttles"]
10
10
  gem.email = ["vegan.bookis@gmail.com", "jlsuttles@gmail.com"]
11
- gem.description = %q{A microformats 2 h-entry parser}
11
+ gem.description = %q{A microformats 2 h-entry parser. Fully Deprecated. Please see: https://rubygems.org/gems/microformats2 }
12
12
  gem.summary = %q{Parses HTML containing one or more h-entry elements and returns serialized data based on the microformat 2 spec}
13
13
  gem.homepage = "https://github.com/G5/hentry_consumer"
14
14
 
@@ -16,10 +16,10 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
-
19
+
20
20
  gem.add_runtime_dependency 'nokogiri'
21
21
  gem.add_runtime_dependency 'json'
22
-
22
+
23
23
  gem.add_development_dependency "rspec", "~> 2.11.0"
24
24
  gem.add_development_dependency "guard-rspec", "~> 2.1.0"
25
25
  gem.add_development_dependency "rb-fsevent", "~> 0.9.2"
@@ -1,3 +1,3 @@
1
1
  module HentryConsumer
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
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.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-24 00:00:00.000000000 Z
13
+ date: 2013-04-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
@@ -108,7 +108,7 @@ dependencies:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.2.1
111
- description: A microformats 2 h-entry parser
111
+ description: ! 'A microformats 2 h-entry parser. Fully Deprecated. Please see: https://rubygems.org/gems/microformats2 '
112
112
  email:
113
113
  - vegan.bookis@gmail.com
114
114
  - jlsuttles@gmail.com
@@ -117,6 +117,7 @@ extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
119
  - .gitignore
120
+ - .travis.yml
120
121
  - Gemfile
121
122
  - Guardfile
122
123
  - LICENSE