Commit graph

35 commits

Author SHA1 Message Date
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
fb7cc7f2eb adds more tests from microformats wiki 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
d946c7262c adds more spec cases 2013-04-18 22:13:35 -07:00
Jessica Lynn Suttles
241b9ffbd3 adds programatically generated spec cases 2013-04-18 22:13:35 -07:00
Jessica Lynn Suttles
506ae94adb adds rake task to scrape sites for spec examples 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
Jessica Lynn Suttles
c2ac2b53ae alway show spec color 2013-04-18 22:13:34 -07:00
Jessica Lynn Suttles
b55da5631d adds dependencies 2013-04-18 22:13:34 -07:00