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 +4 -4
- data/ChangeLog +4 -0
- data/algoliasearch-rails.gemspec +2 -2
- data/lib/algoliasearch-rails.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 259bb1f2a40342135abe260829ca14a2c9194e3e
|
4
|
+
data.tar.gz: f33c47c20e0493ff17c89548009fe9fff47d8f28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a45251daed490b6f631f7e50bc10c4a64d402567f257117bd9d3489025939933e6420147a4233dc316ca37c81dcd02162cfd52d0073d8d8230eaff848a2369f3
|
7
|
+
data.tar.gz: 1dcfcb3022db0a17c989057267184695cbef2f1c0bbb06bcbf6f2dc9dcd4f7ddc2db3d94c942e03775a3e8716ec550b83cd68d0301aaefe281d0e160d4fa01c3
|
data/ChangeLog
CHANGED
data/algoliasearch-rails.gemspec
CHANGED
@@ -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
|
+
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-
|
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 = [
|
data/lib/algoliasearch-rails.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2014-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|