netshade-oembed_links 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
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 affiliate links to Amazon to our department and help us buy some laptops (hint)
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "oembed_links"
3
- s.version = "0.0.3"
3
+ s.version = "0.0.4"
4
4
  s.author = "Indianapolis Star"
5
5
  s.email = "bugs at indystar dot com"
6
6
  s.homepage = "http://www.indystar.com"
@@ -20,7 +20,7 @@
20
20
  - "http://*.slideshare.net/*"
21
21
  - "http://twitter.com/*/statuses/*"
22
22
  - "http://*.wikipedia.org/wiki/*"
23
- - "http://*.wordpress.com/yyyy/mm/dd/*"
23
+ - "http://*.wordpress.com/[0-9]{4}/[0-9]{2}/[0-9]{2}/*"
24
24
  - "http://*.youtube.com/watch*"
25
25
 
26
26
  :vimeo:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netshade-oembed_links
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indianapolis Star