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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3199b69d43c4a4f0b6fbff6bbfd43bf7dfb62860287d70b232136ba4776315e0
4
- data.tar.gz: da8203bf9672c0069d7e91b6d64767828af254edf0b605320e5ba963b4cac446
3
+ metadata.gz: 2c71832eeb238c3f6beb29d0b623b422203a94c6c3896f65b49a49c1d04032e6
4
+ data.tar.gz: 923a2651919f1d184a534dba3d09e06d71a213eed50709f1f4d50887c5e12bae
5
5
  SHA512:
6
- metadata.gz: e30024b6823061482c114bc34d9abcb54f9c44a83f61f061387034ba0f375573e400ec12e85790ffe1ac5b714bb7fb2227429db4a65c754e1745094a0c02ee00
7
- data.tar.gz: d57a26d5faf7a16a1aaf3a93ce68294c5fe7b1782b90fc0ff44ec7c02473eb67d56b6cf7460ab1dd95fc10af3603f63aaa0c9fc5824c7314827fc3d1853a7f6b
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
- @url = "http://#{service_host}/sem/sms/v1/#{service}?wsdl"
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(@url)
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
@@ -1,7 +1,7 @@
1
1
  module Sogou
2
2
  module Search
3
3
  module Api
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
 
6
6
  OS_VERSION = begin
7
7
  if RUBY_PLATFORM =~ /mswin|win32|mingw|bccwin|cygwin/
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.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-28 00:00:00.000000000 Z
11
+ date: 2022-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon