blacklight-oembed 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +30 -0
- data/app/controllers/blacklight/oembed/embed_controller.rb +2 -2
- data/lib/blacklight/oembed/version.rb +1 -1
- metadata +8 -8
- data/.travis.yml +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c971144b04f02227444c36d711fb95b94dbcfe2a9127d2b89e15b194cb26296
|
4
|
+
data.tar.gz: ab3c66a5322c9d903ba28b00300b31191a1633ddd5baf7c4f471de8a90003286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41af86fc4a6389c6e42168e5b59345c6c0ec45b05cd27585f5af8a8fdb2253ef55313062bd70f837c5522062627d258a125308858520c0ec980da33b593c1de0
|
7
|
+
data.tar.gz: 6cac86875cdfc798411c1fa5a433740521610712a32473c1d32b77743813ad7b5eebfd2e47c67d268cfc6ed6ab956f06eb7340fd25b5d321c167023eb5663107
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ master ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
tests_rails:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
matrix:
|
14
|
+
ruby: [2.7, 3.0]
|
15
|
+
rails_version: [5.2.4.4, 6.0.3.2, 6.1.1]
|
16
|
+
exclude:
|
17
|
+
- ruby: '3.0'
|
18
|
+
rails_version: '5.2.4.4'
|
19
|
+
env:
|
20
|
+
RAILS_VERSION: ${{ matrix.rails_version }}
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Set up Ruby
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
- name: Install dependencies
|
28
|
+
run: bundle install
|
29
|
+
- name: Run tests
|
30
|
+
run: bundle exec rake
|
@@ -7,9 +7,9 @@ module Blacklight::Oembed
|
|
7
7
|
|
8
8
|
private
|
9
9
|
|
10
|
-
def get_embed_content(url, add_params)
|
10
|
+
ruby2_keywords def get_embed_content(url, add_params = {})
|
11
11
|
begin
|
12
|
-
OEmbed::Providers.get(url,
|
12
|
+
OEmbed::Providers.get(url, add_params.transform_values { |v| CGI.escape(v) }).html.html_safe
|
13
13
|
rescue OEmbed::NotFound
|
14
14
|
response.status = 400
|
15
15
|
""
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blacklight-oembed
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -192,15 +192,15 @@ dependencies:
|
|
192
192
|
- - ">="
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 1.5.0
|
195
|
-
description:
|
195
|
+
description:
|
196
196
|
email:
|
197
197
|
- cabeer@stanford.edu
|
198
198
|
executables: []
|
199
199
|
extensions: []
|
200
200
|
extra_rdoc_files: []
|
201
201
|
files:
|
202
|
+
- ".github/workflows/ruby.yml"
|
202
203
|
- ".gitignore"
|
203
|
-
- ".travis.yml"
|
204
204
|
- Gemfile
|
205
205
|
- LICENSE
|
206
206
|
- README.md
|
@@ -247,7 +247,7 @@ homepage: https://github.com/sul-dlss/blacklight-oembed
|
|
247
247
|
licenses:
|
248
248
|
- Apache 2.0
|
249
249
|
metadata: {}
|
250
|
-
post_install_message:
|
250
|
+
post_install_message:
|
251
251
|
rdoc_options: []
|
252
252
|
require_paths:
|
253
253
|
- lib
|
@@ -262,8 +262,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
262
|
- !ruby/object:Gem::Version
|
263
263
|
version: '0'
|
264
264
|
requirements: []
|
265
|
-
rubygems_version: 3.
|
266
|
-
signing_key:
|
265
|
+
rubygems_version: 3.2.3
|
266
|
+
signing_key:
|
267
267
|
specification_version: 4
|
268
268
|
summary: Oembed display for Blacklight
|
269
269
|
test_files:
|