google_play_search 0.0.11 → 0.0.12
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.rb +9 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e03b69dab8d61ca7e4fbe09a365b63925669035a
|
4
|
+
data.tar.gz: c5a4de813eca47ef36aa460a9f9d875814c9ef92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36ca80a8d2cd2501c58f9c7e43fe5984146bf1ac65abc3ce8db1e53d3feac3a97ad8e73543097c9ca1926e0a746e239e1cf56191d54be7cd254997cf2b3c9d7a
|
7
|
+
data.tar.gz: 49083815fb1bfed7567e602c4bf7be5058582102959d4f2c1bb2685ab628ba65a38c4d6266bf0f28d32d55be5ffd60ee59d68d8fb26677885c2be65074b56b4d
|
@@ -16,11 +16,15 @@ module GooglePlaySearch
|
|
16
16
|
self.size = get_size(google_play_html)
|
17
17
|
self.requires_android = get_requires_android(google_play_html)
|
18
18
|
self.content_rating = get_content_rating(google_play_html)
|
19
|
+
self.category = get_category(google_play_html)
|
20
|
+
self
|
21
|
+
rescue
|
19
22
|
self
|
20
23
|
end
|
21
24
|
|
22
|
-
|
23
|
-
|
25
|
+
private
|
26
|
+
|
27
|
+
def get_version(google_play_html)
|
24
28
|
google_play_html.search("div[itemprop='softwareVersion']").first.content.strip
|
25
29
|
end
|
26
30
|
|
@@ -44,5 +48,8 @@ module GooglePlaySearch
|
|
44
48
|
google_play_html.search("div[itemprop='contentRating']").first.content.strip
|
45
49
|
end
|
46
50
|
|
51
|
+
def get_category(google_play_html)
|
52
|
+
google_play_html.search("span[itemprop='genre']").first.content.strip
|
53
|
+
end
|
47
54
|
end
|
48
55
|
end
|
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.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grant Chen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|