onebox 1.7.4 → 1.7.5

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
  SHA1:
3
- metadata.gz: 31e3e276aeb010031132237bf3e98b6b75901de0
4
- data.tar.gz: 1619ea75ad1e8b795b6a932f6b2deabdcbb51f73
3
+ metadata.gz: 9b37cb209211e4d83b000bf4143ceb893ee46c1d
4
+ data.tar.gz: ff64989d2bb635abd2178b8a67e6fc47aab94aaf
5
5
  SHA512:
6
- metadata.gz: 4e2b1ef745998ec0cb12dee9b7454e19b834fc9fa7b895c95e8b4bb17b18926abbf1cbae6ce77d9d36a8440ab8bd460a070514f31aa4d56fd0c9a660a3c72eb4
7
- data.tar.gz: d3ee07279fede7a2ef9dd8ebbd9410d19434c002a113950797a01afb1ae6690a12835bea7525ee358bcfc8a7f9f22ceb2dbfe4d2fa213c2a0b50da8cd592cd61
6
+ metadata.gz: 81943e75131d21db1bccf904a7549277c390b5c0a000b203a988292a55454c18100fb01c39054bec04ac5ffd51cc88cbe22fc6ab58fe2e43b50949eaeb5ad886
7
+ data.tar.gz: 6125b92caca985a46e607e94b00df093840be649353191914e11b81071ea874c394860a1dc159e1862d2e6554332860839a63cea13da91d55f5bc6830b24fa0c
@@ -4,7 +4,7 @@ module Onebox
4
4
  include Engine
5
5
  include StandardEmbed
6
6
 
7
- matches_regexp(/^https?:\/\/.*\.bandcamp\.com\/album\//)
7
+ matches_regexp(/^https?:\/\/.*\.bandcamp\.com\/(album|track)\//)
8
8
  always_https
9
9
 
10
10
  def placeholder_html
@@ -12,6 +12,7 @@ class Sanitize
12
12
  'iframe' => %w[allowfullscreen frameborder height scrolling src width],
13
13
  'source' => %w[src type],
14
14
  'video' => %w[controls height loop width],
15
+ 'div' => [:data], # any data-* attributes
15
16
  ),
16
17
 
17
18
  protocols: merge(RELAXED[:protocols],
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.7.4"
2
+ VERSION = "1.7.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.4
4
+ version: 1.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-01-18 00:00:00.000000000 Z
13
+ date: 2017-01-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json
@@ -486,7 +486,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
486
486
  version: '0'
487
487
  requirements: []
488
488
  rubyforge_project:
489
- rubygems_version: 2.5.1
489
+ rubygems_version: 2.6.8
490
490
  signing_key:
491
491
  specification_version: 4
492
492
  summary: A gem for turning URLs into previews.