onebox 1.8.63 → 1.8.64

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: ed37848d1d08747c6a3bcca16710f51031a7b14c4d639f89513f76d7cbe6bf27
4
- data.tar.gz: a4ec00be8e5cfaf7d48907ff845daaf4f72a2a1058542b9b67f822eb8e172fee
3
+ metadata.gz: 75ac2126cc89b5c8398bffa74ef23a6089a59257e98386552f99adb167238433
4
+ data.tar.gz: 89547651a979ceb8ddadd0df6d37a4db515c2442bd2423048596891629af4b9f
5
5
  SHA512:
6
- metadata.gz: 360a41c6884f4858f23a400a573ab90923a00d0fd9eedeaf47e643fe8d99b86aa5944dbec9764f0cfa8f7e79fa8035de59bdfd2287500dbc8f159adb982a516e
7
- data.tar.gz: '00987da7e04891648f9427a44f9db8b7a2b902dabb0fb89c95328bff00865d16dc762410e16a1ce5bedc06b09385881bb14334fb565886f4137d280f248df4a5'
6
+ metadata.gz: d2f538774199f61cd9417da74d5ada073961df165bbcd90ce743147dc9250655a350cff83992d75ebcd8a54b9006779ecc77ae3a1e16e5085a162ab555a2b50b
7
+ data.tar.gz: 5b4db9e0c0d74799d5b76d6f925bf52e30f6df362fedc51c6cf6a35e72cdcfd6f8094e09c200df1b494b9c8dfc143c62e8fa3f85260951fbee25c64a3434759e
@@ -40,7 +40,7 @@ module Onebox
40
40
  end
41
41
 
42
42
  ulink = URI(link)
43
- result['commit_date'] = Time.parse(result['commit']['author']['date']).strftime("%I:%M%p - %d %b %y")
43
+ result['commit_date'] = Time.parse(result['commit']['author']['date']).strftime("%I:%M%p - %d %b %y %Z")
44
44
  result['domain'] = "#{ulink.host}/#{ulink.path.split('/')[1]}/#{ulink.path.split('/')[2]}"
45
45
  result
46
46
  end
@@ -21,7 +21,7 @@ module Onebox
21
21
  def data
22
22
  result = raw.clone
23
23
  result['link'] = link
24
- result['created_at'] = Time.parse(result['created_at']).strftime("%I:%M%p - %d %b %y")
24
+ result['created_at'] = Time.parse(result['created_at']).strftime("%I:%M%p - %d %b %y %Z")
25
25
  ulink = URI(link)
26
26
  result['domain'] = "#{ulink.host}/#{ulink.path.split('/')[1]}/#{ulink.path.split('/')[2]}"
27
27
  result
@@ -40,7 +40,7 @@ module Onebox
40
40
  result = raw['items'][0]
41
41
  if result
42
42
  result['creation_date'] =
43
- Time.at(result['creation_date'].to_i).strftime("%I:%M%p - %d %b %y")
43
+ Time.at(result['creation_date'].to_i).strftime("%I:%M%p - %d %b %y %Z")
44
44
 
45
45
  result['tags'] = result['tags'].take(4).join(', ')
46
46
  result['is_answer'] = result.key?('answer_id')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.8.63"
4
+ VERSION = "1.8.64"
5
5
  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.63
4
+ version: 1.8.64
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: 2018-10-03 00:00:00.000000000 Z
13
+ date: 2018-10-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json
@@ -413,7 +413,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
413
413
  version: '0'
414
414
  requirements: []
415
415
  rubyforge_project:
416
- rubygems_version: 2.7.7
416
+ rubygems_version: 2.7.6
417
417
  signing_key:
418
418
  specification_version: 4
419
419
  summary: A gem for generating embeddable HTML previews from URLs.