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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d61aec782640e66703f01c71dfcf3e7fd88445498ba35cc0edb1d69b6c2ca1c6
4
- data.tar.gz: 83f98a2143e5b2461fc0dbd057a7719c59053b758eae8e78b5d0f792d66191f2
3
+ metadata.gz: 3c971144b04f02227444c36d711fb95b94dbcfe2a9127d2b89e15b194cb26296
4
+ data.tar.gz: ab3c66a5322c9d903ba28b00300b31191a1633ddd5baf7c4f471de8a90003286
5
5
  SHA512:
6
- metadata.gz: d945fc6e2b2f3802559876266251c908c8f6fc77e477952f6ba98179b84696295396cc34774bf6d4a50f253954519be973cca580f1d8575ebb8f8986c7c733af
7
- data.tar.gz: 4e5382c7b4f9ae02b32a974a4999058a8884494e89634d99bc093f5f07b84b5c8507fca3eb1eb2a4a80c5ece241ec58cc15e2e0dcf25f035fb9c1cbfe6fb165c
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, **add_params.transform_values { |v| URI.encode(v) }).html.html_safe
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
  ""
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Oembed
3
- VERSION = '1.0.1'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
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.1
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: 2020-05-21 00:00:00.000000000 Z
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.1.2
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:
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- notifications:
2
- email: false
3
-
4
- rvm:
5
- - 2.6.3
6
-
7
- env:
8
- global:
9
- - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
10
- - RAILS_VERSION=5.2.3