ws_cee_client 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2393ef691a3af80ea55a6aa40e836360d255941
4
- data.tar.gz: c9f6a42dc8fc0069ea7dce8c6c1394bc82b3b0cb
3
+ metadata.gz: 71bf8358706098af4bd4670448f9e165b982fcb6
4
+ data.tar.gz: d6e67552ac5c4c2fd6bda85b01d0320357f2a11f
5
5
  SHA512:
6
- metadata.gz: dc4235b1cc750976fd6e372fc0549a4eafb84ac7db8fcbe6c522d277518c7633e2998e84b40709b772e945fbe8ea878df31f4f90719c19888cd178371597da5f
7
- data.tar.gz: f4d7b326c0d7b82b460cfc0e28897ea4c66d07b44b3f8aa47c39eb341058c736d509e9849c628aac203eb0d21da6bad91ab0bb927ad916f9e29f885d8ae5bf4b
6
+ metadata.gz: 290f980249bcdb09340df9124cc976a411a1d6cb358837c0207295e4947a0ee60c0182e7e8bfb246d1a6a1b995cff232ad007b2077872872cdb3a62fd6c22d18
7
+ data.tar.gz: 73d67c21515f7b2dbc9d71915b72e2e037a300162a97eba7bdb45b77c18cfed4cb30e1895b5b04ba393ff9375b4b29cccda91eae001f3d2c04452d6b21e3a016
data/lib/ws_cee_client.rb CHANGED
@@ -10,11 +10,12 @@ require 'ws_cee_client/subject'
10
10
  module WsCee
11
11
  class Client
12
12
  WS_CEE_TESTING_URL = 'https://source.bisnode.cz/services/cee_fix/v001/soap?wsdl'
13
- WS_CEE_PRODUCTION_URL = 'https://source.bisnode.cz/services/cee_fix/v001/soap?wsdl' # FIXME
13
+ WS_CEE_PRODUCTION_URL = 'http://data.soliditet.cz/services/cee/v001/soap?wsdl'
14
14
 
15
15
  attr_reader :username
16
16
  attr_reader :password
17
17
  attr_reader :proxy
18
+ attr_reader :savon
18
19
 
19
20
  def initialize(options)
20
21
  @username = options[:username]
@@ -25,8 +26,8 @@ module WsCee
25
26
  wsdl options[:testing] ? WS_CEE_PRODUCTION_URL : WS_CEE_TESTING_URL
26
27
  proxy @proxy if !@proxy.nil? && !@proxy.empty?
27
28
  end
28
- rescue *SAVON_ERRORS
29
- raise WsCee::ConnectionError
29
+ rescue *SAVON_ERRORS => e
30
+ raise WsCee::ConnectionError, e.message
30
31
  end
31
32
 
32
33
  def find_by_company(company_details)
@@ -46,15 +47,15 @@ module WsCee
46
47
  def company_indication(company_details)
47
48
  response = @savon.call :indication, message: company_query(company_details)
48
49
  parse_indication_response response.hash
49
- rescue *SAVON_ERRORS
50
- raise WsCee::ConnectionError
50
+ rescue *SAVON_ERRORS => e
51
+ raise WsCee::ConnectionError, e.message
51
52
  end
52
53
 
53
54
  def person_indication(person_details)
54
55
  response = @savon.call :indication, message: person_query(person_details)
55
56
  parse_indication_response response.hash
56
- rescue *SAVON_ERRORS
57
- raise WsCee::ConnectionError
57
+ rescue *SAVON_ERRORS => e
58
+ raise WsCee::ConnectionError, e.message
58
59
  end
59
60
 
60
61
  def parse_indication_response(hash)
@@ -1,3 +1,3 @@
1
1
  module WsCee
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ws_cee_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaromír Červenka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-11 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.4.5.1
111
+ rubygems_version: 2.4.8
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Client for communication with Czech Database of Distraints. Connected to