spud_blog 1.0.0.rc1 → 1.0.0.rc1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/news_controller.rb +12 -13
- data/app/models/spud_post_comment.rb +0 -1
- data/lib/spud_blog/configuration.rb +0 -3
- data/lib/spud_blog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b1b33b046a326fae4da997e1ab56178de62881
|
4
|
+
data.tar.gz: ce424073b769bf4dcc44cfda00971521a568a44a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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)
|
@@ -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
|
data/lib/spud_blog/version.rb
CHANGED
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-
|
11
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|