onebox 1.8.30 → 1.8.31

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
- SHA256:
3
- metadata.gz: ec5f210240ae4ab90531a0c8f0ec70ac850284100c3abca4122e0f838d50ea09
4
- data.tar.gz: b7657bfb7f94a52b27c6a090b87d987bd94f8c5c35fa23e1dcdead57881baae7
2
+ SHA1:
3
+ metadata.gz: e1693aa62d3780f323374bbaf5eecdc31028ca85
4
+ data.tar.gz: b376ca6245c835e2b312a5632b5b3c83a2fafab6
5
5
  SHA512:
6
- metadata.gz: b49f8df6e349b9c6f5b5adb6b9d6b65d54d5ceae40eb93784793e6cb0a56252bb0a0e1d7749f4223f9edd418671277a53c01e243c2273050c11873eb5095f6c9
7
- data.tar.gz: 1089fbcd3dfb8406d9970c3103ae822a4d04a122a46777160fe9eaa0d55bea27c0e941cef2a433e41d0228d2bd6ef50d02295653d0d94739ecbcbbfe5641f138
6
+ metadata.gz: fc6d88b56b3ff3f7458c1174a4021e8fd89e29de91138296e5401e644f6b4685440456b8251e4f409d090894437d64a289b166081b498e15b7639e4706b1a072
7
+ data.tar.gz: 703e0d7ef41e832e169f672202db94154095b17c45cedf78559bc03786702eb6da61295ebb9cf5ba2d71680c5f16212f50eb7268925d8446734e10e592baa6c7
data/Rakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env rake
2
2
  require "rspec/core/rake_task"
3
- require "yard"
4
3
  require 'bundler'
5
4
 
6
5
  begin
@@ -14,13 +13,8 @@ end
14
13
 
15
14
  RSpec::Core::RakeTask.new(:spec)
16
15
 
17
- desc "Generate all of the docs"
18
- YARD::Rake::YardocTask.new do |config|
19
- config.files = Dir["lib/**/*.rb"]
20
- end
21
-
22
- desc "Default: run tests and generate docs"
23
- task default: [ :spec, :yard ]
16
+ desc "Default: run tests"
17
+ task default: [ :spec ]
24
18
 
25
19
  task :server do
26
20
  require 'onebox/web'
@@ -81,9 +81,8 @@ module Onebox
81
81
  end
82
82
 
83
83
  def link
84
- @url.gsub(/['\"&<>]/,
84
+ @url.gsub(/['\"<>]/,
85
85
  "'" => '&#39;',
86
- '&' => '&amp;',
87
86
  '"' => '&quot;',
88
87
  '<' => '&lt;',
89
88
  '>' => '&gt;',
@@ -3,7 +3,7 @@ module Onebox
3
3
  class AudioOnebox
4
4
  include Engine
5
5
 
6
- matches_regexp(/^(https?:)?\/\/.*\.(mp3|ogg|wav|m4a)(\?.*)?$/i)
6
+ matches_regexp(/^(https?:)?\/\/.*\.(mp3|ogg|opus|wav|m4a)(\?.*)?$/i)
7
7
 
8
8
  def always_https?
9
9
  WhitelistedGenericOnebox.host_matches(uri, WhitelistedGenericOnebox.https_hosts)
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.8.30"
2
+ VERSION = "1.8.31"
3
3
  end
@@ -31,7 +31,6 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency 'bundler', '~> 1.7'
32
32
  spec.add_development_dependency 'rake', '~> 10.4'
33
33
  spec.add_development_dependency 'rspec', '~> 3.2'
34
- spec.add_development_dependency 'yard', '~> 0.8'
35
34
  spec.add_development_dependency 'fakeweb', '~> 1.3'
36
35
  spec.add_development_dependency 'pry', '~> 0.10'
37
36
  spec.add_development_dependency 'mocha', '~> 1.1'
@@ -22,7 +22,7 @@ describe Onebox::Engine do
22
22
 
23
23
  it "escapes `link`" do
24
24
  html = OneboxEngineExample.new(%|http://foo.com/'?a=1&b=2|).to_html
25
- expect(html).not_to match(/&(?!amp;)(?!#39;)/)
25
+ expect(html).not_to match(/'/)
26
26
  end
27
27
  end
28
28
 
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.30
4
+ version: 1.8.31
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-07 00:00:00.000000000 Z
13
+ date: 2017-12-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json
@@ -152,20 +152,6 @@ dependencies:
152
152
  - - "~>"
153
153
  - !ruby/object:Gem::Version
154
154
  version: '3.2'
155
- - !ruby/object:Gem::Dependency
156
- name: yard
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - "~>"
160
- - !ruby/object:Gem::Version
161
- version: '0.8'
162
- type: :development
163
- prerelease: false
164
- version_requirements: !ruby/object:Gem::Requirement
165
- requirements:
166
- - - "~>"
167
- - !ruby/object:Gem::Version
168
- version: '0.8'
169
155
  - !ruby/object:Gem::Dependency
170
156
  name: fakeweb
171
157
  requirement: !ruby/object:Gem::Requirement
@@ -524,7 +510,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
524
510
  version: '0'
525
511
  requirements: []
526
512
  rubyforge_project:
527
- rubygems_version: 2.7.2
513
+ rubygems_version: 2.6.13
528
514
  signing_key:
529
515
  specification_version: 4
530
516
  summary: A gem for turning URLs into previews.