onebox 1.8.29 → 1.8.30

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
- SHA1:
3
- metadata.gz: a6fef52dd6a33066eed4038dd629a3b129aa34d7
4
- data.tar.gz: 9cee02f8cef9f2efc258f9f5fa18bc31a8672430
2
+ SHA256:
3
+ metadata.gz: ec5f210240ae4ab90531a0c8f0ec70ac850284100c3abca4122e0f838d50ea09
4
+ data.tar.gz: b7657bfb7f94a52b27c6a090b87d987bd94f8c5c35fa23e1dcdead57881baae7
5
5
  SHA512:
6
- metadata.gz: f7ef1dc0733c083e19935d3df6a6f9e12659e13aaacf09d93a797f47f1468f678ddde8d2b73aebf2cef279f7e0371731e595290499e9b62f32f96d2c8f0084a6
7
- data.tar.gz: 13f22185d7acc5ef106a37ad601f2fbe364e794eabb35af22cf47559ecb738366268427d02c5e1e97cbb3e12f3137d1381a8f877cd5e2f81a391a2ce8487cbe0
6
+ metadata.gz: b49f8df6e349b9c6f5b5adb6b9d6b65d54d5ceae40eb93784793e6cb0a56252bb0a0e1d7749f4223f9edd418671277a53c01e243c2273050c11873eb5095f6c9
7
+ data.tar.gz: 1089fbcd3dfb8406d9970c3103ae822a4d04a122a46777160fe9eaa0d55bea27c0e941cef2a433e41d0228d2bd6ef50d02295653d0d94739ecbcbbfe5641f138
@@ -222,6 +222,7 @@ module Onebox
222
222
  d[:image] = d[:image_secure_url] || d[:image_url] || d[:thumbnail_url] || d[:image]
223
223
  d[:video] = d[:video_secure_url] || d[:video_url] || d[:video]
224
224
 
225
+ d[:published_time] = d[:article_published_time] unless Onebox::Helpers.blank?(d[:article_published_time])
225
226
  if !Onebox::Helpers.blank?(d[:published_time])
226
227
  d[:article_published_time] = Time.parse(d[:published_time]).strftime("%-d %b %y")
227
228
  d[:article_published_time_title] = Time.parse(d[:published_time]).strftime("%I:%M%p - %d %B %Y")
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.8.29"
2
+ VERSION = "1.8.30"
3
3
  end
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.29
4
+ version: 1.8.30
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-12-05 00:00:00.000000000 Z
13
+ date: 2017-12-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json
@@ -524,7 +524,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
524
524
  version: '0'
525
525
  requirements: []
526
526
  rubyforge_project:
527
- rubygems_version: 2.6.13
527
+ rubygems_version: 2.7.2
528
528
  signing_key:
529
529
  specification_version: 4
530
530
  summary: A gem for turning URLs into previews.