ruby-oembed 0.10.1 → 0.11.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cef68e158911636d20ce036c5b25432b4800307
4
- data.tar.gz: 882c99fd5b88328c792d1fd46303341543f9c364
3
+ metadata.gz: 16a76141eed91851d0bdfe267758b3106d015f1a
4
+ data.tar.gz: 3ae8e77aca6fa58ecf27f2bd71847608e91fa49f
5
5
  SHA512:
6
- metadata.gz: 12cce935dfb922fa4178856b37beb57b200e686b0e7010ccc4084de3f8a495ce129641282443e3b0a41f63220d7b8ea899e43b4c346d72856bddfbf78a91db46
7
- data.tar.gz: 836d7d99c3dade5acf086e53b958c4a9e2cf9cb0912bea2b4277afbdcadd075be799c2b13ed39a5012a6c7418f4be368ac79577a6b0d76b566b3b8c1c2c9cd80
6
+ metadata.gz: 8a53daf29ffb77dc30ab20f6a9bbb1c6b1b0e14d7cf183c286e88d1e8abe0362120f5955c5d2fe501a1fdc29cebf8826908c031cecba09855a06a4e8602d7956
7
+ data.tar.gz: c4d6a7b29f43adb6cd9fc71c4f62a43ccaa74008fe1d402ae0bf76bf62b98e5607aa38da1ac40e475d4539bc3aaf461950a9f9a32da2a389828669d42422bd2f
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,17 @@
1
1
  = CHANGELOG
2
2
 
3
+ == Unreleased (0.11.1)
4
+
5
+
6
+ == 0.11.0 - 26 March 2017
7
+
8
+ * Add built-in Speaker Deck provider; Issue #67 (Camille Roux)
9
+ * Add built-in Giphy provider
10
+ * Add built-in Kickstarter provider
11
+ * Add built-in TED provider
12
+ * Add built-in CodePen provider
13
+ * Update built-in Hulu provider to support https
14
+
3
15
  == 0.10.1 - 21 May 2016
4
16
 
5
17
  * Update built-in Twitter provider to use the new Twitter oEmbed endpoint; Pull #60 (Ben Ramsey)
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Travis branch](https://img.shields.io/travis/ruby-oembed/ruby-oembed/master.svg)](https://travis-ci.org/ruby-oembed/ruby-oembed/branches)
5
5
  [![Code Climate](https://img.shields.io/codeclimate/github/ruby-oembed/ruby-oembed.svg)](https://codeclimate.com/github/ruby-oembed/ruby-oembed)
6
6
  [![Coveralls](https://coveralls.io/repos/github/ruby-oembed/ruby-oembed/badge.svg?branch=coveralls)](https://coveralls.io/github/ruby-oembed/ruby-oembed?branch=coveralls)
7
- ![Maintenance](https://img.shields.io/maintenance/yes/2016.svg)
7
+ ![Maintenance](https://img.shields.io/maintenance/yes/2017.svg)
8
8
 
9
9
 
10
10
  An oEmbed consumer library written in Ruby, letting you easily get embeddable HTML representations of supported web pages, based on their URLs. See [oembed.com](http://oembed.com) for more about the protocol.
@@ -74,6 +74,8 @@ The following, optional, backends are currently supported:
74
74
 
75
75
  # Lend a Hand
76
76
 
77
+ **Note:** Work is under way on a v1.0 of ruby-oembed. If you'd like to contribute, take a look at [the rubocop branch!](https://github.com/ruby-oembed/ruby-oembed/tree/rubocop)
78
+
77
79
  Code for the ruby-oembed library is [hosted on GitHub](https://github.com/ruby-oembed/ruby-oembed).
78
80
 
79
81
  ```bash
@@ -143,6 +143,12 @@ module OEmbed
143
143
  Youtube << "https://*.youtu.be/*"
144
144
  add_official_provider(Youtube)
145
145
 
146
+ # Provider for codepen.io
147
+ CodePen = OEmbed::Provider.new("https://codepen.io/api/oembed")
148
+ CodePen << "http://codepen.io/*"
149
+ CodePen << "https://codepen.io/*"
150
+ add_official_provider(CodePen)
151
+
146
152
  # Provider for flickr.com
147
153
  Flickr = OEmbed::Provider.new("https://www.flickr.com/services/oembed/")
148
154
  Flickr << "http://*.flickr.com/*"
@@ -170,8 +176,9 @@ module OEmbed
170
176
  add_official_provider(Revision3)
171
177
 
172
178
  # Provider for hulu.com
173
- Hulu = OEmbed::Provider.new("http://www.hulu.com/api/oembed.{format}")
179
+ Hulu = OEmbed::Provider.new("https://www.hulu.com/api/oembed.{format}")
174
180
  Hulu << "http://www.hulu.com/watch/*"
181
+ Hulu << "https://www.hulu.com/watch/*"
175
182
  add_official_provider(Hulu)
176
183
 
177
184
  # Provider for vimeo.com
@@ -239,12 +246,24 @@ module OEmbed
239
246
  Yfrog << "http://yfrog.com/*"
240
247
  add_official_provider(Yfrog)
241
248
 
249
+ # Provider for Giphy
250
+ Giphy = OEmbed::Provider.new("http://giphy.com/services/oembed")
251
+ Giphy << "http://giphy.com/*"
252
+ Giphy << "https://giphy.com/*"
253
+ add_official_provider(Giphy)
254
+
242
255
  # Provider for imgur.com
243
256
  Imgur = OEmbed::Provider.new("https://api.imgur.com/oembed.{format}")
244
257
  Imgur << "https://*.imgur.com/gallery/*"
245
258
  Imgur << "http://*.imgur.com/gallery/*"
246
259
  add_official_provider(Imgur)
247
260
 
261
+ # Provider for Kickstarter
262
+ Kickstarter = OEmbed::Provider.new("https://www.kickstarter.com/services/oembed")
263
+ Kickstarter << "http://www.kickstarter.com/projects/*"
264
+ Kickstarter << "https://www.kickstarter.com/projects/*"
265
+ add_official_provider(Kickstarter)
266
+
248
267
  # provider for mlg-tv
249
268
  # http://tv.majorleaguegaming.com/oembed
250
269
  MlgTv = OEmbed::Provider.new("http://tv.majorleaguegaming.com/oembed")
@@ -285,6 +304,13 @@ module OEmbed
285
304
  Scribd << "http://*.scribd.com/*"
286
305
  add_official_provider(Scribd)
287
306
 
307
+ # Provider for speakerdeck.com
308
+ # https://speakerdeck.com/faq#oembed
309
+ SpeakerDeck = OEmbed::Provider.new("https://speakerdeck.com/oembed.json")
310
+ SpeakerDeck << "http://speakerdeck.com/*/*"
311
+ SpeakerDeck << "https://speakerdeck.com/*/*"
312
+ add_official_provider(SpeakerDeck)
313
+
288
314
  # Provider for movieclips.com
289
315
  MovieClips = OEmbed::Provider.new("http://movieclips.com/services/oembed/")
290
316
  MovieClips << "http://movieclips.com/watch/*/*/"
@@ -320,6 +346,12 @@ module OEmbed
320
346
  Skitch << "https://*.skitch.com/*"
321
347
  add_official_provider(Skitch)
322
348
 
349
+ # Provider for TED
350
+ Ted = OEmbed::Provider.new("https://www.ted.com/talks/oembed.{format}")
351
+ Ted << "http://*.ted.com/talks/*"
352
+ Ted << "https://*.ted.com/talks/*"
353
+ add_official_provider(Ted)
354
+
323
355
  # Provider for tumblr.com
324
356
  Tumblr = OEmbed::Provider.new("http://www.tumblr.com/oembed/1.0/", :json)
325
357
  Tumblr << "http://*.tumblr.com/post/*"
@@ -1,8 +1,8 @@
1
1
  module OEmbed
2
2
  class Version
3
3
  MAJOR = 0
4
- MINOR = 10
5
- PATCH = 1
4
+ MINOR = 11
5
+ PATCH = 0
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
 
8
8
  class << self
data/ruby-oembed.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
 
12
12
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
13
  s.authors = ["Magnus Holm", "Alex Kessinger", "Aris Bartee", "Marcos Wright Kuhns"]
14
- s.date = Date.today.to_s
14
+ s.date = Time.now.strftime("%F")
15
15
  s.description = "An oEmbed consumer library written in Ruby, letting you easily get embeddable HTML representations of supported web pages, based on their URLs. See http://oembed.com for more information about the protocol."
16
16
  s.email = "webmaster@wrightkuhns.com"
17
17
  s.homepage = "https://github.com/ruby-oembed/ruby-oembed"
@@ -57,4 +57,3 @@ Gem::Specification.new do |s|
57
57
  s.add_dependency(%q<fakeweb>, [">= 0"])
58
58
  end
59
59
  end
60
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-oembed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Holm
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-05-21 00:00:00.000000000 Z
14
+ date: 2017-03-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
@@ -190,7 +190,7 @@ rdoc_options:
190
190
  - "--main"
191
191
  - README.rdoc
192
192
  - "--title"
193
- - ruby-oembed-0.10.1
193
+ - ruby-oembed-0.11.0
194
194
  - "--inline-source"
195
195
  - "--exclude"
196
196
  - tasks
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  version: '0'
210
210
  requirements: []
211
211
  rubyforge_project:
212
- rubygems_version: 2.5.1
212
+ rubygems_version: 2.6.11
213
213
  signing_key:
214
214
  specification_version: 3
215
215
  summary: oEmbed for Ruby