onebox 1.9.17 → 1.9.18

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
  SHA256:
3
- metadata.gz: 8dd067744d980d55b5691a02a3d5a9b671291d2add697972019f8b0a073b085a
4
- data.tar.gz: 9c245fab9de174ff2948f4d5a831a0713087f2b39109d09c62740c22580c9b16
3
+ metadata.gz: a0ff5ac781e43cd88fc0483d31eaf2055fdcdfd4ccb2d907ed18f6ad47d4f0b4
4
+ data.tar.gz: 4bf4df1a9a0ca82dfa799c6c12664ba0ee910e6d8379b711b9e8dced1042a723
5
5
  SHA512:
6
- metadata.gz: cfc217e8ed57cb5f15372807ea6ac8ae228c47958b9f36d7e4e15091f2462ab17e4060257be1d036b081ad47ecfab578089417d81216d583e32ba67d1b4a2e6e
7
- data.tar.gz: a845bd93b403e227ee85ea0f10af0506fc9d317356b736c5df03adc12b8d81bf6ca80f0e7600bd1f371f64ab69090ee66706fc0e2145b6a5959d47436752691f
6
+ metadata.gz: a3587f1b1dbbaa7b37e233e50739c638523f9679d7c3e2c27e2810f90ddf90aa767484b9961e58cf413b9c215412493ee6a6eca7e3fd93af76405467ea76f59f
7
+ data.tar.gz: a9dcc5539fd7492bdc22ad6a01752bdca6c7c3b4e059df1d027b5bf98a0751d2ee2261b76756bb35d5ab28a28190bb2667302462fc02ff5a3f9abd6421db0442
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- onebox (1.9.17)
4
+ onebox (1.9.18)
5
5
  htmlentities (~> 4.3)
6
6
  moneta (~> 1.0)
7
7
  multi_json (~> 1.11)
@@ -151,4 +151,4 @@ DEPENDENCIES
151
151
  twitter (~> 4.8)
152
152
 
153
153
  BUNDLED WITH
154
- 2.0.2
154
+ 2.0.1
@@ -19,12 +19,12 @@ module Onebox
19
19
  <aside class="onebox gfycat">
20
20
  <header class="source">
21
21
  <img src="https://gfycat.com/static/favicons/favicon-96x96.png" class="site-icon" width="64" height="64">
22
- <a href="#{data[:url]}" target="_blank" rel="nofollow noopener">Gfycat.com</a>
22
+ <a href="#{data[:url]}" target="_blank" rel="nofollow ugc noopener">Gfycat.com</a>
23
23
  </header>
24
24
  <article class="onebox-body">
25
25
  <h4>
26
26
  #{data[:title]} by
27
- <a href="https://gfycat.com/@#{data[:author]}" target="_blank" rel="nofollow noopener">
27
+ <a href="https://gfycat.com/@#{data[:author]}" target="_blank" rel="nofollow ugc noopener">
28
28
  <span>#{data[:author]}</span>
29
29
  </a>
30
30
  </h4>
@@ -23,7 +23,7 @@ module Onebox
23
23
  def data
24
24
  result = raw.clone
25
25
  result['link'] = link
26
-
26
+
27
27
  created_at = Time.parse(result['created_at'])
28
28
  result['created_at'] = created_at.strftime("%I:%M%p - %d %b %y %Z")
29
29
  result['created_at_date'] = created_at.strftime("%F")
@@ -14,10 +14,10 @@ module Onebox
14
14
  <aside class="onebox reddit">
15
15
  <header class="source">
16
16
  <img src="#{raw[:favicon]}" class="site-icon" width="16" height="16">
17
- <a href="#{raw[:url]}" target="_blank" rel="nofollow noopener">#{raw[:site_name]}</a>
17
+ <a href="#{raw[:url]}" target="_blank" rel="nofollow ugc noopener">#{raw[:site_name]}</a>
18
18
  </header>
19
19
  <article class="onebox-body">
20
- <h3><a href="#{raw[:url]}" target="_blank" rel="nofollow noopener">#{raw[:title]}</a></h3>
20
+ <h3><a href="#{raw[:url]}" target="_blank" rel="nofollow ugc noopener">#{raw[:title]}</a></h3>
21
21
  <div class="scale-images">
22
22
  <img src="#{raw[:image]}" class="scale-image"/>
23
23
  </div>
@@ -35,7 +35,7 @@ class Sanitize
35
35
  a_tag = env[:node]
36
36
  a_tag['href'] ||= '#'
37
37
  if a_tag['href'] =~ %r{^(?:[a-z]+:)?//}
38
- a_tag['rel'] = 'nofollow noopener'
38
+ a_tag['rel'] = 'nofollow ugc noopener'
39
39
  else
40
40
  a_tag.remove_attribute('target')
41
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.9.17"
4
+ VERSION = "1.9.18"
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.9.17
4
+ version: 1.9.18
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-10-09 00:00:00.000000000 Z
13
+ date: 2019-10-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json