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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df31647d9e67a7bcb1a613c5726b6223a642d65b
4
- data.tar.gz: ad7c7b25672c61a7303c212d9f77eede30cdff6b
3
+ metadata.gz: d4fcefb7652f0a52f9e979e1a595f9aba01e3651
4
+ data.tar.gz: 54cf7f009d5603674b9cd8b5c94109d5ccc11d28
5
5
  SHA512:
6
- metadata.gz: a606600fe96c0a88c28e1574cb0607c698dc597c2e4562dd0835cf14181086c81e3b856f64a03bd6ee89a8e06334dd8804bef917e328645926fa81fbd2f079a5
7
- data.tar.gz: 5be2961df6a6c1a2bc0e750542f0c5072bf7e2b6c77712134cc51c6c50d265a16e14dc5510d8a5b4a873c4b325d70f9682e64d174d54e1ab6ef685ef991f6e29
6
+ metadata.gz: c5a4cdea7a1bc4541536fa4e35f4397006e49c006340eadbc8acd2f37ed8bc988d7061bbbfe0fb19399d6d55528a587a4455563344410d0ae5a9e01786623bcd
7
+ data.tar.gz: 2b61977cc54b2732e2c2102a61c283de6ab5699d50b9292e38e6a274b08bc47343a4f056c5d3d50bf9f51d52c66bb1ad3acb064d28b249ab26d621dbc106f37d
@@ -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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Exchanger
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2017-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport