A Ruby gem for extracting microformats2-encoded data from HTML documents.
MIT License
Bot releases are visible (Hide)
Full Changelog: https://github.com/jgarber623/micromicro/compare/v5.0.1...v6.0.0
Published by jgarber623 10 months ago
source_code_uri
to metadata by @jgarber623 in https://github.com/jgarber623/micromicro/pull/83
Full Changelog: https://github.com/jgarber623/micromicro/compare/v5.0.0...v5.0.1
Published by jgarber623 10 months ago
Collectible
module (next_all
and prev_all
Style/StringLiterals
(#74) (918b58a)Style/StringLiterals
warnings' (#73) (3fb3cf4)Style/PerlBackrefs
(a360af0)Lint/RedundantDirGlobSort
(15c8aca)Style/RedundantRegexpArgument
(8c93eb7)Style/RedundantFreeze
(feaee51)Full Changelog: https://github.com/jgarber623/micromicro/compare/v4.0.0...v5.0.0
Published by jgarber623 over 1 year ago
Nokogiri::HTML5::Document.parse
(330a2d1, 0de40d7)Published by jgarber623 about 2 years ago
New feature! MicroMicro now parses the srcset
attribute on image elements. For details on this attribute, see MDN's HTMLImageElement.srcset documentation.
An example using width descriptors:
<img srcset="elva-fairy-480w.jpg 480w,
elva-fairy-800w.jpg 800w"
sizes="(max-width: 600px) 480px, 800px"
src="elva-fairy-800w.jpg"
class="u-photo">
Parsed photo
property value:
{
"srcset": {
"480w": "http://example.com/elva-fairy-480w.jpg",
"800w": "http://example.com/elva-fairy-800w.jpg"
},
"value": "http://example.com/elva-fairy-800w.jpg"
}
Another example using pixel density descriptors and a fallback image candidate:
<img srcset="elva-fairy-320w.jpg,
elva-fairy-480w.jpg 1.5x,
elva-fairy-640w.jpg 2x"
src="elva-fairy-640w.jpg"
alt="Elva dressed as a fairy"
class="u-photo">
Parsed photo
property value:
{
"alt": "Elva dressed as a fairy",
"srcset": {
"1x": "http://example.com/elva-fairy-320w.jpg",
"1.5x": "http://example.com/elva-fairy-480w.jpg",
"2x": "http://example.com/elva-fairy-640w.jpg"
},
"value": "http://example.com/elva-fairy-640w.jpg"
}
This release implements microformats/microformats2-parsing#7.
Published by jgarber623 about 2 years ago
π Now with search! π
See the new USAGE.md file for details on this big, new feature.
Item
instance methods (8105d6f):
MicroMicro::Item#children?
MicroMicro::Item#id?
MicroMicro::Item
(926dedb):
MicroMicro::Item#plain_text_properties
MicroMicro::Item#url_properties
MicroMicro::Collections::PropertiesCollection
(82e91c8):
MicroMicro::Collections::PropertiesCollection#plain_text_properties?
MicroMicro::Collections::PropertiesCollection#url_properties?
#where
and #find_by
(847cb77).node_set_from
class methods into private classes (b18a714)Published by jgarber623 about 2 years ago
Published by jgarber623 about 2 years ago
Helpers
module (caa1c02)PropertiesCollection
and Property
instance methods (e9bb38b):
PropertiesCollection#plain_text_properties
PropertiesCollection#url_properties
Property#date_time_property?
Property#embedded_markup_property?
Property#plain_text_property?
Property#url_property?
Published by jgarber623 over 3 years ago
Published by jgarber623 almost 4 years ago
MicroMicro::Item#plain_text_properties
and MicroMicro::Item#url_properties
methods (351e1f1)MicroMicro::Collections::RelationshipsCollection#rels
and MicroMicro::Collections::RelationshipsCollection#urls
methods(c0e5665)MicroMicro::Collections::PropertiesCollection#names
and MicroMicro::Collections::PropertiesCollection#values
methods (65486bc)MicroMicro::Collections::ItemsCollection#types
method (6b53a81)Collectible
concern and refactor using Composite design pattern (82503b8)Published by jgarber623 over 4 years ago
Initial release! π π π