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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d738368dd1684b9fa58b5507e65d0d7522930a6894e0e9684139fbd5def1a583
4
- data.tar.gz: 8fdd59e52471fd184cf51092706fb345d699cd9d135385bd0a7ade084ec8dc2d
3
+ metadata.gz: e9f821e4bb84fd0a2217a6ed58bbdef6ae894e18641ec2a9bbfb82b6f37103a8
4
+ data.tar.gz: fde9d6939506c96144fdd28b7ca09fb5702415d0518664958c5fef86f4631143
5
5
  SHA512:
6
- metadata.gz: a9f4a61d1eafcda6ffbca4c585026ca54d9aed7fb3b03b36143c19b5ee504196b10e2a8be88b7083004fb0b070dfd12bb0dbfecaa987c1761c8afca31326eeea
7
- data.tar.gz: 6a8fb2b05c4798965164fc2f651624b2a69935dfa3a22d7704bb312424b7e0f796e7c3d5e9bbdc6d9058f17fe06cc0ec40bd41ee06233f11ce98435906f2a235
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-x86_64-darwin)
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
- x86_64-darwin-19
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.2.15
221
+ 2.1.4
@@ -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?
@@ -1,3 +1,3 @@
1
1
  module AlgoliaSearch
2
- VERSION = '2.0.0'
2
+ VERSION = '2.1.0'
3
3
  end
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.0.0
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-05-03 00:00:00.000000000 Z
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
- rubyforge_project:
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