microformats2 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDc5YzFkOTExNDgwZTEwM2U2YjVlMTM1YmVlYjExZTA1ZTRkYmQ3Yw==
5
- data.tar.gz: !binary |-
6
- OGU4ZmI0YWI3YjBiNGM4M2Q1M2U3MGFhMTRhYjMxMTc4ZDE3NGEzNg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- Yzg5MjdhODY1Yjc0OWY1YjJlNmY0MzY0YTY3OTliMTY4MGZiYjQyMmJlMjNj
10
- NTk4MjEzYjYwZTBlYWYxNTA5OTNlNzcyNDA2OWZhYTY4MDZiNmZlNzdlZGY0
11
- ZGMwNThlYmU0OTk5NGJlN2Y1MzQzMjFmOWE4Y2E2MTc5MWE5Yjg=
12
- data.tar.gz: !binary |-
13
- Yjk5Zjk2YzFlNmI0OWRlYzdjMzFkYzFhZThmYzAwMzcxMTA4YzQ1ZTgxYTgx
14
- OWIwMWU0NWZmODExMzI3ZWIxODE3YmU0MTJmMWQ4MzQ1ZTk1ZmNmYmQyMmQ2
15
- N2Y2NzRkZDU1NTUwNTZmZmY4ZGM1MjQ4ZjZmYWIyNjkwY2ExNmM=
2
+ SHA1:
3
+ metadata.gz: 3d067d1af24a09d5b2288e7f04060c8975b0be41
4
+ data.tar.gz: 23142b75604de2d27ac88ba3e5214e39020c5ddb
5
+ SHA512:
6
+ metadata.gz: 637c4563bfd6d70daf64704184d6cc9610ad4f2224041ade2a8f28671e85f4dad402a5a1bbd874a34d24d40477b48df8309e1769ab9ee1c536ce659161dd6206
7
+ data.tar.gz: d1165554934b81d6c61e8a3573f8fa8f1c9bfdabe278d3f0fb5b216889b9dd9ba71abd837b99b3e6bf9c6dee01b88fe5017ad3945f7d2812ffa0ca4514d4f4d4
data/.travis.yml CHANGED
@@ -1,10 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
3
+ - 2.2.3
4
4
  script: bundle exec rspec
5
- notifications:
6
- campfire:
7
- rooms:
8
- secure: UlQ85ETcMVxrK6N9E1zcNPYZ+7as8TLkPS/ArOxytairh8W2S4BFyuCoVRgvLQ88RhHhGgTbkF14DiFtcCiXu9hmfZFZY54q92Sk/Lf98mz1Vzis6X+PedBUIVBPWCEPpMmLxAF+Q1HkEcVYQMKwNoAaQLrW+7SOzh57bOMxHeE=
9
- on_success: change
10
- on_failure: always
data/LICENSE.md ADDED
@@ -0,0 +1,36 @@
1
+ # Creative Commons Legal Code
2
+
3
+ ## CC0 1.0 Universal
4
+
5
+ http://creativecommons.org/publicdomain/zero/1.0
6
+
7
+ Official translations of this legal tool are available> CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
8
+
9
+ ### _Statement of Purpose_
10
+
11
+ The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
12
+
13
+ Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others.
14
+
15
+ For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
16
+
17
+ **1. Copyright and Related Rights.** A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
18
+
19
+ 1. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
20
+ 2. moral rights retained by the original author(s) and/or performer(s);
21
+ 3. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
22
+ 4. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
23
+ 5. rights protecting the extraction, dissemination, use and reuse of data in a Work;
24
+ 6. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
25
+ 7. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
26
+
27
+ **2. Waiver.** To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose.
28
+
29
+ **3. Public License Fallback.** Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose.
30
+
31
+ **4. Limitations and Disclaimers.**
32
+
33
+ 1. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
34
+ 2. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
35
+ 3. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
36
+ 4. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
data/README.md CHANGED
@@ -1,11 +1,16 @@
1
- # Microformats2
1
+ # Microformats2 (ruby)
2
2
 
3
- [![Build Status](https://travis-ci.org/G5/microformats2.png?branch=master)](https://travis-ci.org/G5/microformats2)
4
- [![Code Climate](https://codeclimate.com/github/G5/microformats2.png)](https://codeclimate.com/github/G5/microformats2)
3
+ [![Build Status](https://travis-ci.org/indieweb/microformats2-ruby.png?branch=master)](https://travis-ci.org/indieweb/microformats2-ruby)
4
+ [![Code Climate](https://codeclimate.com/github/indieweb/microformats2-ruby/badges/gpa.svg)](https://codeclimate.com/github/indieweb/microformats2-ruby)
5
5
 
6
6
  A Ruby gem to parse HTML containing one or more [microformats2](http://microformats.org/wiki/microformats-2)
7
7
  and return a collection of dynamically defined Ruby objects.
8
8
 
9
+
10
+ ## Development Status
11
+
12
+ This gem sat unmaintained for quite a long time. It's now under new management. Work will begin shortly on getting it on par with the other Microformats2 parsers and the current state of the spec. (2015-12-23)
13
+
9
14
  A work in progress.
10
15
 
11
16
  Implemented:
@@ -28,34 +33,42 @@ Not Implemented:
28
33
  * [value-class-pattern](http://microformats.org/wiki/value-class-pattern)
29
34
  * [include-pattern](http://microformats.org/wiki/include-pattern)
30
35
  * recognition of [vendor extensions](http://microformats.org/wiki/microformats2#VENDOR_EXTENSIONS)
31
- * backwards compatable support for microformats v1
36
+ * backwards compatible support for microformats v1
32
37
 
33
38
 
34
39
  ## Current Version
35
40
 
36
- 2.0.1
41
+ 2.0.2
42
+
43
+ ![Version 2.0.2](https://img.shields.io/badge/VERSION-2.0.2-green.svg)
37
44
 
38
45
 
39
46
  ## Requirements
40
47
 
41
- * "nokogiri"
42
- * "json"
43
- * "activesupport"
48
+ * [nokogiri](https://github.com/sparklemotion/nokogiri)
49
+ * [json](https://github.com/flori/json)
50
+ * [activesupport](https://github.com/rails/rails/tree/master/activesupport)
44
51
 
45
52
 
46
53
  ## Installation
47
54
 
48
55
  Add this line to your application's Gemfile:
49
56
 
50
- gem 'microformats2'
57
+ ```ruby
58
+ gem "microformats2"
59
+ ```
51
60
 
52
61
  And then execute:
53
62
 
54
- $ bundle
63
+ ```
64
+ bundle
65
+ ```
55
66
 
56
67
  Or install it yourself as:
57
68
 
58
- $ gem install microformats2
69
+ ```
70
+ gem install microformats2
71
+ ```
59
72
 
60
73
 
61
74
  ## Usage
@@ -63,21 +76,27 @@ Or install it yourself as:
63
76
  ```ruby
64
77
  require "microformats2"
65
78
 
66
- source = '<div class="h-card"><p class="p-name">Jessica Lynn Suttles</p></div>'
79
+ source = "<div class='h-card'><p class='p-name'>Jessica Lynn Suttles</p></div>"
67
80
  collection = Microformats2.parse(source)
68
81
  # using singular accessors
69
82
  collection.card.name.to_s #=> "Jessica Lynn Suttles"
70
83
  # using plural accessors
71
84
  collection.cards.first.names.first.to_s #=> "Jessica Lynn Suttles"
72
85
 
73
- source = '<article class="h-entry">
74
- <h1 class="p-name">Microformats 2</h1>
75
- <div class="h-card p-author"><p class="p-name">Jessica Lynn Suttles</p></div>
76
- </article>'
86
+ source = "<article class='h-entry'>
87
+ <h1 class='p-name'>Microformats 2</h1>
88
+ <div class='h-card p-author'><p class='p-name'>Jessica Lynn Suttles</p></div>
89
+ </article>"
77
90
  collection = Microformats2.parse(source)
78
91
  collection.entry.name.to_s #=> "Microformats 2"
79
92
  # accessing nested microformats
80
93
  collection.entry.author.format.name.to_s #=> "Jessica Lynn Suttles"
94
+
95
+ # getting a copy of the canonical microformats2 hash structure
96
+ collection.to_hash
97
+
98
+ # the above, as JSON in a string
99
+ collection.to_json
81
100
  ```
82
101
 
83
102
  * `source` can be a URL, filepath, or HTML
@@ -90,6 +109,7 @@ collection.entry.author.format.name.to_s #=> "Jessica Lynn Suttles"
90
109
  * Michael Mitchell / [@variousred](https://github.com/variousred)
91
110
  * Jessica Dillon / [@jessicard](https://github.com/jessicard)
92
111
 
112
+
93
113
  ## Contributions
94
114
 
95
115
  1. Fork it
@@ -101,49 +121,27 @@ collection.entry.author.format.name.to_s #=> "Jessica Lynn Suttles"
101
121
  7. Create new Pull Request
102
122
 
103
123
  If you find bugs, have feature requests or questions, please
104
- [file an issue](https://github.com/G5/microformats2/issues).
124
+ [file an issue](https://github.com/indieweb/microformats2-ruby/issues).
105
125
 
106
126
 
107
127
  ## Specs
108
128
 
129
+ **TODO** remove this and use the [microformats tests repo](https://github.com/microformats/tests) instead.
130
+
109
131
  To update spec cases that are scraped from other sites.
110
132
  **Warning:** This could break specs.
111
- ```bash
133
+ ```
112
134
  rake specs:update
113
135
  ```
114
136
 
115
137
  To run specs
116
- ```bash
117
- rake spec
118
138
  ```
119
-
120
- To keep specs running
121
- ```bash
122
- guard
139
+ rake spec
123
140
  ```
124
141
 
125
142
 
126
143
  ## License
127
144
 
128
- Copyright (c) 2013 G5
129
-
130
- MIT License
131
-
132
- Permission is hereby granted, free of charge, to any person obtaining
133
- a copy of this software and associated documentation files (the
134
- "Software"), to deal in the Software without restriction, including
135
- without limitation the rights to use, copy, modify, merge, publish,
136
- distribute, sublicense, and/or sell copies of the Software, and to
137
- permit persons to whom the Software is furnished to do so, subject to
138
- the following conditions:
139
-
140
- The above copyright notice and this permission notice shall be
141
- included in all copies or substantial portions of the Software.
145
+ Microformats2 (ruby) is dedicated to the public domain using Creative Commons -- CC0 1.0 Universal.
142
146
 
143
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
144
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
145
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
146
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
147
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
148
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
149
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
147
+ http://creativecommons.org/publicdomain/zero/1.0
@@ -40,9 +40,9 @@ module Microformats2
40
40
 
41
41
  def parse_implied_properties
42
42
  ip = []
43
- ip << ImpliedProperty::Name.new(@element).parse unless property_present?(:name)
43
+ ip << ImpliedProperty::Name.new(@element, @base).parse unless property_present?(:name)
44
44
  ip << ImpliedProperty::Url.new(@element, @base).parse unless property_present?(:url)
45
- ip << ImpliedProperty::Photo.new(@element).parse unless property_present?(:photo)
45
+ ip << ImpliedProperty::Photo.new(@element, @base).parse unless property_present?(:photo)
46
46
  ip.compact.each do |property|
47
47
  save_property_name(property.method_name)
48
48
  define_method(property.method_name)
@@ -102,7 +102,7 @@ module Microformats2
102
102
  send("#{mn}=", value)
103
103
  end
104
104
  if current = send(mn.pluralize)
105
- current << value
105
+ current << value if current.respond_to? :<<
106
106
  else
107
107
  send("#{mn.pluralize}=", [value])
108
108
  end
@@ -6,6 +6,10 @@ module Microformats2
6
6
  "photo"
7
7
  end
8
8
 
9
+ def to_s
10
+ @to_s = Microformats2::AbsoluteUri.new(@base, super.to_s).absolutize
11
+ end
12
+
9
13
  protected
10
14
 
11
15
  def name_map
@@ -25,7 +25,7 @@ module Microformats2
25
25
  end
26
26
 
27
27
  def formats
28
- @formats ||= format_classes.length >=1 ? FormatParser.parse(@element) : []
28
+ @formats ||= format_classes.length >=1 ? FormatParser.parse(@element, @base) : []
29
29
  end
30
30
 
31
31
  def to_hash
@@ -15,7 +15,8 @@ module Microformats2
15
15
  "img" => "src",
16
16
  "object" => "data",
17
17
  "abbr" => "title",
18
- "data" => "value" }
18
+ "data" => "value",
19
+ "input" => "value" }
19
20
  end
20
21
  end
21
22
  end
@@ -1,3 +1,3 @@
1
1
  module Microformats2
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
@@ -6,11 +6,11 @@ require 'microformats2/version'
6
6
  Gem::Specification.new do |gem|
7
7
  gem.name = "microformats2"
8
8
  gem.version = Microformats2::VERSION
9
- gem.authors = ["Jessica Lynn Suttles", "Jessica Dillon"]
10
- gem.email = ["jlsuttles@gmail.com", "jessicard@mac.com"]
11
- gem.description = %q{parses HTML for microformats and return a collection of dynamically defined Ruby objects}
9
+ gem.authors = ["Shane Becker", "Jessica Lynn Suttles", "Jessica Dillon"]
10
+ gem.email = ["veganstraightedge@gmail.com", "jlsuttles@gmail.com", "jessicard@mac.com"]
11
+ gem.description = %q{Parses HTML for microformats and return a collection of dynamically defined Ruby objects}
12
12
  gem.summary = %q{microformats2 parser}
13
- gem.homepage = "https://github.com/G5/microformats2"
13
+ gem.homepage = "https://github.com/indieweb/microformats2-ruby"
14
14
 
15
15
  gem.files = `git ls-files`.split($/)
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
@@ -41,8 +41,8 @@ describe Microformats2::AbsoluteUri do
41
41
  end
42
42
 
43
43
  context "when relative is an invalid URI" do
44
- let(:relative) { "git@github.com:G5/microformats2.git" }
45
- it { should eq("git@github.com:G5/microformats2.git") }
44
+ let(:relative) { "git@github.com:indieweb/microformats2-ruby.git" }
45
+ it { should eq("git@github.com:indieweb/microformats2-ruby.git") }
46
46
  end
47
47
  end
48
48
  end
@@ -138,6 +138,20 @@ describe Microformats2::Collection do
138
138
  end
139
139
  end
140
140
 
141
+ describe "nested-format-with-property-of-same-name.html" do
142
+ before do
143
+ html = "spec/support/lib/microformats2/nested-format-with-property-of-same-name.html"
144
+ @collection = Microformats2.parse(html)
145
+ end
146
+ describe "#to_json" do
147
+ it "should match nested-format-with-property-of-same-name.js" do
148
+ json = "spec/support/lib/microformats2/nested-format-with-property-of-same-name.js"
149
+ json = open(json).read
150
+ JSON.parse(@collection.to_json).should == JSON.parse(json)
151
+ end
152
+ end
153
+ end
154
+
141
155
  describe "nested-format-with-property.html" do
142
156
  before do
143
157
  html = "spec/support/lib/microformats2/nested-format-with-property.html"
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <body>
4
+ <div class="h-card">
5
+ <div class="p-adr h-adr">
6
+ <span class="p-street-address">
7
+ 123 Rainbow Lane
8
+ </span>
9
+ </a>
10
+ </div>
11
+ </div>
12
+ </body>
13
+ </html>
@@ -0,0 +1,16 @@
1
+ { "items": [{
2
+ "type": ["h-card"],
3
+ "properties": {
4
+ "adr": [{
5
+ "value": "123 Rainbow Lane",
6
+ "type": ["h-adr"],
7
+ "properties": {
8
+ "street-address": ["123 Rainbow Lane"],
9
+ "name": ["123 Rainbow Lane"]
10
+ }
11
+ }],
12
+ "name": ["123 Rainbow Lane"]
13
+ }
14
+ }],
15
+ "rels": {}
16
+ }
metadata CHANGED
@@ -1,157 +1,159 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microformats2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
+ - Shane Becker
7
8
  - Jessica Lynn Suttles
8
9
  - Jessica Dillon
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-03-10 00:00:00.000000000 Z
13
+ date: 2016-05-04 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: nokogiri
16
17
  requirement: !ruby/object:Gem::Requirement
17
18
  requirements:
18
- - - ! '>='
19
+ - - ">="
19
20
  - !ruby/object:Gem::Version
20
21
  version: '0'
21
22
  type: :runtime
22
23
  prerelease: false
23
24
  version_requirements: !ruby/object:Gem::Requirement
24
25
  requirements:
25
- - - ! '>='
26
+ - - ">="
26
27
  - !ruby/object:Gem::Version
27
28
  version: '0'
28
29
  - !ruby/object:Gem::Dependency
29
30
  name: json
30
31
  requirement: !ruby/object:Gem::Requirement
31
32
  requirements:
32
- - - ! '>='
33
+ - - ">="
33
34
  - !ruby/object:Gem::Version
34
35
  version: '0'
35
36
  type: :runtime
36
37
  prerelease: false
37
38
  version_requirements: !ruby/object:Gem::Requirement
38
39
  requirements:
39
- - - ! '>='
40
+ - - ">="
40
41
  - !ruby/object:Gem::Version
41
42
  version: '0'
42
43
  - !ruby/object:Gem::Dependency
43
44
  name: activesupport
44
45
  requirement: !ruby/object:Gem::Requirement
45
46
  requirements:
46
- - - ! '>='
47
+ - - ">="
47
48
  - !ruby/object:Gem::Version
48
49
  version: '0'
49
50
  type: :runtime
50
51
  prerelease: false
51
52
  version_requirements: !ruby/object:Gem::Requirement
52
53
  requirements:
53
- - - ! '>='
54
+ - - ">="
54
55
  - !ruby/object:Gem::Version
55
56
  version: '0'
56
57
  - !ruby/object:Gem::Dependency
57
58
  name: rake
58
59
  requirement: !ruby/object:Gem::Requirement
59
60
  requirements:
60
- - - ! '>='
61
+ - - ">="
61
62
  - !ruby/object:Gem::Version
62
63
  version: '0'
63
64
  type: :development
64
65
  prerelease: false
65
66
  version_requirements: !ruby/object:Gem::Requirement
66
67
  requirements:
67
- - - ! '>='
68
+ - - ">="
68
69
  - !ruby/object:Gem::Version
69
70
  version: '0'
70
71
  - !ruby/object:Gem::Dependency
71
72
  name: rspec
72
73
  requirement: !ruby/object:Gem::Requirement
73
74
  requirements:
74
- - - ! '>='
75
+ - - ">="
75
76
  - !ruby/object:Gem::Version
76
77
  version: '0'
77
78
  type: :development
78
79
  prerelease: false
79
80
  version_requirements: !ruby/object:Gem::Requirement
80
81
  requirements:
81
- - - ! '>='
82
+ - - ">="
82
83
  - !ruby/object:Gem::Version
83
84
  version: '0'
84
85
  - !ruby/object:Gem::Dependency
85
86
  name: guard-rspec
86
87
  requirement: !ruby/object:Gem::Requirement
87
88
  requirements:
88
- - - ! '>='
89
+ - - ">="
89
90
  - !ruby/object:Gem::Version
90
91
  version: '0'
91
92
  type: :development
92
93
  prerelease: false
93
94
  version_requirements: !ruby/object:Gem::Requirement
94
95
  requirements:
95
- - - ! '>='
96
+ - - ">="
96
97
  - !ruby/object:Gem::Version
97
98
  version: '0'
98
99
  - !ruby/object:Gem::Dependency
99
100
  name: rb-fsevent
100
101
  requirement: !ruby/object:Gem::Requirement
101
102
  requirements:
102
- - - ! '>='
103
+ - - ">="
103
104
  - !ruby/object:Gem::Version
104
105
  version: '0'
105
106
  type: :development
106
107
  prerelease: false
107
108
  version_requirements: !ruby/object:Gem::Requirement
108
109
  requirements:
109
- - - ! '>='
110
+ - - ">="
110
111
  - !ruby/object:Gem::Version
111
112
  version: '0'
112
113
  - !ruby/object:Gem::Dependency
113
114
  name: simplecov
114
115
  requirement: !ruby/object:Gem::Requirement
115
116
  requirements:
116
- - - ! '>='
117
+ - - ">="
117
118
  - !ruby/object:Gem::Version
118
119
  version: '0'
119
120
  type: :development
120
121
  prerelease: false
121
122
  version_requirements: !ruby/object:Gem::Requirement
122
123
  requirements:
123
- - - ! '>='
124
+ - - ">="
124
125
  - !ruby/object:Gem::Version
125
126
  version: '0'
126
127
  - !ruby/object:Gem::Dependency
127
128
  name: webmock
128
129
  requirement: !ruby/object:Gem::Requirement
129
130
  requirements:
130
- - - ! '>='
131
+ - - ">="
131
132
  - !ruby/object:Gem::Version
132
133
  version: '0'
133
134
  type: :development
134
135
  prerelease: false
135
136
  version_requirements: !ruby/object:Gem::Requirement
136
137
  requirements:
137
- - - ! '>='
138
+ - - ">="
138
139
  - !ruby/object:Gem::Version
139
140
  version: '0'
140
- description: parses HTML for microformats and return a collection of dynamically defined
141
+ description: Parses HTML for microformats and return a collection of dynamically defined
141
142
  Ruby objects
142
143
  email:
144
+ - veganstraightedge@gmail.com
143
145
  - jlsuttles@gmail.com
144
146
  - jessicard@mac.com
145
147
  executables: []
146
148
  extensions: []
147
149
  extra_rdoc_files: []
148
150
  files:
149
- - .gitignore
150
- - .rspec
151
- - .travis.yml
151
+ - ".gitignore"
152
+ - ".rspec"
153
+ - ".travis.yml"
152
154
  - Gemfile
153
155
  - Guardfile
154
- - LICENSE.txt
156
+ - LICENSE.md
155
157
  - README.md
156
158
  - Rakefile
157
159
  - lib/microformats2.rb
@@ -341,6 +343,8 @@ files:
341
343
  - spec/support/lib/microformats2/implied_property/url-pass.html
342
344
  - spec/support/lib/microformats2/implied_property/url-relative.html
343
345
  - spec/support/lib/microformats2/implied_property/url-unnormalized.html
346
+ - spec/support/lib/microformats2/nested-format-with-property-of-same-name.html
347
+ - spec/support/lib/microformats2/nested-format-with-property-of-same-name.js
344
348
  - spec/support/lib/microformats2/nested-format-with-property.html
345
349
  - spec/support/lib/microformats2/nested-format-with-property.js
346
350
  - spec/support/lib/microformats2/nested-format-without-property.html
@@ -352,7 +356,7 @@ files:
352
356
  - spec/support/lib/microformats2/rels.js
353
357
  - spec/support/lib/microformats2/simple.html
354
358
  - spec/support/lib/microformats2/simple.js
355
- homepage: https://github.com/G5/microformats2
359
+ homepage: https://github.com/indieweb/microformats2-ruby
356
360
  licenses: []
357
361
  metadata: {}
358
362
  post_install_message:
@@ -361,17 +365,17 @@ require_paths:
361
365
  - lib
362
366
  required_ruby_version: !ruby/object:Gem::Requirement
363
367
  requirements:
364
- - - ! '>='
368
+ - - ">="
365
369
  - !ruby/object:Gem::Version
366
370
  version: '0'
367
371
  required_rubygems_version: !ruby/object:Gem::Requirement
368
372
  requirements:
369
- - - ! '>='
373
+ - - ">="
370
374
  - !ruby/object:Gem::Version
371
375
  version: '0'
372
376
  requirements: []
373
377
  rubyforge_project:
374
- rubygems_version: 2.0.6
378
+ rubygems_version: 2.5.1
375
379
  signing_key:
376
380
  specification_version: 4
377
381
  summary: microformats2 parser
@@ -544,6 +548,8 @@ test_files:
544
548
  - spec/support/lib/microformats2/implied_property/url-pass.html
545
549
  - spec/support/lib/microformats2/implied_property/url-relative.html
546
550
  - spec/support/lib/microformats2/implied_property/url-unnormalized.html
551
+ - spec/support/lib/microformats2/nested-format-with-property-of-same-name.html
552
+ - spec/support/lib/microformats2/nested-format-with-property-of-same-name.js
547
553
  - spec/support/lib/microformats2/nested-format-with-property.html
548
554
  - spec/support/lib/microformats2/nested-format-with-property.js
549
555
  - spec/support/lib/microformats2/nested-format-without-property.html
data/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2013 G5
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.