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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f9989013894cd92b1e75cbc22ffb8ac563bcf09
4
- data.tar.gz: d5068a55b06d2565d45c58418962aba7f31ffa1d
3
+ metadata.gz: e2393ef691a3af80ea55a6aa40e836360d255941
4
+ data.tar.gz: c9f6a42dc8fc0069ea7dce8c6c1394bc82b3b0cb
5
5
  SHA512:
6
- metadata.gz: 31a6fcce10b082bde4d453e18b258f5fb88e395ce57509c2d5f45cd12f258cc89f57b3171db49794e3aab4497eab671254346fab176d64b0d848c4b4cc45940e
7
- data.tar.gz: b9ae362e930dbba422b9d1261bbc09268f3f8910609d7ed2dae687e317e937722ccfa323b2daa22f19699c307378def451531fb45b1df432ee3b1ce380fc0ae3
6
+ metadata.gz: dc4235b1cc750976fd6e372fc0549a4eafb84ac7db8fcbe6c522d277518c7633e2998e84b40709b772e945fbe8ea878df31f4f90719c19888cd178371597da5f
7
+ data.tar.gz: f4d7b326c0d7b82b460cfc0e28897ea4c66d07b44b3f8aa47c39eb341058c736d509e9849c628aac203eb0d21da6bad91ab0bb927ad916f9e29f885d8ae5bf4b
@@ -1,3 +1,3 @@
1
1
  module WsCee
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
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.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-04 00:00:00.000000000 Z
11
+ date: 2015-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon