query 0.1.24 → 0.1.25

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: c95c194c67e1ea98bd3b1acda8d6d1f5820bfbe4
4
- data.tar.gz: 295dfac6c23a431ff8c81cc5f98490d516d2bc53
3
+ metadata.gz: 7e5167ec8d897abe4697f19e8bfc2d43bc569c4e
4
+ data.tar.gz: 8d043368a21d1d9ad618cf5b41966ab3f256c641
5
5
  SHA512:
6
- metadata.gz: c64749e7bb27d51fcc5721495f866eb39f468d2bc9d8d1f78873bfe3ab7dd227815e9843be1519d1a40ea0b90fbd6ae24980f228cbde72756831e67045f32d73
7
- data.tar.gz: 5657fdadf58e46fed30182311bc1e18b84c95e1d2d3cc210eb24bd0cc55ffbc7ddd95319fbed3057698023f3df375e8f590b60ea37182a4225408b8100ce58a9
6
+ metadata.gz: 78e8dae9bb5ce55a90d3b2b1ec0825bf91153245d64d6f95d1e97bdae55b52ec52fe57ce989aa3d58897f09c7399ce3e2c9a24eb3e4c34dad64f837cd7215256
7
+ data.tar.gz: 5b41c3903724261500b4bf2a8d036b9f1d1ed067e4bba8625cd3262acd4d3a7fa96fe7ff7a75156b33336e49335f711a7290f3c0dfe5a787796b87544b1443f5
@@ -8,7 +8,7 @@ module Query
8
8
  :headers => {"User-Agent" => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1 Safari/537.73.11'}
9
9
  }
10
10
 
11
- def self.suggestions(query,options = [])
11
+ def self.suggestions(query,options = {})
12
12
  require 'json'
13
13
  query = URI.encode(query)
14
14
  suggestions = HTTParty.get("https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=#{query}&json=1&p=3&sid=&req=2&csor=0&cb=jQuery1102036467162938788533_1437556180622&_=#{(Time.now.to_f*1000).to_i}",options)
@@ -1,3 +1,3 @@
1
1
  module Query
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - seoaqua
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler