excon 1.2.6 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21ddff7fd5d4ff5c67479b875a41ceda46e2148d31048e1c50d42a6501fe6f32
4
- data.tar.gz: d878e73d1bc3b978de085a1853c9bd5b24066f9c7392c0ac17506a95fd087adf
3
+ metadata.gz: 5f1a8e2184c998cda5bb0d962dc81df79547a17db94f152db31de334eab6099a
4
+ data.tar.gz: f6e2e657d462586a14360feb09b91af5523937460570e70d0e5e92228675af33
5
5
  SHA512:
6
- metadata.gz: 5faff9101fccad1dff59260c93f75f00c43f3422115e54a13d9c3183977972d051495b297ae310e85cbd8de0f168ef02d6a659cd52ef70d54c95f7a892f8a1ee
7
- data.tar.gz: a69ae24ffe83a5f63186e6aa53d6d74b9f3a28f55ab0bb92193b6853a9caafb639511f8f8e3fe76869735ca3b8683b66070fc95897a16aa125667f259121d7bf
6
+ metadata.gz: 0f3a20bc73738f4984a62dcb89f4bfa23d1cbcabf5c81424a27fad684b9b60e13543e3b06811e23a5361d7d309f22e373f71868050924fd6729b4cccbdf2c43c
7
+ data.tar.gz: 66edb247d393982f4092b8a201e8337ec5d517075755b1bb2336cd6a4266c3c3e0a34f9a83325477e61addc862fb4f8264a9a28237ec847608053949ff7e3b12
@@ -39,6 +39,7 @@ module Excon
39
39
 
40
40
  VERSIONS = "#{USER_AGENT} (#{RUBY_PLATFORM}) ruby/#{RUBY_VERSION}".freeze
41
41
 
42
+ # FIXME: should be frozen, but with a way to change them, similar to defaults
42
43
  VALID_REQUEST_KEYS = %i[
43
44
  allow_unstubbed_requests
44
45
  body
@@ -65,8 +66,9 @@ module Excon
65
66
  user
66
67
  versions
67
68
  write_timeout
68
- ].freeze
69
+ ]
69
70
 
71
+ # FIXME: should be frozen, but with a way to change them, similar to defaults
70
72
  VALID_CONNECTION_KEYS = (VALID_REQUEST_KEYS + %i[
71
73
  ciphers
72
74
  client_key
@@ -111,7 +113,7 @@ module Excon
111
113
  tcp_nodelay
112
114
  thread_safe_sockets
113
115
  uri_parser
114
- ]).freeze
116
+ ])
115
117
 
116
118
  DEPRECATED_VALID_REQUEST_KEYS = {
117
119
  captures: 'Mock',
@@ -160,7 +162,7 @@ module Excon
160
162
  Excon::Middleware::Idempotent,
161
163
  Excon::Middleware::Instrumentor,
162
164
  Excon::Middleware::Mock
163
- ].freeze,
165
+ ],
164
166
  mock: false,
165
167
  include_default_port: false,
166
168
  nonblock: true,
data/lib/excon/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Excon
4
- VERSION = '1.2.6'
4
+ VERSION = '1.2.7'
5
5
  end
data/lib/excon.rb CHANGED
@@ -48,7 +48,7 @@ module Excon
48
48
  class << self
49
49
  # @return [Hash] defaults for Excon connections
50
50
  def defaults
51
- @defaults ||= DEFAULTS
51
+ @defaults ||= DEFAULTS.dup
52
52
  end
53
53
 
54
54
  # Change defaults for Excon connections
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpiddy (Dan Peterson)