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
f968a7ba0c
bumps version
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
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
Jessica Lynn Suttles
a33ce3f699
renames Property::Foundation#value to #to_s
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
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
113d95af17
simplifies properties
2013-04-18 22:13:36 -07:00
Jessica Lynn Suttles
915250f5b0
implements property parsers as defined in wiki
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
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
a02055fd93
moves common parser methods to Parser class
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
05ec5276fd
initial commit
2013-04-18 22:13:34 -07:00
Shane Becker
19e8c25f6c
final commit
2013-04-18 21:34:08 -07:00
Shane Becker
fb51042e58
version bump
2011-06-28 22:19:47 -07:00
Shane Becker
cbc353e785
parse durations as strings. rename class as klass
2011-06-28 22:09:51 -07:00
Shane Becker
89b88c2c41
pull url from tag content if there is no href
2011-06-28 21:28:47 -07:00
Shane Becker
c8123de14b
readme and version bump
2011-06-28 21:16:21 -07:00
Shane Becker
06d175b525
removed borrowed rails methods so that this can be public domain
2011-06-28 20:36:24 -07:00
Shane Becker
ebe55fd418
refactored four nearly identical methods into just one. thanks @evanphx
2011-06-28 20:27:27 -07:00
Shane Becker
333e90c175
refactored codez into populate_method method method
2011-06-28 20:09:23 -07:00
Shane Becker
601a65d1db
Added ability to accept microformats that are not at the beginning of a class string for attributes
2011-06-28 20:04:15 -07:00
Brian Miller
ea8a526da3
Merge branch 'master' of github.com:veganstraightedge/microformats2
...
Conflicts:
lib/microformats2.rb
test/test_microformats2.rb
2011-06-28 19:49:23 -07:00
Brian Miller
9777b76b46
Fixed issue with h- class elements being evaluated multiple times
2011-06-28 19:47:14 -07:00
Shane Becker
0903ac0fab
fixed duplicate elements bug
2011-06-28 19:00:56 -07:00
Shane Becker
fcf1d25716
extracted method_adding to its own method
2011-06-15 12:01:33 -07:00
Shane Becker
f108aac104
removed redundant tests, added test for parsing from a file
2011-06-15 11:54:15 -07:00
Shane Becker
f6fc30c489
removed String monkey patch
2011-06-15 11:49:09 -07:00
Brian Miller
f2921e82bb
Fixed tests to work with new hash return type from parse
...
Added ability to pass files to parse method
2011-06-15 11:40:17 -07:00
Shane Becker
ce2ea993a8
shit works
2011-06-15 00:35:24 -07:00
Shane Becker
9260774403
first commit
2011-06-14 20:02:00 -07:00