Skip to content

Commit c1a787b

Browse files
authored
Merge pull request #70 from EasyPost/tlsv1_2
Enforce TLSv1.2
2 parents b3ae3d8 + 56592e8 commit c1a787b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
=== 3.0.0 2018-02-09
2+
3+
* Require use of ruby ~> 2.0 and TLSv1.2
4+
5+
16
=== 2.7.3 2017-05-25
27

38
* Fix bug with introduced around certain JSON objects with IDs (thanks vladvinnikov!)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.3
1+
3.0.0

easypost.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ Gem::Specification.new do |spec|
1717
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
1818
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
1919
spec.require_paths = ['lib']
20+
spec.required_ruby_version = '~> 2.0'
2021

21-
spec.add_dependency 'rest-client', '>= 1.4'
22+
spec.add_dependency 'rest-client', '>= 1.7'
2223
spec.add_dependency 'multi_json', '>= 1.3.0'
2324
spec.add_development_dependency 'bundler', '~> 1.7'
2425
spec.add_development_dependency 'rake', '~> 10.0'

lib/easypost.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def self.http_config
7575
timeout: 60,
7676
open_timeout: 30,
7777
verify_ssl: false,
78-
ssl_version: "TLSv1",
78+
ssl_version: :TLSv1_2,
7979
}
8080
end
8181

0 commit comments

Comments
 (0)