fuzzily_reloaded 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +16 -19
- data/README.md +1 -1
- data/lib/fuzzily/searchable.rb +1 -14
- data/lib/fuzzily/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: 53e31d8ae9033e9af2b57782ba9209da67e7e40cf92a1d0e18261cecc5f1b278
|
4
|
+
data.tar.gz: ec5dad659d6959dfec74d9a2192883d65a7f2a4deab1803b54ca21a1ae0dd666
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2258093c0cc3c7a7eaf1830590908fdf4c7f13464e0db2b4ae0a6d642bba3d25f4801241a3eceb18f1fb12cf1234d28780b7aad0ee5957d79990cf259d85d8c
|
7
|
+
data.tar.gz: 61dae4979d5a1e90e1c107d8e00a71fad3dee73f3a90e086da8c1bcbd2bdfac3c14e014d7edef04e5a4043e0abd25d58374fb63fc24033a697c8a061404d541c
|
data/Gemfile.lock
CHANGED
@@ -1,28 +1,27 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fuzzily_reloaded (1.0.
|
4
|
+
fuzzily_reloaded (1.0.1)
|
5
5
|
activerecord (>= 5.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activemodel (
|
11
|
-
activesupport (=
|
12
|
-
activerecord (
|
13
|
-
activemodel (=
|
14
|
-
activesupport (=
|
15
|
-
activesupport (
|
10
|
+
activemodel (7.0.3.1)
|
11
|
+
activesupport (= 7.0.3.1)
|
12
|
+
activerecord (7.0.3.1)
|
13
|
+
activemodel (= 7.0.3.1)
|
14
|
+
activesupport (= 7.0.3.1)
|
15
|
+
activesupport (7.0.3.1)
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
-
i18n (>=
|
18
|
-
minitest (
|
19
|
-
tzinfo (~>
|
20
|
-
|
21
|
-
concurrent-ruby (1.1.6)
|
17
|
+
i18n (>= 1.6, < 2)
|
18
|
+
minitest (>= 5.1)
|
19
|
+
tzinfo (~> 2.0)
|
20
|
+
concurrent-ruby (1.1.10)
|
22
21
|
diff-lcs (1.3)
|
23
|
-
i18n (1.
|
22
|
+
i18n (1.12.0)
|
24
23
|
concurrent-ruby (~> 1.0)
|
25
|
-
minitest (5.
|
24
|
+
minitest (5.16.2)
|
26
25
|
mysql2 (0.5.3)
|
27
26
|
pg (1.2.3)
|
28
27
|
rake (13.0.1)
|
@@ -40,10 +39,8 @@ GEM
|
|
40
39
|
rspec-support (~> 3.9.0)
|
41
40
|
rspec-support (3.9.2)
|
42
41
|
sqlite3 (1.4.2)
|
43
|
-
|
44
|
-
|
45
|
-
thread_safe (~> 0.1)
|
46
|
-
zeitwerk (2.3.0)
|
42
|
+
tzinfo (2.0.5)
|
43
|
+
concurrent-ruby (~> 1.0)
|
47
44
|
|
48
45
|
PLATFORMS
|
49
46
|
ruby
|
@@ -58,4 +55,4 @@ DEPENDENCIES
|
|
58
55
|
sqlite3
|
59
56
|
|
60
57
|
BUNDLED WITH
|
61
|
-
2.
|
58
|
+
2.2.17
|
data/README.md
CHANGED
data/lib/fuzzily/searchable.rb
CHANGED
@@ -5,10 +5,7 @@ module Fuzzily
|
|
5
5
|
module Searchable
|
6
6
|
|
7
7
|
def self.included(by)
|
8
|
-
|
9
|
-
when 5 then by.extend Rails5ClassMethods
|
10
|
-
when 6 then by.extend Rails6ClassMethods
|
11
|
-
end
|
8
|
+
by.extend ClassMethods
|
12
9
|
end
|
13
10
|
|
14
11
|
private
|
@@ -149,12 +146,6 @@ module Fuzzily
|
|
149
146
|
class_variable_set(:"@@fuzzily_searchable_#{field}", true)
|
150
147
|
self
|
151
148
|
end
|
152
|
-
end
|
153
|
-
|
154
|
-
module Rails5ClassMethods
|
155
|
-
include ClassMethods
|
156
|
-
|
157
|
-
private
|
158
149
|
|
159
150
|
def _add_trigram_association(_o)
|
160
151
|
has_many _o.trigram_association,
|
@@ -169,9 +160,5 @@ module Fuzzily
|
|
169
160
|
self.includes(_o.trigram_association)
|
170
161
|
end
|
171
162
|
end
|
172
|
-
|
173
|
-
module Rails6ClassMethods
|
174
|
-
include Rails5ClassMethods
|
175
|
-
end
|
176
163
|
end
|
177
164
|
end
|
data/lib/fuzzily/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuzzily_reloaded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Letessier
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
- !ruby/object:Gem::Version
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
|
-
rubygems_version: 3.1.
|
163
|
+
rubygems_version: 3.1.4
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: A fast, trigram-based, database-backed fuzzy string search/match engine for
|