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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b60450600751a7c716672960dcc9fe79737e22d9
4
- data.tar.gz: 558ec9041598e1e621d53b8beb6c3fbf5e6733af
2
+ SHA256:
3
+ metadata.gz: b687b1aea468ca341b4f37089e7da5aad1b574f75310367d34c7370fd27489b4
4
+ data.tar.gz: 2fe9fa0767c3d78a01103e7d70da42f464191b0e14eeb0a0f297c40149c96d5f
5
5
  SHA512:
6
- metadata.gz: ce83b15ee3968ed0b05039dbfe64268c66a00e54f496248678930eed363f047bace1acde256c8be7e4d4530d5b130bfb249c9486071abe4598b0155d8e188460
7
- data.tar.gz: 86cef85c40bd43e7e210645e05bf3ba853613d9b167411beca6a557b93cf936cd5542ef738a2dd043feda4a36e0b0b8d29b55ae7a4b442ccec052ee2d3df0b8a
6
+ metadata.gz: edb22346ed8c006aa9a16d5d299443b3bdc52e00a1984184bfd3c73bc76f0b1beae9d029ad8b103da93ed2aeac204fb8472ed909fc4dcb04301c0a3a72ae1612
7
+ data.tar.gz: 61bde6dbebcb7e63db71ad35c270bcbbb6319a7b97b9044e3b1cdeb3fd26802fb9757fc6098b571915f820f1d25875a7899db0e33a8e36c899d752b8cd13bb52
@@ -1,9 +1,8 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.5
5
- - 2.4
6
- - 2.3
4
+ - 2.7
5
+ - 2.6
7
6
  before_install: gem install bundler
8
7
  script:
9
8
  - 'bin/rspec'
@@ -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
@@ -5,7 +5,7 @@ source 'https://rubygems.org'
5
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
7
7
  group :development do
8
- gem 'rubocop', '~> 0.54.0'
8
+ gem 'rubocop', '~> 0.78'
9
9
  end
10
10
 
11
11
  group :test do
@@ -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?
@@ -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">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OembedProxy
4
- VERSION = '0.1.4'
4
+ VERSION = '0.2.0'
5
5
  end
@@ -647,3 +647,5 @@
647
647
  #\Ahttp://bcove.me/.*#i
648
648
  #\Ahttps://play\.radiopublic\.com/.*#i
649
649
  #\Ahttps://www.qzzr.com/c/quiz/.*#i
650
+ #\Ahttp://datawrapper.dwcdn.net/.*#i
651
+ #\Ahttps://datawrapper.dwcdn.net/.*#i
@@ -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', '~> 1.16'
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.1.4
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: 2018-11-21 00:00:00.000000000 Z
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: '1.16'
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: '1.16'
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
- rubyforge_project:
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