active_cash 0.1.2 → 0.1.3

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: 2ce7a48da4376ed48bcaf90d9b56d270cad0d646
4
- data.tar.gz: 689beea4558ef5b39f18d3cf0c1d12585085028d
3
+ metadata.gz: cc6af6d130d8e95109a2dcac2a802ca449a98069
4
+ data.tar.gz: 919b1fe2a5717f11e349d83d9b8b3aea3e8f336e
5
5
  SHA512:
6
- metadata.gz: 2fc6f6e25239b5facaafc71341cda2e89a0a3e94b29adff8b3119b5835d09ea28412e9e00e27e2334570e2d1ec05fc6c7bbfa925af969da53c0722579383d835
7
- data.tar.gz: 049e2153e2fbd3ed201924af45d0bf85794abcfd01f0458204ba5c273936e26ad4110a4958a7f7dac604cce306052fa60652522004925bc48537c3cef9937193
6
+ metadata.gz: f64ac4e8e01b964f8e5871a11485249fe093aabecf8b39429325a8de3e911b9cf7cde8b9c5096f950c368396118a47a28f204e9e45005a75bbc3150323fc3a09
7
+ data.tar.gz: e19af22875e7eac0795a325354765260044cf1e56efabcc35cdd8737313fe2329127b3b7362669cb0bf01b09722cac8acaded6b16629331e9573f9ae4649008f
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.gem
@@ -39,7 +39,7 @@ module ActiveCash::Cache
39
39
  changes = OpenStruct.new(instance.previous_changes)
40
40
  return true if changes.send(returns) != nil
41
41
 
42
- find_by.keys.each_with_index do |key, i|
42
+ (find_by.is_a?(Array) ? find_by : find_by.keys).each_with_index do |key, i|
43
43
  if changes.send(key) != nil
44
44
  return true
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveCash
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_cash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippos Vasilakis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-05 00:00:00.000000000 Z
11
+ date: 2016-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-objects