google_play_search 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_play_search/app_parser.rb +5 -5
- metadata +44 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e9859c59cc98d1d82cb88b40a65d4fcd722e323
|
4
|
+
data.tar.gz: 4b0d77cd3b2eccc2f29a8dda94f3e9a1623f4d2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74e44bea9e510f72fed18129817c3a7bb582d07000cf6bfe6eccaabb11bb078a36f524501aa6cbe5b072ef4026427149754887a2215be87baae7879e68780c99
|
7
|
+
data.tar.gz: 469a0da05219097c0e9f40a8fa3f78e6dd4c1cea8f72222696a1a636f4b5151b16df49ba09ffa84c8a676c78ecca290c4d2d6e3058911f9df534fb107dbdf1c0
|
@@ -31,15 +31,15 @@ module GooglePlaySearch
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def get_logo_url(app_content)
|
34
|
-
app_content.css("
|
34
|
+
app_content.css("img.cover-image").first['src']
|
35
35
|
end
|
36
36
|
|
37
37
|
def get_name(app_content)
|
38
|
-
app_content.css("
|
38
|
+
app_content.css("a.title").first.content.strip
|
39
39
|
end
|
40
40
|
|
41
41
|
def get_developer(app_content)
|
42
|
-
deleloper_contents_list = app_content.css("div.
|
42
|
+
deleloper_contents_list = app_content.css("div.subtitle-container a.subtitle")
|
43
43
|
if deleloper_contents_list && deleloper_contents_list.size > 0
|
44
44
|
return deleloper_contents_list.first.content
|
45
45
|
else
|
@@ -52,7 +52,7 @@ module GooglePlaySearch
|
|
52
52
|
end
|
53
53
|
|
54
54
|
def get_category(app_content)
|
55
|
-
category_contents = app_content.css("div.
|
55
|
+
category_contents = app_content.css("div.attribution-category span.category a")
|
56
56
|
if category_contents && category_contents.size>0
|
57
57
|
return category_contents.first.content
|
58
58
|
end
|
@@ -79,7 +79,7 @@ module GooglePlaySearch
|
|
79
79
|
end
|
80
80
|
|
81
81
|
def get_app_price(app_content)
|
82
|
-
prices = app_content.css("
|
82
|
+
prices = app_content.css("span.price-container button.price span")
|
83
83
|
if prices and prices.first
|
84
84
|
if match = prices.first.content.match(/(.[0-9]*\.[0-9]+|[0-9]+)/)
|
85
85
|
return match[1]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_play_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Chen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -52,6 +52,48 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: webmock
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.22'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.22'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest-vcr
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.4'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.4'
|
55
97
|
description: google play market search gem
|
56
98
|
email: kucss@hotmail.com
|
57
99
|
executables: []
|