algoliasearch-rails 1.10.9 → 1.11.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
  SHA1:
3
- metadata.gz: e5260f93c9b184b1ef9aba9eed21e5e19d9f09ec
4
- data.tar.gz: e11ef1aa7a762ba4b3a5233a6f2a3bce16529267
3
+ metadata.gz: 0f39872864846771818558ceb0b4e0c39133a5f0
4
+ data.tar.gz: 6917f70e4192d8ad79b02e6bdcdca3e3cc1e8067
5
5
  SHA512:
6
- metadata.gz: 5a87ae86c16239949462e96b9238fe243735c28f65de9266846df025ea3c77df2655260139a4f4f39675bd117dbd6158bcc41f1baed4666dff626c0a930a69d6
7
- data.tar.gz: 080482e94c7469d023085f1d227d7485475cd49f7a7df0d7614b558a7bc0155a967806bf9ab003fb75570ddbabcb9b6b6b425bc135aabc9535fe0a050b81f156
6
+ metadata.gz: eb0791e62c9575254411b94315fa667229bf0fed7f601b64e4b356b1a735de2efa9b789c25259dd301fc715f623a36c52f7fb55d4d7f34db58c69a884a105319
7
+ data.tar.gz: 548db3f2db61373437b8902f907920a932db97747a098f4c13d2200d079aae8c7e6ed5daea3999a66a8c68db0510b4b5085ba19e2f2525a633406635f65750c7
data/ChangeLog CHANGED
@@ -1,5 +1,9 @@
1
1
  CHANGELOG
2
2
 
3
+ 2014-08-20 1.11.0
4
+
5
+ * Do not rely of _changed? method to detect reindexing needs, if those methods are missing we probably need to reindex
6
+
3
7
  2014-08-07 1.10.9
4
8
 
5
9
  * Upgrade to algoliasearch-client-js 2.5.3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.10.9
1
+ 1.11.0
@@ -6,11 +6,11 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "algoliasearch-rails"
9
- s.version = "1.10.9"
9
+ s.version = "1.11.0"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Algolia"]
13
- s.date = "2014-08-07"
13
+ s.date = "2014-08-20"
14
14
  s.description = "AlgoliaSearch integration to your favorite ORM"
15
15
  s.email = "contact@algolia.com"
16
16
  s.extra_rdoc_files = [
@@ -401,14 +401,14 @@ module AlgoliaSearch
401
401
  return true if algolia_object_id_changed?(object, options)
402
402
  settings.get_attributes(object).each do |k, v|
403
403
  changed_method = "#{k}_changed?"
404
- return true if object.respond_to?(changed_method) && object.send(changed_method)
404
+ return true if !object.respond_to?(changed_method) || object.send(changed_method)
405
405
  end
406
406
  [options[:if], options[:unless]].each do |condition|
407
407
  case condition
408
408
  when nil
409
409
  when String, Symbol
410
410
  changed_method = "#{condition}_changed?"
411
- return true if object.respond_to?(changed_method) && object.send(changed_method)
411
+ return true if !object.respond_to?(changed_method) || object.send(changed_method)
412
412
  else
413
413
  end
414
414
  end
@@ -13,7 +13,7 @@ module AlgoliaSearch
13
13
 
14
14
  def reindex_all_models
15
15
  get_model_classes.each do |klass|
16
- klass.reindex!
16
+ klass.reindex
17
17
  end
18
18
  end
19
19
  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: 1.10.9
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-07 00:00:00.000000000 Z
11
+ date: 2014-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json