ruby-oembed 0.8.11 → 0.8.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.rdoc +7 -0
- data/lib/oembed/provider.rb +6 -1
- data/lib/oembed/providers/embedly_urls.yml +255 -136
- data/lib/oembed/providers.rb +20 -1
- data/lib/oembed/version.rb +1 -1
- data/spec/formatter/ducktype_backend_spec.rb +31 -31
- data/spec/formatter/json/jsongem_backend_spec.rb +29 -28
- data/spec/formatter/json/yaml_backend_spec.rb +27 -26
- data/spec/formatter/xml/nokogiri_backend_spec.rb +28 -27
- data/spec/formatter/xml/rexml_backend_spec.rb +26 -25
- data/spec/formatter/xml/xmlsimple_backend_spec.rb +28 -27
- data/spec/formatter_spec.rb +11 -9
- data/spec/provider_discovery_spec.rb +37 -37
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16a842cabea12c322d8ca171d6e457805b57aaa5
|
4
|
+
data.tar.gz: e4efc62768d6e82e873af04928c601cd05ab7128
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 305dcb84bbe93db9e3fbbbc93fae0b34f5ac9792545bf59106b652fb2375d8cdf67d31ea25a424d6f5e31b89ab436f9bf35ebbbe1e6696a42c4419cfd97ea504
|
7
|
+
data.tar.gz: 762bdfe506a6746272c9156176ed43f47ebc63af00302955f3a56f513a668a96a449b06c4135ce12177267629222a3b7399147fe94f3cc8d337f29f667218033
|
data/.travis.yml
CHANGED
data/CHANGELOG.rdoc
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
= CHANGELOG
|
2
2
|
|
3
|
+
== 0.8.12 - 7 January 2015
|
4
|
+
|
5
|
+
* Fix URI error in Ruby 2.2; Pull #41, Issue #43 (Maxim Bublis)
|
6
|
+
* Change built-in YouTube provider to return https embeds; Pull #34, Issue #33 (Fla)
|
7
|
+
* Add built-in providers for Twitter, Vine, & Imgur; Pull #42 (Eliot Shepard)
|
8
|
+
* Updated the list of {Embedly}[http://embed.ly] URL schemes. (Marcos Wright-Kuhns)
|
9
|
+
|
3
10
|
== 0.8.11 - 7 November 2014
|
4
11
|
|
5
12
|
* Add built-in provider for Spotify; Pull #36 (Sami Kukkonen)
|
data/lib/oembed/provider.rb
CHANGED
@@ -135,7 +135,12 @@ module OEmbed
|
|
135
135
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
136
136
|
http.read_timeout = http.open_timeout = query[:timeout] if query[:timeout]
|
137
137
|
|
138
|
-
|
138
|
+
methods = if RUBY_VERSION < "2.2"
|
139
|
+
%w{scheme userinfo host port registry}
|
140
|
+
else
|
141
|
+
%w{scheme userinfo host port}
|
142
|
+
end
|
143
|
+
methods.each { |method| uri.send("#{method}=", nil) }
|
139
144
|
req = Net::HTTP::Get.new(uri.to_s)
|
140
145
|
req['User-Agent'] = "Mozilla/5.0 (compatible; ruby-oembed/#{OEmbed::VERSION})"
|
141
146
|
res = http.request(req)
|