exchanger 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/exchanger/client.rb +2 -1
- data/lib/exchanger/config.rb +2 -1
- data/lib/exchanger/version.rb +1 -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: d4fcefb7652f0a52f9e979e1a595f9aba01e3651
|
4
|
+
data.tar.gz: 54cf7f009d5603674b9cd8b5c94109d5ccc11d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5a4cdea7a1bc4541536fa4e35f4397006e49c006340eadbc8acd2f37ed8bc988d7061bbbfe0fb19399d6d55528a587a4455563344410d0ae5a9e01786623bcd
|
7
|
+
data.tar.gz: 2b61977cc54b2732e2c2102a61c283de6ab5699d50b9292e38e6a274b08bc47343a4f056c5d3d50bf9f51d52c66bb1ad3acb064d28b249ab26d621dbc106f37d
|
data/lib/exchanger/client.rb
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
module Exchanger
|
2
2
|
# SOAP Client for Exhange Web Services
|
3
3
|
class Client
|
4
|
-
delegate :endpoint, :timeout, :username, :password, :debug, :insecure_ssl, :to => "Exchanger.config"
|
4
|
+
delegate :endpoint, :timeout, :username, :password, :debug, :insecure_ssl, :ssl_version, :to => "Exchanger.config"
|
5
5
|
|
6
6
|
def initialize
|
7
7
|
@client = HTTPClient.new
|
8
8
|
@client.debug_dev = STDERR if debug
|
9
9
|
@client.set_auth nil, username, password if username
|
10
10
|
@client.ssl_config.verify_mode = OpenSSL::SSL::VERIFY_NONE if insecure_ssl
|
11
|
+
@client.ssl_config.ssl_version = ssl_version if ssl_version
|
11
12
|
end
|
12
13
|
|
13
14
|
# Does the actual HTTP level interaction.
|
data/lib/exchanger/config.rb
CHANGED
@@ -2,7 +2,7 @@ module Exchanger
|
|
2
2
|
class Config
|
3
3
|
include Singleton
|
4
4
|
|
5
|
-
attr_accessor :endpoint, :timeout, :username, :password, :debug, :insecure_ssl
|
5
|
+
attr_accessor :endpoint, :timeout, :username, :password, :debug, :insecure_ssl, :ssl_version
|
6
6
|
|
7
7
|
def initialize
|
8
8
|
reset
|
@@ -16,6 +16,7 @@ module Exchanger
|
|
16
16
|
@password = nil
|
17
17
|
@debug = false
|
18
18
|
@insecure_ssl = false
|
19
|
+
@ssl_version = nil
|
19
20
|
end
|
20
21
|
|
21
22
|
# Configure Exchanger client from a hash. This is usually called after parsing a
|
data/lib/exchanger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exchanger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgars Beigarts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|