algoliasearch-rails 1.1.1 → 1.1.2

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
  SHA1:
3
- metadata.gz: f9f940b24a649594eeff1c2c6211edbc3d283caa
4
- data.tar.gz: 427a2dcabc14d2adc3549e73183075fd98dae56e
3
+ metadata.gz: 5a27f4d775cf46b7172cc94edef1b5bfa617fb2d
4
+ data.tar.gz: 84e4c3bd257180f153f00ab062179a89d3b02d6f
5
5
  SHA512:
6
- metadata.gz: b21de04e575d82c4578d13668bd70d5b5b9ecce773fcdaff302667de8dfaf3359f5a035a9358a8fa41cd96020dab4289ccabb2f2015e49e077a5318ffec51db3
7
- data.tar.gz: 76a8d62977805e5e16e9498442db53624a89f8b4953bc8a7db4fef05ecd8ec8eeeff29683eacd61a199ebcecc8a5f5b6dc56e6446f6a36457eafc23a609b9646
6
+ metadata.gz: 709129599d7506d0cd89b9d2dc2b43bbebfabe808ffc98562e3d90d113f9d0df7a8691d10c06916b5e50b1a17fe32da07d89c2f2edcefc688ee14c84a08c3148
7
+ data.tar.gz: 5b367d3784bd64d623a0ec0338c475e601f4f022ecc6fa7255f322327c16fa706c3d93c920b6c3ab416e9d4012192fa87c1d62a0cdff40ad24ece43d82f8bbb8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "algoliasearch-rails"
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Algolia"]
@@ -139,7 +139,8 @@ module AlgoliaSearch
139
139
 
140
140
  def init
141
141
  @index ||= Algolia::Index.new(@options[:index_name] || model_name)
142
- @index.set_settings(@index_options.to_settings)
142
+ settings = @index_options.to_settings
143
+ @index.set_settings(settings) if !settings.empty?
143
144
  end
144
145
 
145
146
  private
@@ -176,7 +177,7 @@ module AlgoliaSearch
176
177
  end
177
178
 
178
179
  def perform_index_tasks
179
- return if !@auto_indexing
180
+ return if !@auto_indexing || (respond_to?(:changed?) && !changed?)
180
181
  index!
181
182
  remove_instance_variable(:@auto_indexing) if instance_variable_defined?(:@auto_indexing)
182
183
  remove_instance_variable(:@synchronous) if instance_variable_defined?(:@synchronous)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algoliasearch-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia