ndb-rails 1.26.0 → 1.27.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 +4 -4
- data/README.md +2 -1
- data/lib/ndb/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3e4189a5173595caf3bacf5369c1957fb9fed2738865646f630679fa2dccd1f
|
|
4
|
+
data.tar.gz: 35f584d17ab38fa35e7cbfd14aa49b49eaeac7f6398e72d1d7a7c3e0dc797c19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b1b527942bac30e30cf78767f89768fadf35f3df3fbccd0dfbe523f575f0b18d1bd5e1ac177029d1d31c770f09b306a21cdb2544f49cddbf72e68b973ca0ee2
|
|
7
|
+
data.tar.gz: 88849330243e8d7f56ddc8d0ec8ace87a266e986656332f9b19f22d1abf141b80e54936cc5653837278a797ab3d5bf8a2c2f56a4e81cc9abaa45629141abf698
|
data/README.md
CHANGED
|
@@ -60,7 +60,8 @@ end
|
|
|
60
60
|
|
|
61
61
|
- The address is, in order: `url`, `socket`, env `NDB_URL`, then the default socket `/run/ndb/ndb.sock`.
|
|
62
62
|
- The address is `unix:///path`, `tcp://host:port`, or a bare path that starts with `/`.
|
|
63
|
-
-
|
|
63
|
+
- One URL can hold the token and the database: `url: <%= ENV["NDB_URL"] %>` with `NDB_URL=tcp://:<token>@ndb.internal:7070/billion`. The models then use the collections of the database `billion` (`?db=billion` on a unix socket). See [Databases](https://ndb.clowk.in/databases).
|
|
64
|
+
- The token is, in order: `token`, the token of the URL (`tcp://:<token>@host:port`), env `NDB_TOKEN`. It goes only in the `Authorization` header. A unix socket does not need it.
|
|
64
65
|
- `ready_timeout` is how long a call retries while the daemon is not ready (`not_ready`, or the socket is missing or refuses). It uses backoff with jitter. A write is retried only when the daemon certainly did not process it. A read is also retried after a dropped connection. A timeout is never retried.
|
|
65
66
|
- The pool drops its connections after a `fork`.
|
|
66
67
|
- `Ndb::Rails.client` is an `Ndb::Client` built from this configuration (`Ndb::Rails.configuration`). You can also build one: `Ndb::Client.new(socket: "/tmp/ndb.sock", token: nil, timeout: 30, pool_size: 16, ready_timeout: 10)`. The [`ndb` README](https://github.com/thadeu/ndb/blob/main/sdk/ruby/README.md) documents every client call.
|
data/lib/ndb/rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ndb-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.27.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thadeu
|
|
@@ -43,7 +43,7 @@ dependencies:
|
|
|
43
43
|
requirements:
|
|
44
44
|
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 1.
|
|
46
|
+
version: 1.27.0
|
|
47
47
|
- - "<"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
49
|
version: '2'
|
|
@@ -53,7 +53,7 @@ dependencies:
|
|
|
53
53
|
requirements:
|
|
54
54
|
- - ">="
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 1.
|
|
56
|
+
version: 1.27.0
|
|
57
57
|
- - "<"
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
59
|
version: '2'
|