onebox 1.8.24 → 1.8.25
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 442e01fb4f1bcf4b312f8dbdcd3b71e7c4bde332d4f0ca381d01eaf3f37fff84
|
|
4
|
+
data.tar.gz: 5cd1e9cc178e664a27d8d93244bb7162b0f8d483008d6505dc2a9c29e41c6220
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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("%
|
|
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 }
|
data/lib/onebox/version.rb
CHANGED
|
@@ -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
|
|
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}}"
|
|
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.
|
|
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-
|
|
13
|
+
date: 2017-11-22 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: multi_json
|