# Microformats2 (ruby) [![Build Status](https://travis-ci.org/indieweb/microformats2-ruby.png?branch=master)](https://travis-ci.org/indieweb/microformats2-ruby) [![Code Climate](https://codeclimate.com/github/indieweb/microformats2-ruby/badges/gpa.svg)](https://codeclimate.com/github/indieweb/microformats2-ruby) A Ruby gem to parse HTML containing one or more [microformats2](http://microformats.org/wiki/microformats-2) and return a collection of dynamically defined Ruby objects. ## Development Status This gem sat unmaintained for quite a long time. It's now under new management. Work will begin shortly on getting it on par with the other Microformats2 parsers and the current state of the spec. (2015-12-23) A work in progress. Implemented: * [parsing depth first, doc order](http://microformats.org/wiki/microformats2-parsing#parse_a_document_for_microformats) * [parsing a p- property](http://microformats.org/wiki/microformats2-parsing#parsing_a_p-_property) * [parsing a u- property](http://microformats.org/wiki/microformats2-parsing#parsing_a_u-_property) * [parsing a dt- property](http://microformats.org/wiki/microformats2-parsing#parsing_a_dt-_property) * [parsing a e- property](http://microformats.org/wiki/microformats2-parsing#parsing_an_e-_property) * [parsing implied properties](http://microformats.org/wiki/microformats-2-parsing#parsing_for_implied_properties) * nested properties * nested microformat with associated property * dynamic creation of properties * [rel](http://microformats.org/wiki/rel) * [normalize u-* property values](http://microformats.org/wiki/microformats2-parsing-faq#normalizing_u-.2A_property_values) Not Implemented: * nested microformat without associated property * [value-class-pattern](http://microformats.org/wiki/value-class-pattern) * [include-pattern](http://microformats.org/wiki/include-pattern) * recognition of [vendor extensions](http://microformats.org/wiki/microformats2#VENDOR_EXTENSIONS) * backwards compatible support for microformats v1 ## Current Version 2.0.2 ![Version 2.0.2](https://img.shields.io/badge/VERSION-2.0.2-green.svg) ## Requirements * [nokogiri](https://github.com/sparklemotion/nokogiri) * [json](https://github.com/flori/json) * [activesupport](https://github.com/rails/rails/tree/master/activesupport) ## Installation Add this line to your application's Gemfile: ```ruby gem "microformats2" ``` And then execute: ``` bundle ``` Or install it yourself as: ``` gem install microformats2 ``` ## Usage ```ruby require "microformats2" source = "
Jessica Lynn Suttles