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 +4 -4
- data/lib/ws_cee_client.rb +8 -7
- data/lib/ws_cee_client/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71bf8358706098af4bd4670448f9e165b982fcb6
|
|
4
|
+
data.tar.gz: d6e67552ac5c4c2fd6bda85b01d0320357f2a11f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 = '
|
|
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)
|
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.
|
|
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
|
+
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.
|
|
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
|