onebox 1.9.10 → 1.9.11

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: d2a1a3dc2e875d3ae1dcf36398ae539fe2246d4ebc81f0aadec5367ad1eda5bb
4
- data.tar.gz: 8a22fe033f4642d257a0ac264b4b7ff7a566eb37bb2197b58e8026a38c389e98
3
+ metadata.gz: 2ea5adee7c24759a2480128c1e4694283f2063c7edffaffef321de53dc505296
4
+ data.tar.gz: 4e3a57ab199a6667da16477ad4560a6b571712ccd6ad21b54172e30350f3c5ac
5
5
  SHA512:
6
- metadata.gz: 436531fc0976fa08afcef6efe331cb36f2b9ba587067d6634641a55315e3d399fd3f31bc6b809ba8fbb942868f8ea85380a8b1907df81be86ecbb6c3feb2945a
7
- data.tar.gz: 43d6ed29d364961a23ce1b4b023690996ccb3fe57c5245f6f4e0a8eba136b608adf4d3d3153a53b6108291d794520b595ded9c5f399cf01f33b88f74be9bb51e
6
+ metadata.gz: 5983342fc63dafb0eab43923d9dd00a7a2a39abe32ec9dee26fa96970aadfc6e5032877f47370880f478928c6423eb114acc248401c09c7971fb21027fe7af19
7
+ data.tar.gz: b46630d4e4e09fab21684d566b91d47d4e853ba96bbb634c76224053b308fc46fcbda88eeb8ae4b9accd984ef71cf3aa8fbadc996bcd9ac84635795ce08fb7e5
@@ -59,7 +59,7 @@ module Onebox
59
59
 
60
60
  def tweet
61
61
  if twitter_api_credentials_present?
62
- client.prettify_tweet(raw)
62
+ client.prettify_tweet(raw)&.strip
63
63
  else
64
64
  twitter_data[:description].gsub(/“(.+?)”/im) { $1 } if twitter_data[:description]
65
65
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.9.10"
4
+ VERSION = "1.9.11"
5
5
  end
@@ -1,20 +1,8 @@
1
1
  {{#avatar}}<img src="{{avatar}}" class="thumbnail onebox-avatar">{{/avatar}}
2
- <h4>
3
- <a href='{{link}}' target='_blank'>
4
- {{title}}
5
- </a>
6
- </h4>
7
2
 
8
- <div class="tweet">{{{tweet}}}
9
- {{#quoted_tweet}}
10
- <div class="quoted">
11
- <a class="quoted-link" href="{{quoted_link}}">
12
- <p class="quoted-title">{{quoted_full_name}} <span>@{{quoted_screen_name}}</span></p>
13
- </a>
14
- <div>
15
- {{quoted_tweet}}
16
- </div>
17
- </div>{{/quoted_tweet}}</div>
3
+ <h4><a href='{{link}}' target='_blank'>{{title}}</a></h4>
4
+
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>
18
6
 
19
7
  <div class='date'>
20
8
  <a href="{{link}}" target="_blank">{{timestamp}}</a>
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.10
4
+ version: 1.9.11
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-08-19 00:00:00.000000000 Z
13
+ date: 2019-08-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json