onebox 1.8.24 → 1.8.25

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: 46083e1a21f3b8566a13d1f23db6d2b63d0dab0f4e81a4f124b131cbf1f417df
4
- data.tar.gz: dce9be021faa467dcb5e5675cc21529535f83c920614752232c5c5e9df21dea7
3
+ metadata.gz: 442e01fb4f1bcf4b312f8dbdcd3b71e7c4bde332d4f0ca381d01eaf3f37fff84
4
+ data.tar.gz: 5cd1e9cc178e664a27d8d93244bb7162b0f8d483008d6505dc2a9c29e41c6220
5
5
  SHA512:
6
- metadata.gz: a5bd9ed7b95189ebdd9dad2b29ba634684b12a65ceee1131f168423af934919251f4d6a16ddcbedbd27c77d4ee03b28d8701f44c61bb3868bffbf77dc385b6cb
7
- data.tar.gz: 857d41458895aa81cc799edbae5b25cb67420afa5e7df0af31dfc22330a5849b206830de40d3df23a9931679a2d856471e6441bb5521a4fbb2f6e1dc7a97235a
6
+ metadata.gz: 0e71fef9fb69b35c1d7413a85dba0b233ba21e52bb12b9fa46a58b63fb7829c74a3af587bf78addb9a09e11b2e64c24a0817d2d86741f5b189f8ae960e972b84
7
+ data.tar.gz: c00d0124b8cf9c214f8af312d530772347a25f78dfa2c96b82bcca3c8d39d52fc623ae87fa3f62902da8750059ffdbd39803ec243ab194f1bf8bb8c9d81fe339
@@ -223,7 +223,8 @@ module Onebox
223
223
  d[:video] = d[:video_secure_url] || d[:video_url] || d[:video]
224
224
 
225
225
  if !Onebox::Helpers.blank?(d[:published_time])
226
- d[:article_published_time] = Time.parse(d[:published_time]).strftime("%I:%M%p - %d %b %y")
226
+ d[:article_published_time] = Time.parse(d[:published_time]).strftime("%d %b %y")
227
+ d[:article_published_time_title] = Time.parse(d[:published_time]).strftime("%I:%M%p - %d %B %Y")
227
228
  else
228
229
  # Twitter labels
229
230
  if !Onebox::Helpers.blank?(d[:label1]) && !Onebox::Helpers.blank?(d[:data1]) && !!WhitelistedGenericOnebox.twitter_label_whitelist.find { |l| d[:label1] =~ /#{l}/i }
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.8.24"
2
+ VERSION = "1.8.25"
3
3
  end
@@ -101,7 +101,7 @@ describe Onebox::Engine::WhitelistedGenericOnebox do
101
101
  expect(onebox.to_html).not_to be_empty
102
102
 
103
103
  expect(onebox.to_html).to include("Mail Online")
104
- expect(onebox.to_html).to include("08:03PM - 08 Aug 14")
104
+ expect(onebox.to_html).to include("08 Aug 14")
105
105
  end
106
106
  end
107
107
 
@@ -1,11 +1,11 @@
1
- {{#image}}<img src="{{image}}" width="{{image_width}}" height="{{image_height}}" class="thumbnail"/>{{/image}}
1
+ {{#image}}<img src="{{image}}" class="thumbnail"/>{{/image}}
2
2
 
3
3
  <h3><a href='{{link}}' target="_blank">{{title}}</a></h3>
4
4
 
5
5
  <p>{{description}}</p>
6
6
 
7
7
  {{#article_published_time}}
8
- <p><span class="label1">{{article_published_time}}</span>
8
+ <p><span class="label1" title="{{article_published_time_title}}">{{article_published_time}}</span>
9
9
  {{/article_published_time}}
10
10
 
11
11
  {{#data_1}}
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.24
4
+ version: 1.8.25
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-11-21 00:00:00.000000000 Z
13
+ date: 2017-11-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json