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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75ac2126cc89b5c8398bffa74ef23a6089a59257e98386552f99adb167238433
|
4
|
+
data.tar.gz: 89547651a979ceb8ddadd0df6d37a4db515c2442bd2423048596891629af4b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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')
|
data/lib/onebox/version.rb
CHANGED
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.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-
|
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.
|
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.
|