oembed_proxy 0.2.1 → 0.2.6

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
  SHA256:
3
- metadata.gz: 82a43df03a51da4690d5afdfca411f45d466a129c524d2bdbf669efa39800a3c
4
- data.tar.gz: 2bb0f79c2535a1e1bba1789446df519ad1a9ee03babdc692dc4118d3cd6c16e2
3
+ metadata.gz: e901566bc9fd0715903da004839a7c44802c9f389b5e67b5acc56e611cbf978d
4
+ data.tar.gz: 6fd1ed2ce5cd3b1f4af6f952c0c9623d7f91602d3840cbe4f2c181a81ddb1441
5
5
  SHA512:
6
- metadata.gz: e66dfae3a409b0befdb1be2f130a86d8fd77e37f386bf22b1e503efed528206872a97afadba30fd126e1c7daaa1a3bb07af8cd6d455b8ef26df55ed150ed8c74
7
- data.tar.gz: '0123193339dd7e80f19ef3374a9f4f8cf4a1d6b2507da1bbbe62aa7c45d66edf3211a1e31c46c7ac64b61b03eef9912891f5e2801ae8652062e141ce86d9f648'
6
+ metadata.gz: d1fdc9982ef1b958774ca8771f1b9fe1c62e584b9539088b9226af21ef8c30a8711d4b0e9b8a2e4ca765c900e767403b8b812ad2a3116dbc29ea769563a1fee7
7
+ data.tar.gz: d3da1c175fae6470645bf76de5cbbb340124d2522ae4935ed3daa17174f918657e2b4c0fe054079f7d8f7b3388daa6d2c0e7a54ac42777932065d26748a0adbd
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.3
2
+ TargetRubyVersion: 2.6
3
3
  Exclude:
4
4
  - 'bin/*'
5
5
 
@@ -1,5 +1,43 @@
1
1
  # oEmbed Proxy Changelog
2
2
 
3
+ ## [`0.2.6`] (2020-12-15)
4
+
5
+ [`0.2.6`]: https://github.com/APMG/oembed_proxy/compare/v0.2.5...v0.2.6
6
+
7
+ * Add https to youtube and vimeo provider urls.
8
+
9
+ ## [`0.2.5`] (2020-07-30)
10
+
11
+ [`0.2.5`]: https://github.com/APMG/oembed_proxy/compare/v0.2.4...v0.2.5
12
+
13
+ This release contains no code changes.
14
+ The gem published for 0.2.4 contained files missing read-permissions
15
+ for "group" and "other", which could prevent loading of those files
16
+ in environments where gems are installed by a user who is not the
17
+ effective user at gem load time.
18
+
19
+ * Fix file permissions on `lib/oembed_proxy/*.rb` for published gem.
20
+
21
+ ## [`0.2.4`] (2020-07-30)
22
+
23
+ [`0.2.4`]: https://github.com/APMG/oembed_proxy/compare/v0.2.3...v0.2.4
24
+
25
+ * Move poll.fm from Embed.ly to First Party.
26
+
27
+ ## [`0.2.3`] (2020-02-03)
28
+
29
+ [`0.2.3`]: https://github.com/APMG/oembed_proxy/compare/v0.2.2...v0.2.3
30
+
31
+ * Move Facebook from Embed.ly to First Party.
32
+
33
+ ## [`0.2.2`] (2020-01-31)
34
+
35
+ [`0.2.2`]: https://github.com/APMG/oembed_proxy/compare/v0.2.0...v0.2.2
36
+
37
+ *Note: The 0.2.1 release had critical bugs and should not be used.*
38
+
39
+ * Add a new Fauxembed for NPR Sidechain embeds.
40
+
3
41
  ## [`0.2.0`] (2020-01-16)
4
42
 
5
43
  [`0.2.0`]: https://github.com/APMG/oembed_proxy/compare/v0.1.3...v0.2.0
@@ -10,6 +10,7 @@ require 'oembed_proxy/google_document'
10
10
  require 'oembed_proxy/google_mapsengine'
11
11
  require 'oembed_proxy/google_spreadsheet'
12
12
  require 'oembed_proxy/tableau'
13
+ require 'oembed_proxy/npr'
13
14
 
14
15
  # Gem namespace
15
16
  module OembedProxy
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OembedProxy
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.6'
5
5
  end
@@ -283,7 +283,6 @@
283
283
  #\Ahttps?://(.+\.)?polldaddy\.com/poll/.*#i
284
284
  #\Ahttps?://polldaddy\.com/poll/.*#i
285
285
  #\Ahttps?://(.+\.)?polldaddy\.com/.*#i
286
- #\Ahttp://poll\.fm/.*#i
287
286
  #\Ahttp://answers\.polldaddy\.com/poll/.*#i
288
287
  #\Ahttp://www\.5min\.com/Video/.*#i
289
288
  #\Ahttp://www\.howcast\.com/videos/.*#i
@@ -600,13 +599,6 @@
600
599
  #\Ahttp://boston\.com/video.*#i
601
600
  #\Ahttp://www\.boston\.com/.*video.*#i
602
601
  #\Ahttp://boston\.com/.*video.*#i
603
- #\Ahttp://www\.facebook\.com/photo\.php.*#i
604
- #\Ahttp://www\.facebook\.com/video/video\.php.*#i
605
- #\Ahttp://www\.facebook\.com/v/.*#i
606
- #\Ahttps://www\.facebook\.com/photo\.php.*#i
607
- #\Ahttps://www\.facebook\.com/video/video\.php.*#i
608
- #\Ahttps://www\.facebook\.com/v/.*#i
609
- #\Ahttps://www\.facebook\.com/video.php\?v=.*#i
610
602
  #\Ahttp://cnbc\.com/id/.*\?.*video.*#i
611
603
  #\Ahttp://www\.cnbc\.com/id/.*\?.*video.*#i
612
604
  #\Ahttp://cnbc\.com/id/.*/play/1/video/.*#i
@@ -1,5 +1,5 @@
1
1
  youtube:
2
- endpoint: "http://www.youtube.com/oembed"
2
+ endpoint: "https://www.youtube.com/oembed"
3
3
  pattern_list: ["#\\Ahttps?://(?:www\\.)?youtube\\.com/watch.+#i", "#\\Ahttps?://(?:www\\.)?youtube\\.com/playlist.+#i", "#\\Ahttps?://youtu\\.be/.+#i"]
4
4
 
5
5
  bliptv:
@@ -7,7 +7,7 @@ bliptv:
7
7
  pattern_list: ["#\\Ahttps?://blip\\.tv/.+#i"]
8
8
 
9
9
  vimeo:
10
- endpoint: "http://vimeo.com/api/oembed.json"
10
+ endpoint: "https://vimeo.com/api/oembed.json"
11
11
  pattern_list: ["#\\Ahttps?://(?:www\\.)?vimeo\\.com/.+#i"]
12
12
 
13
13
  dailymotion:
@@ -58,6 +58,10 @@ polldaddy:
58
58
  endpoint: "https://polldaddy.com/oembed/"
59
59
  pattern_list: ["#\\Ahttps?://(?:[^.]+\\.)?polldaddy\\.com/.+#i"]
60
60
 
61
+ crowdsignal:
62
+ endpoint: "https://api.crowdsignal.com/oembed"
63
+ pattern_list: ["#\\Ahttps?://poll.fm/.+#i"]
64
+
61
65
  funnyordie:
62
66
  endpoint: "http://www.funnyordie.com/oembed"
63
67
  pattern_list: ["#\\Ahttps?://(?:www\\.)?funnyordie\\.com/videos/.+#i"]
@@ -89,3 +93,14 @@ audio-api:
89
93
  documentcloud:
90
94
  endpoint: "https://www.documentcloud.org/api/oembed.json"
91
95
  pattern_list: ["#\\Ahttps?://www\\.documentcloud\\.org/documents?/.+#i"]
96
+
97
+
98
+ # Facebook oEmbed documentation: https://developers.facebook.com/docs/plugins/oembed-endpoints/
99
+
100
+ facebook-video:
101
+ endpoint: "https://www.facebook.com/plugins/video/oembed.json"
102
+ pattern_list: ["#https://www\\.facebook\\.com/.+/videos/.+/#i", "#https://www\\.facebook\\.com/.+/videos/.+/#i", "#https://www\\.facebook\\.com/video\\.php\\?id=.+#i", "#https://www\\.facebook\\.com/video\\.php\\?v=.+#i"]
103
+
104
+ facebook-post:
105
+ endpoint: "https://www.facebook.com/plugins/post/oembed.json"
106
+ pattern_list: ["#https://www\\.facebook\\.com/.+/posts/.+#i", "#https://www\\.facebook\\.com/.+/posts/.+#i", "#https://www\\.facebook\\.com/.+/activity/.+#i", "#https://www\\.facebook\\.com/photo\\.php\\?fbid=.+#i", "#https://www\\.facebook\\.com/photos/.+#i", "#https://www\\.facebook\\.com/permalink\\.php\\?story_fbid=.+#i", "#https://www\\.facebook\\.com/media/set\\?set=.+#i", "#https://www\\.facebook\\.com/questions/.+#i", "#https://www\\.facebook\\.com/notes/.+/.+/.+#i"]
@@ -7,8 +7,7 @@ require 'oembed_proxy/version'
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'oembed_proxy'
9
9
  spec.version = OembedProxy::VERSION
10
- spec.authors = ['William Johnston']
11
- spec.email = ['wjohnston@mpr.org']
10
+ spec.authors = ['APM Digital Products Group']
12
11
 
13
12
  spec.summary = 'Simple library to manage first party, embedly, and custom oembeds'
14
13
  # spec.description = %q{TODO: Write a longer description or delete this line.}
@@ -23,6 +22,6 @@ Gem::Specification.new do |spec|
23
22
  spec.require_paths = ['lib']
24
23
 
25
24
  spec.add_development_dependency 'bundler', '~> 2.0'
26
- spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
27
26
  spec.add_development_dependency 'rspec', '~> 3.0'
28
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oembed_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
- - William Johnston
7
+ - APM Digital Products Group
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-31 00:00:00.000000000 Z
11
+ date: 2020-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,20 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '12.3'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 12.3.3
34
37
  type: :development
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - "~>"
39
42
  - !ruby/object:Gem::Version
40
- version: '10.0'
43
+ version: '12.3'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 12.3.3
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: rspec
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -53,8 +59,7 @@ dependencies:
53
59
  - !ruby/object:Gem::Version
54
60
  version: '3.0'
55
61
  description:
56
- email:
57
- - wjohnston@mpr.org
62
+ email:
58
63
  executables: []
59
64
  extensions: []
60
65
  extra_rdoc_files: []