Commit graph

173 commits

Author SHA1 Message Date
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
56383a0a91 Merge pull request #15 from G5/drop-the-base
Don't explode when a rel attribute exists without a base tag.
2013-10-09 10:20:36 -07: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
Jessica Lynn Suttles
71ec812511 Merge pull request #12 from tommorris/rels-alternates
Added support for rel and alternates
2013-10-03 20:38:57 -07:00
Jessica Lynn Suttles
1014214a37 Merge pull request #14 from G5/dependency_updates
Update some dependencies.
2013-10-03 20:35:20 -07:00
Jessica Lynn Suttles
14b0f9f455 Merge pull request #13 from G5/readme_fixes
Fix a couple of minor issues in the README.
2013-10-03 20:34:08 -07:00
Matt Bohme
742e4076c8 Update some dependencies.
Tests still pass, I'm going to call it good.  If you build a new app
today, you'll have a hard time with that version of activesupport and
nokogiri.
2013-10-03 17:06:24 -07:00
Matt Bohme
805765bf0a Fix a couple of minor issues in the README. 2013-10-03 10:29:54 -07:00
Tom Morris
bf3bd6dee3 omitting the nil - breaking the Travis build 2013-09-15 18:20:04 +01:00
Tom Morris
2364ed13de updated README to move rels into supported section 2013-09-15 11:56: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
38e0ae313f modifying existing test JSON output to add blank rel hashes
rel: {} is required by the spec even if it is empty
2013-09-15 11:51:49 +01:00
Tom Morris
6b6524e4af adding specs for rels/alternates 2013-09-15 11:51:24 +01:00
Jessica Lynn Suttles
f2cc8b037a Merge pull request #10 from G5/conditional-get-52510097
Conditional get 52510097
2013-07-01 18:35:55 -07:00
Jessica Dillon & Jessica Lynn Suttles
c0a86fa6b0 updates version 2013-07-01 18:32:38 -07:00
Jessica Dillon & Jessica Lynn Suttles
1311dec8a3 removes saved headers from param defaults 2013-07-01 18:31:25 -07: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
27822a835f removes debugger gem from development dependencies. sorry travis! 2013-07-01 17:38:18 -07:00
Jessica Dillon & Jessica Lynn Suttles
3f61f48025 adds parser specs 2013-07-01 17:34:15 -07:00
Jessica Dillon & Jessica Lynn Suttles
8a5e63dd21 adds webmock gem to development dependencies and requires in spec_helper.rb 2013-07-01 17:34:04 -07:00
Jessica Dillon & Jessica Lynn Suttles
78df1dc8bc sets Microformats2::Parser#http_headers on initialize 2013-07-01 16:47:28 -07:00
Jessica Dillon & Jessica Lynn Suttles
ed2f66002e adds Microformats2::Parser#http_headers and Microformats2::Parser#http_body and saves them from the response 2013-07-01 16:46:08 -07:00
Jessica Dillon & Jessica Lynn Suttles
22d84e0845 adds Microformats::Parser to move module methods into class instance 2013-07-01 16:31:39 -07:00
Jessica Lynn Suttles
101f4871ad fixes link in README 2013-04-18 22:13:39 -07:00
Michael Mitchell + Chris Stringer
5b8df0f0a9 Bump version 2013-04-18 22:13:39 -07:00
Michael Mitchell + Chris Stringer
dcbcc5123a Remove un-needed to_s method on DateTime 2013-04-18 22:13:38 -07:00
Michael Mitchell + Chris Stringer
d11b0f182c Support for string arg on Embedded 2013-04-18 22:13:38 -07:00
Michael Mitchell
0817798de2 bumps version number to pre3 2013-04-18 22:13:38 -07:00
Michael Mitchell
ec84c5b091 removes straggling pry 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
309c0dfcd0 defines the accesors on the singelton class only 2013-04-18 22:13:38 -07:00
Michael Mitchell + Chris Stringer
f4d5f31243 Bump version 2013-04-18 22:13:38 -07:00
Michael Mitchell + Chris Stringer
a074044f57 Bump rails 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
65fb44239c DRY up the logic to create new property classes.
Take some code that was duplicated in both the PropertyParser and
Format classes and move into a method in the Property module.
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
b81aee29f2 updates usage in readme 2013-04-18 22:13:38 -07:00
Michael Mitchell
238903cc1f updates travis config 2013-04-18 22:13:38 -07:00
Jessica Lynn Suttles
52c5e686f8 adds gem description, summary, and homepage 2013-04-18 22:13:38 -07:00
Jessica Lynn Suttles
f968a7ba0c bumps version 2013-04-18 22:13:37 -07:00
Jessica Lynn Suttles
61c01b1f6d updates readme 2013-04-18 22:13:37 -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
04206e40a6 renames ImpliedProperty::Foundation#value to #to_s 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
56a8239482 adds activesupport gem dependency 2013-04-18 22:13:37 -07:00