chrome_store_search 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chrome_store_search/string_utility.rb +3 -1
- metadata +12 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbacbb38af46951f9f54195eec905ab30cc309bd
|
4
|
+
data.tar.gz: 55326a05d024a7de0ab0433a6dd66cade8d2ed8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f6adfa702fbeacd7f48442f3307a0998d64f2e77f7208caa4b9eb84d93c2f9e5c45cfc5dae826d075ea457764c30176bc7f86c5ed895b09b2f6fce28d323bb9
|
7
|
+
data.tar.gz: b0879d787333167f6fe13ce11b0bfcffba6b254b4332e93eb551bb8f73f0c526390db76a8512f799e16da2c990f87cf54c3b998422d601d1313922881afc473b
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'faraday'
|
2
|
+
require 'json'
|
2
3
|
|
3
4
|
module ChromeStoreSearch
|
4
5
|
class StringUtility
|
@@ -22,7 +23,8 @@ module ChromeStoreSearch
|
|
22
23
|
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
|
23
24
|
end
|
24
25
|
res = conn.get ''
|
25
|
-
res.body.match(
|
26
|
+
session_str = gsub_continuation_commas(res.body.match(/<script type="application\/json" id="cws-session-data">([\s\S]*?)<\/script>/i)[1])
|
27
|
+
JSON.parse(session_str)[-6]
|
26
28
|
end
|
27
29
|
end
|
28
30
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chrome_store_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
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-
|
11
|
+
date: 2014-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.8.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.8.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.8.8
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.8.8
|
41
41
|
description: chrome web store apps, extensions and themes search
|
@@ -44,11 +44,11 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
-
- lib/chrome_store_search
|
48
|
-
- lib/chrome_store_search/string_utility.rb
|
47
|
+
- lib/chrome_store_search.rb
|
49
48
|
- lib/chrome_store_search/app.rb
|
50
49
|
- lib/chrome_store_search/app_parser.rb
|
51
|
-
- lib/chrome_store_search.rb
|
50
|
+
- lib/chrome_store_search/string_utility.rb
|
51
|
+
- lib/chrome_store_search/search.rb
|
52
52
|
homepage: https://github.com/grantchen/chrome_store_search
|
53
53
|
licenses: []
|
54
54
|
metadata: {}
|
@@ -58,19 +58,18 @@ require_paths:
|
|
58
58
|
- lib
|
59
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - '>='
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
|
-
rubygems_version: 2.0.
|
71
|
+
rubygems_version: 2.0.14
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: chrome web store search
|
75
75
|
test_files: []
|
76
|
-
has_rdoc:
|