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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df140265a8211e31df4eb3f834129cc668f5f5f6
4
- data.tar.gz: 85edf877956511443e620e6d07302b2ff497e384
3
+ metadata.gz: 16a842cabea12c322d8ca171d6e457805b57aaa5
4
+ data.tar.gz: e4efc62768d6e82e873af04928c601cd05ab7128
5
5
  SHA512:
6
- metadata.gz: 2d4732677011956298e97b60fdd2f1e380be50527ab30d91c6614a12942803dceb167e90ce157485fbcec2a936e0522cfe9c85bedf9bd30120a96b8a5f8a543d
7
- data.tar.gz: fbce3399d97a9ad8003c439db17fd8ed0f43342cbb2dd26c3d5e4df66fa94a032d3affc9e6e12ae4f8111487971102db95df1b172eea270d63b4f573e86942a2
6
+ metadata.gz: 305dcb84bbe93db9e3fbbbc93fae0b34f5ac9792545bf59106b652fb2375d8cdf67d31ea25a424d6f5e31b89ab436f9bf35ebbbe1e6696a42c4419cfd97ea504
7
+ data.tar.gz: 762bdfe506a6746272c9156176ed43f47ebc63af00302955f3a56f513a668a96a449b06c4135ce12177267629222a3b7399147fe94f3cc8d337f29f667218033
data/.travis.yml CHANGED
@@ -1,5 +1,8 @@
1
+ language: ruby
2
+ cache: bundler
1
3
  rvm:
2
4
  - 1.9.3
3
5
  - 2.0.0
4
6
  - 2.1.1
5
7
  - 2.1.2
8
+ - 2.2.0
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)
@@ -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
- %w{scheme userinfo host port registry}.each { |method| uri.send("#{method}=", nil) }
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)