onebox 1.8.92 → 1.8.93

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: ca01813d94c0f5fe8cacd3ae6e15985d47fea9387c66bfb93b39de0907524252
4
- data.tar.gz: 5a9cb9eb02953b67663eff335ec92937d491913005b3882f6cd7f2e0c727c1e0
3
+ metadata.gz: bddc5c24a613ebb261bde4bdae37bd371bd9afbef7294f00bde75104d52e4e3d
4
+ data.tar.gz: 4e0e6ea8d69715b828e5fd224305e9b7b859e558abc72cb985ff5c173c42b682
5
5
  SHA512:
6
- metadata.gz: 3008ac2993514403041d75fa04e9ab57887070628c3cb1c2747d63f1821a49cfc6f7a84926e80a29fb9ade687a40c25cae95ccbecde4f90206c4da88fe8f3477
7
- data.tar.gz: 210cc41af9a0554999c8ca65fc6231a9a2700159cab3c182dc61df0edae65ff1cb3779283db7e7fdec5cc35a679e56320a35f613cfd5f53e4cb5371a35018f84
6
+ metadata.gz: bbff0cd3c0c99eee5045c014e46d3f3fe0cdf3cde3a45fe97a8940c1aa4a0315d4ca43824f95217c743d0a3fb5a10cf0433ceee65d5a39404c6bbfb6e5594231
7
+ data.tar.gz: 1b9c30083bb3edcf82ba1827197750bc274f2fc3fef8c81a389b2e5e651c238cbc8371d7ee0af3f03bf02b399463e8fd98731b094017a250a73fd4ef9cf0304f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- onebox (1.8.92)
4
+ onebox (1.8.93)
5
5
  htmlentities (~> 4.3)
6
6
  moneta (~> 1.0)
7
7
  multi_json (~> 1.11)
@@ -51,12 +51,12 @@ GEM
51
51
  mini_portile2 (2.4.0)
52
52
  mocha (1.8.0)
53
53
  metaclass (~> 0.0.1)
54
- moneta (1.0.0)
54
+ moneta (1.1.1)
55
55
  multi_json (1.13.1)
56
56
  multipart-post (2.0.0)
57
57
  mustache (1.1.0)
58
58
  nenv (0.3.0)
59
- nokogiri (1.10.1)
59
+ nokogiri (1.10.3)
60
60
  mini_portile2 (~> 2.4.0)
61
61
  nokogumbo (2.0.1)
62
62
  nokogiri (~> 1.8, >= 1.8.4)
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  onebox
2
2
  ======
3
3
 
4
- [![Gem Version](https://badge.fury.io/rb/onebox.png)](https://rubygems.org/gems/onebox)
5
- [![Code Climate](https://codeclimate.com/github/dysania/onebox.png)](https://codeclimate.com/github/dysania/onebox)
6
- [![Build Status](https://travis-ci.org/discourse/onebox.png)](https://travis-ci.org/discourse/onebox)
4
+ [![Gem Version](https://badge.fury.io/rb/onebox.svg)](https://rubygems.org/gems/onebox)
5
+ [![Code Climate](https://codeclimate.com/github/dysania/onebox.svg)](https://codeclimate.com/github/dysania/onebox)
6
+ [![Build Status](https://travis-ci.org/discourse/onebox.svg)](https://travis-ci.org/discourse/onebox)
7
7
 
8
8
  Onebox is a library for turning media URLs into simple HTML previews of the resource.
9
9
 
@@ -169,7 +169,7 @@ module Onebox
169
169
  url.gsub!(' ', '%20')
170
170
  url.gsub!("'", "'")
171
171
  url.gsub!('"', """)
172
- url.gsub!(/[^\w\-`.~:\/?#\[\]@!$&'\(\)*+,;=%]/, "")
172
+ url.gsub!(/[^\w\-`.~:\/?#\[\]@!$&'\(\)*+,;=%\p{M}’]/, "")
173
173
  url
174
174
  end
175
175
 
@@ -19,6 +19,10 @@ module Onebox
19
19
  "player.twitch.tv/?"
20
20
  end
21
21
 
22
+ def placeholder_html
23
+ "<span class='onebox-video-placeholder'></span>"
24
+ end
25
+
22
26
  def to_html
23
27
  "<iframe src=\"//#{base_url}#{query_params}&autoplay=false\" width=\"620\" height=\"378\" frameborder=\"0\" style=\"overflow: hidden;\" scrolling=\"no\" allowfullscreen=\"allowfullscreen\"></iframe>"
24
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.8.92"
4
+ VERSION = "1.8.93"
5
5
  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.8.92
4
+ version: 1.8.93
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: 2019-05-31 00:00:00.000000000 Z
13
+ date: 2019-06-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json