boltless 2.13.0 → 2.14.0

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: 79b6a6ce28c9febeb15f28d8655a047e09df3e9c01f0d7436a35a8eef5f44827
4
- data.tar.gz: 42a6ae85d9a859f45c743d931812b456a1430b7ef4280b475b5c14150ad99a3f
3
+ metadata.gz: ccd0d39b5c5adf4db3f259a90152ebcb556c00ae86d4907da640efe30a562549
4
+ data.tar.gz: 5a65b884f4fd893f186d465947f50348540e21e44edc61bcaa61d4490bfeb69a
5
5
  SHA512:
6
- metadata.gz: f9d08511d7c22d7bfa8059e891c625d8a5f65805d627dd01bdb2b860c83b69a0e44bb8f64dd038ce0674e582ffe7f03f421d3048935e5735beaf5e7fb356ead1
7
- data.tar.gz: fad0c2e5bdce1ae51ab7c4e51c3370f4d7ae59946be8838fe8229f35632a7b9f331e490df08bbd5831ac4ed2e616cff3791c416da8d1f91bc4fd53acd5deb8ce
6
+ metadata.gz: b84cc47c4e1658e879574adbc528ad19bbfec06979e0de867b7bea4a62f224df5e73ce632c5ae6151a0a68250110dc6b128aff4b99fabc035875ec0f87b92662
7
+ data.tar.gz: fd6b70677534b4154ab2fd44d868a176e3b3a5dc7c3de817d6e0d358e5ec11e243b2772438f0b7246b30a34bd671c5a332315a979b0280b8acfdd53da5819189
@@ -96,7 +96,7 @@ module Boltless
96
96
 
97
97
  # We allow the http.rb gem to be configured by the user for special needs.
98
98
  # Just assign a user given block here and you can reconfigure the client.
99
- # Just make sure to return the configured +HTTP::Client+ instance
99
+ # Just make sure to return the configured +HTTP::Session+ instance
100
100
  # afterwards.
101
101
  config_accessor(:http_client_configure) do
102
102
  proc do |connection|
@@ -13,8 +13,8 @@ module Boltless
13
13
  # server to come up, before sending real requests which may otherwise
14
14
  # be ignored.
15
15
  #
16
- # @param connection [HTTP::Client]
17
- # @return [HTTP::Client] the given connection
16
+ # @param connection [HTTP::Session] the persistent HTTP session
17
+ # @return [HTTP::Session] the given session
18
18
  #
19
19
  # @raise [HTTP::Error] in case the upstream server did not come up
20
20
  #
@@ -79,6 +79,9 @@ module Boltless
79
79
  size: conf.connection_pool_size,
80
80
  timeout: conf.connection_pool_timeout
81
81
  ) do
82
+ # The persistent session pools one client per origin, and
83
+ # sessions branched from it (eg. via +headers+) share this pool,
84
+ # so per-request header tweaks reuse the same TCP connection
82
85
  HTTP
83
86
  .use({ normalize_uri: { normalizer: ->(uri) { uri } } })
84
87
  .use(:auto_inflate)
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Boltless
4
- # A neo4j HTTP API request abstraction class, which consumes a single HTTP
5
- # persistent connection for its whole runtime. This connection is strictly
4
+ # A neo4j HTTP API request abstraction class, which consumes a single
5
+ # persistent HTTP session for its whole runtime. This session is strictly
6
6
  # owned by a single request object. It is not safe to share it.
7
7
  class Request
8
8
  class << self
@@ -40,8 +40,8 @@ module Boltless
40
40
 
41
41
  # Setup a new neo4j request instance with the given connection to use.
42
42
  #
43
- # @param connection [HTTP::Client] a ready to use persistent
44
- # connection object
43
+ # @param connection [HTTP::Session] a ready to use persistent
44
+ # HTTP session
45
45
  # @param access_mode [String, Symbol] the neo4j
46
46
  # transaction mode (+:read+, or +:write+)
47
47
  # @param database [String, Symbol] the neo4j database to use
@@ -3,7 +3,7 @@
3
3
  # The gem version details.
4
4
  module Boltless
5
5
  # The version of the +boltless+ gem
6
- VERSION = '2.13.0'
6
+ VERSION = '2.14.0'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
@@ -31,8 +31,8 @@ RSpec.describe Boltless::Extensions::ConnectionPool do
31
31
  end
32
32
  # rubocop:enable RSpec/IdenticalEqualityAssertion
33
33
 
34
- it 'returns a HTTP client instance when requested' do
35
- expect(action.checkout).to be_a(HTTP::Client)
34
+ it 'returns a HTTP session instance when requested' do
35
+ expect(action.checkout).to be_a(HTTP::Session)
36
36
  end
37
37
 
38
38
  it 'returns a configured HTTP client (pool size)' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boltless
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.0
4
+ version: 2.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
@@ -91,14 +91,14 @@ dependencies:
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '5.0'
94
+ version: '6.0'
95
95
  type: :runtime
96
96
  prerelease: false
97
97
  version_requirements: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '5.0'
101
+ version: '6.0'
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: logger
104
104
  requirement: !ruby/object:Gem::Requirement
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
- rubygems_version: 4.0.16
233
+ rubygems_version: 4.0.20
234
234
  specification_version: 4
235
235
  summary: neo4j driver, via the HTTP API
236
236
  test_files: []