redis-rbs 0.1.0 → 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.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/sig/redis.rbs +2499 -436
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cde087e0bb08dd5a00567bbc68b386a23d469a30c84a6b9d47f3649a03f2a61e
|
|
4
|
+
data.tar.gz: d0d928b6139b0f61b5d1cd750b2bfa7895896db12075fbdb7f638c6f3c1659ae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 678b950ad73da93773a1c6e28409c8e15c137a115f2be7013a49927baed49797a1b3ddb0d9a1e25081807085b71addfd51d5b49fd12524b4dfefdb209c6104a6
|
|
7
|
+
data.tar.gz: 12efa0e221c495709da407b48d01e833604582dbc7a73bcf7550ea64f8563e56fe6bdd826e64f070f40d0c5b0ff04781037890b0dae77085837d2fbb8feef1c5
|
data/README.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Generated RBS signatures for [`redis-rb`](https://github.com/redis/redis-rb).
|
|
4
4
|
|
|
5
|
-
Version `0.
|
|
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
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
|
-
gem "redis", "~>
|
|
11
|
-
gem "redis-rbs", "~> 0.
|
|
10
|
+
gem "redis", "~> 6.1.1"
|
|
11
|
+
gem "redis-rbs", "~> 0.2.0", require: false
|
|
12
12
|
```
|
|
13
13
|
|
|
14
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.
|
|
@@ -20,10 +20,13 @@ The generator runs RBS's Ruby prototype over every file shipped in `redis` and e
|
|
|
20
20
|
```sh
|
|
21
21
|
bundle install
|
|
22
22
|
bundle exec rake generate
|
|
23
|
-
bundle exec rake
|
|
23
|
+
bundle exec rake test # deterministic tests
|
|
24
|
+
bundle exec rake # tests, 100% generator coverage, and rbs validate
|
|
24
25
|
bundle exec rake build
|
|
25
26
|
```
|
|
26
27
|
|
|
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
|
+
|
|
27
30
|
Generated signatures are committed; consumers do not need the generator or network access.
|
|
28
31
|
|
|
29
32
|
## License
|