onebox 1.6.6 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6930d4a5a9ef64e464c152dbb2529f05a371575
4
- data.tar.gz: ae19e58e8fda95f03a22501f5a4bfddb3727dfec
3
+ metadata.gz: 22237e827c83b06b67a2135ae66f75690da5f87b
4
+ data.tar.gz: 0697141bd0aa6f4197cd68de1fcb74c8c4407fb7
5
5
  SHA512:
6
- metadata.gz: 090d8eed2fba3e8c9be2ad047439a061b44c8e9ac65c874007579cf1f5e2d1e6f950208cfc2c1e451772b11ff5818534e7745bde83e916f7e4aaa408c7121e01
7
- data.tar.gz: 20c3b56077aa58cabd1ee7483f67d6436d678f4c5a246fa350f4d26c18faed50b1188a65d4a3bedfd44a1cbc45300f960b2e1d7d2fed3b2281b7f93938364268
6
+ metadata.gz: e1b2de7ce31a701e60a1ab238d406484a16a3660039530ac21054e8561a4bc1dcdb313ee37b66fb580c8709b4e058806c70b3a84e00f01dcc8a88a4c253ee94c
7
+ data.tar.gz: b3622e546b4c1e68578416c66ff7105e0ed4496aee3258837a70f61c34ea275a9f4b9a8af8ae0eb03ab9740260f67a885f1b8df9aeb96f66e5f0267a78501cc4
@@ -75,8 +75,9 @@ module Onebox
75
75
  def self.normalize_url_for_output(url)
76
76
  url = url.dup
77
77
  # expect properly encoded url, remove any unsafe chars
78
+ url.gsub!("'", "'")
79
+ url.gsub!('"', """)
78
80
  url.gsub!(/[^a-zA-Z0-9%\-`._~:\/?#\[\]@!$&'\(\)*+,;=]/, "")
79
- url.gsub!("'", """)
80
81
  url
81
82
  end
82
83
 
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.6.6"
2
+ VERSION = "1.6.7"
3
3
  end
@@ -38,6 +38,6 @@ describe Onebox::Engine::ImageOnebox do
38
38
  end
39
39
 
40
40
  it "doesn't inline single quotes" do
41
- expect(Onebox.preview("http://host/path/to/Image'withquote.png").to_s).to match(/Image"withquote/)
41
+ expect(Onebox.preview("http://host/path/to/Image'withquote.png").to_s).to match(/Image'withquote/)
42
42
  end
43
43
  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.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta