onebox 1.9.27.1 → 1.9.27.2

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: 1470350e49c87c66bc9ac96d369d2983a40c880a0ec95d29fb7737de390bed6d
4
- data.tar.gz: 3e69d589775910536dcadd51e7f89e1741928768c3ef3104ab3a78600dd9ad79
3
+ metadata.gz: fca47c06a126297d920bed356ad801c63eeb0d6f43b522f39d3216ec20484315
4
+ data.tar.gz: 5e5beb3d0c7c5a06223f7477bdf7f7576a2931f136c12c77e7cdc26c450a9369
5
5
  SHA512:
6
- metadata.gz: '08205579aa73aa60f29655cb884e0acd06923415f5a25dcbd4af0b6703a983afa6829aa2659d85bda94147487af78c921d6828a7f9c45044d7058ac154193f4f'
7
- data.tar.gz: e37859f81286f9fe364865ae810a1f0f3910d8eb0fa75f0fba9e15c5db3215fc4b18107b00a1830cf8c294972058da972a53dfcf7606ecf13aea713e01120a8a
6
+ metadata.gz: 8d1a204e8e952f4146988dce521f16a8729a31798671befdb56f2e13513744f63c94208edbeb0a7212c1b08d73c4b3224053f1d0a569fd754be3502d7c7e50a2
7
+ data.tar.gz: b0f9a0bff3d4013d492e7578034fb520f6f9cab4bd57f7c389e5a39b25801461582f0bc7c6ee432bb4ea2665c444bf3f980319343bd1d57f665643bd1e0881c7
@@ -25,7 +25,7 @@ module Onebox
25
25
 
26
26
  def link_html(og)
27
27
  <<-HTML
28
- <a href='#{og.url}' target='_blank'>
28
+ <a href='#{og.url}' target='_blank' rel='noopener'>
29
29
  #{og.title}
30
30
  </a>
31
31
  HTML
@@ -43,7 +43,7 @@ module Onebox
43
43
 
44
44
  def image_html(og)
45
45
  <<-HTML
46
- <a href='#{og.url}' target='_blank' class='onebox'>
46
+ <a href='#{og.url}' target='_blank' class='onebox' rel='noopener'>
47
47
  <img src='#{og.image}' #{og.title_attr} alt='CloudApp' width='480'>
48
48
  </a>
49
49
  HTML
@@ -26,7 +26,7 @@ module Onebox
26
26
 
27
27
  <<-HTML
28
28
  <div class='onebox flickr-album'>
29
- <a href='#{escaped_url}' target='_blank'>
29
+ <a href='#{escaped_url}' target='_blank' rel='noopener'>
30
30
  <span class='outer-box' style='max-width:#{og.image_width}px'>
31
31
  <span class='inner-box'>
32
32
  <span class='album-title'>#{album_title}</span>
@@ -42,7 +42,7 @@ module Onebox
42
42
  escaped_url = ::Onebox::Helpers.normalize_url_for_output(url)
43
43
 
44
44
  <<-HTML
45
- <a href='#{escaped_url}' target='_blank' class="onebox">
45
+ <a href='#{escaped_url}' target='_blank' rel='noopener' class="onebox">
46
46
  <img src='#{og.get_secure_image}' #{og.title_attr} alt='Imgur' height='#{og.image_height}' width='#{og.image_width}'>
47
47
  </a>
48
48
  HTML
@@ -13,7 +13,7 @@ module Onebox
13
13
  oembed = get_oembed
14
14
 
15
15
  <<-HTML
16
- <a href="#{oembed.url}" target="_blank" class="onebox">
16
+ <a href="#{oembed.url}" target="_blank" rel="noopener" class="onebox">
17
17
  <img src="#{oembed.url}" width="#{oembed.width}" height="#{oembed.height}" #{oembed.title_attr}>
18
18
  </a>
19
19
  HTML
@@ -33,7 +33,7 @@ module Onebox
33
33
 
34
34
  <<-HTML
35
35
  <div class='onebox google-photos-album'>
36
- <a href='#{escaped_url}' target='_blank'>
36
+ <a href='#{escaped_url}' target='_blank' rel='noopener'>
37
37
  <span class='outer-box' style='width:#{og.image_width}px'>
38
38
  <span class='inner-box'>
39
39
  <span class='album-title'>#{Onebox::Helpers.truncate(album_title, 80)}</span>
@@ -49,7 +49,7 @@ module Onebox
49
49
  escaped_url = ::Onebox::Helpers.normalize_url_for_output(url)
50
50
 
51
51
  <<-HTML
52
- <a href='#{escaped_url}' target='_blank' class="onebox">
52
+ <a href='#{escaped_url}' target='_blank' rel='noopener' class="onebox">
53
53
  <img src='#{og.get_secure_image}' #{og.title_attr} alt='Google Photos' height='#{og.image_height}' width='#{og.image_width}'>
54
54
  </a>
55
55
  HTML
@@ -19,7 +19,7 @@ module Onebox
19
19
 
20
20
  escaped_url = ::Onebox::Helpers.normalize_url_for_output(@url)
21
21
  <<-HTML
22
- <a href="#{escaped_url}" target="_blank" class="onebox">
22
+ <a href="#{escaped_url}" target="_blank" rel="noopener" class="onebox">
23
23
  <img src="#{escaped_url}">
24
24
  </a>
25
25
  HTML
@@ -34,7 +34,7 @@ module Onebox
34
34
 
35
35
  <<-HTML
36
36
  <div class='onebox imgur-album'>
37
- <a href='#{escaped_url}' target='_blank'>
37
+ <a href='#{escaped_url}' target='_blank' rel='noopener'>
38
38
  <span class='outer-box' style='width:#{og.image_width}px'>
39
39
  <span class='inner-box'>
40
40
  <span class='album-title'>#{album_title}</span>
@@ -57,7 +57,7 @@ module Onebox
57
57
  escaped_url = ::Onebox::Helpers.normalize_url_for_output(url)
58
58
 
59
59
  <<-HTML
60
- <a href='#{escaped_url}' target='_blank' class="onebox">
60
+ <a href='#{escaped_url}' target='_blank' rel='noopener' class="onebox">
61
61
  <img src='#{og.get_secure_image}' #{og.title_attr} alt='Imgur' height='#{og.image_height}' width='#{og.image_width}'>
62
62
  </a>
63
63
  HTML
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.9.27.1"
4
+ VERSION = "1.9.27.2"
5
5
  end
@@ -4,10 +4,10 @@
4
4
  <img src="{{favicon}}" class="site-icon"/>
5
5
  {{/favicon}}
6
6
  {{#article_published_time}}
7
- <a href="{{link}}" target='_blank' title="{{article_published_time_title}}">{{domain}} &ndash; {{article_published_time}}</a>
7
+ <a href="{{link}}" target='_blank' rel='noopener' title="{{article_published_time_title}}">{{domain}} &ndash; {{article_published_time}}</a>
8
8
  {{/article_published_time}}
9
9
  {{^article_published_time}}
10
- <a href="{{link}}" target='_blank'>{{domain}}</a>
10
+ <a href="{{link}}" target='_blank' rel='noopener'>{{domain}}</a>
11
11
  {{/article_published_time}}
12
12
  </header>
13
13
  <article class="onebox-body">
@@ -1,6 +1,6 @@
1
1
  {{#image}}<img src="{{image}}" class="thumbnail"/>{{/image}}
2
2
 
3
- <h3><a href='{{link}}' target='_blank'>{{title}}</a></h3>
3
+ <h3><a href='{{link}}' target='_blank' rel='noopener'>{{title}}</a></h3>
4
4
  {{#by_info}}<b>{{by_info}}</b>{{/by_info}}
5
5
  <p>{{description}}</p>
6
6
  <p>
@@ -1,4 +1,4 @@
1
- <h4><a href="{{link}}" target="_blank">{{title}}</a></h4>
1
+ <h4><a href="{{link}}" target="_blank" rel="noopener">{{title}}</a></h4>
2
2
  {{^has_lines}}
3
3
  {{#model_file}}
4
4
  <iframe class="render-viewer" width="{{width}}" height="{{height}}" src="{{content}}" sandbox="allow-scripts allow-same-origin allow-top-navigation ">
@@ -40,5 +40,5 @@ pre.onebox code li.selected{
40
40
  {{/has_lines}}
41
41
 
42
42
  {{#truncated}}
43
- This file has been truncated. <a href="{{link}}" target="_blank">show original</a>
43
+ This file has been truncated. <a href="{{link}}" target="_blank" rel="noopener">show original</a>
44
44
  {{/truncated}}
@@ -5,7 +5,7 @@
5
5
 
6
6
  <div class="github-info-container">
7
7
  <h4>
8
- <a href="{{html_url}}" target="_blank">{{title}}</a>
8
+ <a href="{{html_url}}" target="_blank" rel="noopener">{{title}}</a>
9
9
  </h4>
10
10
 
11
11
  <div class="github-info">
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
 
16
16
  <div class="user">
17
- <a href="{{author.html_url}}" target="_blank">
17
+ <a href="{{author.html_url}}" target="_blank" rel="noopener">
18
18
  <img alt="{{author.login}}" src="{{author.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
19
19
  {{author.login}}
20
20
  </a>
@@ -22,7 +22,7 @@
22
22
  </div>
23
23
 
24
24
  <div class="lines" title="changed {{files.length}} files with {{stats.additions}} additions and {{stats.deletions}} deletions">
25
- <a href="{{html_url}}" target="_blank">
25
+ <a href="{{html_url}}" target="_blank" rel="noopener">
26
26
  <span class="added">+{{stats.additions}}</span>
27
27
  <span class="removed">-{{stats.deletions}}</span>
28
28
  </a>
@@ -1,12 +1,12 @@
1
- <h4><a href="{{link}}" target="_blank">{{link}}</a></h4>
1
+ <h4><a href="{{link}}" target="_blank" rel="noopener">{{link}}</a></h4>
2
2
  {{#gist_files}}
3
3
  <h5>{{filename}}</h5>
4
4
  <pre><code class='{{language}}'>{{content}}</code></pre>
5
- {{#truncated?}}This file has been truncated. <a href="{{link}}" target="_blank">show original</a>{{/truncated?}}
5
+ {{#truncated?}}This file has been truncated. <a href="{{link}}" target="_blank" rel="noopener">show original</a>{{/truncated?}}
6
6
  {{/gist_files}}
7
7
 
8
8
  <p>
9
9
  {{#truncated_files?}}
10
- There are more than three files. <a href="{{link}}" target="_blank">show original</a>
10
+ There are more than three files. <a href="{{link}}" target="_blank" rel="noopener">show original</a>
11
11
  {{/truncated_files?}}
12
12
  </p>
@@ -5,7 +5,7 @@
5
5
 
6
6
  <div class="github-info-container">
7
7
  <h4>
8
- <a href="{{link}}" target="_blank">{{title}}</a>
8
+ <a href="{{link}}" target="_blank" rel="noopener">{{title}}</a>
9
9
  </h4>
10
10
 
11
11
  <div class="github-info">
@@ -20,7 +20,7 @@
20
20
  {{/closed_at}}
21
21
 
22
22
  <div class="user">
23
- <a href="{{user.html_url}}" target="_blank">
23
+ <a href="{{user.html_url}}" target="_blank" rel="noopener">
24
24
  <img alt="{{user.login}}" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
25
25
  {{user.login}}
26
26
  </a>
@@ -5,7 +5,7 @@
5
5
 
6
6
  <div class="github-info-container">
7
7
  <h4>
8
- <a href="{{html_url}}" target="_blank">{{title}}</a>
8
+ <a href="{{html_url}}" target="_blank" rel="noopener">{{title}}</a>
9
9
  </h4>
10
10
 
11
11
  <div class="branches">
@@ -18,14 +18,14 @@
18
18
  </div>
19
19
 
20
20
  <div class="user">
21
- <a href="{{user.html_url}}" target="_blank">
21
+ <a href="{{user.html_url}}" target="_blank" rel="noopener">
22
22
  <img alt="{{user.login}}" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
23
23
  {{user.login}}
24
24
  </a>
25
25
  </div>
26
26
 
27
27
  <div class="lines" title="{{commits}} commits changed {{changed_files}} files with {{additions}} additions and {{deletions}} deletions">
28
- <a href="{{html_url}}/files" target="_blank">
28
+ <a href="{{html_url}}/files" target="_blank" rel="noopener">
29
29
  <span class="added">+{{additions}}</span>
30
30
  <span class="removed">-{{deletions}}</span>
31
31
  </a>
@@ -33,4 +33,4 @@
33
33
  </div>
34
34
 
35
35
  </div>
36
- </div>
36
+ </div>
@@ -1,4 +1,4 @@
1
- <h4><a href="{{link}}" target="_blank">{{title}}</a></h4>
1
+ <h4><a href="{{link}}" target="_blank" rel="noopener">{{title}}</a></h4>
2
2
  {{^has_lines}}
3
3
  <pre><code class='{{lang}}'>{{content}}</code></pre>
4
4
  {{/has_lines}}
@@ -10,5 +10,5 @@
10
10
  {{/has_lines}}
11
11
 
12
12
  {{#truncated}}
13
- This file has been truncated. <a href="{{link}}" target="_blank">show original</a>
13
+ This file has been truncated. <a href="{{link}}" target="_blank" rel="noopener">show original</a>
14
14
  {{/truncated}}
@@ -1,5 +1,5 @@
1
- <a href='{{link}}' target="_blank"><span class='googledocs-onebox-logo g-{{type}}-logo'></span></a>
1
+ <a href='{{link}}' target="_blank" rel="noopener"><span class='googledocs-onebox-logo g-{{type}}-logo'></span></a>
2
2
 
3
- <h3><a href='{{link}}' target="_blank">{{title}}</a></h3>
3
+ <h3><a href='{{link}}' target="_blank" rel="noopener">{{title}}</a></h3>
4
4
 
5
5
  <p>{{description}}</p>
@@ -1,9 +1,9 @@
1
1
  {{^image}}
2
- <a href='{{link}}' target="_blank"><span class='googledocs-onebox-logo g-drive-logo'></span></a>
2
+ <a href='{{link}}' target="_blank" rel="noopener"><span class='googledocs-onebox-logo g-drive-logo'></span></a>
3
3
  {{/image}}
4
4
 
5
5
  {{#image}}<img src="{{image}}" class="thumbnail"/>{{/image}}
6
6
 
7
- <h3><a href="{{link}}" target="_blank">{{title}}</a></h3>
7
+ <h3><a href="{{link}}" target="_blank" rel="noopener">{{title}}</a></h3>
8
8
 
9
9
  <p>{{description}}</p>
@@ -1,8 +1,8 @@
1
- <h3><a href="{{{link}}}" target="_blank">{{title}}</a></h3>
1
+ <h3><a href="{{{link}}}" target="_blank" rel="noopener">{{title}}</a></h3>
2
2
 
3
3
  {{#image}}
4
4
  <div class="instagram-images">
5
- {{#video_link}} <a href="{{{video_link}}}" target="_blank"> {{/video_link}}
5
+ {{#video_link}} <a href="{{{video_link}}}" target="_blank" rel="noopener"> {{/video_link}}
6
6
  <img class="instagram-image" src="{{{image}}}"/>
7
7
  {{#video_link}} <span class="instagram-video-icon"></span></a> {{/video_link}}
8
8
  </div>
@@ -1,3 +1,3 @@
1
- <h4><a href="{{link}}" target="_blank">{{link}}</a></h4>
1
+ <h4><a href="{{link}}" target="_blank" rel="noopener">{{link}}</a></h4>
2
2
  <pre><code class='lang-auto'>{{content}}</code></pre>
3
- {{#truncated?}}This paste has been truncated. <a href="{{link}}" target="_blank">show original</a>{{/truncated?}}
3
+ {{#truncated?}}This paste has been truncated. <a href="{{link}}" target="_blank" rel="noopener">show original</a>{{/truncated?}}
@@ -1,4 +1,4 @@
1
- <a href='{{link}}' target="_blank"><span class='pdf-onebox-logo'></span></a>
2
- <h3><a href='{{link}}' target="_blank">{{title}}</a></h3>
1
+ <a href='{{link}}' target="_blank" rel="noopener"><span class='pdf-onebox-logo'></span></a>
2
+ <h3><a href='{{link}}' target="_blank" rel="noopener">{{title}}</a></h3>
3
3
 
4
4
  {{#filesize}}<p class='filesize'>{{filesize}}</p>{{/filesize}}
@@ -1,5 +1,5 @@
1
1
  <h4>
2
- <a href="{{link}}" target="_blank">{{title}}</a>
2
+ <a href="{{link}}" target="_blank" rel="noopener">{{title}}</a>
3
3
  </h4>
4
4
 
5
5
  <div class="date">
@@ -1,10 +1,10 @@
1
1
  {{#owner.profile_image}}
2
- <a href="{{owner.link}}" target="_blank">
2
+ <a href="{{owner.link}}" target="_blank" rel="noopener">
3
3
  <img alt="{{owner.display_name}}" src="{{owner.profile_image}}" class="thumbnail onebox-avatar">
4
4
  </a>
5
5
  {{/owner.profile_image}}
6
6
  <h4>
7
- <a href="{{link}}" target="_blank">{{{title}}}</a>
7
+ <a href="{{link}}" target="_blank" rel="noopener">{{{title}}}</a>
8
8
  </h4>
9
9
 
10
10
  <div class="tags">
@@ -14,8 +14,8 @@
14
14
  <div class="date">
15
15
  {{#is_question}}asked by{{/is_question}}
16
16
  {{#is_answer}}answered by{{/is_answer}}
17
- <a href="{{owner.link}}" target="_blank">
17
+ <a href="{{owner.link}}" target="_blank" rel="noopener">
18
18
  {{owner.display_name}}
19
19
  </a>
20
- on <a href="{{link}}" target="_blank">{{creation_date}}</a>
20
+ on <a href="{{link}}" target="_blank" rel="noopener">{{creation_date}}</a>
21
21
  </div>
@@ -1,11 +1,11 @@
1
1
  {{#avatar}}<img src="{{avatar}}" class="thumbnail onebox-avatar">{{/avatar}}
2
2
 
3
- <h4><a href='{{link}}' target='_blank'>{{title}}</a></h4>
3
+ <h4><a href='{{link}}' target='_blank' rel='noopener'>{{title}}</a></h4>
4
4
 
5
5
  <div class="tweet"> {{{tweet}}}{{#quoted_tweet}}<div class="quoted"><a class="quoted-link" href="{{quoted_link}}"><p class="quoted-title">{{quoted_full_name}} <span>@{{quoted_screen_name}}</span></p></a><div>{{quoted_tweet}}</div></div>{{/quoted_tweet}}</div>
6
6
 
7
7
  <div class='date'>
8
- <a href="{{link}}" target="_blank">{{timestamp}}</a>
8
+ <a href="{{link}}" target="_blank" rel="noopener">{{timestamp}}</a>
9
9
  {{#likes}}
10
10
  <span class="like">
11
11
  <svg viewBox="0 0 512 512" width="14px" height="16px" aria-hidden="true">
@@ -1,4 +1,4 @@
1
- <h3><a href='{{link}}' target='_blank'>{{title}}</a></h3>
1
+ <h3><a href='{{link}}' target='_blank' rel='noopener'>{{title}}</a></h3>
2
2
  {{#by_info}}<b>{{by_info}}</b>{{/by_info}}
3
3
  <p>{{description}}</p>
4
4
 
@@ -1,6 +1,6 @@
1
1
  {{#image}}<img src="{{image}}" class="thumbnail"/>{{/image}}
2
2
 
3
- <h3><a href='{{link}}' target="_blank">{{title}}</a></h3>
3
+ <h3><a href='{{link}}' target="_blank" rel="noopener">{{title}}</a></h3>
4
4
 
5
5
  <p>{{description}}</p>
6
6
 
@@ -1,3 +1,3 @@
1
1
  {{#image}}<img src="{{image}}" class="thumbnail"/>{{/image}}
2
2
 
3
- <h3><a href='{{link}}' target='_blank'>{{title}}</a></h3>
3
+ <h3><a href='{{link}}' target='_blank' rel='noopener'>{{title}}</a></h3>
@@ -1,5 +1,5 @@
1
1
  {{#image}}<img src="{{image}}" class="thumbnail"/>{{/image}}
2
2
 
3
- <h3><a href='{{link}}' target='_blank'>{{title}}</a></h3>
3
+ <h3><a href='{{link}}' target='_blank' rel='noopener'>{{title}}</a></h3>
4
4
 
5
5
  <p>{{description}}</p>
@@ -1,4 +1,4 @@
1
- <h3><a href='{{link}}' target='_blank'>{{title}}</a></h3>
1
+ <h3><a href='{{link}}' target='_blank' rel='noopener'>{{title}}</a></h3>
2
2
 
3
3
  {{#image}}
4
4
  <div class="xkcd-image"><img src="{{image}}"/></div>
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.27.1
4
+ version: 1.9.27.2
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: 2020-03-22 00:00:00.000000000 Z
13
+ date: 2020-04-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: addressable