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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/ndb/rails/version.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '07749aaa7f0f402aa0e37067a748d35d501645bd13fde8a4ead4e75a086645fc'
4
- data.tar.gz: '01208bdd9c56eb941a8bdf7f5892b5c74a924351af152c9d8051e01d6044d688'
3
+ metadata.gz: a3e4189a5173595caf3bacf5369c1957fb9fed2738865646f630679fa2dccd1f
4
+ data.tar.gz: 35f584d17ab38fa35e7cbfd14aa49b49eaeac7f6398e72d1d7a7c3e0dc797c19
5
5
  SHA512:
6
- metadata.gz: cff2a0958984ce985fa153a65707e9ca47ddb3ab975f29a34f3f33fa91e4a3a582d7b5b9408e533009966d974af0aead5e40fce8b525b858d1e93efa370a8011
7
- data.tar.gz: 2ceb1315f0a406fc61eb79f7429df96543c2f15cd603b2a070e8ae1770f8d9b0aa3cca51aefd3b07f52fb0d2b75b56b0cadd0b1ddc7f696ca59e449b1c65b5fd
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
- - The token is `token`, or env `NDB_TOKEN`. It goes only in the `Authorization` header. A unix socket does not need it.
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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ndb
4
4
  module Rails
5
- VERSION = "1.26.0"
5
+ VERSION = "1.27.0"
6
6
  end
7
7
  end
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.26.0
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.26.0
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.26.0
56
+ version: 1.27.0
57
57
  - - "<"
58
58
  - !ruby/object:Gem::Version
59
59
  version: '2'