Sha256: b16cc0b66cc63481a2a4bf0cacf2b748dad7ea4240e80da7e7d53fe42b3b80ed
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
require "nokogiri" require "open-uri" require "json" require "active_support/inflector" require "microformats2/version" require "microformats2/format_parser" require "microformats2/property_parser" require "microformats2/collection" require "microformats2/format" require "microformats2/property/foundation" require "microformats2/property/text" require "microformats2/property/url" require "microformats2/property/date_time" require "microformats2/property/embedded" require "microformats2/property" require "microformats2/implied_property/foundation" require "microformats2/implied_property/name" require "microformats2/implied_property/photo" require "microformats2/implied_property/url" module Microformats2 class << self def parse(html) html = read_html(html) document = Nokogiri::HTML(html) Collection.new(document).parse end def read_html(html) open(html).read rescue Errno::ENOENT, Errno::ENAMETOOLONG => e html end end # class << self class InvalidPropertyPrefix < StandardError; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
microformats2-2.0.0.pre4 | lib/microformats2.rb |
microformats2-2.0.0.pre3 | lib/microformats2.rb |
microformats2-2.0.0.pre2 | lib/microformats2.rb |