sogou-search-api 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sogou/search/api/core/base_service.rb +6 -2
- data/lib/sogou/search/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c71832eeb238c3f6beb29d0b623b422203a94c6c3896f65b49a49c1d04032e6
|
4
|
+
data.tar.gz: 923a2651919f1d184a534dba3d09e06d71a213eed50709f1f4d50887c5e12bae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d767175ab8b5ce0e6e5267a05b2707463e51ec70957eef181b5170782810f26dd0a7c0093c26aae511b4faa905f643ef014aee2a6cc43d5b0965c8c46f41ae77
|
7
|
+
data.tar.gz: 9092357b73f2db88adee09958c5df1686f6c54e5a7003b37c3e51b40e29e9c67fc9226edcdc1b23ae28de4ee1c92427597717b97a47a72b4f5290ea8040778e1
|
@@ -12,7 +12,7 @@ module Sogou
|
|
12
12
|
attr_accessor :env
|
13
13
|
|
14
14
|
def initialize(service)
|
15
|
-
@
|
15
|
+
@service = service
|
16
16
|
@client_options = ClientOptions.default.dup
|
17
17
|
end
|
18
18
|
|
@@ -31,7 +31,7 @@ module Sogou
|
|
31
31
|
|
32
32
|
def client
|
33
33
|
@client ||= Savon::Client.new do |savon|
|
34
|
-
savon.wsdl(
|
34
|
+
savon.wsdl(url)
|
35
35
|
savon.pretty_print_xml(true)
|
36
36
|
savon.namespaces('xmlns:v1' => 'http://api.sogou.com/sem/common/v1')
|
37
37
|
savon.env_namespace(:soapenv)
|
@@ -50,6 +50,10 @@ module Sogou
|
|
50
50
|
|
51
51
|
private
|
52
52
|
|
53
|
+
def url
|
54
|
+
"http://#{service_host}/sem/sms/v1/#{@service}?wsdl"
|
55
|
+
end
|
56
|
+
|
53
57
|
def service_host
|
54
58
|
"api.agent.sogou.com#{environment == 'development' ? ':8080' : ''}"
|
55
59
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sogou-search-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Min Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|