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 +4 -4
- data/lib/query/engine/baidu.rb +1 -1
- data/lib/query/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e5167ec8d897abe4697f19e8bfc2d43bc569c4e
|
4
|
+
data.tar.gz: 8d043368a21d1d9ad618cf5b41966ab3f256c641
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78e8dae9bb5ce55a90d3b2b1ec0825bf91153245d64d6f95d1e97bdae55b52ec52fe57ce989aa3d58897f09c7399ce3e2c9a24eb3e4c34dad64f837cd7215256
|
7
|
+
data.tar.gz: 5b41c3903724261500b4bf2a8d036b9f1d1ed067e4bba8625cd3262acd4d3a7fa96fe7ff7a75156b33336e49335f711a7290f3c0dfe5a787796b87544b1443f5
|
data/lib/query/engine/baidu.rb
CHANGED
@@ -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)
|
data/lib/query/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|