Commit graph

47 commits

Author SHA1 Message Date
Shane Becker
1a3f86f797 Merge pull request #23 from indieweb/add-spec-for-p-h-foo
Add spec for nested format with property of same name
2015-12-22 17:11:54 -08:00
Shane Becker
bba83be9b4 Remove reference to G5 2015-12-22 16:55:41 -08:00
Don Petersen
fd6ea19652 Convert a spec to an explicit subject and lets. 2014-03-10 20:54:22 +00:00
Jessica Lynn Suttles
cb918e2dd1 Add specs for Microformats2::AbsoluteUri 2014-03-10 12:26:24 -07:00
Jessica Dillon & Jessica Lynn Suttles
2ac4cff54b Add spec for nested format with property of same name 2013-12-12 15:11:51 -08:00
jessicard
0eb04480f5 Normalize u-* property values for implied properties 2013-11-04 16:03:41 -08:00
Jessica Lynn Suttles
e65c1a2407 Normalize u-* property values 2013-11-04 15:13:34 -08:00
jessicard
c7a9820168 Merge pull request #18 from G5/normalize-rel-urls
Normalizes rels urls
2013-11-04 14:28:23 -08:00
jessicard
fcfebdc019 add comment for clarity for issue https://github.com/G5/microformats2/issues/17 2013-11-03 17:03:20 -08:00
jessicard
e630923e1d normalizes rels urls in issue https://github.com/G5/microformats2/issues/16 2013-11-03 16:55:37 -08:00
Don Petersen
07ab221d3e Don't explode when a rel attribute exists without a base tag.
It tries to build an absolute URL for link tags that contain a rel
attribute and a relative URL, using the <base> tag to decide what to
prefix the relative URLs with.  It's very common for people to omit the
base tag and to use rel attributes in stylesheets, and that blows up the
parser.

Now we don't attempt to build absolute URLs when the base URL can't be
determined.
2013-10-08 22:06:59 +00:00
Tom Morris
bf3bd6dee3 omitting the nil - breaking the Travis build 2013-09-15 18:20:04 +01:00
Tom Morris
7daf6c5e11 modified collection.rb to parse rels and alternates
in order to parse relative URLs in rels, we need to parse the base/@href of
the page if there, or to pass the URL in, so added the relevant stuff to support
that.
2013-09-15 11:52:53 +01:00
Tom Morris
6b6524e4af adding specs for rels/alternates 2013-09-15 11:51:24 +01:00
Jessica Dillon & Jessica Lynn Suttles
73d25abefe adds stub_request for outside http call 2013-07-01 17:43:31 -07:00
Jessica Dillon & Jessica Lynn Suttles
3f61f48025 adds parser specs 2013-07-01 17:34:15 -07:00
Michael Mitchell + Chris Stringer
d11b0f182c Support for string arg on Embedded 2013-04-18 22:13:38 -07:00
Michael Mitchell
13a8521c21 fixes specs calling now undefined methods 2013-04-18 22:13:38 -07:00
Michael Mitchell + Chris Stringer
4b052695cc Jessica has strong feelings on whitespace 2013-04-18 22:13:38 -07:00
Michael Mitchell + Chris Stringer
e8d9e77e41 InvalidPropertyPrefix error class
Raise a InvalidPropertyPrefix error if the prefix is invalid.
2013-04-18 22:13:38 -07:00
Michael Mitchell + Chris Stringer
e8be12b66e Refactor add_property
Change implementation of the add_property method which allows for
dynamically adding attributes from outside the gem. We made it
simpler to construct the args needed for this method and refactored
the logic and tests.
2013-04-18 22:13:38 -07:00
Michael Mitchell + Chris Stringer
5deb796829 Add the add_property method
Adds support for a public add_property method which exposes adding
a property to a Format object dynamically while still doing the
right thing with to_hash and to_json.
2013-04-18 22:13:38 -07:00
Jessica Lynn Suttles
bffa750923 adds Property::Foundation#format 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
b3ed1207c6 defines pluralized format methods on Collection objects 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
3ddb91d492 updates specs to use #to_s instead of #value 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
16dd0cebee defines pluralized property methods on Format objects 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
8e82752c91 adds activesupport gem dependency 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
a33ce3f699 renames Property::Foundation#value to #to_s 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
7bda1aaae6 makes simple case slightly more complex 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
8344b85938 makes specs way more readable 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
ff556ab648 runs all specs from microformats node 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
7385f09eaf cleans up implied properties and fixes spec 2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
10ea0256fc cleans up implied property and adds lots of specs for them 2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
3f2a627816 crudley implements implied properties. needs more specs 2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
1d8e46ce95 fixes whitespace issue. uses two spaces instead of tabs 2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
b4084d5325 yay the world is fixed 2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
40fcdf22d9 fixes the world minus nested formats 2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
081d0e5000 organizing broke the world 2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
83b469597f organizes specs 2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
c74ecef194 reorganizes spec cases and fixes a couple few 2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
241b9ffbd3 adds programatically generated spec cases 2013-04-18 22:13:35 -07:00
Jessica Lynn Suttles
c013f48a03 adds support for nested formats 2013-04-18 22:13:35 -07:00
Jessica Lynn Suttles
9fae5c7248 adds specs for all property types 2013-04-18 22:13:35 -07:00
Jessica Lynn Suttles
d54e2015a3 adds to_hash and to_json for collection 2013-04-18 22:13:34 -07:00
Jessica Lynn Suttles
0826659f1e assings properties to root microformat classes 2013-04-18 22:13:34 -07:00
Jessica Lynn Suttles
e9ce55afea walks dom tree looking for root microformat classes 2013-04-18 22:13:34 -07:00
Jessica Lynn Suttles
07d510ab7d allows for parsing of html string, file path, or url 2013-04-18 22:13:34 -07:00