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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cf1f8105859eca32f01af1eee511eb259186832
4
- data.tar.gz: 6547d346b7b2d3da428402e861656aaec59b1569
3
+ metadata.gz: e03b69dab8d61ca7e4fbe09a365b63925669035a
4
+ data.tar.gz: c5a4de813eca47ef36aa460a9f9d875814c9ef92
5
5
  SHA512:
6
- metadata.gz: 3cf9237114d517baac5c24516f8b9c3ae7c50236b6c51edbe79ddfcaeeb6da74367c363bb28450b8593a697ba4cc20dd978ab1890ce93a4bc3ec8dc4c6afccc9
7
- data.tar.gz: fce11a26d5f9915d79e3f7d2de1c3665c2bbe8641f399b7da4cc1d735a8729a57a91a5586db79f71dae7900a69c342a4f89ded8bf6831849403242366a694e9a
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
- private
23
- def get_version(google_play_html)
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.11
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: 2014-06-19 00:00:00.000000000 Z
11
+ date: 2015-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri