excon 0.64.0 → 0.65.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of excon might be problematic. Click here for more details.

Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/data/cacert.pem +108 -2
  3. data/excon.gemspec +7 -2
  4. data/lib/excon.rb +11 -11
  5. data/lib/excon/connection.rb +25 -25
  6. data/lib/excon/response.rb +1 -1
  7. data/lib/excon/version.rb +1 -1
  8. metadata +3 -101
  9. data/.document +0 -5
  10. data/.github/stale.yml +0 -17
  11. data/.gitignore +0 -13
  12. data/.rspec +0 -3
  13. data/.travis.yml +0 -17
  14. data/Gemfile +0 -19
  15. data/Rakefile +0 -41
  16. data/benchmarks/class_vs_lambda.rb +0 -50
  17. data/benchmarks/concat_vs_insert.rb +0 -21
  18. data/benchmarks/concat_vs_interpolate.rb +0 -22
  19. data/benchmarks/cr_lf.rb +0 -21
  20. data/benchmarks/downcase-eq-eq_vs_casecmp.rb +0 -169
  21. data/benchmarks/excon.rb +0 -69
  22. data/benchmarks/excon_vs.rb +0 -165
  23. data/benchmarks/for_vs_array_each.rb +0 -27
  24. data/benchmarks/for_vs_hash_each.rb +0 -27
  25. data/benchmarks/has_key-vs-lookup.rb +0 -177
  26. data/benchmarks/headers_case_sensitivity.rb +0 -83
  27. data/benchmarks/headers_split_vs_match.rb +0 -34
  28. data/benchmarks/implicit_block-vs-explicit_block.rb +0 -98
  29. data/benchmarks/merging.rb +0 -21
  30. data/benchmarks/single_vs_double_quotes.rb +0 -21
  31. data/benchmarks/string_ranged_index.rb +0 -87
  32. data/benchmarks/strip_newline.rb +0 -115
  33. data/benchmarks/vs_stdlib.rb +0 -82
  34. data/changelog.txt +0 -1113
  35. data/spec/excon/error_spec.rb +0 -139
  36. data/spec/excon/test/server_spec.rb +0 -28
  37. data/spec/excon_spec.rb +0 -7
  38. data/spec/helpers/file_path_helpers.rb +0 -22
  39. data/spec/helpers/warning_helpers.rb +0 -9
  40. data/spec/requests/basic_spec.rb +0 -40
  41. data/spec/requests/eof_requests_spec.rb +0 -36
  42. data/spec/requests/unix_socket_spec.rb +0 -38
  43. data/spec/requests/validation_spec.rb +0 -80
  44. data/spec/spec_helper.rb +0 -26
  45. data/spec/support/shared_contexts/test_server_context.rb +0 -83
  46. data/spec/support/shared_contexts/test_stub_context.rb +0 -11
  47. data/spec/support/shared_examples/shared_example_for_clients.rb +0 -220
  48. data/spec/support/shared_examples/shared_example_for_streaming_clients.rb +0 -20
  49. data/spec/support/shared_examples/shared_example_for_test_servers.rb +0 -16
  50. data/tests/authorization_header_tests.rb +0 -27
  51. data/tests/bad_tests.rb +0 -69
  52. data/tests/basic_tests.rb +0 -351
  53. data/tests/batch_requests.rb +0 -133
  54. data/tests/complete_responses.rb +0 -31
  55. data/tests/data/127.0.0.1.cert.crt +0 -17
  56. data/tests/data/127.0.0.1.cert.key +0 -28
  57. data/tests/data/excon.cert.crt +0 -17
  58. data/tests/data/excon.cert.key +0 -28
  59. data/tests/data/xs +0 -1
  60. data/tests/error_tests.rb +0 -145
  61. data/tests/header_tests.rb +0 -119
  62. data/tests/instrumentors/logging_instrumentor_tests.rb +0 -28
  63. data/tests/middleware_tests.rb +0 -27
  64. data/tests/middlewares/canned_response_tests.rb +0 -34
  65. data/tests/middlewares/capture_cookies_tests.rb +0 -34
  66. data/tests/middlewares/decompress_tests.rb +0 -157
  67. data/tests/middlewares/escape_path_tests.rb +0 -36
  68. data/tests/middlewares/idempotent_tests.rb +0 -245
  69. data/tests/middlewares/instrumentation_tests.rb +0 -315
  70. data/tests/middlewares/mock_tests.rb +0 -304
  71. data/tests/middlewares/redirect_follower_tests.rb +0 -112
  72. data/tests/pipeline_tests.rb +0 -40
  73. data/tests/proxy_tests.rb +0 -306
  74. data/tests/query_string_tests.rb +0 -87
  75. data/tests/rackups/basic.rb +0 -41
  76. data/tests/rackups/basic.ru +0 -3
  77. data/tests/rackups/basic_auth.ru +0 -14
  78. data/tests/rackups/deflater.ru +0 -4
  79. data/tests/rackups/proxy.ru +0 -18
  80. data/tests/rackups/query_string.ru +0 -13
  81. data/tests/rackups/redirecting.ru +0 -23
  82. data/tests/rackups/redirecting_with_cookie.ru +0 -40
  83. data/tests/rackups/request_headers.ru +0 -15
  84. data/tests/rackups/request_methods.ru +0 -21
  85. data/tests/rackups/response_header.ru +0 -18
  86. data/tests/rackups/ssl.ru +0 -16
  87. data/tests/rackups/ssl_mismatched_cn.ru +0 -15
  88. data/tests/rackups/ssl_verify_peer.ru +0 -16
  89. data/tests/rackups/streaming.ru +0 -30
  90. data/tests/rackups/thread_safety.ru +0 -17
  91. data/tests/rackups/timeout.ru +0 -14
  92. data/tests/rackups/webrick_patch.rb +0 -34
  93. data/tests/request_headers_tests.rb +0 -21
  94. data/tests/request_method_tests.rb +0 -47
  95. data/tests/request_tests.rb +0 -58
  96. data/tests/response_tests.rb +0 -197
  97. data/tests/servers/bad.rb +0 -25
  98. data/tests/servers/eof.rb +0 -17
  99. data/tests/servers/error.rb +0 -20
  100. data/tests/servers/good.rb +0 -342
  101. data/tests/servers/good_ipv4.rb +0 -8
  102. data/tests/servers/good_ipv6.rb +0 -8
  103. data/tests/test_helper.rb +0 -297
  104. data/tests/thread_safety_tests.rb +0 -39
  105. data/tests/timeout_tests.rb +0 -12
  106. data/tests/utils_tests.rb +0 -81
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0089e6e20aad3c735ea51b5dae6b90820b31d1379d2159cb01a2d2ab5e1e0fa8'
4
- data.tar.gz: f362e1a3bbedfa71887fcd4c53ef3d202cfe7a337a8d1414396787e8eb160733
3
+ metadata.gz: 4cc63ddad0f9af8192beff1525e1ebce8ec89a633aa6a8bc2aec53177a7f8a41
4
+ data.tar.gz: 0e8f295ee1570d333e0ce292d272a175c92cf37fcb415b32a60b2997b4f5d3cf
5
5
  SHA512:
6
- metadata.gz: d03f86c4ec2ab00e8190f462cc21e64709be82820898e3d1ce25229ebbe23a3026939b879a07dffb255e4dadf47a59f103cca6035661f7d361164e78a2144efc
7
- data.tar.gz: efecb7088b79a9e951cec7af4ae768addb8ed7bee909bfe6ace5cecbcb7d43cbbcb9846a04feebe6b17c545d20eeefbca8d2733865e0613e93f74cbc8b7f1179
6
+ metadata.gz: 12669e9bef2f22834bbc6ac0292e16bcf1f9d87ca0e37b06d02e39183d25b2f7bd69389663d688e48b8edd1104f91c50146eb152d8e508840aafd0802169f379
7
+ data.tar.gz: b0d6abdbe9fdeb53a89ce96dca6315e5e61d2b66a64d5a326dfff711df5ce742fa3455c997c8b94d315a31ceb9bd5caa1186b414a7389687b312cbbc87607150
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## Bundle of CA Root Certificates
3
3
  ##
4
- ## Certificate data from Mozilla as of: Wed Jan 23 04:12:09 2019 GMT
4
+ ## Certificate data from Mozilla as of: Wed May 15 03:12:09 2019 GMT
5
5
  ##
6
6
  ## This is a bundle of X.509 certificates of public Certificate Authorities
7
7
  ## (CA). These were automatically extracted from Mozilla's root certificates
@@ -14,7 +14,7 @@
14
14
  ## Just configure this file as the SSLCACertificateFile.
15
15
  ##
16
16
  ## Conversion done with mk-ca-bundle.pl version 1.27.
17
- ## SHA256: 18372117493b5b7ec006c31d966143fc95a9464a2b5f8d5188e23c5557b2292d
17
+ ## SHA256: 61eaa79ac46d923f2f74dfe401189424e96fa8736102b47ba2cdb4ea19af2cc8
18
18
  ##
19
19
 
20
20
 
@@ -3399,3 +3399,109 @@ tlu3zM63Nwf9JtmYhST/WSMDmu2dnajkXjjO11INb9I/bbEFa0nOipFGc/T2L/Coc3cOZayhjWZS
3399
3399
  aX5LaAzHHjcng6WMxwLkFM1JAbBzs/3GkDpv0mztO+7skb6iQ12LAEpmJURw3kAP+HwV96LOPNde
3400
3400
  E4yBFxgX0b3xdxA61GU5wSesVywlVP+i2k+KYTlerj1KjL0=
3401
3401
  -----END CERTIFICATE-----
3402
+
3403
+ emSign Root CA - G1
3404
+ ===================
3405
+ -----BEGIN CERTIFICATE-----
3406
+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+ NcMYDHsAVhzNixl03r4PEuDQqqE/AjSxcM6dGNYIAwlG7mDgfrbESQRRfXBgvKqy/3lyeqYdPV8q
3420
+ +Mri/Tm3R7nrft8EI6/6nAYH6ftjk4BAtcZsCjEozgyfz7MjNYBBjWzEN3uBL4ChQEKF6dk4jeih
3421
+ U80Bv2noWgbyRQuQ+q7hv53yrlc8pa6yVvSLZUDp/TGBLPQ5Cdjua6e0ph0VpZj3AYHYhX3zUVxx
3422
+ iN66zB+Afko=
3423
+ -----END CERTIFICATE-----
3424
+
3425
+ emSign ECC Root CA - G3
3426
+ =======================
3427
+ -----BEGIN CERTIFICATE-----
3428
+ MIICTjCCAdOgAwIBAgIKPPYHqWhwDtqLhDAKBggqhkjOPQQDAzBrMQswCQYDVQQGEwJJTjETMBEG
3429
+ A1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEg
3430
+ MB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0gRzMwHhcNMTgwMjE4MTgzMDAwWhcNNDMwMjE4
3431
+ MTgzMDAwWjBrMQswCQYDVQQGEwJJTjETMBEGA1UECxMKZW1TaWduIFBLSTElMCMGA1UEChMcZU11
3432
+ ZGhyYSBUZWNobm9sb2dpZXMgTGltaXRlZDEgMB4GA1UEAxMXZW1TaWduIEVDQyBSb290IENBIC0g
3433
+ RzMwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQjpQy4LRL1KPOxst3iAhKAnjlfSU2fySU0WXTsuwYc
3434
+ 58Byr+iuL+FBVIcUqEqy6HyC5ltqtdyzdc6LBtCGI79G1Y4PPwT01xySfvalY8L1X44uT6EYGQIr
3435
+ MgqCZH0Wk9GjQjBAMB0GA1UdDgQWBBR8XQKEE9TMipuBzhccLikenEhjQjAOBgNVHQ8BAf8EBAMC
3436
+ AQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNpADBmAjEAvvNhzwIQHWSVB7gYboiFBS+D
3437
+ CBeQyh+KTOgNG3qxrdWBCUfvO6wIBHxcmbHtRwfSAjEAnbpV/KlK6O3t5nYBQnvI+GDZjVGLVTv7
3438
+ jHvrZQnD+JbNR6iC8hZVdyR+EhCVBCyj
3439
+ -----END CERTIFICATE-----
3440
+
3441
+ emSign Root CA - C1
3442
+ ===================
3443
+ -----BEGIN CERTIFICATE-----
3444
+ MIIDczCCAlugAwIBAgILAK7PALrEzzL4Q7IwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCVVMx
3445
+ EzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQDExNlbVNp
3446
+ Z24gUm9vdCBDQSAtIEMxMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowVjELMAkGA1UE
3447
+ BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMRwwGgYDVQQD
3448
+ ExNlbVNpZ24gUm9vdCBDQSAtIEMxMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAz+up
3449
+ ufGZBczYKCFK83M0UYRWEPWgTywS4/oTmifQz/l5GnRfHXk5/Fv4cI7gklL35CX5VIPZHdPIWoU/
3450
+ Xse2B+4+wM6ar6xWQio5JXDWv7V7Nq2s9nPczdcdioOl+yuQFTdrHCZH3DspVpNqs8FqOp099cGX
3451
+ OFgFixwR4+S0uF2FHYP+eF8LRWgYSKVGczQ7/g/IdrvHGPMF0Ybzhe3nudkyrVWIzqa2kbBPrH4V
3452
+ I5b2P/AgNBbeCsbEBEV5f6f9vtKppa+cxSMq9zwhbL2vj07FOrLzNBL834AaSaTUqZX3noleooms
3453
+ lMuoaJuvimUnzYnu3Yy1aylwQ6BpC+S5DwIDAQABo0IwQDAdBgNVHQ4EFgQU/qHgcB4qAzlSWkK+
3454
+ XJGFehiqTbUwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQAD
3455
+ ggEBAMJKVvoVIXsoounlHfv4LcQ5lkFMOycsxGwYFYDGrK9HWS8mC+M2sO87/kOXSTKZEhVb3xEp
3456
+ /6tT+LvBeA+snFOvV71ojD1pM/CjoCNjO2RnIkSt1XHLVip4kqNPEjE2NuLe/gDEo2APJ62gsIq1
3457
+ NnpSob0n9CAnYuhNlCQT5AoE6TyrLshDCUrGYQTlSTR+08TI9Q/Aqum6VF7zYytPT1DU/rl7mYw9
3458
+ wC68AivTxEDkigcxHpvOJpkT+xHqmiIMERnHXhuBUDDIlhJu58tBf5E7oke3VIAb3ADMmpDqw8NQ
3459
+ BmIMMMAVSKeoWXzhriKi4gp6D/piq1JM4fHfyr6DDUI=
3460
+ -----END CERTIFICATE-----
3461
+
3462
+ emSign ECC Root CA - C3
3463
+ =======================
3464
+ -----BEGIN CERTIFICATE-----
3465
+ MIICKzCCAbGgAwIBAgIKe3G2gla4EnycqDAKBggqhkjOPQQDAzBaMQswCQYDVQQGEwJVUzETMBEG
3466
+ A1UECxMKZW1TaWduIFBLSTEUMBIGA1UEChMLZU11ZGhyYSBJbmMxIDAeBgNVBAMTF2VtU2lnbiBF
3467
+ Q0MgUm9vdCBDQSAtIEMzMB4XDTE4MDIxODE4MzAwMFoXDTQzMDIxODE4MzAwMFowWjELMAkGA1UE
3468
+ BhMCVVMxEzARBgNVBAsTCmVtU2lnbiBQS0kxFDASBgNVBAoTC2VNdWRocmEgSW5jMSAwHgYDVQQD
3469
+ ExdlbVNpZ24gRUNDIFJvb3QgQ0EgLSBDMzB2MBAGByqGSM49AgEGBSuBBAAiA2IABP2lYa57JhAd
3470
+ 6bciMK4G9IGzsUJxlTm801Ljr6/58pc1kjZGDoeVjbk5Wum739D+yAdBPLtVb4OjavtisIGJAnB9
3471
+ SMVK4+kiVCJNk7tCDK93nCOmfddhEc5lx/h//vXyqaNCMEAwHQYDVR0OBBYEFPtaSNCAIEDyqOkA
3472
+ B2kZd6fmw/TPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MAoGCCqGSM49BAMDA2gA
3473
+ MGUCMQC02C8Cif22TGK6Q04ThHK1rt0c3ta13FaPWEBaLd4gTCKDypOofu4SQMfWh0/434UCMBwU
3474
+ ZOR8loMRnLDRWmFLpg9J0wD8ofzkpf9/rdcw0Md3f76BB1UwUCAU9Vc4CqgxUQ==
3475
+ -----END CERTIFICATE-----
3476
+
3477
+ Hongkong Post Root CA 3
3478
+ =======================
3479
+ -----BEGIN CERTIFICATE-----
3480
+ MIIFzzCCA7egAwIBAgIUCBZfikyl7ADJk0DfxMauI7gcWqQwDQYJKoZIhvcNAQELBQAwbzELMAkG
3481
+ A1UEBhMCSEsxEjAQBgNVBAgTCUhvbmcgS29uZzESMBAGA1UEBxMJSG9uZyBLb25nMRYwFAYDVQQK
3482
+ Ew1Ib25na29uZyBQb3N0MSAwHgYDVQQDExdIb25na29uZyBQb3N0IFJvb3QgQ0EgMzAeFw0xNzA2
3483
+ MDMwMjI5NDZaFw00MjA2MDMwMjI5NDZaMG8xCzAJBgNVBAYTAkhLMRIwEAYDVQQIEwlIb25nIEtv
3484
+ bmcxEjAQBgNVBAcTCUhvbmcgS29uZzEWMBQGA1UEChMNSG9uZ2tvbmcgUG9zdDEgMB4GA1UEAxMX
3485
+ SG9uZ2tvbmcgUG9zdCBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCz
3486
+ iNfqzg8gTr7m1gNt7ln8wlffKWihgw4+aMdoWJwcYEuJQwy51BWy7sFOdem1p+/l6TWZ5Mwc50tf
3487
+ jTMwIDNT2aa71T4Tjukfh0mtUC1Qyhi+AViiE3CWu4mIVoBc+L0sPOFMV4i707mV78vH9toxdCim
3488
+ 5lSJ9UExyuUmGs2C4HDaOym71QP1mbpV9WTRYA6ziUm4ii8F0oRFKHyPaFASePwLtVPLwpgchKOe
3489
+ sL4jpNrcyCse2m5FHom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iVWqw2rVKAiUnhde3t4ZEFolsgCs+l6mc1X5VTMbeRRAc6uk7
3503
+ nwNT7u56AQIWeNTowr5GdogTPyK7SBIdUgC0An4hGh6cJfTzPV4e0hz5sy229zdcxsshTrD3mUcY
3504
+ hcErulWuBurQB7Lcq9CClnXO0lD+mefPL5/ndtFhKvshuzHQqp9HpLIiyhY6UFfEW0NnxWViA0kB
3505
+ 60PZ2Pierc+xYw5F9KBaLJstxabArahH9CdMOA0uG0k7UvToiIMrVCjU8jVStDKDYmlkDJGcn5fq
3506
+ dBb9HxEGmpv0
3507
+ -----END CERTIFICATE-----
@@ -11,8 +11,13 @@ Gem::Specification.new do |s|
11
11
  s.license = 'MIT'
12
12
  s.rdoc_options = ["--charset=UTF-8"]
13
13
  s.extra_rdoc_files = %w[README.md CONTRIBUTORS.md CONTRIBUTING.md]
14
- s.files = `git ls-files -z`.split("\x0")
15
- s.test_files = s.files.select { |path| path =~ /^[spec|tests]\/.*_[spec|tests]\.rb/ }
14
+ s.files = `git ls-files -- {data,lib}/*`.split("\n") + [
15
+ "CONTRIBUTING.md",
16
+ "CONTRIBUTORS.md",
17
+ "LICENSE.md",
18
+ "README.md",
19
+ "excon.gemspec"
20
+ ]
16
21
 
17
22
  s.add_development_dependency('rspec', '>= 3.5.0')
18
23
  s.add_development_dependency('activesupport')
@@ -113,9 +113,9 @@ module Excon
113
113
 
114
114
  # @see Connection#initialize
115
115
  # Initializes a new keep-alive session for a given remote host
116
- # @param [String] url The destination URL
117
- # @param [Hash<Symbol, >] params One or more option params to set on the Connection instance
118
- # @return [Connection] A new Excon::Connection instance
116
+ # @param [String] url The destination URL
117
+ # @param [Hash<Symbol, >] params One or more option params to set on the Connection instance
118
+ # @return [Connection] A new Excon::Connection instance
119
119
  def new(url, params = {})
120
120
  uri_parser = params[:uri_parser] || defaults[:uri_parser]
121
121
  uri = uri_parser.parse(url)
@@ -143,9 +143,9 @@ module Excon
143
143
  end
144
144
 
145
145
  # push an additional stub onto the list to check for mock requests
146
- # @param [Hash<Symbol, >] request params to match against, omitted params match all
147
- # @param [Hash<Symbol, >] response params to return from matched request or block to call with params
148
- def stub(request_params = {}, response_params = nil)
146
+ # @param request_params [Hash<Symbol, >] request params to match against, omitted params match all
147
+ # @param response_params [Hash<Symbol, >] response params to return from matched request or block to call with params
148
+ def stub(request_params = {}, response_params = nil, &block)
149
149
  if method = request_params.delete(:method)
150
150
  request_params[:method] = method.to_s.downcase.to_sym
151
151
  end
@@ -175,7 +175,7 @@ module Excon
175
175
  if response_params
176
176
  raise(ArgumentError.new("stub requires either response_params OR a block"))
177
177
  else
178
- stub = [request_params, Proc.new]
178
+ stub = [request_params, block]
179
179
  end
180
180
  elsif response_params
181
181
  stub = [request_params, response_params]
@@ -187,8 +187,8 @@ module Excon
187
187
  end
188
188
 
189
189
  # get a stub matching params or nil
190
- # @param [Hash<Symbol, >] request params to match against, omitted params match all
191
- # @return [Hash<Symbol, >] response params to return from matched request or block to call with params
190
+ # @param request_params [Hash<Symbol, >] request params to match against, omitted params match all
191
+ # @return [Hash<Symbol, >] response params to return from matched request or block to call with params
192
192
  def stub_for(request_params={})
193
193
  if method = request_params.delete(:method)
194
194
  request_params[:method] = method.to_s.downcase.to_sym
@@ -236,8 +236,8 @@ module Excon
236
236
  end
237
237
 
238
238
  # remove first/oldest stub matching request_params
239
- # @param [Hash<Symbol, >] request params to match against, omitted params match all
240
- # @return [Hash<Symbol, >] response params from deleted stub
239
+ # @param request_params [Hash<Symbol, >] request params to match against, omitted params match all
240
+ # @return [Hash<Symbol, >] response params from deleted stub
241
241
  def unstub(request_params = {})
242
242
  stub = stub_for(request_params)
243
243
  Excon.stubs.delete_at(Excon.stubs.index(stub))
@@ -43,22 +43,22 @@ module Excon
43
43
  end
44
44
 
45
45
  # Initializes a new Connection instance
46
- # @param [Hash<Symbol, >] params One or more optional params
47
- # @option params [String] :body Default text to be sent over a socket. Only used if :body absent in Connection#request params
48
- # @option params [Hash<Symbol, String>] :headers The default headers to supply in a request. Only used if params[:headers] is not supplied to Connection#request
49
- # @option params [String] :host The destination host's reachable DNS name or IP, in the form of a String. IPv6 addresses must be wrapped (e.g. [::1]). See URI#host.
50
- # @option params [String] :hostname Same as host, but usable for socket connections. IPv6 addresses must not be wrapped (e.g. ::1). See URI#hostname.
51
- # @option params [String] :path Default path; appears after 'scheme://host:port/'. Only used if params[:path] is not supplied to Connection#request
52
- # @option params [Fixnum] :port The port on which to connect, to the destination host
53
- # @option params [Hash] :query Default query; appended to the 'scheme://host:port/path/' in the form of '?key=value'. Will only be used if params[:query] is not supplied to Connection#request
54
- # @option params [String] :scheme The protocol; 'https' causes OpenSSL to be used
55
- # @option params [String] :socket The path to the unix socket (required for 'unix://' connections)
56
- # @option params [String] :ciphers Only use the specified SSL/TLS cipher suites; use OpenSSL cipher spec format e.g. 'HIGH:!aNULL:!3DES' or 'AES256-SHA:DES-CBC3-SHA'
57
- # @option params [String] :proxy Proxy server; e.g. 'http://myproxy.com:8888'
58
- # @option params [Fixnum] :retry_limit Set how many times we'll retry a failed request. (Default 4)
59
- # @option params [Fixnum] :retry_interval Set how long to wait between retries. (Default 0)
60
- # @option params [Class] :instrumentor Responds to #instrument as in ActiveSupport::Notifications
61
- # @option params [String] :instrumentor_name Name prefix for #instrument events. Defaults to 'excon'
46
+ # @param [Hash<Symbol, >] params One or more optional params
47
+ # @option params [String] :body Default text to be sent over a socket. Only used if :body absent in Connection#request params
48
+ # @option params [Hash<Symbol, String>] :headers The default headers to supply in a request. Only used if params[:headers] is not supplied to Connection#request
49
+ # @option params [String] :host The destination host's reachable DNS name or IP, in the form of a String. IPv6 addresses must be wrapped (e.g. [::1]). See URI#host.
50
+ # @option params [String] :hostname Same as host, but usable for socket connections. IPv6 addresses must not be wrapped (e.g. ::1). See URI#hostname.
51
+ # @option params [String] :path Default path; appears after 'scheme://host:port/'. Only used if params[:path] is not supplied to Connection#request
52
+ # @option params [Fixnum] :port The port on which to connect, to the destination host
53
+ # @option params [Hash] :query Default query; appended to the 'scheme://host:port/path/' in the form of '?key=value'. Will only be used if params[:query] is not supplied to Connection#request
54
+ # @option params [String] :scheme The protocol; 'https' causes OpenSSL to be used
55
+ # @option params [String] :socket The path to the unix socket (required for 'unix://' connections)
56
+ # @option params [String] :ciphers Only use the specified SSL/TLS cipher suites; use OpenSSL cipher spec format e.g. 'HIGH:!aNULL:!3DES' or 'AES256-SHA:DES-CBC3-SHA'
57
+ # @option params [String] :proxy Proxy server; e.g. 'http://myproxy.com:8888'
58
+ # @option params [Fixnum] :retry_limit Set how many times we'll retry a failed request. (Default 4)
59
+ # @option params [Fixnum] :retry_interval Set how long to wait between retries. (Default 0)
60
+ # @option params [Class] :instrumentor Responds to #instrument as in ActiveSupport::Notifications
61
+ # @option params [String] :instrumentor_name Name prefix for #instrument events. Defaults to 'excon'
62
62
  def initialize(params = {})
63
63
  @data = Excon.defaults.dup
64
64
  # merge does not deep-dup, so make sure headers is not the original
@@ -221,12 +221,12 @@ module Excon
221
221
  end
222
222
 
223
223
  # Sends the supplied request to the destination host.
224
- # @yield [chunk] @see Response#self.parse
225
- # @param [Hash<Symbol, >] params One or more optional params, override defaults set in Connection.new
226
- # @option params [String] :body text to be sent over a socket
227
- # @option params [Hash<Symbol, String>] :headers The default headers to supply in a request
228
- # @option params [String] :path appears after 'scheme://host:port/'
229
- # @option params [Hash] :query appended to the 'scheme://host:port/path/' in the form of '?key=value'
224
+ # @yield [chunk] @see Response#self.parse
225
+ # @param [Hash<Symbol, >] params One or more optional params, override defaults set in Connection.new
226
+ # @option params [String] :body text to be sent over a socket
227
+ # @option params [Hash<Symbol, String>] :headers The default headers to supply in a request
228
+ # @option params [String] :path appears after 'scheme://host:port/'
229
+ # @option params [Hash] :query appended to the 'scheme://host:port/path/' in the form of '?key=value'
230
230
  def request(params={}, &block)
231
231
  # @data has defaults, merge in new params to override
232
232
  datum = @data.merge(params)
@@ -257,7 +257,7 @@ module Excon
257
257
 
258
258
  if block_given?
259
259
  Excon.display_warning('Excon requests with a block are deprecated, pass :response_block instead.')
260
- datum[:response_block] = Proc.new
260
+ datum[:response_block] = block
261
261
  end
262
262
 
263
263
  datum[:connection] = self
@@ -301,7 +301,7 @@ module Excon
301
301
  end
302
302
 
303
303
  # Sends the supplied requests to the destination host using pipelining.
304
- # @pipeline_params [Array<Hash>] pipeline_params An array of one or more optional params, override defaults set in Connection.new, see #request for details
304
+ # @param pipeline_params [Array<Hash>] An array of one or more optional params, override defaults set in Connection.new, see #request for details
305
305
  def requests(pipeline_params)
306
306
  pipeline_params.each {|params| params.merge!(:pipeline => true, :persistent => true) }
307
307
  pipeline_params.last.merge!(:persistent => @data[:persistent])
@@ -328,7 +328,7 @@ module Excon
328
328
  # Sends the supplied requests to the destination host using pipelining in
329
329
  # batches of @limit [Numeric] requests. This is your soft file descriptor
330
330
  # limit by default, typically 256.
331
- # @pipeline_params [Array<Hash>] pipeline_params An array of one or more optional params, override defaults set in Connection.new, see #request for details
331
+ # @param pipeline_params [Array<Hash>] An array of one or more optional params, override defaults set in Connection.new, see #request for details
332
332
  def batch_requests(pipeline_params, limit = nil)
333
333
  limit ||= Process.respond_to?(:getrlimit) ? Process.getrlimit(:NOFILE).first : 256
334
334
  responses = []
@@ -222,7 +222,7 @@ module Excon
222
222
  end
223
223
 
224
224
  # Retrieve a specific header value. Header names are treated case-insensitively.
225
- # @param [String] name Header name
225
+ # @param [String] name Header name
226
226
  def get_header(name)
227
227
  headers[name]
228
228
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Excon
3
- VERSION = '0.64.0'
3
+ VERSION = '0.65.0'
4
4
  end
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: 0.64.0
4
+ version: 0.65.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpiddy (Dan Peterson)
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-04-15 00:00:00.000000000 Z
13
+ date: 2019-07-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -189,36 +189,10 @@ extra_rdoc_files:
189
189
  - CONTRIBUTORS.md
190
190
  - CONTRIBUTING.md
191
191
  files:
192
- - ".document"
193
- - ".github/stale.yml"
194
- - ".gitignore"
195
- - ".rspec"
196
- - ".travis.yml"
197
192
  - CONTRIBUTING.md
198
193
  - CONTRIBUTORS.md
199
- - Gemfile
200
194
  - LICENSE.md
201
195
  - README.md
202
- - Rakefile
203
- - benchmarks/class_vs_lambda.rb
204
- - benchmarks/concat_vs_insert.rb
205
- - benchmarks/concat_vs_interpolate.rb
206
- - benchmarks/cr_lf.rb
207
- - benchmarks/downcase-eq-eq_vs_casecmp.rb
208
- - benchmarks/excon.rb
209
- - benchmarks/excon_vs.rb
210
- - benchmarks/for_vs_array_each.rb
211
- - benchmarks/for_vs_hash_each.rb
212
- - benchmarks/has_key-vs-lookup.rb
213
- - benchmarks/headers_case_sensitivity.rb
214
- - benchmarks/headers_split_vs_match.rb
215
- - benchmarks/implicit_block-vs-explicit_block.rb
216
- - benchmarks/merging.rb
217
- - benchmarks/single_vs_double_quotes.rb
218
- - benchmarks/string_ranged_index.rb
219
- - benchmarks/strip_newline.rb
220
- - benchmarks/vs_stdlib.rb
221
- - changelog.txt
222
196
  - data/cacert.pem
223
197
  - excon.gemspec
224
198
  - lib/excon.rb
@@ -251,78 +225,6 @@ files:
251
225
  - lib/excon/unix_socket.rb
252
226
  - lib/excon/utils.rb
253
227
  - lib/excon/version.rb
254
- - spec/excon/error_spec.rb
255
- - spec/excon/test/server_spec.rb
256
- - spec/excon_spec.rb
257
- - spec/helpers/file_path_helpers.rb
258
- - spec/helpers/warning_helpers.rb
259
- - spec/requests/basic_spec.rb
260
- - spec/requests/eof_requests_spec.rb
261
- - spec/requests/unix_socket_spec.rb
262
- - spec/requests/validation_spec.rb
263
- - spec/spec_helper.rb
264
- - spec/support/shared_contexts/test_server_context.rb
265
- - spec/support/shared_contexts/test_stub_context.rb
266
- - spec/support/shared_examples/shared_example_for_clients.rb
267
- - spec/support/shared_examples/shared_example_for_streaming_clients.rb
268
- - spec/support/shared_examples/shared_example_for_test_servers.rb
269
- - tests/authorization_header_tests.rb
270
- - tests/bad_tests.rb
271
- - tests/basic_tests.rb
272
- - tests/batch_requests.rb
273
- - tests/complete_responses.rb
274
- - tests/data/127.0.0.1.cert.crt
275
- - tests/data/127.0.0.1.cert.key
276
- - tests/data/excon.cert.crt
277
- - tests/data/excon.cert.key
278
- - tests/data/xs
279
- - tests/error_tests.rb
280
- - tests/header_tests.rb
281
- - tests/instrumentors/logging_instrumentor_tests.rb
282
- - tests/middleware_tests.rb
283
- - tests/middlewares/canned_response_tests.rb
284
- - tests/middlewares/capture_cookies_tests.rb
285
- - tests/middlewares/decompress_tests.rb
286
- - tests/middlewares/escape_path_tests.rb
287
- - tests/middlewares/idempotent_tests.rb
288
- - tests/middlewares/instrumentation_tests.rb
289
- - tests/middlewares/mock_tests.rb
290
- - tests/middlewares/redirect_follower_tests.rb
291
- - tests/pipeline_tests.rb
292
- - tests/proxy_tests.rb
293
- - tests/query_string_tests.rb
294
- - tests/rackups/basic.rb
295
- - tests/rackups/basic.ru
296
- - tests/rackups/basic_auth.ru
297
- - tests/rackups/deflater.ru
298
- - tests/rackups/proxy.ru
299
- - tests/rackups/query_string.ru
300
- - tests/rackups/redirecting.ru
301
- - tests/rackups/redirecting_with_cookie.ru
302
- - tests/rackups/request_headers.ru
303
- - tests/rackups/request_methods.ru
304
- - tests/rackups/response_header.ru
305
- - tests/rackups/ssl.ru
306
- - tests/rackups/ssl_mismatched_cn.ru
307
- - tests/rackups/ssl_verify_peer.ru
308
- - tests/rackups/streaming.ru
309
- - tests/rackups/thread_safety.ru
310
- - tests/rackups/timeout.ru
311
- - tests/rackups/webrick_patch.rb
312
- - tests/request_headers_tests.rb
313
- - tests/request_method_tests.rb
314
- - tests/request_tests.rb
315
- - tests/response_tests.rb
316
- - tests/servers/bad.rb
317
- - tests/servers/eof.rb
318
- - tests/servers/error.rb
319
- - tests/servers/good.rb
320
- - tests/servers/good_ipv4.rb
321
- - tests/servers/good_ipv6.rb
322
- - tests/test_helper.rb
323
- - tests/thread_safety_tests.rb
324
- - tests/timeout_tests.rb
325
- - tests/utils_tests.rb
326
228
  homepage: https://github.com/excon/excon
327
229
  licenses:
328
230
  - MIT
@@ -349,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
251
  - !ruby/object:Gem::Version
350
252
  version: '0'
351
253
  requirements: []
352
- rubygems_version: 3.0.2
254
+ rubygems_version: 3.0.4
353
255
  signing_key:
354
256
  specification_version: 4
355
257
  summary: speed, persistence, http(s)