polysearch 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +10 -6
- data/app/models/polysearch/searchable.rb +1 -1
- data/lib/polysearch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: babc73df6dc70b27a5f6ae5c0adb98af6adfaa5080ba9072800002d3102af646
|
4
|
+
data.tar.gz: 6dc3742766a2f8d737c6f045741fc1981a0a538ca269bfae11ab28ca4d8897b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdee3a4765bd4d4ca85671355a84c2f71336a6ef0d7d31bfc1287975e384f0b42148a383c418a13eddade4d2681c80a67c996ba9eed83b73aaad1dc72e764b84
|
7
|
+
data.tar.gz: efc6a17835a5400d5220e434ff6ca332d2ce8a0aa09d0ed2a55fd772da8ea97546389f2fe1be3e4243091b02012d243e26ecd62143f75b11633c774071715568
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
polysearch (0.2.
|
4
|
+
polysearch (0.2.4)
|
5
5
|
rails (>= 6.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -68,14 +68,14 @@ GEM
|
|
68
68
|
zeitwerk (~> 2.3)
|
69
69
|
ast (2.4.2)
|
70
70
|
builder (3.2.4)
|
71
|
-
concurrent-ruby (1.1.
|
71
|
+
concurrent-ruby (1.1.9)
|
72
72
|
crass (1.0.6)
|
73
73
|
erubi (1.10.0)
|
74
74
|
globalid (0.4.2)
|
75
75
|
activesupport (>= 4.2.0)
|
76
76
|
i18n (1.8.10)
|
77
77
|
concurrent-ruby (~> 1.0)
|
78
|
-
loofah (2.
|
78
|
+
loofah (2.10.0)
|
79
79
|
crass (~> 1.0.2)
|
80
80
|
nokogiri (>= 1.5.9)
|
81
81
|
magic_frozen_string_literal (1.2.0)
|
@@ -84,9 +84,13 @@ GEM
|
|
84
84
|
marcel (1.0.1)
|
85
85
|
method_source (1.0.0)
|
86
86
|
mini_mime (1.0.3)
|
87
|
+
mini_portile2 (2.5.3)
|
87
88
|
minitest (5.14.4)
|
88
89
|
nio4r (2.5.7)
|
89
|
-
nokogiri (1.11.
|
90
|
+
nokogiri (1.11.7)
|
91
|
+
mini_portile2 (~> 2.5.0)
|
92
|
+
racc (~> 1.4)
|
93
|
+
nokogiri (1.11.7-arm64-darwin)
|
90
94
|
racc (~> 1.4)
|
91
95
|
parallel (1.20.1)
|
92
96
|
parser (3.0.1.1)
|
@@ -134,7 +138,7 @@ GEM
|
|
134
138
|
rubocop-ast (>= 1.5.0, < 2.0)
|
135
139
|
ruby-progressbar (~> 1.7)
|
136
140
|
unicode-display_width (>= 1.4.0, < 3.0)
|
137
|
-
rubocop-ast (1.
|
141
|
+
rubocop-ast (1.7.0)
|
138
142
|
parser (>= 3.0.1.1)
|
139
143
|
rubocop-performance (1.11.2)
|
140
144
|
rubocop (>= 1.7.0, < 2.0)
|
@@ -156,7 +160,7 @@ GEM
|
|
156
160
|
tzinfo (2.0.4)
|
157
161
|
concurrent-ruby (~> 1.0)
|
158
162
|
unicode-display_width (2.0.0)
|
159
|
-
websocket-driver (0.7.
|
163
|
+
websocket-driver (0.7.5)
|
160
164
|
websocket-extensions (>= 0.1.0)
|
161
165
|
websocket-extensions (0.1.5)
|
162
166
|
zeitwerk (2.4.2)
|
@@ -110,7 +110,7 @@ module Polysearch
|
|
110
110
|
Arel::Nodes::SqlLiteral.new(sanitize_sql_value("SELECT #{tsvector}"))
|
111
111
|
])
|
112
112
|
length = Arel::Nodes::NamedFunction.new("length", [Arel::Nodes::SqlLiteral.new(quote_column_name(:word))])
|
113
|
-
query = self.class.select(:word).from(ts_stat.to_sql).where(length.gteq(3)).to_sql
|
113
|
+
query = self.class.unscoped.select(:word).from(ts_stat.to_sql).where(length.gteq(3)).to_sql
|
114
114
|
result = self.class.connection.execute(query)
|
115
115
|
result.values.flatten
|
116
116
|
end
|
data/lib/polysearch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polysearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Hopkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|