algoliasearch-rails 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.MD +4 -0
- data/Gemfile.lock +5 -3
- data/lib/algoliasearch-rails.rb +2 -0
- data/lib/algoliasearch/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9f821e4bb84fd0a2217a6ed58bbdef6ae894e18641ec2a9bbfb82b6f37103a8
|
4
|
+
data.tar.gz: fde9d6939506c96144fdd28b7ca09fb5702415d0518664958c5fef86f4631143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b371672188be5d851ed39bc3c9bfb7efceed38ce1a1c74b00f444c09c741ac9fd8aec3378aeccd4b5f15cd237944a11fdfbf37e5354934a84088205543a1eda1
|
7
|
+
data.tar.gz: fef38d14f51f32a39acee326c955fe07ff7860f8c7c1a4afed26615453fdefbd0427dd91562d12415e5d512cf087abb20144d830355a0928f54c18526696471d
|
data/CHANGELOG.MD
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## [Unreleased](https://github.com/algolia/algoliasearch-rails/compare/2.0.0...master)
|
4
4
|
|
5
|
+
## [2.1.0](https://github.com/algolia/algoliasearch-rails/compare/2.1.0...2.0.0)
|
6
|
+
### Added
|
7
|
+
- Add support for [virtual replicas](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/in-depth/replicas/#what-are-virtual-replicas) ([#386](https://github.com/algolia/algoliasearch-rails/pull/386))
|
8
|
+
|
5
9
|
## [2.0.0](https://github.com/algolia/algoliasearch-rails/compare/2.0.0...1.25.0)
|
6
10
|
|
7
11
|
### Breaking changes
|
data/Gemfile.lock
CHANGED
@@ -112,13 +112,15 @@ GEM
|
|
112
112
|
marcel (1.0.1)
|
113
113
|
method_source (1.0.0)
|
114
114
|
mini_mime (1.0.3)
|
115
|
+
mini_portile2 (2.5.0)
|
115
116
|
minitest (5.14.4)
|
116
117
|
multi_json (1.15.0)
|
117
118
|
multipart-post (2.1.1)
|
118
119
|
net-http-persistent (2.9.4)
|
119
120
|
net-http-pipeline (1.0.1)
|
120
121
|
nio4r (2.5.7)
|
121
|
-
nokogiri (1.11.3
|
122
|
+
nokogiri (1.11.3)
|
123
|
+
mini_portile2 (~> 2.5.0)
|
122
124
|
racc (~> 1.4)
|
123
125
|
pusher-client (0.6.2)
|
124
126
|
json
|
@@ -195,7 +197,7 @@ GEM
|
|
195
197
|
zeitwerk (2.4.2)
|
196
198
|
|
197
199
|
PLATFORMS
|
198
|
-
|
200
|
+
ruby
|
199
201
|
|
200
202
|
DEPENDENCIES
|
201
203
|
active_model_serializers
|
@@ -216,4 +218,4 @@ DEPENDENCIES
|
|
216
218
|
will_paginate (>= 2.3.15)
|
217
219
|
|
218
220
|
BUNDLED WITH
|
219
|
-
2.
|
221
|
+
2.1.4
|
data/lib/algoliasearch-rails.rb
CHANGED
@@ -246,10 +246,12 @@ module AlgoliaSearch
|
|
246
246
|
v = get_setting(k)
|
247
247
|
settings[k] = v if !v.nil?
|
248
248
|
end
|
249
|
+
|
249
250
|
if !@options[:replica]
|
250
251
|
settings[:replicas] = additional_indexes.select { |opts, s| opts[:replica] }.map do |opts, s|
|
251
252
|
name = opts[:index_name]
|
252
253
|
name = "#{name}_#{Rails.env.to_s}" if opts[:per_environment]
|
254
|
+
name = "virtual(#{name})" if opts[:virtual]
|
253
255
|
name
|
254
256
|
end
|
255
257
|
settings.delete(:replicas) if settings[:replicas].empty?
|
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: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Algolia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -182,8 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
185
|
-
|
186
|
-
rubygems_version: 2.7.6.2
|
185
|
+
rubygems_version: 3.0.6
|
187
186
|
signing_key:
|
188
187
|
specification_version: 4
|
189
188
|
summary: AlgoliaSearch integration to your favorite ORM
|