onebox 1.9.13 → 1.9.14

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: 209e487fdbdcaee7a72c0c97a21df4dc5792d367e3b276d70621d6fcbb74e975
4
- data.tar.gz: f53cda43c6b5fdcb90d42288ba87ceb3b5e0207f0dc94d60d31c3309b9401cfb
3
+ metadata.gz: c6a93ecfd8ee6009929592cf6fa74f3ee1184586f7501820878aa2880804775a
4
+ data.tar.gz: 04b1c9076e2e1a3f28b9cb9676766b89afddd96e5ab5664d98eda80912f5debf
5
5
  SHA512:
6
- metadata.gz: 497b004bb9077ae8e961321899af86bb7667d102f3c71ccfa39e2b337de63b2b23c0fb34b46c049353d4a72aef331dd2420a8cc96a6c8becf33842c63b3c3f80
7
- data.tar.gz: 3896d227c14f6ab1d2381a75814514919182eefc2ec3a2bc359c11980890b929f9b38391d7d7b8675c4f8d06faeb03500b01cb78d73fb9dee4eec97f059fa3c3
6
+ metadata.gz: b8b1411c38ee3426940664a7b31fd0110ea5fef92a5c6fcd180c138d8919feddae5daea59280186015f7150d303e36690ee47094a84c1dd15fd3445c886023f1
7
+ data.tar.gz: b61dd1d2076e6a635f69e2bf3ffbb091f6de71bb16347a56c361b192a2a485f4d085d3270e567c58e72bbf9e13185c7f9765b8693c0b899397c58e63f944cd92
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- onebox (1.9.13)
4
+ onebox (1.9.14)
5
5
  htmlentities (~> 4.3)
6
6
  moneta (~> 1.0)
7
7
  multi_json (~> 1.11)
@@ -104,7 +104,7 @@ GEM
104
104
  ruby-progressbar (~> 1.7)
105
105
  unicode-display_width (~> 1.4.0)
106
106
  ruby-progressbar (1.10.0)
107
- sanitize (5.0.0)
107
+ sanitize (5.1.0)
108
108
  crass (~> 1.0.2)
109
109
  nokogiri (>= 1.8.0)
110
110
  nokogumbo (~> 2.0)
@@ -34,7 +34,7 @@ module Onebox
34
34
  ulink = URI(link)
35
35
  {
36
36
  link: @url,
37
- title: "Issue: " + @raw["title"],
37
+ title: @raw["title"],
38
38
  content: short_content.gsub("<br>", "\n"),
39
39
  labels: @raw["labels"],
40
40
  user: @raw['user'],
@@ -134,6 +134,9 @@ module Onebox
134
134
  # https://developers.google.com/youtube/player_parameters#rel
135
135
  p['rel'] = 0 if params.include?('rel')
136
136
 
137
+ # https://developers.google.com/youtube/player_parameters#enablejsapi
138
+ p['enablejsapi'] = params['enablejsapi'] if params.include?('enablejsapi')
139
+
137
140
  URI.encode_www_form(p)
138
141
  end
139
142
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.9.13"
4
+ VERSION = "1.9.14"
5
5
  end
@@ -1,10 +1,11 @@
1
- {{#author.avatar_url}}
2
- <a href="{{author.html_url}}" target="_blank">
3
- <img alt="{{author.login}}" src="{{author.avatar_url}}" class="thumbnail onebox-avatar" width="90" height="90">
4
- </a>
5
- {{/author.avatar_url}}
1
+ <svg width="60" height="60" class="github-icon" viewBox="0 0 14 16" version="1.1" aria-hidden="true"><path fill-rule="evenodd" d="M10.86 7c-.45-1.72-2-3-3.86-3-1.86 0-3.41 1.28-3.86 3H0v2h3.14c.45 1.72 2 3 3.86 3 1.86 0 3.41-1.28 3.86-3H14V7h-3.14zM7 10.2c-1.22 0-2.2-.98-2.2-2.2 0-1.22.98-2.2 2.2-2.2 1.22 0 2.2.98 2.2 2.2 0 1.22-.98 2.2-2.2 2.2z"></path></svg>
6
2
 
7
3
  <h4>
4
+ {{#author.avatar_url}}
5
+ <a href="{{author.html_url}}" target="_blank">
6
+ <img alt="{{author.login}}" src="{{author.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
7
+ </a>
8
+ {{/author.avatar_url}}
8
9
  <a href="{{html_url}}" target="_blank">{{title}}</a>
9
10
  </h4>
10
11
 
@@ -13,7 +14,7 @@
13
14
  {{/message}}
14
15
 
15
16
  <div class="date">
16
- by <a href="{{author.html_url}}" target="_blank">{{author.login}}</a>
17
+ commit by <a href="{{author.html_url}}" target="_blank">{{author.login}}</a>
17
18
  on <a href="{{html_url}}" target="_blank">{{commit_date}}</a>
18
19
  </div>
19
20
 
@@ -1,12 +1,15 @@
1
- <a href="{{user.html_url}}">
2
- <img src="{{avatar}}" class="thumbnail onebox-avatar">
3
- </a>
1
+ <svg width="60" height="60" class="github-icon" viewBox="0 0 14 16" version="1.1" aria-hidden="true"><path fill-rule="evenodd" d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
4
2
 
5
- <h4><a href="{{link}}" target="_blank">{{title}}</a></h4>
3
+ <h4>
4
+ <a href="{{user.html_url}}">
5
+ <img src="{{avatar}}" class="onebox-avatar-inline" height="20" width="20">
6
+ </a>
7
+ <a href="{{link}}" target="_blank">{{title}}</a>
8
+ </h4>
6
9
 
7
10
  <div class="date" style="margin-top:10px;">
8
11
  <div class="user" style="margin-top:10px;">
9
- opened by <a href="{{user.html_url}}" target="_blank">{{user.login}}</a>
12
+ issue opened by <a href="{{user.html_url}}" target="_blank">{{user.login}}</a>
10
13
  on <a href="{{link}}" target="_blank">{{created_at}}</a>
11
14
  </div>
12
15
  <div class="user">
@@ -1,15 +1,16 @@
1
- {{#user.avatar_url}}
2
- <a href="{{user.html_url}}" target="_blank">
3
- <img alt="{{user.login}}" src="{{user.avatar_url}}" class="thumbnail onebox-avatar" width="90" height="90">
4
- </a>
5
- {{/user.avatar_url}}
1
+ <svg width="60" height="60" class="github-icon" viewBox="0 0 12 16" version="1.1" aria-hidden="true"><path fill-rule="evenodd" d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 0 0-1 3.72v6.56A1.993 1.993 0 0 0 2 15a1.993 1.993 0 0 0 1-3.72V4.72c.59-.34 1-.98 1-1.72zm-.8 10c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"></path></svg>
6
2
 
7
3
  <h4>
4
+ {{#user.avatar_url}}
5
+ <a href="{{user.html_url}}" target="_blank">
6
+ <img alt="{{user.login}}" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
7
+ </a>
8
+ {{/user.avatar_url}}
8
9
  <a href="{{html_url}}" target="_blank">{{title}}</a>
9
10
  </h4>
10
11
 
11
12
  <div class="date">
12
- by <a href="{{user.html_url}}" target="_blank">{{user.login}}</a>
13
+ pull request by <a href="{{user.html_url}}" target="_blank">{{user.login}}</a>
13
14
  on <a href="{{html_url}}" target="_blank">{{created_at}}</a>
14
15
  </div>
15
16
 
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.13
4
+ version: 1.9.14
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-09-11 00:00:00.000000000 Z
13
+ date: 2019-10-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json