oembed_proxy 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +2 -3
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -1
- data/lib/oembed_proxy/associated_press.rb +1 -1
- data/lib/oembed_proxy/fusiontable_map.rb +1 -1
- data/lib/oembed_proxy/google_document.rb +1 -1
- data/lib/oembed_proxy/google_spreadsheet.rb +1 -1
- data/lib/oembed_proxy/tableau.rb +2 -2
- data/lib/oembed_proxy/version.rb +1 -1
- data/lib/providers/embedly_patterns.def +2 -0
- data/oembed_proxy.gemspec +1 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b687b1aea468ca341b4f37089e7da5aad1b574f75310367d34c7370fd27489b4
|
4
|
+
data.tar.gz: 2fe9fa0767c3d78a01103e7d70da42f464191b0e14eeb0a0f297c40149c96d5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edb22346ed8c006aa9a16d5d299443b3bdc52e00a1984184bfd3c73bc76f0b1beae9d029ad8b103da93ed2aeac204fb8472ed909fc4dcb04301c0a3a72ae1612
|
7
|
+
data.tar.gz: 61bde6dbebcb7e63db71ad35c270bcbbb6319a7b97b9044e3b1cdeb3fd26802fb9757fc6098b571915f820f1d25875a7899db0e33a8e36c899d752b8cd13bb52
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# oEmbed Proxy Changelog
|
2
2
|
|
3
|
+
## [`0.2.0`] (2020-01-16)
|
4
|
+
|
5
|
+
[`0.2.0`]: https://github.com/APMG/oembed_proxy/compare/v0.1.3...v0.2.0
|
6
|
+
|
7
|
+
* Add Datawrapper to supported embed.ly embeds
|
8
|
+
* Updated Bundler requirement
|
9
|
+
* Rubocop upgrade to 0.78
|
10
|
+
* Modernizing Ruby versions in build
|
11
|
+
|
3
12
|
## [`0.1.3`] (2018-04-24)
|
4
13
|
|
5
14
|
[`0.1.3`]: https://github.com/APMG/oembed_proxy/compare/v0.1.2...v0.1.3
|
data/Gemfile
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module OembedProxy
|
4
4
|
# Associated Press Interactives Fauxembed
|
5
5
|
class AssociatedPress
|
6
|
-
AP_REGEX = %r{\Ahttps?:\/\/(?:hosted\.ap\.org\/interactives|interactives\.ap\.org)\/.+}
|
6
|
+
AP_REGEX = %r{\Ahttps?:\/\/(?:hosted\.ap\.org\/interactives|interactives\.ap\.org)\/.+}.freeze
|
7
7
|
|
8
8
|
def handles_url?(url)
|
9
9
|
!AP_REGEX.match(url).nil?
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module OembedProxy
|
4
4
|
# Google Apps Fusiontable Map Fauxembeds
|
5
5
|
class FusiontableMap
|
6
|
-
FUSIONTABLE_REGEX = %r{\Ahttps://www\.google\.com/fusiontables.+}
|
6
|
+
FUSIONTABLE_REGEX = %r{\Ahttps://www\.google\.com/fusiontables.+}.freeze
|
7
7
|
|
8
8
|
def handles_url?(url)
|
9
9
|
!(url =~ FUSIONTABLE_REGEX).nil?
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module OembedProxy
|
4
4
|
# Google Docs Fauxembed
|
5
5
|
class GoogleDocument
|
6
|
-
GOOGLE_DOCUMENT_REGEX = %r{\Ahttps://docs\.google\.com/document.+}
|
6
|
+
GOOGLE_DOCUMENT_REGEX = %r{\Ahttps://docs\.google\.com/document.+}.freeze
|
7
7
|
|
8
8
|
def handles_url?(url)
|
9
9
|
!(url =~ GOOGLE_DOCUMENT_REGEX).nil?
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module OembedProxy
|
4
4
|
# Google Spreadsheet Fauxembed
|
5
5
|
class GoogleSpreadsheet
|
6
|
-
GOOGLE_SPREADSHEET_REGEX = %r{\Ahttps://docs\.google\.com/spreadsheet.+}
|
6
|
+
GOOGLE_SPREADSHEET_REGEX = %r{\Ahttps://docs\.google\.com/spreadsheet.+}.freeze
|
7
7
|
|
8
8
|
def handles_url?(url)
|
9
9
|
!(url =~ GOOGLE_SPREADSHEET_REGEX).nil?
|
data/lib/oembed_proxy/tableau.rb
CHANGED
@@ -7,7 +7,7 @@ module OembedProxy
|
|
7
7
|
class Tableau
|
8
8
|
using InactiveSupport
|
9
9
|
|
10
|
-
TABLEAU_REGEX = %r{\Ahttps://public\.tableau\.com/(?:profile/[^/]+/vizhome|views)/([^?]+)}
|
10
|
+
TABLEAU_REGEX = %r{\Ahttps://public\.tableau\.com/(?:profile/[^/]+/vizhome|views)/([^?]+)}.freeze
|
11
11
|
|
12
12
|
def handles_url?(url)
|
13
13
|
!TABLEAU_REGEX.match(url).nil?
|
@@ -26,7 +26,7 @@ module OembedProxy
|
|
26
26
|
'provider_url' => 'https://tableau.com/',
|
27
27
|
'width' => 500,
|
28
28
|
'height' => 500,
|
29
|
-
'html' => <<~HTML
|
29
|
+
'html' => <<~HTML,
|
30
30
|
<div id="#{div_id}"></div>
|
31
31
|
<script type="text/javascript" src="https://public.tableau.com/javascripts/api/tableau-2.min.js"></script>
|
32
32
|
<script type="text/javascript">
|
data/lib/oembed_proxy/version.rb
CHANGED
data/oembed_proxy.gemspec
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
# frozen_string_literal: true
|
3
2
|
|
4
3
|
lib = File.expand_path('lib', __dir__)
|
@@ -23,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
23
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
23
|
spec.require_paths = ['lib']
|
25
24
|
|
26
|
-
spec.add_development_dependency 'bundler', '~>
|
25
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
27
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
28
27
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
29
28
|
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Johnston
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,8 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
|
112
|
-
rubygems_version: 2.6.13
|
111
|
+
rubygems_version: 3.0.3
|
113
112
|
signing_key:
|
114
113
|
specification_version: 4
|
115
114
|
summary: Simple library to manage first party, embedly, and custom oembeds
|