algoliasearch-rails 3.0.1 → 3.0.2
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 +5 -1
- data/Gemfile +2 -2
- data/Gemfile.lock +141 -124
- data/lib/algoliasearch/version.rb +1 -1
- data/lib/algoliasearch-rails.rb +5 -4
- 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: c0094d8d764b360f5760b80ff2620b24bcecf17da7cc27be3ba057bead8b3021
|
4
|
+
data.tar.gz: 5446ba88ac084f595832a72b960fd556e8d9b021d7977a11fb8bcc05b9f2cd9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d44235532282641c27f279895cb309c3b0e726b71983c39c2d928cadbcc39af2835ffa1357e6be62da71bbbbd02cb3a525fd784bab6bd83f6b9b470f20037b8
|
7
|
+
data.tar.gz: a6b6957ae0b007e04fcb0e524efcba10b5da419194fbdad44073c69dd1a903df1d308f2322c4402e74a42de5e0ddb094cd3fd802f1a7e841264a49db1be9d69c
|
data/CHANGELOG.MD
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
-
## [Unreleased](https://github.com/algolia/algoliasearch-rails/compare/3.0.
|
3
|
+
## [Unreleased](https://github.com/algolia/algoliasearch-rails/compare/3.0.2...master)
|
4
|
+
|
5
|
+
## [3.0.2](https://github.com/algolia/algoliasearch-rails/compare/3.0.1...3.0.2)
|
6
|
+
### Fixed
|
7
|
+
* Avoid re-initializing index [`#457`](https://github.com/algolia/algoliasearch-rails/pull/457)
|
4
8
|
|
5
9
|
## [3.0.1](https://github.com/algolia/algoliasearch-rails/compare/3.0.0...3.0.1)
|
6
10
|
### Fixed
|
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
3
|
gem 'json', '>= 1.5.1'
|
4
|
-
gem 'algolia', '>= 3.
|
4
|
+
gem 'algolia', '>= 3.12.0'
|
5
5
|
|
6
6
|
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
7
7
|
gem 'rubysl', '~> 2.0', :platform => :rbx
|
@@ -12,7 +12,7 @@ group :test do
|
|
12
12
|
gem 'rails', "~> #{rails_version}"
|
13
13
|
gem 'active_model_serializers'
|
14
14
|
if Gem::Version.new(rails_version) >= Gem::Version.new('6.0')
|
15
|
-
gem 'sqlite3', '~> 1.
|
15
|
+
gem 'sqlite3', '~> 1.5.0', :platform => [:rbx, :ruby]
|
16
16
|
else
|
17
17
|
gem 'sqlite3', '< 1.4.0', :platform => [:rbx, :ruby]
|
18
18
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,103 +1,106 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actioncable (6.1.
|
5
|
-
actionpack (= 6.1.
|
6
|
-
activesupport (= 6.1.
|
4
|
+
actioncable (6.1.7.10)
|
5
|
+
actionpack (= 6.1.7.10)
|
6
|
+
activesupport (= 6.1.7.10)
|
7
7
|
nio4r (~> 2.0)
|
8
8
|
websocket-driver (>= 0.6.1)
|
9
|
-
actionmailbox (6.1.
|
10
|
-
actionpack (= 6.1.
|
11
|
-
activejob (= 6.1.
|
12
|
-
activerecord (= 6.1.
|
13
|
-
activestorage (= 6.1.
|
14
|
-
activesupport (= 6.1.
|
9
|
+
actionmailbox (6.1.7.10)
|
10
|
+
actionpack (= 6.1.7.10)
|
11
|
+
activejob (= 6.1.7.10)
|
12
|
+
activerecord (= 6.1.7.10)
|
13
|
+
activestorage (= 6.1.7.10)
|
14
|
+
activesupport (= 6.1.7.10)
|
15
15
|
mail (>= 2.7.1)
|
16
|
-
actionmailer (6.1.
|
17
|
-
actionpack (= 6.1.
|
18
|
-
actionview (= 6.1.
|
19
|
-
activejob (= 6.1.
|
20
|
-
activesupport (= 6.1.
|
16
|
+
actionmailer (6.1.7.10)
|
17
|
+
actionpack (= 6.1.7.10)
|
18
|
+
actionview (= 6.1.7.10)
|
19
|
+
activejob (= 6.1.7.10)
|
20
|
+
activesupport (= 6.1.7.10)
|
21
21
|
mail (~> 2.5, >= 2.5.4)
|
22
22
|
rails-dom-testing (~> 2.0)
|
23
|
-
actionpack (6.1.
|
24
|
-
actionview (= 6.1.
|
25
|
-
activesupport (= 6.1.
|
23
|
+
actionpack (6.1.7.10)
|
24
|
+
actionview (= 6.1.7.10)
|
25
|
+
activesupport (= 6.1.7.10)
|
26
26
|
rack (~> 2.0, >= 2.0.9)
|
27
27
|
rack-test (>= 0.6.3)
|
28
28
|
rails-dom-testing (~> 2.0)
|
29
29
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
30
|
-
actiontext (6.1.
|
31
|
-
actionpack (= 6.1.
|
32
|
-
activerecord (= 6.1.
|
33
|
-
activestorage (= 6.1.
|
34
|
-
activesupport (= 6.1.
|
30
|
+
actiontext (6.1.7.10)
|
31
|
+
actionpack (= 6.1.7.10)
|
32
|
+
activerecord (= 6.1.7.10)
|
33
|
+
activestorage (= 6.1.7.10)
|
34
|
+
activesupport (= 6.1.7.10)
|
35
35
|
nokogiri (>= 1.8.5)
|
36
|
-
actionview (6.1.
|
37
|
-
activesupport (= 6.1.
|
36
|
+
actionview (6.1.7.10)
|
37
|
+
activesupport (= 6.1.7.10)
|
38
38
|
builder (~> 3.1)
|
39
39
|
erubi (~> 1.4)
|
40
40
|
rails-dom-testing (~> 2.0)
|
41
41
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
42
|
-
active_model_serializers (0.10.
|
43
|
-
actionpack (>= 4.1
|
44
|
-
activemodel (>= 4.1
|
42
|
+
active_model_serializers (0.10.15)
|
43
|
+
actionpack (>= 4.1)
|
44
|
+
activemodel (>= 4.1)
|
45
45
|
case_transform (>= 0.2)
|
46
46
|
jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
|
47
|
-
activejob (6.1.
|
48
|
-
activesupport (= 6.1.
|
47
|
+
activejob (6.1.7.10)
|
48
|
+
activesupport (= 6.1.7.10)
|
49
49
|
globalid (>= 0.3.6)
|
50
|
-
activemodel (6.1.
|
51
|
-
activesupport (= 6.1.
|
52
|
-
activerecord (6.1.
|
53
|
-
activemodel (= 6.1.
|
54
|
-
activesupport (= 6.1.
|
55
|
-
activestorage (6.1.
|
56
|
-
actionpack (= 6.1.
|
57
|
-
activejob (= 6.1.
|
58
|
-
activerecord (= 6.1.
|
59
|
-
activesupport (= 6.1.
|
60
|
-
marcel (~> 1.0
|
50
|
+
activemodel (6.1.7.10)
|
51
|
+
activesupport (= 6.1.7.10)
|
52
|
+
activerecord (6.1.7.10)
|
53
|
+
activemodel (= 6.1.7.10)
|
54
|
+
activesupport (= 6.1.7.10)
|
55
|
+
activestorage (6.1.7.10)
|
56
|
+
actionpack (= 6.1.7.10)
|
57
|
+
activejob (= 6.1.7.10)
|
58
|
+
activerecord (= 6.1.7.10)
|
59
|
+
activesupport (= 6.1.7.10)
|
60
|
+
marcel (~> 1.0)
|
61
61
|
mini_mime (>= 1.1.0)
|
62
|
-
activesupport (6.1.
|
62
|
+
activesupport (6.1.7.10)
|
63
63
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
64
64
|
i18n (>= 1.6, < 2)
|
65
65
|
minitest (>= 5.1)
|
66
66
|
tzinfo (~> 2.0)
|
67
67
|
zeitwerk (~> 2.3)
|
68
|
-
algolia (
|
69
|
-
|
68
|
+
algolia (3.15.0)
|
69
|
+
base64 (>= 0.2.0, < 1)
|
70
|
+
faraday (>= 1.0.1, < 3.0)
|
70
71
|
faraday-net_http_persistent (>= 0.15, < 3)
|
71
|
-
multi_json (~> 1.0)
|
72
72
|
net-http-persistent
|
73
73
|
base64 (0.2.0)
|
74
|
-
|
74
|
+
bigdecimal (3.1.9)
|
75
|
+
builder (3.3.0)
|
75
76
|
case_transform (0.2)
|
76
77
|
activesupport
|
77
|
-
concurrent-ruby (1.
|
78
|
-
connection_pool (2.
|
78
|
+
concurrent-ruby (1.3.5)
|
79
|
+
connection_pool (2.5.0)
|
79
80
|
crass (1.0.6)
|
80
|
-
date (3.
|
81
|
-
diff-lcs (1.
|
82
|
-
erubi (1.
|
83
|
-
faraday (2.
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
faraday-net_http (3.0
|
81
|
+
date (3.4.1)
|
82
|
+
diff-lcs (1.6.1)
|
83
|
+
erubi (1.13.1)
|
84
|
+
faraday (2.12.2)
|
85
|
+
faraday-net_http (>= 2.0, < 3.5)
|
86
|
+
json
|
87
|
+
logger
|
88
|
+
faraday-net_http (3.4.0)
|
89
|
+
net-http (>= 0.5.0)
|
88
90
|
faraday-net_http_persistent (2.3.0)
|
89
91
|
faraday (~> 2.5)
|
90
92
|
net-http-persistent (>= 4.0.4, < 5)
|
91
|
-
globalid (1.1
|
92
|
-
activesupport (>=
|
93
|
-
i18n (1.14.
|
93
|
+
globalid (1.2.1)
|
94
|
+
activesupport (>= 6.1)
|
95
|
+
i18n (1.14.7)
|
94
96
|
concurrent-ruby (~> 1.0)
|
95
|
-
json (2.
|
97
|
+
json (2.10.2)
|
96
98
|
jsonapi-renderer (0.2.2)
|
97
99
|
kaminari (0.17.0)
|
98
100
|
actionpack (>= 3.0.0)
|
99
101
|
activesupport (>= 3.0.0)
|
100
|
-
|
102
|
+
logger (1.7.0)
|
103
|
+
loofah (2.24.0)
|
101
104
|
crass (~> 1.0.2)
|
102
105
|
nokogiri (>= 1.12.0)
|
103
106
|
mail (2.8.1)
|
@@ -105,114 +108,128 @@ GEM
|
|
105
108
|
net-imap
|
106
109
|
net-pop
|
107
110
|
net-smtp
|
108
|
-
marcel (1.0.
|
109
|
-
method_source (1.
|
111
|
+
marcel (1.0.4)
|
112
|
+
method_source (1.1.0)
|
110
113
|
mini_mime (1.1.5)
|
111
|
-
mini_portile2 (2.8.
|
112
|
-
minitest (5.
|
113
|
-
|
114
|
-
|
114
|
+
mini_portile2 (2.8.8)
|
115
|
+
minitest (5.25.5)
|
116
|
+
net-http (0.6.0)
|
117
|
+
uri
|
118
|
+
net-http-persistent (4.0.5)
|
115
119
|
connection_pool (~> 2.2)
|
116
|
-
net-imap (0.
|
120
|
+
net-imap (0.5.6)
|
117
121
|
date
|
118
122
|
net-protocol
|
119
123
|
net-pop (0.1.2)
|
120
124
|
net-protocol
|
121
|
-
net-protocol (0.2.
|
125
|
+
net-protocol (0.2.2)
|
122
126
|
timeout
|
123
|
-
net-smtp (0.
|
127
|
+
net-smtp (0.5.1)
|
124
128
|
net-protocol
|
125
|
-
nio4r (2.
|
126
|
-
nokogiri (1.
|
127
|
-
mini_portile2 (~> 2.8.
|
129
|
+
nio4r (2.7.4)
|
130
|
+
nokogiri (1.18.6)
|
131
|
+
mini_portile2 (~> 2.8.2)
|
132
|
+
racc (~> 1.4)
|
133
|
+
nokogiri (1.18.6-arm64-darwin)
|
128
134
|
racc (~> 1.4)
|
129
|
-
pagy (
|
130
|
-
psych (5.
|
135
|
+
pagy (9.3.4)
|
136
|
+
psych (5.2.3)
|
137
|
+
date
|
131
138
|
stringio
|
132
|
-
racc (1.
|
133
|
-
rack (2.2.
|
134
|
-
rack-test (2.
|
139
|
+
racc (1.8.1)
|
140
|
+
rack (2.2.13)
|
141
|
+
rack-test (2.2.0)
|
135
142
|
rack (>= 1.3)
|
136
|
-
rails (6.1.
|
137
|
-
actioncable (= 6.1.
|
138
|
-
actionmailbox (= 6.1.
|
139
|
-
actionmailer (= 6.1.
|
140
|
-
actionpack (= 6.1.
|
141
|
-
actiontext (= 6.1.
|
142
|
-
actionview (= 6.1.
|
143
|
-
activejob (= 6.1.
|
144
|
-
activemodel (= 6.1.
|
145
|
-
activerecord (= 6.1.
|
146
|
-
activestorage (= 6.1.
|
147
|
-
activesupport (= 6.1.
|
143
|
+
rails (6.1.7.10)
|
144
|
+
actioncable (= 6.1.7.10)
|
145
|
+
actionmailbox (= 6.1.7.10)
|
146
|
+
actionmailer (= 6.1.7.10)
|
147
|
+
actionpack (= 6.1.7.10)
|
148
|
+
actiontext (= 6.1.7.10)
|
149
|
+
actionview (= 6.1.7.10)
|
150
|
+
activejob (= 6.1.7.10)
|
151
|
+
activemodel (= 6.1.7.10)
|
152
|
+
activerecord (= 6.1.7.10)
|
153
|
+
activestorage (= 6.1.7.10)
|
154
|
+
activesupport (= 6.1.7.10)
|
148
155
|
bundler (>= 1.15.0)
|
149
|
-
railties (= 6.1.
|
156
|
+
railties (= 6.1.7.10)
|
150
157
|
sprockets-rails (>= 2.0.0)
|
151
158
|
rails-dom-testing (2.2.0)
|
152
159
|
activesupport (>= 5.0.0)
|
153
160
|
minitest
|
154
161
|
nokogiri (>= 1.6)
|
155
|
-
rails-html-sanitizer (1.
|
156
|
-
loofah (~> 2.
|
157
|
-
|
158
|
-
|
159
|
-
|
162
|
+
rails-html-sanitizer (1.6.2)
|
163
|
+
loofah (~> 2.21)
|
164
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
165
|
+
railties (6.1.7.10)
|
166
|
+
actionpack (= 6.1.7.10)
|
167
|
+
activesupport (= 6.1.7.10)
|
160
168
|
method_source
|
161
|
-
rake (>=
|
169
|
+
rake (>= 12.2)
|
162
170
|
thor (~> 1.0)
|
163
|
-
rake (
|
164
|
-
rdoc (6.
|
171
|
+
rake (13.2.1)
|
172
|
+
rdoc (6.13.0)
|
165
173
|
psych (>= 4.0.0)
|
166
174
|
redgreen (1.2.2)
|
167
|
-
rspec (
|
168
|
-
rspec-core (~>
|
169
|
-
rspec-expectations (~>
|
170
|
-
rspec-mocks (~>
|
171
|
-
rspec-core (
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
175
|
+
rspec (3.13.0)
|
176
|
+
rspec-core (~> 3.13.0)
|
177
|
+
rspec-expectations (~> 3.13.0)
|
178
|
+
rspec-mocks (~> 3.13.0)
|
179
|
+
rspec-core (3.13.3)
|
180
|
+
rspec-support (~> 3.13.0)
|
181
|
+
rspec-expectations (3.13.3)
|
182
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
183
|
+
rspec-support (~> 3.13.0)
|
184
|
+
rspec-mocks (3.13.2)
|
185
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
186
|
+
rspec-support (~> 3.13.0)
|
187
|
+
rspec-support (3.13.2)
|
188
|
+
sequel (5.90.0)
|
189
|
+
bigdecimal
|
190
|
+
sprockets (4.2.1)
|
178
191
|
concurrent-ruby (~> 1.0)
|
179
192
|
rack (>= 2.2.4, < 4)
|
180
|
-
sprockets-rails (3.
|
181
|
-
actionpack (>=
|
182
|
-
activesupport (>=
|
193
|
+
sprockets-rails (3.5.2)
|
194
|
+
actionpack (>= 6.1)
|
195
|
+
activesupport (>= 6.1)
|
183
196
|
sprockets (>= 3.0.0)
|
184
|
-
sqlite3 (1.
|
185
|
-
|
186
|
-
|
187
|
-
|
197
|
+
sqlite3 (1.5.4)
|
198
|
+
mini_portile2 (~> 2.8.0)
|
199
|
+
stringio (3.1.6)
|
200
|
+
thor (1.3.2)
|
201
|
+
timeout (0.4.3)
|
188
202
|
tzinfo (2.0.6)
|
189
203
|
concurrent-ruby (~> 1.0)
|
190
|
-
|
204
|
+
uri (1.0.3)
|
205
|
+
websocket-driver (0.7.7)
|
206
|
+
base64
|
191
207
|
websocket-extensions (>= 0.1.0)
|
192
208
|
websocket-extensions (0.1.5)
|
193
|
-
will_paginate (4.0.
|
194
|
-
zeitwerk (2.
|
209
|
+
will_paginate (4.0.1)
|
210
|
+
zeitwerk (2.7.2)
|
195
211
|
|
196
212
|
PLATFORMS
|
213
|
+
arm64-darwin-24
|
197
214
|
ruby
|
198
215
|
|
199
216
|
DEPENDENCIES
|
200
217
|
active_model_serializers
|
201
218
|
activerecord-jdbc-adapter
|
202
219
|
activerecord-jdbcsqlite3-adapter
|
203
|
-
algolia (
|
220
|
+
algolia (>= 3.12.0)
|
204
221
|
jdbc-sqlite3
|
205
222
|
json (>= 1.5.1)
|
206
223
|
kaminari (< 1)
|
207
224
|
pagy
|
208
225
|
rails (~> 6.1)
|
209
|
-
rake (
|
226
|
+
rake (>= 10.1.0)
|
210
227
|
rdoc
|
211
228
|
redgreen
|
212
|
-
rspec (
|
229
|
+
rspec (~> 3.0)
|
213
230
|
sequel (>= 4.0)
|
214
|
-
sqlite3 (~> 1.
|
231
|
+
sqlite3 (~> 1.5.0)
|
215
232
|
will_paginate (>= 2.3.15)
|
216
233
|
|
217
234
|
BUNDLED WITH
|
218
|
-
2.
|
235
|
+
2.5.9
|
data/lib/algoliasearch-rails.rb
CHANGED
@@ -540,7 +540,7 @@ module AlgoliaSearch
|
|
540
540
|
|
541
541
|
synonyms = s.delete("synonyms") || s.delete(:synonyms)
|
542
542
|
unless synonyms.nil? || synonyms.empty?
|
543
|
-
resp = AlgoliaSearch.client.save_synonyms(index_name,synonyms.map {|s| Algolia::Search::SynonymHit.new({
|
543
|
+
resp = AlgoliaSearch.client.save_synonyms(index_name,synonyms.map {|s| Algolia::Search::SynonymHit.new({algolia_object_id: s.join("-"), synonyms: s, type: "synonym"}) } )
|
544
544
|
AlgoliaSearch.client.wait_for_task(index_name, resp.task_id) if synchronous || options[:synchronous]
|
545
545
|
end
|
546
546
|
|
@@ -769,10 +769,11 @@ module AlgoliaSearch
|
|
769
769
|
options ||= algoliasearch_options
|
770
770
|
settings ||= algoliasearch_settings
|
771
771
|
|
772
|
-
return if @algolia_indexes_init[settings]
|
773
|
-
|
774
772
|
index_name = algolia_index_name(options)
|
775
773
|
|
774
|
+
return if @algolia_indexes_init[index_name]
|
775
|
+
|
776
|
+
@algolia_indexes_init[index_name] = settings
|
776
777
|
|
777
778
|
index_settings_hash ||= settings.to_settings.to_hash
|
778
779
|
index_settings_hash = options[:primary_settings].to_settings.to_hash.merge(index_settings_hash) if options[:inherit]
|
@@ -792,7 +793,7 @@ module AlgoliaSearch
|
|
792
793
|
|
793
794
|
synonyms = s.delete("synonyms") || s.delete(:synonyms)
|
794
795
|
unless synonyms.nil? || synonyms.empty?
|
795
|
-
resp = AlgoliaSearch.client.save_synonyms(index_name,synonyms.map {|s| Algolia::Search::SynonymHit.new({
|
796
|
+
resp = AlgoliaSearch.client.save_synonyms(index_name,synonyms.map {|s| Algolia::Search::SynonymHit.new({algolia_object_id: s.join("-"), synonyms: s, type: "synonym"}) } )
|
796
797
|
AlgoliaSearch.client.wait_for_task(index_name, resp.task_id) if options[:synchronous]
|
797
798
|
end
|
798
799
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: algoliasearch-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Algolia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
185
|
-
rubygems_version: 3.
|
185
|
+
rubygems_version: 3.5.9
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: AlgoliaSearch integration to your favorite ORM
|