microformats 4.0.7 → 4.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +10 -0
- data/.gitignore +33 -15
- data/.rspec +3 -2
- data/.rubocop +3 -0
- data/.rubocop.yml +25 -0
- data/.ruby-version +1 -0
- data/.simplecov +11 -0
- data/.travis.yml +14 -2
- data/CONTRIBUTING.md +103 -0
- data/Guardfile +2 -2
- data/LICENSE +116 -0
- data/README.md +112 -172
- data/Rakefile +6 -7
- data/bin/microformats +10 -9
- data/lib/microformats.rb +15 -14
- data/lib/microformats/absolute_uri.rb +4 -8
- data/lib/microformats/format_parser.rb +271 -251
- data/lib/microformats/parser.rb +38 -38
- data/lib/microformats/parser_core.rb +142 -109
- data/lib/microformats/property_parser.rb +42 -65
- data/lib/microformats/results/collection.rb +19 -38
- data/lib/microformats/results/parser_result.rb +25 -37
- data/lib/microformats/results/property_set.rb +24 -31
- data/lib/microformats/time_property_parser.rb +122 -118
- data/lib/microformats/version.rb +1 -1
- data/logo.svg +23 -0
- data/microformats.gemspec +35 -33
- metadata +140 -442
- data/LICENSE.md +0 -36
- data/spec/lib/microformats/absolute_uri_spec.rb +0 -56
- data/spec/lib/microformats/parser_spec.rb +0 -132
- data/spec/lib/microformats_spec.rb +0 -33
- data/spec/spec_helper.rb +0 -10
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.html +0 -2
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-0.js +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.html +0 -2
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-1.js +0 -10
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.html +0 -5
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-2.js +0 -11
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.html +0 -17
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-3.js +0 -20
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.html +0 -16
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-4.js +0 -24
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.html +0 -7
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-5.js +0 -11
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.html +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-6.js +0 -18
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.html +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-7.js +0 -18
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.html +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-8.js +0 -17
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.html +0 -9
- data/spec/support/cases/microformats.org/microformats-2/microformats-2-9.js +0 -17
- data/spec/support/lib/edge_cases/blank_href.html +0 -23
- data/spec/support/lib/edge_cases/blank_href.js +0 -15
- data/spec/support/lib/edge_cases/blank_rel.html +0 -23
- data/spec/support/lib/edge_cases/blank_rel.js +0 -41
- data/spec/support/lib/edge_cases/blank_src.html +0 -24
- data/spec/support/lib/edge_cases/blank_src.js +0 -16
- data/spec/support/lib/edge_cases/blank_value.html +0 -5
- data/spec/support/lib/edge_cases/blank_value.js +0 -19
- data/spec/support/lib/edge_cases/relative.html +0 -29
- data/spec/support/lib/edge_cases/relative.js +0 -15
- data/spec/support/lib/edge_cases/vcp-dates.html +0 -13
- data/spec/support/lib/edge_cases/vcp-dates.js +0 -30
- data/spec/support/lib/microformats/blank_href.html +0 -23
- data/spec/support/lib/microformats/blank_href.js +0 -11
- data/spec/support/lib/microformats/implied_property/name-fail.html +0 -60
- data/spec/support/lib/microformats/implied_property/name-pass.html +0 -30
- data/spec/support/lib/microformats/implied_property/photo-fail.html +0 -60
- data/spec/support/lib/microformats/implied_property/photo-pass.html +0 -30
- data/spec/support/lib/microformats/implied_property/url-fail.html +0 -18
- data/spec/support/lib/microformats/implied_property/url-pass.html +0 -12
- data/spec/support/lib/microformats/implied_property/url-relative.html +0 -13
- data/spec/support/lib/microformats/implied_property/url-unnormalized.html +0 -12
- data/spec/support/lib/microformats/nested-format-with-property-of-same-name.html +0 -13
- data/spec/support/lib/microformats/nested-format-with-property-of-same-name.js +0 -16
- data/spec/support/lib/microformats/nested-format-with-property.html +0 -12
- data/spec/support/lib/microformats/nested-format-with-property.js +0 -16
- data/spec/support/lib/microformats/nested-format-without-property.html +0 -13
- data/spec/support/lib/microformats/nested-property.html +0 -12
- data/spec/support/lib/microformats/nested-property.js +0 -10
- data/spec/support/lib/microformats/rels-that-drop-the-base.html +0 -11
- data/spec/support/lib/microformats/rels-with-unnormalized-urls.html +0 -11
- data/spec/support/lib/microformats/rels.html +0 -12
- data/spec/support/lib/microformats/rels.js +0 -13
- data/spec/support/lib/microformats/simple.html +0 -23
- data/spec/support/lib/microformats/simple.js +0 -11
- data/vendor/tests/.gitignore +0 -25
- data/vendor/tests/LICENSE.md +0 -36
- data/vendor/tests/README.md +0 -48
- data/vendor/tests/app.js +0 -84
- data/vendor/tests/composer.json +0 -5
- data/vendor/tests/css/testsuite.css +0 -159
- data/vendor/tests/interface.js +0 -18
- data/vendor/tests/package.json +0 -27
- data/vendor/tests/tests/microformats-mixed/h-card/change-log.html +0 -63
- data/vendor/tests/tests/microformats-mixed/h-card/mixedpropertries.html +0 -14
- data/vendor/tests/tests/microformats-mixed/h-card/mixedpropertries.json +0 -22
- data/vendor/tests/tests/microformats-mixed/h-card/tworoots.html +0 -1
- data/vendor/tests/tests/microformats-mixed/h-card/tworoots.json +0 -10
- data/vendor/tests/tests/microformats-mixed/h-entry/mixedroots.html +0 -16
- data/vendor/tests/tests/microformats-mixed/h-entry/mixedroots.json +0 -38
- data/vendor/tests/tests/microformats-mixed/h-resume/change-log.html +0 -68
- data/vendor/tests/tests/microformats-mixed/h-resume/mixedroots.html +0 -16
- data/vendor/tests/tests/microformats-mixed/h-resume/mixedroots.json +0 -31
- data/vendor/tests/tests/microformats-v1/adr/change-log.html +0 -63
- data/vendor/tests/tests/microformats-v1/adr/simpleproperties.html +0 -8
- data/vendor/tests/tests/microformats-v1/adr/simpleproperties.json +0 -15
- data/vendor/tests/tests/microformats-v1/geo/abbrpattern.html +0 -5
- data/vendor/tests/tests/microformats-v1/geo/abbrpattern.json +0 -11
- data/vendor/tests/tests/microformats-v1/geo/change-log.1.html +0 -78
- data/vendor/tests/tests/microformats-v1/geo/change-log.html +0 -63
- data/vendor/tests/tests/microformats-v1/geo/hidden.html +0 -10
- data/vendor/tests/tests/microformats-v1/geo/hidden.json +0 -11
- data/vendor/tests/tests/microformats-v1/geo/simpleproperties.html +0 -6
- data/vendor/tests/tests/microformats-v1/geo/simpleproperties.json +0 -11
- data/vendor/tests/tests/microformats-v1/geo/valuetitleclass.html +0 -11
- data/vendor/tests/tests/microformats-v1/geo/valuetitleclass.json +0 -11
- data/vendor/tests/tests/microformats-v1/hcalendar/ampm.html +0 -41
- data/vendor/tests/tests/microformats-v1/hcalendar/ampm.json +0 -21
- data/vendor/tests/tests/microformats-v1/hcalendar/attendees.html +0 -13
- data/vendor/tests/tests/microformats-v1/hcalendar/attendees.json +0 -37
- data/vendor/tests/tests/microformats-v1/hcalendar/change-log.html +0 -68
- data/vendor/tests/tests/microformats-v1/hcalendar/combining.html +0 -15
- data/vendor/tests/tests/microformats-v1/hcalendar/combining.json +0 -31
- data/vendor/tests/tests/microformats-v1/hcalendar/concatenate.html +0 -7
- data/vendor/tests/tests/microformats-v1/hcalendar/concatenate.json +0 -12
- data/vendor/tests/tests/microformats-v1/hcalendar/time.html +0 -44
- data/vendor/tests/tests/microformats-v1/hcalendar/time.json +0 -22
- data/vendor/tests/tests/microformats-v1/hcard/change-log.html +0 -68
- data/vendor/tests/tests/microformats-v1/hcard/email.html +0 -14
- data/vendor/tests/tests/microformats-v1/hcard/email.json +0 -11
- data/vendor/tests/tests/microformats-v1/hcard/format.html +0 -6
- data/vendor/tests/tests/microformats-v1/hcard/format.json +0 -11
- data/vendor/tests/tests/microformats-v1/hcard/hyperlinkedphoto.html +0 -3
- data/vendor/tests/tests/microformats-v1/hcard/hyperlinkedphoto.json +0 -8
- data/vendor/tests/tests/microformats-v1/hcard/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v1/hcard/justahyperlink.json +0 -8
- data/vendor/tests/tests/microformats-v1/hcard/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v1/hcard/justaname.json +0 -8
- data/vendor/tests/tests/microformats-v1/hcard/multiple.html +0 -74
- data/vendor/tests/tests/microformats-v1/hcard/multiple.json +0 -65
- data/vendor/tests/tests/microformats-v1/hcard/name.html +0 -11
- data/vendor/tests/tests/microformats-v1/hcard/name.json +0 -15
- data/vendor/tests/tests/microformats-v1/hcard/single.html +0 -14
- data/vendor/tests/tests/microformats-v1/hcard/single.json +0 -24
- data/vendor/tests/tests/microformats-v1/hentry/change-log.html +0 -73
- data/vendor/tests/tests/microformats-v1/hentry/summarycontent.html +0 -20
- data/vendor/tests/tests/microformats-v1/hentry/summarycontent.json +0 -24
- data/vendor/tests/tests/microformats-v1/hfeed/simple.html +0 -30
- data/vendor/tests/tests/microformats-v1/hfeed/simple.json +0 -49
- data/vendor/tests/tests/microformats-v1/hnews/all.html +0 -37
- data/vendor/tests/tests/microformats-v1/hnews/all.json +0 -74
- data/vendor/tests/tests/microformats-v1/hnews/change-log.html +0 -72
- data/vendor/tests/tests/microformats-v1/hnews/minimum.html +0 -25
- data/vendor/tests/tests/microformats-v1/hnews/minimum.json +0 -48
- data/vendor/tests/tests/microformats-v1/hproduct/aggregate.html +0 -26
- data/vendor/tests/tests/microformats-v1/hproduct/aggregate.json +0 -52
- data/vendor/tests/tests/microformats-v1/hproduct/change-log.html +0 -62
- data/vendor/tests/tests/microformats-v1/hproduct/simpleproperties.html +0 -13
- data/vendor/tests/tests/microformats-v1/hproduct/simpleproperties.json +0 -33
- data/vendor/tests/tests/microformats-v1/hresume/affiliation.html +0 -12
- data/vendor/tests/tests/microformats-v1/hresume/affiliation.json +0 -25
- data/vendor/tests/tests/microformats-v1/hresume/change-log.html +0 -73
- data/vendor/tests/tests/microformats-v1/hresume/contact.html +0 -18
- data/vendor/tests/tests/microformats-v1/hresume/contact.json +0 -32
- data/vendor/tests/tests/microformats-v1/hresume/education.html +0 -13
- data/vendor/tests/tests/microformats-v1/hresume/education.json +0 -29
- data/vendor/tests/tests/microformats-v1/hresume/skill.html +0 -12
- data/vendor/tests/tests/microformats-v1/hresume/skill.json +0 -33
- data/vendor/tests/tests/microformats-v1/hresume/work.html +0 -16
- data/vendor/tests/tests/microformats-v1/hresume/work.json +0 -30
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/change-log.html +0 -67
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/hcard.html +0 -18
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/hcard.json +0 -31
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/justahyperlink.html +0 -6
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/justahyperlink.json +0 -19
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/vevent.html +0 -13
- data/vendor/tests/tests/microformats-v1/hreview-aggregate/vevent.json +0 -22
- data/vendor/tests/tests/microformats-v1/hreview/change-log.html +0 -73
- data/vendor/tests/tests/microformats-v1/hreview/item.html +0 -8
- data/vendor/tests/tests/microformats-v1/hreview/item.json +0 -19
- data/vendor/tests/tests/microformats-v1/hreview/vcard.html +0 -23
- data/vendor/tests/tests/microformats-v1/hreview/vcard.json +0 -58
- data/vendor/tests/tests/microformats-v1/includes/change-log.html +0 -72
- data/vendor/tests/tests/microformats-v1/includes/hcarditemref.html +0 -16
- data/vendor/tests/tests/microformats-v1/includes/hcarditemref.json +0 -49
- data/vendor/tests/tests/microformats-v1/includes/heventitemref.html +0 -25
- data/vendor/tests/tests/microformats-v1/includes/heventitemref.json +0 -33
- data/vendor/tests/tests/microformats-v1/includes/hyperlink.html +0 -18
- data/vendor/tests/tests/microformats-v1/includes/hyperlink.json +0 -43
- data/vendor/tests/tests/microformats-v1/includes/object.html +0 -23
- data/vendor/tests/tests/microformats-v1/includes/object.json +0 -42
- data/vendor/tests/tests/microformats-v1/includes/table.html +0 -12
- data/vendor/tests/tests/microformats-v1/includes/table.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-adr/change-log.html +0 -62
- data/vendor/tests/tests/microformats-v2/h-adr/geo.html +0 -10
- data/vendor/tests/tests/microformats-v2/h-adr/geo.json +0 -16
- data/vendor/tests/tests/microformats-v2/h-adr/geourl.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-adr/geourl.json +0 -13
- data/vendor/tests/tests/microformats-v2/h-adr/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-adr/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-adr/lettercase.html +0 -21
- data/vendor/tests/tests/microformats-v2/h-adr/lettercase.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-adr/simpleproperties.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-adr/simpleproperties.json +0 -16
- data/vendor/tests/tests/microformats-v2/h-as-note/note.html +0 -56
- data/vendor/tests/tests/microformats-v2/h-as-note/note.json +0 -98
- data/vendor/tests/tests/microformats-v2/h-card/baseurl.html +0 -6
- data/vendor/tests/tests/microformats-v2/h-card/baseurl.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-card/change-log.html +0 -100
- data/vendor/tests/tests/microformats-v2/h-card/childimplied.html +0 -7
- data/vendor/tests/tests/microformats-v2/h-card/childimplied.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-card/extendeddescription.html +0 -10
- data/vendor/tests/tests/microformats-v2/h-card/extendeddescription.json +0 -15
- data/vendor/tests/tests/microformats-v2/h-card/hcard.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-card/hcard.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-card/horghcard.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-card/horghcard.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-card/hyperlinkedphoto.html +0 -3
- data/vendor/tests/tests/microformats-v2/h-card/hyperlinkedphoto.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-card/impliedname.html +0 -15
- data/vendor/tests/tests/microformats-v2/h-card/impliedname.json +0 -90
- data/vendor/tests/tests/microformats-v2/h-card/impliedphoto.html +0 -11
- data/vendor/tests/tests/microformats-v2/h-card/impliedphoto.json +0 -72
- data/vendor/tests/tests/microformats-v2/h-card/impliedurl.html +0 -5
- data/vendor/tests/tests/microformats-v2/h-card/impliedurl.json +0 -45
- data/vendor/tests/tests/microformats-v2/h-card/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-card/justahyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-card/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-card/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-card/nested.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-card/nested.json +0 -18
- data/vendor/tests/tests/microformats-v2/h-card/p-property.html +0 -21
- data/vendor/tests/tests/microformats-v2/h-card/p-property.json +0 -15
- data/vendor/tests/tests/microformats-v2/h-card/relativeurls.html +0 -6
- data/vendor/tests/tests/microformats-v2/h-card/relativeurls.json +0 -29
- data/vendor/tests/tests/microformats-v2/h-entry/change-log.html +0 -90
- data/vendor/tests/tests/microformats-v2/h-entry/encoding.html +0 -3
- data/vendor/tests/tests/microformats-v2/h-entry/encoding.json +0 -14
- data/vendor/tests/tests/microformats-v2/h-entry/impliedvalue-nested.html +0 -9
- data/vendor/tests/tests/microformats-v2/h-entry/impliedvalue-nested.json +0 -27
- data/vendor/tests/tests/microformats-v2/h-entry/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-entry/justahyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-entry/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-entry/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-entry/scriptstyletags.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-entry/scriptstyletags.json +0 -14
- data/vendor/tests/tests/microformats-v2/h-entry/summarycontent.html +0 -20
- data/vendor/tests/tests/microformats-v2/h-entry/summarycontent.json +0 -25
- data/vendor/tests/tests/microformats-v2/h-entry/u-property.html +0 -33
- data/vendor/tests/tests/microformats-v2/h-entry/u-property.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-entry/urlincontent.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-entry/urlincontent.json +0 -14
- data/vendor/tests/tests/microformats-v2/h-event/ampm.html +0 -41
- data/vendor/tests/tests/microformats-v2/h-event/ampm.json +0 -21
- data/vendor/tests/tests/microformats-v2/h-event/attendees.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-event/attendees.json +0 -37
- data/vendor/tests/tests/microformats-v2/h-event/change-log.html +0 -82
- data/vendor/tests/tests/microformats-v2/h-event/combining.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-event/combining.json +0 -25
- data/vendor/tests/tests/microformats-v2/h-event/concatenate.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-event/concatenate.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-event/dates.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-event/dates.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-event/dt-property.html +0 -23
- data/vendor/tests/tests/microformats-v2/h-event/dt-property.json +0 -20
- data/vendor/tests/tests/microformats-v2/h-event/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-event/justahyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-event/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-event/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-event/time.html +0 -47
- data/vendor/tests/tests/microformats-v2/h-event/time.json +0 -25
- data/vendor/tests/tests/microformats-v2/h-feed/implied-title.html +0 -30
- data/vendor/tests/tests/microformats-v2/h-feed/implied-title.json +0 -23
- data/vendor/tests/tests/microformats-v2/h-feed/simple.html +0 -26
- data/vendor/tests/tests/microformats-v2/h-feed/simple.json +0 -33
- data/vendor/tests/tests/microformats-v2/h-geo/abbrpattern.html +0 -5
- data/vendor/tests/tests/microformats-v2/h-geo/abbrpattern.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-geo/altitude.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-geo/altitude.json +0 -13
- data/vendor/tests/tests/microformats-v2/h-geo/change-log.html +0 -67
- data/vendor/tests/tests/microformats-v2/h-geo/hidden.html +0 -10
- data/vendor/tests/tests/microformats-v2/h-geo/hidden.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-geo/justaname.html +0 -3
- data/vendor/tests/tests/microformats-v2/h-geo/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-geo/simpleproperties.html +0 -5
- data/vendor/tests/tests/microformats-v2/h-geo/simpleproperties.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-geo/valuetitleclass.html +0 -11
- data/vendor/tests/tests/microformats-v2/h-geo/valuetitleclass.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-news/all.html +0 -35
- data/vendor/tests/tests/microformats-v2/h-news/all.json +0 -51
- data/vendor/tests/tests/microformats-v2/h-news/change-log.html +0 -78
- data/vendor/tests/tests/microformats-v2/h-news/minimum.html +0 -24
- data/vendor/tests/tests/microformats-v2/h-news/minimum.json +0 -40
- data/vendor/tests/tests/microformats-v2/h-org/change-log.html +0 -57
- data/vendor/tests/tests/microformats-v2/h-org/hyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-org/hyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-org/simple.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-org/simple.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-org/simpleproperties.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-org/simpleproperties.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-product/aggregate.html +0 -21
- data/vendor/tests/tests/microformats-v2/h-product/aggregate.json +0 -45
- data/vendor/tests/tests/microformats-v2/h-product/change-log.html +0 -62
- data/vendor/tests/tests/microformats-v2/h-product/justahyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-product/justahyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-product/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-product/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-product/simpleproperties.html +0 -10
- data/vendor/tests/tests/microformats-v2/h-product/simpleproperties.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-recipe/all.html +0 -63
- data/vendor/tests/tests/microformats-v2/h-recipe/all.json +0 -54
- data/vendor/tests/tests/microformats-v2/h-recipe/change-log.html +0 -62
- data/vendor/tests/tests/microformats-v2/h-recipe/minimum.html +0 -7
- data/vendor/tests/tests/microformats-v2/h-recipe/minimum.json +0 -17
- data/vendor/tests/tests/microformats-v2/h-resume/affiliation.html +0 -12
- data/vendor/tests/tests/microformats-v2/h-resume/affiliation.json +0 -20
- data/vendor/tests/tests/microformats-v2/h-resume/change-log.html +0 -78
- data/vendor/tests/tests/microformats-v2/h-resume/contact.html +0 -17
- data/vendor/tests/tests/microformats-v2/h-resume/contact.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-resume/education.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-resume/education.json +0 -30
- data/vendor/tests/tests/microformats-v2/h-resume/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-resume/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-resume/skill.html +0 -12
- data/vendor/tests/tests/microformats-v2/h-resume/skill.json +0 -12
- data/vendor/tests/tests/microformats-v2/h-resume/work.html +0 -16
- data/vendor/tests/tests/microformats-v2/h-resume/work.json +0 -31
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/change-log.html +0 -78
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/hevent.html +0 -13
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/hevent.json +0 -23
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/justahyperlink.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/justahyperlink.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/simpleproperties.html +0 -18
- data/vendor/tests/tests/microformats-v2/h-review-aggregate/simpleproperties.json +0 -26
- data/vendor/tests/tests/microformats-v2/h-review/change-log.html +0 -84
- data/vendor/tests/tests/microformats-v2/h-review/hyperlink.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-review/hyperlink.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-review/implieditem.html +0 -4
- data/vendor/tests/tests/microformats-v2/h-review/implieditem.json +0 -19
- data/vendor/tests/tests/microformats-v2/h-review/item.html +0 -8
- data/vendor/tests/tests/microformats-v2/h-review/item.json +0 -20
- data/vendor/tests/tests/microformats-v2/h-review/justaname.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-review/justaname.json +0 -10
- data/vendor/tests/tests/microformats-v2/h-review/photo.html +0 -1
- data/vendor/tests/tests/microformats-v2/h-review/photo.json +0 -11
- data/vendor/tests/tests/microformats-v2/h-review/vcard.html +0 -23
- data/vendor/tests/tests/microformats-v2/h-review/vcard.json +0 -48
- data/vendor/tests/tests/microformats-v2/rel/change-log.html +0 -67
- data/vendor/tests/tests/microformats-v2/rel/duplicate-rels.html +0 -10
- data/vendor/tests/tests/microformats-v2/rel/duplicate-rels.json +0 -75
- data/vendor/tests/tests/microformats-v2/rel/license.html +0 -1
- data/vendor/tests/tests/microformats-v2/rel/license.json +0 -12
- data/vendor/tests/tests/microformats-v2/rel/nofollow.html +0 -1
- data/vendor/tests/tests/microformats-v2/rel/nofollow.json +0 -12
- data/vendor/tests/tests/microformats-v2/rel/rel-urls.html +0 -8
- data/vendor/tests/tests/microformats-v2/rel/rel-urls.json +0 -33
- data/vendor/tests/tests/microformats-v2/rel/varying-text-duplicate-rels.html +0 -4
- data/vendor/tests/tests/microformats-v2/rel/varying-text-duplicate-rels.json +0 -20
- data/vendor/tests/tests/microformats-v2/rel/xfn-all.html +0 -19
- data/vendor/tests/tests/microformats-v2/rel/xfn-all.json +0 -92
- data/vendor/tests/tests/microformats-v2/rel/xfn-elsewhere.html +0 -10
- data/vendor/tests/tests/microformats-v2/rel/xfn-elsewhere.json +0 -40
data/vendor/tests/README.md
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# Microformats test suite
|
2
|
-
|
3
|
-
This group of tests was built to test microformats parsers. The individual tests are files containing fragments of HTML. There is also a second a corresponding JSON file, which contains the expected output.
|
4
|
-
|
5
|
-
The tests are broken into sets within the tests directory of this project. They are first grouped by version. Some parsers only support a single version of microformats. They are then subdivided by the type of microformat i.e. h-card.
|
6
|
-
|
7
|
-
|
8
|
-
## NPM
|
9
|
-
|
10
|
-
The test have been added to npm (Node Package Manager) and the latest version can be add to a project using the following command:
|
11
|
-
|
12
|
-
npm i microformat-tests --save
|
13
|
-
|
14
|
-
|
15
|
-
## Contributing new tests or updating tests
|
16
|
-
|
17
|
-
This set of test belongs to the microformats community. If you find any errors in the current test or new patterns you believe should be in the test suite please feel free to send a pull request.
|
18
|
-
|
19
|
-
Notes on creating a new test
|
20
|
-
|
21
|
-
A test is built in two parts a HTML file, which contains a fragment of HTML to parse, and JSON file with the expected output from a parser.
|
22
|
-
|
23
|
-
1. Within the “test” directory of this project select the correct directory for the version of microformats the test belongs to. If you are creating a test for a new microformats feature or exploring an issue please add these tests to the “experimental” directory.
|
24
|
-
|
25
|
-
2. Within the correct directory add your new test to subdirecory with either the name of it format i.e. `h-card` or the name of the new feature.
|
26
|
-
|
27
|
-
3. Create the HTML file. Add the smallest and clearest example of the markup you can. There is no need to add head or body tags etc.
|
28
|
-
|
29
|
-
4. Create a JSON file with the same name as your HTML file. The JSON should be the expected output from a parser.
|
30
|
-
|
31
|
-
5. Once you have created the test please update the change-log.html Add a `h-entry` with details of the test . At the bottom of the page please add yourself as a contributor on the authors list
|
32
|
-
|
33
|
-
|
34
|
-
## Date format for testing purposes
|
35
|
-
|
36
|
-
Within the tests datetime formats are based on the [HTML5 profile](http://www.w3.org/TR/html5/infrastructure.html#dates-and-times) which is a subset of ISO8601 and allows a space to separate the date and time. To allow us to compare dates please provide a way for your parser to output dates/times with the follwing rules:
|
37
|
-
|
38
|
-
* Date and time are separated by a spaces ie `2015-04-29 15:34`
|
39
|
-
* Date and time keeps the authored level of specificity ie `15:34` does NOT become `15:34:00`
|
40
|
-
* Times and timezones always use the `:` separator ie `+01:30` NOT `+0130`
|
41
|
-
* If used the zulu is always uppercase ie `2015-04-29 15:34Z`
|
42
|
-
|
43
|
-
|
44
|
-
## License
|
45
|
-
|
46
|
-
**Microformats test suite** is dedicated to the public domain using Creative Commons -- CC0 1.0 Universal.
|
47
|
-
|
48
|
-
http://creativecommons.org/publicdomain/zero/1.0
|
data/vendor/tests/app.js
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
// This file create a small node server so
|
3
|
-
// you view the files over http://localhost:3009/
|
4
|
-
// enter in commandline - $ node app
|
5
|
-
// Glenn Jones
|
6
|
-
|
7
|
-
|
8
|
-
var Hapi = require('hapi'),
|
9
|
-
Blipp = require('blipp'),
|
10
|
-
Pack = require('./package');
|
11
|
-
|
12
|
-
|
13
|
-
var routes = [{
|
14
|
-
method: 'GET',
|
15
|
-
path: '/{path*}',
|
16
|
-
handler: {
|
17
|
-
directory: {
|
18
|
-
path: '/tests',
|
19
|
-
listing: true,
|
20
|
-
index: false
|
21
|
-
}
|
22
|
-
}
|
23
|
-
},{
|
24
|
-
method: 'GET',
|
25
|
-
path: '/css/{path*}',
|
26
|
-
handler: {
|
27
|
-
directory: {
|
28
|
-
path: './css',
|
29
|
-
listing: true,
|
30
|
-
index: true
|
31
|
-
}
|
32
|
-
}
|
33
|
-
},{
|
34
|
-
method: 'GET',
|
35
|
-
path: '/javascript/{path*}',
|
36
|
-
handler: {
|
37
|
-
directory: {
|
38
|
-
path: './javascript',
|
39
|
-
listing: true,
|
40
|
-
index: true
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}];
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
// Create a server with a host and port
|
48
|
-
var server = new Hapi.Server();
|
49
|
-
|
50
|
-
server.connection({
|
51
|
-
host: (process.env.PORT)? '0.0.0.0' : 'localhost',
|
52
|
-
port: parseInt(process.env.PORT, 10) || 3008
|
53
|
-
});
|
54
|
-
|
55
|
-
|
56
|
-
// hapi server settings
|
57
|
-
server.route(routes);
|
58
|
-
|
59
|
-
|
60
|
-
var goodOptions = {
|
61
|
-
opsInterval: 1000,
|
62
|
-
reporters: [{
|
63
|
-
reporter: require('good-console'),
|
64
|
-
events: { log: '*', response: '*' }
|
65
|
-
}]
|
66
|
-
};
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
// Register plug-in and start
|
71
|
-
server.register([{
|
72
|
-
register: require('good'),
|
73
|
-
options: goodOptions
|
74
|
-
},{
|
75
|
-
register: require('blipp'),
|
76
|
-
}], function (err) {
|
77
|
-
if (err) {
|
78
|
-
console.error(err);
|
79
|
-
}else {
|
80
|
-
server.start(function () {
|
81
|
-
console.info('Server started at ' + server.info.uri);
|
82
|
-
});
|
83
|
-
}
|
84
|
-
});
|
data/vendor/tests/composer.json
DELETED
@@ -1,159 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
All content and code is released into the public domain
|
3
|
-
http://en.wikipedia.org/wiki/public_domain
|
4
|
-
|
5
|
-
Contributors
|
6
|
-
Glenn Jones - http://glennjones.net/
|
7
|
-
*/
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
@import url(https://fonts.googleapis.com/css?family=Lato:300italic,700italic,300,700);
|
13
|
-
|
14
|
-
body {
|
15
|
-
padding:50px;
|
16
|
-
font:14px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
17
|
-
color:#333;
|
18
|
-
font-weight:300;
|
19
|
-
border-top: 5px solid #302F2D;
|
20
|
-
margin: 0;
|
21
|
-
}
|
22
|
-
|
23
|
-
h1, h2, h3, h4, h5, h6 {
|
24
|
-
color:#222;
|
25
|
-
margin:0 0 20px;
|
26
|
-
font-weight: normal;
|
27
|
-
}
|
28
|
-
|
29
|
-
p, ul, ol, table, pre, dl {
|
30
|
-
margin:0 0 20px;
|
31
|
-
}
|
32
|
-
|
33
|
-
h1, h2, h3 {
|
34
|
-
margin-top: 50px;
|
35
|
-
margin-bottom: 10px;
|
36
|
-
line-height:1.1;
|
37
|
-
font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
38
|
-
}
|
39
|
-
|
40
|
-
h1 {
|
41
|
-
font-size: 28px;
|
42
|
-
}
|
43
|
-
|
44
|
-
h2, h3 {
|
45
|
-
font-size: 16px;
|
46
|
-
}
|
47
|
-
|
48
|
-
/* the first h1 in a page */
|
49
|
-
body>:first-child{
|
50
|
-
margin-top: 0;
|
51
|
-
font-weight: bold;
|
52
|
-
}
|
53
|
-
|
54
|
-
a {
|
55
|
-
color: #39c;
|
56
|
-
font-weight: 400;
|
57
|
-
text-decoration: none;
|
58
|
-
}
|
59
|
-
|
60
|
-
a:hover {
|
61
|
-
text-decoration: underline;
|
62
|
-
}
|
63
|
-
|
64
|
-
a[name]{
|
65
|
-
color: #333;
|
66
|
-
}
|
67
|
-
|
68
|
-
a[name]:hover {
|
69
|
-
text-decoration: none;
|
70
|
-
}
|
71
|
-
|
72
|
-
blockquote {
|
73
|
-
border-left: 1px solid #e5e5e5;
|
74
|
-
margin: 0;
|
75
|
-
padding: 0 0 0 20px;
|
76
|
-
font-style: italic;
|
77
|
-
}
|
78
|
-
|
79
|
-
code, pre {
|
80
|
-
font-family: Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
|
81
|
-
font-size: 12px;
|
82
|
-
margin: 0;
|
83
|
-
}
|
84
|
-
|
85
|
-
pre {
|
86
|
-
padding: 8px 15px;
|
87
|
-
border-radius: 5px;
|
88
|
-
border: 1px solid #e5e5e5;
|
89
|
-
overflow-x: auto;
|
90
|
-
color: #fff;
|
91
|
-
margin: 0;
|
92
|
-
}
|
93
|
-
|
94
|
-
table {
|
95
|
-
width: 100%;
|
96
|
-
border-collapse: collapse;
|
97
|
-
}
|
98
|
-
|
99
|
-
th, td {
|
100
|
-
text-align: left;
|
101
|
-
padding: 2px 10px;
|
102
|
-
border-bottom: 1px solid #e5e5e5;
|
103
|
-
font-weight: normal;
|
104
|
-
}
|
105
|
-
|
106
|
-
dt {
|
107
|
-
color:#444;
|
108
|
-
font-weight:700;
|
109
|
-
}
|
110
|
-
|
111
|
-
th {
|
112
|
-
color:#444;
|
113
|
-
}
|
114
|
-
|
115
|
-
img {
|
116
|
-
max-width:100%;
|
117
|
-
}
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
/* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
|
123
|
-
j.mp/bestclearfix */
|
124
|
-
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
|
125
|
-
.clearfix:after { clear: both; }
|
126
|
-
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
|
127
|
-
.clearfix { zoom: 1; }
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
section.h-x-test-fixture{
|
132
|
-
padding: 20px;
|
133
|
-
margin-top: 80px;
|
134
|
-
margin-bottom: 80px;
|
135
|
-
border: 1px solid #ccc;
|
136
|
-
background-color: #eee;
|
137
|
-
border-radius: 6px 6px 6px 6px;
|
138
|
-
}
|
139
|
-
|
140
|
-
|
141
|
-
section.h-x-test-fixture h1{
|
142
|
-
margin-top: 0;
|
143
|
-
font-size: 24px;
|
144
|
-
}
|
145
|
-
|
146
|
-
section.h-x-test-fixture h2, section.h-x-test-fixture h3 {
|
147
|
-
margin-top: 30px;
|
148
|
-
}
|
149
|
-
|
150
|
-
.u-photo{
|
151
|
-
width: 100px;
|
152
|
-
}
|
153
|
-
|
154
|
-
.p-microformat p{
|
155
|
-
margin: 0;
|
156
|
-
}
|
157
|
-
h1.p-name a{
|
158
|
-
font-weight: bold;
|
159
|
-
}
|
data/vendor/tests/interface.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
|
2
|
-
'use strict';
|
3
|
-
// This file allows node apps to get the current
|
4
|
-
// test suite version number programmicatlly
|
5
|
-
// Glenn Jones
|
6
|
-
|
7
|
-
|
8
|
-
if(require.main === module) {
|
9
|
-
// if they want the app
|
10
|
-
var app = require('app.js');
|
11
|
-
}else{
|
12
|
-
// if they want a module interface
|
13
|
-
var pack = require('./package.json');
|
14
|
-
|
15
|
-
module.exports = {
|
16
|
-
'version': pack.version
|
17
|
-
}
|
18
|
-
}
|
data/vendor/tests/package.json
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"author": "Glenn Jones",
|
3
|
-
"name": "microformat-tests",
|
4
|
-
"description": "A microformat 2 testsuite",
|
5
|
-
"version": "0.1.26",
|
6
|
-
"license": "Public Domain",
|
7
|
-
"repository": {
|
8
|
-
"type": "git",
|
9
|
-
"url": "git://github.com/microformats/tests.git"
|
10
|
-
},
|
11
|
-
"engines": {
|
12
|
-
"node": ">= 0.12.x"
|
13
|
-
},
|
14
|
-
"main": "interface.js",
|
15
|
-
"scripts": {
|
16
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
17
|
-
},
|
18
|
-
"dependencies": {
|
19
|
-
"blipp": "2.1.x",
|
20
|
-
"boom": "2.7.x",
|
21
|
-
"good": "6.1.x",
|
22
|
-
"good-console": "5.0.x",
|
23
|
-
"handlebars": "3.0.x",
|
24
|
-
"hapi": "8.4.x",
|
25
|
-
"joi": "6.4.x"
|
26
|
-
}
|
27
|
-
}
|
@@ -1,63 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8" />
|
5
|
-
<title>h-card parsing tests</title>
|
6
|
-
|
7
|
-
<link rel="stylesheet" href="../../../css/testsuite.css">
|
8
|
-
<link rel="stylesheet" href="../../../prettify.css">
|
9
|
-
|
10
|
-
<script src="../../../javascript/prettify.js"></script>
|
11
|
-
<script src="../../../javascript/testsuite.js"></script>
|
12
|
-
|
13
|
-
</head>
|
14
|
-
<body class="h-feed">
|
15
|
-
|
16
|
-
<h1 class="p-name"><span class="p-x-format">h-card</span> parsing tests ‐ change logs</h1>
|
17
|
-
|
18
|
-
<p class="p-description">The files in this directory where designed to test the parsing of mark-up which mixes version 1 and 2 microformats. </p>
|
19
|
-
<p class="p-description">Theses are backwards compatibility tests for the older version 1 microformats specification. Please do not use this as a reference for authoring microformats.</p>
|
20
|
-
|
21
|
-
|
22
|
-
<h2>Change log:</h2>
|
23
|
-
<ul>
|
24
|
-
<!-- Add change log event to the top of this list as a h-entry -->
|
25
|
-
<li class="h-entry">
|
26
|
-
<span class="p-name e-content">Update text output to be textContent non-trimmed</span> ‐
|
27
|
-
<time class="dt-published" datetime="2015-05-29">29 May 2015</time>
|
28
|
-
by <span class="p-author">Glenn Jones</span>
|
29
|
-
</li>
|
30
|
-
<li class="h-entry">
|
31
|
-
<span class="p-name e-content">Broke old HTML format into small files to aid simpler testing</span> ‐
|
32
|
-
<time class="dt-published" datetime="2015-05-21">21 May 2015</time>
|
33
|
-
by <span class="p-author">Glenn Jones</span>
|
34
|
-
</li>
|
35
|
-
<li class="h-entry">
|
36
|
-
<span class="p-name e-content">Updated JSON examples so it always has the rel={} object as well as the items=[] array</span> ‐
|
37
|
-
<time class="dt-published" datetime="2013-11-21">21 November 2013</time>
|
38
|
-
by <span class="p-author">Glenn Jones</span>
|
39
|
-
</li>
|
40
|
-
<li class="h-entry">
|
41
|
-
<span class="p-name e-content">Created</span> ‐
|
42
|
-
<time class="dt-published" datetime="2013-01-10">10 January 2013</time>
|
43
|
-
by <span class="p-author">Glenn Jones</span>
|
44
|
-
</li>
|
45
|
-
</ul>
|
46
|
-
|
47
|
-
|
48
|
-
<h2>Contributors:</h2>
|
49
|
-
<ul>
|
50
|
-
<!-- If you Contribute to the test please add yourself as an author using p-author h-card -->
|
51
|
-
<li class="p-author h-card">
|
52
|
-
<a class="u-url p-name" rel="author" href="http://www.glennjones.net/">Glenn Jones</a>
|
53
|
-
</li>
|
54
|
-
</ul>
|
55
|
-
|
56
|
-
|
57
|
-
<footer>
|
58
|
-
All content and code is released into the <a href="http://en.wikipedia.org/wiki/public_domain">public domain</a>
|
59
|
-
</footer>
|
60
|
-
|
61
|
-
</body>
|
62
|
-
|
63
|
-
</html>
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<div class="h-card">
|
2
|
-
<p>
|
3
|
-
<a class="p-name p-org u-url" href="http://mozilla.org/">Mozilla Foundation</a>
|
4
|
-
<img class="logo" src="../logo.jpg"/>
|
5
|
-
</p>
|
6
|
-
<p class="adr">
|
7
|
-
<span class="street-address">665 3rd St.</span>
|
8
|
-
<span class="extended-address">Suite 207</span>
|
9
|
-
<span class="locality">San Francisco</span>,
|
10
|
-
<span class="region">CA</span>
|
11
|
-
<span class="postal-code">94107</span>
|
12
|
-
<span class="p-country-name">U.S.A.</span>
|
13
|
-
</p>
|
14
|
-
</div>
|
@@ -1,22 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"items": [{
|
3
|
-
"type": ["h-card"],
|
4
|
-
"properties": {
|
5
|
-
"name": ["Mozilla Foundation"],
|
6
|
-
"org": ["Mozilla Foundation"],
|
7
|
-
"url": ["http://mozilla.org/"]
|
8
|
-
},
|
9
|
-
"children" : [{
|
10
|
-
"type": ["h-adr"],
|
11
|
-
"properties": {
|
12
|
-
"street-address": ["665 3rd St."],
|
13
|
-
"extended-address": ["Suite 207"],
|
14
|
-
"locality": ["San Francisco"],
|
15
|
-
"region": ["CA"],
|
16
|
-
"postal-code": ["94107"]
|
17
|
-
}
|
18
|
-
}]
|
19
|
-
}],
|
20
|
-
"rels": {},
|
21
|
-
"rel-urls": {}
|
22
|
-
}
|