oembedr 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/oembedr/providers.rb +13 -5
- data/lib/oembedr/version.rb +1 -1
- data/spec/oembedr/providers_spec.rb +1 -1
- metadata +2 -8
data/lib/oembedr/providers.rb
CHANGED
@@ -5,8 +5,8 @@ module Oembedr
|
|
5
5
|
LIST = {
|
6
6
|
# Video
|
7
7
|
/(youtu\.be|youtube)/ => "http://www.youtube.com/oembed",
|
8
|
-
/viddler/ => "http://www.viddler.com/oembed/",
|
9
|
-
/qik/ => "http://qik.com/api/oembed.{format}",
|
8
|
+
/viddler\.com/ => "http://www.viddler.com/oembed/",
|
9
|
+
/qik\.com/ => "http://qik.com/api/oembed.{format}",
|
10
10
|
/revision3/ => "http://revision3.com/api/oembed/",
|
11
11
|
/hulu/ => "http://www.hulu.com/api/oembed.{format}",
|
12
12
|
/vimeo/ => "http://vimeo.com/api/oembed.{format}",
|
@@ -33,12 +33,12 @@ module Oembedr
|
|
33
33
|
/(deviantart\.com|fav\.me)/ => 'http://backend.deviantart.com/oembed',
|
34
34
|
/(flic\.kr|flickr)/ => "http://www.flickr.com/services/oembed/",
|
35
35
|
/(instagr\.am|instagram\.com)/ => "http://api.instagram.com/oembed",
|
36
|
-
/yfrog/ => "http://www.yfrog.com/api/oembed",
|
36
|
+
/yfrog\.com/ => "http://www.yfrog.com/api/oembed",
|
37
37
|
/skitch\.com/ => 'http://skitch.com/oembed',
|
38
38
|
/photobucket\.com/ => 'http://photobucket.com/oembed',
|
39
39
|
|
40
40
|
# Rich
|
41
|
-
/slideshare/ => "http://www.slideshare.net/api/oembed/2",
|
41
|
+
/slideshare\.net/ => "http://www.slideshare.net/api/oembed/2",
|
42
42
|
/twitter\.com/ => 'https://api.twitter.com/1/statuses/oembed.{format}',
|
43
43
|
/scribd\.com/ => 'http://www.scribd.com/services/oembed',
|
44
44
|
/kinomap\.com/ => 'http://www.kinomap.com/oembed',
|
@@ -51,11 +51,19 @@ module Oembedr
|
|
51
51
|
/dipity\.com/ => 'http://www.dipity.com/oembed/timeline/',
|
52
52
|
/sketchfab\.com\/show/ => 'http://sketchfab.com/oembed',
|
53
53
|
/ifixit\.com/ => 'http://www.ifixit.com/Embed',
|
54
|
+
|
55
|
+
# NOTE:
|
56
|
+
# When calling Oembedr#fetch set the `for` parameter with your ID
|
57
|
+
# Example: { :params => {:for => 'oembedr.com'} }
|
54
58
|
/(wordpress\.com|blogs\.cnn\.com|techcrunch\.com|wp\.me)/ =>
|
55
59
|
'http://public-api.wordpress.com/oembed/1.0/',
|
56
60
|
|
57
61
|
# NoEmbed
|
58
|
-
|
62
|
+
# NOTE:
|
63
|
+
# When calling Oembedr#fetch set the `nowrap` parameter to avoid
|
64
|
+
# noembed.com wrapper
|
65
|
+
# Example: { :params => {:nowrap => 'on'} }
|
66
|
+
/(thedailyshow\.com|funnyordie\.com|ted\.com|livejournal\.com|github\.com|metacafe\.com|wikipedia\.org|xkcd\.com|imdb\.com)/ => 'http://noembed.com/embed'
|
59
67
|
}
|
60
68
|
|
61
69
|
# Locate the correct service endpoint for the given resource URL.
|
data/lib/oembedr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oembedr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -231,18 +231,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
231
231
|
- - ! '>='
|
232
232
|
- !ruby/object:Gem::Version
|
233
233
|
version: '0'
|
234
|
-
segments:
|
235
|
-
- 0
|
236
|
-
hash: -348172818553904717
|
237
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
235
|
none: false
|
239
236
|
requirements:
|
240
237
|
- - ! '>='
|
241
238
|
- !ruby/object:Gem::Version
|
242
239
|
version: '0'
|
243
|
-
segments:
|
244
|
-
- 0
|
245
|
-
hash: -348172818553904717
|
246
240
|
requirements: []
|
247
241
|
rubyforge_project:
|
248
242
|
rubygems_version: 1.8.25
|