chaltron 1.1.3 → 1.1.4

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
  SHA256:
3
- metadata.gz: d081b6eb5ec02e7c03ebfee40e7c5bbf0044af5ce5a84d00da1672099d895143
4
- data.tar.gz: 72bc1ca9c34fb24d7881e25eb834cf3d747cf4045b6f7a6bc5198a1b87876826
3
+ metadata.gz: 52359234f98454549db88ec7d86a85060f5e802f7db976fbde8dcfa5901df79d
4
+ data.tar.gz: 9e3707b9e3c24174f6bd5054ff48dbb9b928dfd1a9b79599a660f0d99dc3a75f
5
5
  SHA512:
6
- metadata.gz: 05e8234a1ff00fdf42be87a2057a5afefd8ef0f785fa78bf08f69f631b8145cfb97585984f0c87c416b2fad367bcf6b272b2734996cd3038b8670268528adfe3
7
- data.tar.gz: 9988543b86afb2ce68b12e1c4e965599e335795db4dde8427ad6b6639aa8a994242360029dda2e32ac822a21dbdffb6c73fb486f986b2459446c9eef79ff8fa7
6
+ metadata.gz: 4f765fe682ed4c2aa2fd33a4a0356323b0c15d9026d9c145b3b30550dea5f717acc3b73b37ab8a1e741fb5cbe751b768561a466a7a50a6182b584873be56cdc8
7
+ data.tar.gz: ee2248ea33675f782bd672666b2abb968846db97d71437adb5487e4b86288a4227d553b38d160102738183a2b694789b4ef85d7c790ecd91c37005eea501b2aa
@@ -132,16 +132,16 @@ module Chaltron
132
132
  method = translate_method
133
133
  return unless method
134
134
 
135
- opts = if options[:verify_certificates] && method != 'plain'
136
- # Dup so we don't accidentally overwrite the constant
137
- OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.dup
138
- else
139
- # It is important to explicitly set verify_mode for two reasons:
140
- # 1. The behavior of OpenSSL is undefined when verify_mode is not set.
141
- # 2. The net-ldap gem implementation verifies the certificate hostname
142
- # unless verify_mode is set to VERIFY_NONE.
143
- { verify_mode: OpenSSL::SSL::VERIFY_NONE }
144
- end
135
+ opts = if options[:disable_verify_certificates]
136
+ # It is important to explicitly set verify_mode for two reasons:
137
+ # 1. The behavior of OpenSSL is undefined when verify_mode is not set.
138
+ # 2. The net-ldap gem implementation verifies the certificate hostname
139
+ # unless verify_mode is set to VERIFY_NONE.
140
+ { verify_mode: OpenSSL::SSL::VERIFY_NONE }
141
+ else
142
+ # Dup so we don't accidentally overwrite the constant
143
+ OpenSSL::SSL::SSLContext::DEFAULT_PARAMS.dup
144
+ end
145
145
 
146
146
  opts.merge!(custom_tls_options)
147
147
 
@@ -1,3 +1,3 @@
1
1
  module Chaltron
2
- VERSION = '1.1.3'.freeze
2
+ VERSION = '1.1.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chaltron
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - vicvega
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-21 00:00:00.000000000 Z
11
+ date: 2019-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails