custom_counter_cache 0.1.7 → 0.1.8

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: dd8344ec9c8a9953cd21fe46b3795e7356337019
4
- data.tar.gz: 582fd7ea06ddc4e8e955d1dcb6d061eba78a5ef5
3
+ metadata.gz: 9a41055a2c727874930c749e9f09bb0401fc83ee
4
+ data.tar.gz: 368a9a85d649eff26b58eac8f3e624f30ca5c03e
5
5
  SHA512:
6
- metadata.gz: b75fe7daa1627c2a0e6a225460b1e7fc6f4d42e0d181972c1bcf733e898c852bf97bce66144d1ee4eb0e83f04e41702f8e4c5fe15f835153822cf2da8187dbd3
7
- data.tar.gz: cce84454f1ec9469ebba6ed204d9c1b9e1403e55b0ac08b15cf061fc6a71ec8c39c6283756e8da0889976f6cad8160a871e9654e9f79629ab0ea9e9412977b2d
6
+ metadata.gz: 9612df52ce08ce46ae36f6a214d425b4025e83f75ffd6fb166c909df1ffc245f5e1c1502300dd80fb20a81c04f2916ad9079b9ee30c1c81abcc7c8faad0851b6
7
+ data.tar.gz: 24a2164264fd7b2d968e70dd6b9cf535d6cab6e14234c0f9e31a37f550237bb68a265df609028be5962ba74cd465522c0979e1adc3de36ed142fe9b2918b945c
@@ -35,6 +35,10 @@ module CustomCounterCache::Model
35
35
  send "#{cache_column}=", block.call(self)
36
36
  end
37
37
  end
38
+
39
+ rescue StandardError => e
40
+ # Support Heroku's database-less assets:precompile pre-deploy step:
41
+ raise e unless ENV['DATABASE_URL'].to_s.include?('//user:pass@127.0.0.1/')
38
42
  end
39
43
 
40
44
  def update_counter_cache(association, cache_column, options = {})
@@ -70,6 +74,10 @@ module CustomCounterCache::Model
70
74
  after_create method_name, options
71
75
  after_update method_name, options
72
76
  after_destroy method_name, options
77
+
78
+ rescue StandardError => e
79
+ # Support Heroku's database-less assets:precompile pre-deploy step:
80
+ raise e unless ENV['DATABASE_URL'].to_s.include?('//user:pass@127.0.0.1/')
73
81
  end
74
82
  end
75
83
  end
@@ -1,5 +1,5 @@
1
1
  module CustomCounterCache
2
2
 
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.8'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_counter_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cedric Howe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-02 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails