oembed_proxy 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,91 @@
1
+ youtube:
2
+ endpoint: "http://www.youtube.com/oembed"
3
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?youtube\\.com/watch.+#i", "#\\Ahttps?://youtu\\.be/.+#i"]
4
+
5
+ bliptv:
6
+ endpoint: "http://blip.tv/oembed/"
7
+ pattern_list: ["#\\Ahttps?://blip\\.tv/.+#i"]
8
+
9
+ vimeo:
10
+ endpoint: "http://vimeo.com/api/oembed.json"
11
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?vimeo\\.com/.+#i"]
12
+
13
+ dailymotion:
14
+ endpoint: "http://www.dailymotion.com/services/oembed"
15
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?dailymotion\\.com/.+#i", "#\\Ahttps?://dai\\.ly/.+#i"]
16
+
17
+ flickr:
18
+ endpoint: "http://www.flickr.com/services/oembed/"
19
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?flickr\\.com/.+#i", "#\\Ahttps?://flic\\.kr/.+#i"]
20
+
21
+ smugmug:
22
+ endpoint: "http://api.smugmug.com/services/oembed/"
23
+ pattern_list: ["#\\Ahttps?://(?:[^.]+\\.)?smugmug\\.com/.+#i"]
24
+
25
+ hulu:
26
+ endpoint: "http://www.hulu.com/api/oembed.json"
27
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?hulu\\.com/watch/.+#i"]
28
+
29
+ viddler:
30
+ endpoint: "http://lab.viddler.com/services/oembed/"
31
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?viddler\\.com/.+#i"]
32
+
33
+ qik:
34
+ endpoint: "http://qik.com/api/oembed.json"
35
+ pattern_list: ["#\\Ahttps?://qik\\.com/.+#i"]
36
+
37
+ revision3:
38
+ endpoint: "http://revision3.com/api/oembed/"
39
+ pattern_list: ["#\\Ahttps?://revision3\\.com/.+#i"]
40
+
41
+ photobucket:
42
+ endpoint: "http://photobucket.com/oembed"
43
+ pattern_list: ["#\\Ahttps?://i[^.]+\\.photobucket\\.com/albums/.+#i", "#\\Ahttps?://gi[^.]+\\.photobucket\\.com/groups/.+#i"]
44
+
45
+ mixlr:
46
+ endpoint: "http://mixlr.com/services/oembed/"
47
+ pattern_list: ["#\\Ahttps://mixlr\\.com/.+#i"]
48
+
49
+ scribd:
50
+ endpoint: "https://www.scribd.com/services/oembed"
51
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?scribd\\.com/.+#i"]
52
+
53
+ wordpresstv:
54
+ endpoint: "http://wordpress.tv/oembed/"
55
+ pattern_list: ["#\\Ahttps?://wordpress\\.tv/.+#i"]
56
+
57
+ polldaddy:
58
+ endpoint: "https://polldaddy.com/oembed/"
59
+ pattern_list: ["#\\Ahttps?://(?:[^.]+\\.)?polldaddy\\.com/.+#i"]
60
+
61
+ funnyordie:
62
+ endpoint: "http://www.funnyordie.com/oembed"
63
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?funnyordie\\.com/videos/.+#i"]
64
+
65
+ twitter:
66
+ endpoint: "https://api.twitter.com/1/statuses/oembed.json"
67
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?twitter\\.com/.+?/status(?:es)?/.+#i"]
68
+
69
+ soundcloud:
70
+ endpoint: "http://soundcloud.com/oembed?format=json"
71
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?soundcloud\\.com/.+#i"]
72
+
73
+ slideshare:
74
+ endpoint: "http://www.slideshare.net/api/oembed/2"
75
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?slideshare\\.net/.+#"]
76
+
77
+ instagram:
78
+ endpoint: "https://api.instagram.com/oembed?beta=true"
79
+ pattern_list: ["#\\Ahttps?://(?:www\\.)?instagr(?:\\.am|am\\.com)/p/.+#i"]
80
+
81
+ spotify:
82
+ endpoint: "https://embed.spotify.com/oembed/"
83
+ pattern_list: ["#\\Ahttps?://(?:open|play)\\.spotify\\.com/.+#i"]
84
+
85
+ audio-api:
86
+ endpoint: "http://audio-api.publicradio.org/oembed/v1/"
87
+ pattern_list: ["#\\Aapm[_-]audio:/.+#i"]
88
+
89
+ documentcloud:
90
+ endpoint: "https://www.documentcloud.org/api/oembed.json"
91
+ pattern_list: ["#\\Ahttps?://www\\.documentcloud\\.org/documents?/.+#i"]
@@ -0,0 +1,29 @@
1
+
2
+ # frozen_string_literal: true
3
+
4
+ lib = File.expand_path('../lib', __FILE__)
5
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
+ require 'oembed_proxy/version'
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = 'oembed_proxy'
10
+ spec.version = OembedProxy::VERSION
11
+ spec.authors = ['William Johnston']
12
+ spec.email = ['wjohnston@mpr.org']
13
+
14
+ spec.summary = 'Simple library to manage first party, embedly, and custom oembeds'
15
+ # spec.description = %q{TODO: Write a longer description or delete this line.}
16
+ spec.homepage = 'https://github.com/APMG/oembed_proxy'
17
+ spec.license = 'MIT'
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
20
+ f.match(%r{^(test|spec|features)/})
21
+ end
22
+ spec.bindir = 'exe'
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ['lib']
25
+
26
+ spec.add_development_dependency 'bundler', '~> 1.16'
27
+ spec.add_development_dependency 'rake', '~> 10.0'
28
+ spec.add_development_dependency 'rspec', '~> 3.0'
29
+ end
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: oembed_proxy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - William Johnston
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-02-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description:
56
+ email:
57
+ - wjohnston@mpr.org
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".rubocop.yml"
65
+ - ".travis.yml"
66
+ - Gemfile
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - bin/console
71
+ - bin/rspec
72
+ - bin/rubocop
73
+ - bin/setup
74
+ - lib/oembed_proxy.rb
75
+ - lib/oembed_proxy/associated_press.rb
76
+ - lib/oembed_proxy/embedly.rb
77
+ - lib/oembed_proxy/first_party.rb
78
+ - lib/oembed_proxy/fusiontable_map.rb
79
+ - lib/oembed_proxy/google_document.rb
80
+ - lib/oembed_proxy/google_mapsengine.rb
81
+ - lib/oembed_proxy/google_spreadsheet.rb
82
+ - lib/oembed_proxy/handler.rb
83
+ - lib/oembed_proxy/inactive_support.rb
84
+ - lib/oembed_proxy/oembed_exception.rb
85
+ - lib/oembed_proxy/tableau.rb
86
+ - lib/oembed_proxy/utility.rb
87
+ - lib/oembed_proxy/version.rb
88
+ - lib/providers/embedly_patterns.def
89
+ - lib/providers/first_party.yml
90
+ - oembed_proxy.gemspec
91
+ homepage: https://github.com/APMG/oembed_proxy
92
+ licenses:
93
+ - MIT
94
+ metadata: {}
95
+ post_install_message:
96
+ rdoc_options: []
97
+ require_paths:
98
+ - lib
99
+ required_ruby_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ requirements: []
110
+ rubyforge_project:
111
+ rubygems_version: 2.7.6
112
+ signing_key:
113
+ specification_version: 4
114
+ summary: Simple library to manage first party, embedly, and custom oembeds
115
+ test_files: []