redis-rbs 0.1.4 → 0.2.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 +29 -5
  3. data/sig/redis.rbs +2494 -433
  4. metadata +13 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 348d856075899cc9b6da3b5a8fb3405782988206c512f5954f1e4c8fdfa128a9
4
- data.tar.gz: a61778678b607c0e400da53679b5d1d471f2df3a288e7068e162f0e31b32caaa
3
+ metadata.gz: cde087e0bb08dd5a00567bbc68b386a23d469a30c84a6b9d47f3649a03f2a61e
4
+ data.tar.gz: d0d928b6139b0f61b5d1cd750b2bfa7895896db12075fbdb7f638c6f3c1659ae
5
5
  SHA512:
6
- metadata.gz: 70eca992de6038f3921e77d5c626716a35493abb523c7b204d48aa0315527f839ef70adfc3d6c4ec9b68aebc1d2dc51d78bc4641327eb58fff734e4f2999b75b
7
- data.tar.gz: 654d57664c48c682c7887d5441b56c3b92a999e3476dc5a573f2a3f65c14308084f690afdf2fc88654d7279a4844ef3399595ef39c33efb0d07386b439e86594
6
+ metadata.gz: 678b950ad73da93773a1c6e28409c8e15c137a115f2be7013a49927baed49797a1b3ddb0d9a1e25081807085b71addfd51d5b49fd12524b4dfefdb209c6104a6
7
+ data.tar.gz: 12efa0e221c495709da407b48d01e833604582dbc7a73bcf7550ea64f8563e56fe6bdd826e64f070f40d0c5b0ff04781037890b0dae77085837d2fbb8feef1c5
data/README.md CHANGED
@@ -1,10 +1,34 @@
1
- # redis-rbs for redis 5.4.1
1
+ # redis-rbs
2
2
 
3
- Generated from the official redis 5.4.1 client.
3
+ Generated RBS signatures for [`redis-rb`](https://github.com/redis/redis-rb).
4
+
5
+ Version `0.2.x` targets `redis >= 6.1.1, < 6.2` and covers the client, command modules, pipelines, futures, subscriptions, distributed support and auxiliary classes in Redis 6.1.1. Use `0.1.0` for Redis 5.4. The Redis Ruby client uses RESP3 by default and can be configured for RESP2. The signatures represent both reply types where geospatial coordinates differ. Availability of newer commands depends on the Redis server version.
6
+
7
+ ## Installation
4
8
 
5
9
  ```ruby
6
- gem "redis", "5.4.1"
7
- gem "redis-rbs", "0.1.4", require: false
10
+ gem "redis", "~> 6.1.1"
11
+ gem "redis-rbs", "~> 0.2.0", require: false
12
+ ```
13
+
14
+ RBS, Steep and compatible editors discover the `.rbs` files from the installed gem's `sig/` directory. This gem adds no runtime behavior and never opens a Redis connection by itself.
15
+
16
+ ## Generation and coverage
17
+
18
+ The generator runs RBS's Ruby prototype over every file shipped in `redis` and enriches exact Ruby parameter shapes with the source's YARD parameter and return types. `data/coverage.yml` records the source/signature counts and is checked by the test suite, so a new public or auxiliary method cannot disappear silently.
19
+
20
+ ```sh
21
+ bundle install
22
+ bundle exec rake generate
23
+ bundle exec rake test # deterministic tests
24
+ bundle exec rake # tests, 100% generator coverage, and rbs validate
25
+ bundle exec rake build
8
26
  ```
9
27
 
10
- The [project README](https://github.com/ldebortoli/redis-rbs#readme) lists packages for other versions.
28
+ The coverage gate measures the generator's lines, branches and methods. The shipped gem contains RBS declarations and no Ruby runtime code. The tests check all generated declarations against the source.
29
+
30
+ Generated signatures are committed; consumers do not need the generator or network access.
31
+
32
+ ## License
33
+
34
+ MIT. Redis and redis-rb names and API facts belong to their respective projects; redis-rb is also distributed under the MIT license.