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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8d3d289a2e63a1c88194c7b13a954927c5c5d99
4
- data.tar.gz: 6efec7b1990e7216d9bcfd2a049f3f58b4e3e5a6
3
+ metadata.gz: 983f1fb89f5339bc5f78d0c5e00ae57c95b406e0
4
+ data.tar.gz: fdb51caa0421774b17c1e77a12bb3b1a5cb2852e
5
5
  SHA512:
6
- metadata.gz: c1083ec4211a68b2311831c01b9e22e4ada3de8f4119a9d2da43d3c44407f69b2902ab7321b69902d32f8f98aa0921a240588533156ef1cc2976937a13f90bc3
7
- data.tar.gz: 9cbe62910dc172dd29af51e6ddc74ec36d36ee1b20201a9cbc00961467a745c51f49400ced9a62818ad0304bc9e1475764d80312c4a848184e47ad423f1fd8f7
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
@@ -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.28'
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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - seoaqua