query 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/query/engine/baidu_mobile.rb +1 -1
- data/query.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 983f1fb89f5339bc5f78d0c5e00ae57c95b406e0
|
4
|
+
data.tar.gz: fdb51caa0421774b17c1e77a12bb3b1a5cb2852e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9510c99f513231c5940b9006b52c3ba1135d816bde16fb9c8fa95c5e8cb1be718a66e841b2ab1d9f34ee5aeba2f0cbda5e05c9b70c8b510abf1f730ca0074bb
|
7
|
+
data.tar.gz: 45e59d36f263c3aced0b7e90a232b4d745343dc19932ffa8111680c5d176bfaf3014e2f3e3c375dfab0d12382178de7330337bff0fddb647e6160023e09ec0cf
|
@@ -34,7 +34,7 @@ module Query
|
|
34
34
|
|
35
35
|
suggestions = HTTParty.get("https://m.baidu.com/su?callback=jsonp11&wd=#{query}",options).to_s
|
36
36
|
suggestions = suggestions.force_encoding('GB18030').encode('UTF-8')
|
37
|
-
suggestions = suggestions.split('s:[')[1].delete(']});').split(',').uniq
|
37
|
+
suggestions = suggestions.split('s:[')[1].delete(']});').delete('"').split(',').uniq
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
data/query.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "query"
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.29'
|
8
8
|
spec.authors = ["seoaqua"]
|
9
9
|
spec.email = ["seoaqua@qq.com"]
|
10
10
|
spec.description = %q{This GEM is designed to work for Chinese SEOers who need to fetch query and parse results from all kinds of search engines}
|