onebox 1.8.61 → 1.8.62
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9519e506e1b016d8bd3729316a2245703e855c41
|
4
|
+
data.tar.gz: 146c1341db89704266842c7d0978430ac0255586
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6a8a234f6fd6088cd1c1e939ce514a3face9154be170d83b0b22af7ee847f3b42e4b8c4fc293d51cc04de44c4ff2222392bbe8da985ae7c9ee0a7e4fd18cf01
|
7
|
+
data.tar.gz: a56a1be9b7298df7a2d130b4359fe6b0075b489fb2adcb326676fa708fc426f94bdd7e8ad6c5814a7dd27b295f8789e7f0a018e447815f94fea730fb17bce1e8
|
@@ -15,13 +15,13 @@ module Onebox
|
|
15
15
|
private
|
16
16
|
|
17
17
|
def data
|
18
|
+
price = raw.css("meta[itemprop=price]").first["content"] rescue "Free"
|
18
19
|
result = {
|
19
20
|
link: link,
|
20
|
-
title: raw.css(".
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
price: raw.css(".price.buy meta[itemprop=price]").first["content"]
|
21
|
+
title: raw.css("meta[property='og:title']").first["content"].gsub(" - Apps on Google Play", ""),
|
22
|
+
image: ::Onebox::Helpers.normalize_url_for_output(raw.css("meta[property='og:image']").first["content"]),
|
23
|
+
description: raw.css("meta[name=description]").first["content"][0..DEFAULTS[:MAX_DESCRIPTION_CHARS]].chop + "...",
|
24
|
+
price: price
|
25
25
|
}
|
26
26
|
if result[:price] == "0"
|
27
27
|
result[:price] = "Free"
|
data/lib/onebox/version.rb
CHANGED
data/templates/amazon.mustache
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.62
|
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-
|
13
|
+
date: 2018-10-03 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.
|
416
|
+
rubygems_version: 2.6.13
|
417
417
|
signing_key:
|
418
418
|
specification_version: 4
|
419
419
|
summary: A gem for generating embeddable HTML previews from URLs.
|