netshade-oembed_links 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +1 -1
- data/lib/oembed_links/formatters/xml.rb +1 -1
- data/oembed_links.gemspec +1 -1
- data/oembed_links_example.yml +1 -1
- metadata +1 -1
data/README
CHANGED
@@ -25,7 +25,7 @@ OEmbed.transform("This is my flickr URL http://www.flickr.com/photos/bees/234162
|
|
25
25
|
r.from?(:vimeo) { |v| "<div class='vimeo'>#{v['html']}</div>" }
|
26
26
|
end
|
27
27
|
|
28
|
-
# Transformation to drive
|
28
|
+
# Transformation to drive Amazon links to our department affiliate code and help us buy some laptops (hint)
|
29
29
|
OEmbed.register_provider(:oohembed,
|
30
30
|
"http://oohembed.com/oohembed/",
|
31
31
|
"json",
|
@@ -13,7 +13,7 @@ class OEmbed
|
|
13
13
|
# XML will not work; only strings, ints and
|
14
14
|
# floats will be converted.
|
15
15
|
def format(txt)
|
16
|
-
parser = LibXML::XML::Parser.string(txt)
|
16
|
+
parser = ::LibXML::XML::Parser.string(txt)
|
17
17
|
doc = parser.parse
|
18
18
|
h = { }
|
19
19
|
doc.root.children.each do |node|
|
data/oembed_links.gemspec
CHANGED
data/oembed_links_example.yml
CHANGED