ws_cee_client 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ws_cee_client/version.rb +1 -1
- data/lib/ws_cee_client.rb +10 -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: e2393ef691a3af80ea55a6aa40e836360d255941
|
4
|
+
data.tar.gz: c9f6a42dc8fc0069ea7dce8c6c1394bc82b3b0cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4235b1cc750976fd6e372fc0549a4eafb84ac7db8fcbe6c522d277518c7633e2998e84b40709b772e945fbe8ea878df31f4f90719c19888cd178371597da5f
|
7
|
+
data.tar.gz: f4d7b326c0d7b82b460cfc0e28897ea4c66d07b44b3f8aa47c39eb341058c736d509e9849c628aac203eb0d21da6bad91ab0bb927ad916f9e29f885d8ae5bf4b
|
data/lib/ws_cee_client.rb
CHANGED
@@ -12,10 +12,19 @@ module WsCee
|
|
12
12
|
WS_CEE_TESTING_URL = 'https://source.bisnode.cz/services/cee_fix/v001/soap?wsdl'
|
13
13
|
WS_CEE_PRODUCTION_URL = 'https://source.bisnode.cz/services/cee_fix/v001/soap?wsdl' # FIXME
|
14
14
|
|
15
|
+
attr_reader :username
|
16
|
+
attr_reader :password
|
17
|
+
attr_reader :proxy
|
18
|
+
|
15
19
|
def initialize(options)
|
16
|
-
@savon = Savon.client wsdl: options[:testing] ? WS_CEE_PRODUCTION_URL : WS_CEE_TESTING_URL
|
17
20
|
@username = options[:username]
|
18
21
|
@password = options[:password]
|
22
|
+
@proxy = options[:proxy]
|
23
|
+
|
24
|
+
@savon = Savon.client do
|
25
|
+
wsdl options[:testing] ? WS_CEE_PRODUCTION_URL : WS_CEE_TESTING_URL
|
26
|
+
proxy @proxy if !@proxy.nil? && !@proxy.empty?
|
27
|
+
end
|
19
28
|
rescue *SAVON_ERRORS
|
20
29
|
raise WsCee::ConnectionError
|
21
30
|
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.
|
4
|
+
version: 0.1.2
|
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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|