onebox 1.8.32 → 1.8.33

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: 3e49ab7f828cf41a7445feb4526258d894765d98
4
- data.tar.gz: dad7b82956c8e34edb9963190494ceab97af2e43
3
+ metadata.gz: a63f99147d43623365e7dd0c227bdcede9568250
4
+ data.tar.gz: 2dd6aeff0818f30e99a26e4f9fcd83de0d0596d2
5
5
  SHA512:
6
- metadata.gz: 24510f07b4ed9ae577c9201722409ea956c1de9d835c6cf06ee4958303c91a41d1e1dfc072cc8ba8930683aea34a43f416fcdbb759a19b2f0c28ec34f6483081
7
- data.tar.gz: c268644571d29f8ab3f2df61db3a7fc1c33e99a52caead8fc25b895debf7c8871e3d4de42f7844f953145e032537aa75d2e9d27e026f6ada29355267104ac05a
6
+ metadata.gz: 857b5eb3329503df3176cb6b4e03806e3bbb559494e6f52e5fa2eb684e56cc61827dfbed6956cb483658223ade154531f85e8ca64e44dcdd0c9f8058c31dd738
7
+ data.tar.gz: ad236c7747ee854314d5048f1dd9a0ad4c16916cabce48b2d8e7b516f2d5fada48c4a8fca275289cc26fb3774a51285a49d5fdb77b2a85ef34230751d8c7424a
@@ -1,3 +1,7 @@
1
+ ## 1.8.33
2
+
3
+ * add support for private vimeo links
4
+
1
5
  ## 1.8.23
2
6
 
3
7
  * added public message about ruby support (2.2 and above)
@@ -190,7 +190,7 @@ module Onebox
190
190
 
191
191
  def data
192
192
  @data ||= {
193
- title: link.sub(/^https?\:\/\/github\.com\//, ''),
193
+ title: Sanitize.fragment(URI.unescape(link).sub(/^https?\:\/\/github\.com\//, '')),
194
194
  link: link,
195
195
  # IMPORTANT NOTE: All of the other class variables are populated
196
196
  # as *side effects* of the `raw` method! They must all appear
@@ -4,7 +4,7 @@ module Onebox
4
4
  include Engine
5
5
  include StandardEmbed
6
6
 
7
- matches_regexp(/^https?:\/\/(www\.)?vimeo\.com\/\d+$/)
7
+ matches_regexp(/^https?:\/\/(www\.)?vimeo\.com\/\d+(\/[^\/]+)?$/)
8
8
  always_https
9
9
 
10
10
  def placeholder_html
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.8.32"
2
+ VERSION = "1.8.33"
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.8.32
4
+ version: 1.8.33
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-12-22 00:00:00.000000000 Z
13
+ date: 2017-12-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json