spud_blog 0.8.13 → 0.8.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -77,7 +77,10 @@ class BlogController < ApplicationController
77
77
  end
78
78
 
79
79
  def create_comment
80
- return unless params[:comment_validation].empty? # trap spam bots
80
+ unless params[:comment_validation].blank? # trap spam bots
81
+ render :nothing => true
82
+ return
83
+ end
81
84
  @post = SpudPost.find(params[:id])
82
85
  if @post.blank?
83
86
  flash[:error] = "Post not found!"
@@ -18,7 +18,7 @@ class SpudPostSweeper < ActionController::Caching::Sweeper
18
18
 
19
19
  def expire_cache_for(record)
20
20
  if Spud::Blog.config.enable_action_caching
21
- expire_action spud_blog_sitemap_url if Spud::Blog.config.blog_enabled
21
+ expire_action spud_blog_sitemap_url
22
22
  if !record.is_news && Spud::Blog.config.blog_enabled
23
23
  expire_action blog_url
24
24
  expire_action blog_url(:format => :rss)
@@ -30,7 +30,7 @@ class SpudPostSweeper < ActionController::Caching::Sweeper
30
30
  end
31
31
  end
32
32
  if Spud::Blog.config.enable_full_page_caching
33
- expire_page spud_blog_sitemap_path(:format => :xml) if Spud::Blog.config.blog_enabled
33
+ expire_page spud_blog_sitemap_path(:format => :xml)
34
34
  if record.is_news && Spud::Blog.config.news_enabled
35
35
  expire_page news_path
36
36
  expire_page news_path(:format => :rss)
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Blog
3
- VERSION = "0.8.13"
3
+ VERSION = "0.8.14"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spud_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.13
4
+ version: 0.8.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-16 00:00:00.000000000 Z
12
+ date: 2012-07-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -294,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
294
294
  version: '0'
295
295
  segments:
296
296
  - 0
297
- hash: -4260844259530265505
297
+ hash: -4202281715850105173
298
298
  required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  none: false
300
300
  requirements:
@@ -303,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
303
  version: '0'
304
304
  segments:
305
305
  - 0
306
- hash: -4260844259530265505
306
+ hash: -4202281715850105173
307
307
  requirements: []
308
308
  rubyforge_project:
309
309
  rubygems_version: 1.8.24