algoliasearch-rails 1.10.0 → 1.10.1

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: 6bc9aa518564e9c0160f13ef67514a945f35da68
4
- data.tar.gz: 49d26543e6d5adc2fccbc8bdcef24cc11f2c17f2
3
+ metadata.gz: 259bb1f2a40342135abe260829ca14a2c9194e3e
4
+ data.tar.gz: f33c47c20e0493ff17c89548009fe9fff47d8f28
5
5
  SHA512:
6
- metadata.gz: 35f38a0dab2988e3aa315c1b5077ee4757807fdf8869469e29e7b278a60c74cd949449f5749841fa9d90d9f0cd5934f127370c3ec5ccf5264a343a184afb261b
7
- data.tar.gz: 62e110ee3248badf1f02bbe1b98e23d07f5c04f95f92310f10bdca53e35e5c7bb76eeb415a240bd98f53db475e4be7b926af08730b1da2f3e47df84c168a7de1
6
+ metadata.gz: a45251daed490b6f631f7e50bc10c4a64d402567f257117bd9d3489025939933e6420147a4233dc316ca37c81dcd02162cfd52d0073d8d8230eaff848a2369f3
7
+ data.tar.gz: 1dcfcb3022db0a17c989057267184695cbef2f1c0bbb06bcbf6f2dc9dcd4f7ddc2db3d94c942e03775a3e8716ec550b83cd68d0301aaefe281d0e160d4fa01c3
data/ChangeLog CHANGED
@@ -1,5 +1,9 @@
1
1
  CHANGELOG
2
2
 
3
+ 2014-04-29 1.10.1
4
+
5
+ * Use :if and :unless constraints to detect if a record has changed as well
6
+
3
7
  2014-04-28 1.10.0
4
8
 
5
9
  * Ability to configure slave indexes from the ```algoliasearch``` block
@@ -6,11 +6,11 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "algoliasearch-rails"
9
- s.version = "1.10.0"
9
+ s.version = "1.10.1"
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-04-28"
13
+ s.date = "2014-04-29"
14
14
  s.description = "AlgoliaSearch integration to your favorite ORM"
15
15
  s.email = "contact@algolia.com"
16
16
  s.extra_rdoc_files = [
@@ -351,6 +351,15 @@ module AlgoliaSearch
351
351
  changed_method = "#{k}_changed?"
352
352
  return true if object.respond_to?(changed_method) && object.send(changed_method)
353
353
  end
354
+ [options[:if], options[:unless]].each do |condition|
355
+ case condition
356
+ when nil
357
+ when String, Symbol
358
+ changed_method = "#{condition}_changed?"
359
+ return true if object.respond_to?(changed_method) && object.send(changed_method)
360
+ else
361
+ end
362
+ end
354
363
  end
355
364
  return false
356
365
  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.0
4
+ version: 1.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-28 00:00:00.000000000 Z
11
+ date: 2014-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json