chaltron 0.3.0 → 0.3.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
  SHA256:
3
- metadata.gz: 7b464d3bc81862d834f059858174adf7461d64906a4e4ca665be9e1b7a41808f
4
- data.tar.gz: c9c441c67ffa67a0710572821f7080b2865c31b8e70e8a1ab7ec33d566822bec
3
+ metadata.gz: feb9d3687e946213e897ae9bbb835b14fc1214cf29df029fdd91b2ab6b2a0000
4
+ data.tar.gz: b9e6f8b0cff8e15793598694c3329402c887e4ef616d41b9ca932d1901134354
5
5
  SHA512:
6
- metadata.gz: a2bec8d1c227de443791a47dace2291c4ff18e4302b1f3214ede923660570ffd32d4b00355d042e2743e53a20aacdb75f8a14f0e95ca7ee2fb114f3331ca9039
7
- data.tar.gz: 669ccd46e0c625ce65c3695b57afe6a76aef174766613242f63d1be222f9af97f70d7e9bcff1b92c02a35fd47fdaa6ddbb956edac76efa607e64f3b2c836ba84
6
+ metadata.gz: 342e278cad529b9ff1f649a789d7830eb3ef213b3bd238e0e505e62a173a89cf3c8712918420fa619e5cc69636bf485c3dc16ff3f87693058e0cb3eedf432f46
7
+ data.tar.gz: baa4a5d33f03abd750dcc3be2b065fb05cd8694ca34ffa679ee8260ded3d968a68790585154b6d1598580a2c69ada24bb77995c549014e5bf52b05f33040c573
@@ -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 = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.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: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vicvega
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-01 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
@@ -505,7 +505,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
505
505
  - !ruby/object:Gem::Version
506
506
  version: '0'
507
507
  requirements: []
508
- rubygems_version: 3.0.1
508
+ rubygems_version: 3.0.3
509
509
  signing_key:
510
510
  specification_version: 4
511
511
  summary: Move faster and break things - revisited for rails 4