neighbor-redis 0.2.0 → 0.2.1
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/CHANGELOG.md +4 -0
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/lib/neighbor/redis/index.rb +2 -1
- data/lib/neighbor/redis/version.rb +1 -1
- metadata +3 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a5af4a80cc03cdce7567594144695b7bf5bd9a165884135c21eb10a316c3e17
|
4
|
+
data.tar.gz: 8700c04a90e034c099def3fec562aa982dafcbb87075e08a81fb13b66d74a703
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e035dba8d0fd5ed1fd27526db22ec466e9704f914e1e91d30665aa092ac0b76ae202a2c4178815159f14c5f9923ee96094b565338f238bbdc82b416175d91204
|
7
|
+
data.tar.gz: d26fced7f998bad66b2a20cb81327dbcfdbcfc4bdc5754efd93ccdd730ad6865fcbedea0e59ff059139ee8679f56202ab143c45a8ee8a3c28a88046e668b2501
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -6,10 +6,10 @@ Nearest neighbor search for Ruby and Redis
|
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
First,
|
9
|
+
First, install Redis with the [RediSearch](https://github.com/RediSearch/RediSearch) module. With Docker, use:
|
10
10
|
|
11
11
|
```sh
|
12
|
-
docker run -p 6379:6379 redis
|
12
|
+
docker run -p 6379:6379 redis:8
|
13
13
|
```
|
14
14
|
|
15
15
|
Add this line to your application’s Gemfile:
|
data/lib/neighbor/redis/index.rb
CHANGED
@@ -70,7 +70,8 @@ module Neighbor
|
|
70
70
|
# fix for invalid value for Float(): "-nan"
|
71
71
|
true
|
72
72
|
rescue => e
|
73
|
-
|
73
|
+
message = e.message.downcase
|
74
|
+
raise unless message.include?("unknown index name") || message.include?("no such index")
|
74
75
|
false
|
75
76
|
end
|
76
77
|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neighbor-redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: redis-client
|
@@ -24,7 +23,6 @@ dependencies:
|
|
24
23
|
- - ">="
|
25
24
|
- !ruby/object:Gem::Version
|
26
25
|
version: '0'
|
27
|
-
description:
|
28
26
|
email: andrew@ankane.org
|
29
27
|
executables: []
|
30
28
|
extensions: []
|
@@ -43,7 +41,6 @@ homepage: https://github.com/ankane/neighbor-redis
|
|
43
41
|
licenses:
|
44
42
|
- MIT
|
45
43
|
metadata: {}
|
46
|
-
post_install_message:
|
47
44
|
rdoc_options: []
|
48
45
|
require_paths:
|
49
46
|
- lib
|
@@ -58,8 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
55
|
- !ruby/object:Gem::Version
|
59
56
|
version: '0'
|
60
57
|
requirements: []
|
61
|
-
rubygems_version: 3.
|
62
|
-
signing_key:
|
58
|
+
rubygems_version: 3.6.7
|
63
59
|
specification_version: 4
|
64
60
|
summary: Nearest neighbor search for Ruby and Redis
|
65
61
|
test_files: []
|