spud_blog 1.0.0.rc1 → 1.0.0.rc1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77a728504b7102e5895987df422949e3bead587b
4
- data.tar.gz: 2f0b881a34f6c85002262f1fefac96c6cab7d4e8
3
+ metadata.gz: 24b1b33b046a326fae4da997e1ab56178de62881
4
+ data.tar.gz: ce424073b769bf4dcc44cfda00971521a568a44a
5
5
  SHA512:
6
- metadata.gz: 8bfd01e3fd6a66af57ce7020627196353e4e602c7e8bc0fe2c75a6883aed05407b1067b2587584dbd770c08f0cae5dd97201762b4976f8d7002440fcd0f61914
7
- data.tar.gz: f41987a796f9fe647814ca7d5a0cd6df19bdabaee85de4c2f59f3943d516d875644755db82be3b8461864b3e09f3eb5ff810e48cfce3e80a894ba7e9e7a90b4c
6
+ metadata.gz: b7f65bbdb424b669d29e662fa40b6ddfa7401a0ef9a45a4cb620af5448dcc12f89cdbfb7578d1f6d43f4273af2ef33d8389318f5a30fd0ec04fd25057823eb77
7
+ data.tar.gz: f767af419c95e7d967ae7ce87aef77ebda2d1d56aaeab34b9f24fb4c4789e7049469aab7c48fecf5552e4fdb04de7444b908d60fc920f79091770dc4f429c293
@@ -3,21 +3,20 @@ class NewsController < ApplicationController
3
3
  respond_to :html, :xml, :json, :rss
4
4
  layout Spud::Blog.news_layout
5
5
 
6
- caches_action :show, :index,
7
- :expires => Spud::Blog.config.action_caching_duration,
8
- :if => Proc.new{ |c|
9
- Spud::Blog.cache_mode == :action && !(c.params[:page] && c.params[:page].to_i > 1) && (SpudPost.where(:is_news => true).future_posts.count == 0)
10
- }
6
+ # caches_action :show, :index,
7
+ # :expires => Spud::Blog.config.action_caching_duration,
8
+ # :if => Proc.new{ |c|
9
+ # Spud::Blog.cache_mode == :action && !(c.params[:page] && c.params[:page].to_i > 1) && (SpudPost.where(:is_news => true).future_posts.count == 0)
10
+ # }
11
11
 
12
- after_filter :only => [:show, :index] do |c|
13
- if Spud::Blog.cache_mode == :full_page && !(c.params[:page] && c.params[:page].to_i > 1)
14
- if (SpudPost.where(:is_news => true).future_posts.count == 0)
15
- c.cache_page(nil, nil, false)
16
- end
17
- end
18
- end
12
+ # after_filter :only => [:show, :index] do |c|
13
+ # if Spud::Blog.cache_mode == :full_page && !(c.params[:page] && c.params[:page].to_i > 1)
14
+ # if (SpudPost.where(:is_news => true).future_posts.count == 0)
15
+ # c.cache_page(nil, nil, false)
16
+ # end
17
+ # end
18
+ # end
19
19
 
20
- cache_sweeper :spud_post_comment_sweeper, :only => [:create_comment]
21
20
 
22
21
  def index
23
22
  @posts = SpudPost.public_news_posts(params[:page], Spud::Blog.config.posts_per_page)
@@ -10,7 +10,6 @@ class SpudPostComment < ActiveRecord::Base
10
10
 
11
11
  # attr_accessible :author,:content,:spud_post_id,:referrer,:spam,:user_agent,:user_ip,:permalink
12
12
 
13
-
14
13
  def rakismet_check_for_spam
15
14
  self.spam = self.spam?
16
15
  return true
@@ -5,7 +5,6 @@ module Spud
5
5
  :base_layout, :news_layout, :blog_enabled,
6
6
  :news_enabled, :posts_per_page, :blog_path,
7
7
  :news_path, :enable_sitemap, :has_custom_fields,
8
- :action_caching_duration,
9
8
  :enable_rakismet
10
9
  )
11
10
  self.base_layout = 'application'
@@ -17,8 +16,6 @@ module Spud
17
16
  self.news_path = 'news'
18
17
  self.enable_sitemap = true
19
18
  self.has_custom_fields = false
20
- # self.cache_mode = nil #options :full_page, :action #deprecated
21
- self.action_caching_duration = 3600
22
19
  self.enable_rakismet = false
23
20
  end
24
21
  end
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Blog
3
- VERSION = "1.0.0.rc1"
3
+ VERSION = "1.0.0.rc1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spud_blog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc1
4
+ version: 1.0.0.rc1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Woods
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-05 00:00:00.000000000 Z
11
+ date: 2014-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails