cachai 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cachai.gemspec +1 -1
- data/lib/cachai.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50e4a0cf28a5023457d6ef13943c0e414fa0b260
|
4
|
+
data.tar.gz: 28f0b3c3a87ef6a572d25ad106035c9bb8410972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c58272c69f77b00efe29462e5cee098039df79aa38b3f1ec4faad4ff0898dd2f2d87690dea5da78bbfa4383bc54520d9c4294666f2d2174072e3d4836c1f14ef
|
7
|
+
data.tar.gz: 4b4540d5f5c198404f5de336cf1ba94ead68e614853514370c6bacdcaf61115ccd2489b8e450e458c0e64fe74082379a9efe417578647f29e3d663220002c53a
|
data/cachai.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "cachai"
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.2'
|
8
8
|
spec.authors = ["Tomás Pollak"]
|
9
9
|
spec.email = ["tomas@forkhq.com"]
|
10
10
|
spec.description = %q{Middleware for embedabble comments.}
|
data/lib/cachai.rb
CHANGED
@@ -88,7 +88,7 @@ module Cachai
|
|
88
88
|
post = Post.find_or_create_by_path(data['path'])
|
89
89
|
response = Response.create!(attrs.merge(:post_id => post.id))
|
90
90
|
Cachai.clear_cache(data['path'])
|
91
|
-
notify_new_response(response, data['path'])
|
91
|
+
notify_new_response(response, data['path']) if @sendgrid
|
92
92
|
|
93
93
|
json({ :status => 'ok', :comment => response })
|
94
94
|
|