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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ccd0d39b5c5adf4db3f259a90152ebcb556c00ae86d4907da640efe30a562549
|
|
4
|
+
data.tar.gz: 5a65b884f4fd893f186d465947f50348540e21e44edc61bcaa61d4490bfeb69a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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::
|
|
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::
|
|
17
|
-
# @return [HTTP::
|
|
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)
|
data/lib/boltless/request.rb
CHANGED
|
@@ -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
|
|
5
|
-
# persistent
|
|
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::
|
|
44
|
-
#
|
|
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
|
data/lib/boltless/version.rb
CHANGED
|
@@ -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
|
|
35
|
-
expect(action.checkout).to be_a(HTTP::
|
|
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.
|
|
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: '
|
|
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: '
|
|
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.
|
|
233
|
+
rubygems_version: 4.0.20
|
|
234
234
|
specification_version: 4
|
|
235
235
|
summary: neo4j driver, via the HTTP API
|
|
236
236
|
test_files: []
|