spud_blog 0.8.11 → 0.8.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,6 +3,8 @@ class BlogController < ApplicationController
3
3
  respond_to :html, :xml, :json, :rss
4
4
  layout Spud::Blog.base_layout
5
5
 
6
+ before_filter :find_post, :only => :show
7
+
6
8
  caches_action :show, :index,
7
9
  :expires => Spud::Blog.config.action_caching_duration,
8
10
  :if => Proc.new{ |c|
@@ -57,7 +59,6 @@ class BlogController < ApplicationController
57
59
  end
58
60
 
59
61
  def show
60
- find_post
61
62
  if @post.comments_enabled
62
63
  @comment = SpudPostComment.new(:spud_post_id => params[:id])
63
64
  end
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Blog
3
- VERSION = "0.8.11"
3
+ VERSION = "0.8.12"
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.11
4
+ version: 0.8.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-25 00:00:00.000000000 Z
12
+ date: 2012-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70099588378700 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: 3.2.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70099588378700
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.1
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: spud_core
27
- requirement: &70099588378180 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -35,10 +40,18 @@ dependencies:
35
40
  version: 0.9.0
36
41
  type: :runtime
37
42
  prerelease: false
38
- version_requirements: *70099588378180
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: 0.8.0
49
+ - - <
50
+ - !ruby/object:Gem::Version
51
+ version: 0.9.0
39
52
  - !ruby/object:Gem::Dependency
40
53
  name: spud_permalinks
41
- requirement: &70099588377460 !ruby/object:Gem::Requirement
54
+ requirement: !ruby/object:Gem::Requirement
42
55
  none: false
43
56
  requirements:
44
57
  - - ~>
@@ -46,10 +59,15 @@ dependencies:
46
59
  version: 0.0.1
47
60
  type: :runtime
48
61
  prerelease: false
49
- version_requirements: *70099588377460
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ~>
66
+ - !ruby/object:Gem::Version
67
+ version: 0.0.1
50
68
  - !ruby/object:Gem::Dependency
51
69
  name: mysql2
52
- requirement: &70099588377020 !ruby/object:Gem::Requirement
70
+ requirement: !ruby/object:Gem::Requirement
53
71
  none: false
54
72
  requirements:
55
73
  - - ! '>='
@@ -57,10 +75,15 @@ dependencies:
57
75
  version: '0'
58
76
  type: :development
59
77
  prerelease: false
60
- version_requirements: *70099588377020
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
61
84
  - !ruby/object:Gem::Dependency
62
85
  name: rspec
63
- requirement: &70099588376440 !ruby/object:Gem::Requirement
86
+ requirement: !ruby/object:Gem::Requirement
64
87
  none: false
65
88
  requirements:
66
89
  - - ! '>='
@@ -68,10 +91,15 @@ dependencies:
68
91
  version: '0'
69
92
  type: :development
70
93
  prerelease: false
71
- version_requirements: *70099588376440
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
72
100
  - !ruby/object:Gem::Dependency
73
101
  name: rspec-rails
74
- requirement: &70099588372700 !ruby/object:Gem::Requirement
102
+ requirement: !ruby/object:Gem::Requirement
75
103
  none: false
76
104
  requirements:
77
105
  - - ! '>='
@@ -79,40 +107,60 @@ dependencies:
79
107
  version: '0'
80
108
  type: :development
81
109
  prerelease: false
82
- version_requirements: *70099588372700
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ none: false
112
+ requirements:
113
+ - - ! '>='
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
83
116
  - !ruby/object:Gem::Dependency
84
117
  name: factory_girl
85
- requirement: &70099588371480 !ruby/object:Gem::Requirement
118
+ requirement: !ruby/object:Gem::Requirement
86
119
  none: false
87
120
  requirements:
88
- - - =
121
+ - - '='
89
122
  - !ruby/object:Gem::Version
90
123
  version: 2.5.0
91
124
  type: :development
92
125
  prerelease: false
93
- version_requirements: *70099588371480
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - '='
130
+ - !ruby/object:Gem::Version
131
+ version: 2.5.0
94
132
  - !ruby/object:Gem::Dependency
95
133
  name: mocha
96
- requirement: &70099588370680 !ruby/object:Gem::Requirement
134
+ requirement: !ruby/object:Gem::Requirement
97
135
  none: false
98
136
  requirements:
99
- - - =
137
+ - - '='
100
138
  - !ruby/object:Gem::Version
101
139
  version: 0.10.3
102
140
  type: :development
103
141
  prerelease: false
104
- version_requirements: *70099588370680
142
+ version_requirements: !ruby/object:Gem::Requirement
143
+ none: false
144
+ requirements:
145
+ - - '='
146
+ - !ruby/object:Gem::Version
147
+ version: 0.10.3
105
148
  - !ruby/object:Gem::Dependency
106
149
  name: database_cleaner
107
- requirement: &70099588370020 !ruby/object:Gem::Requirement
150
+ requirement: !ruby/object:Gem::Requirement
108
151
  none: false
109
152
  requirements:
110
- - - =
153
+ - - '='
111
154
  - !ruby/object:Gem::Version
112
155
  version: 0.7.1
113
156
  type: :development
114
157
  prerelease: false
115
- version_requirements: *70099588370020
158
+ version_requirements: !ruby/object:Gem::Requirement
159
+ none: false
160
+ requirements:
161
+ - - '='
162
+ - !ruby/object:Gem::Version
163
+ version: 0.7.1
116
164
  description: Spud blogging/news and rss engine.
117
165
  email:
118
166
  - greg@westlakedesign.com
@@ -218,7 +266,6 @@ files:
218
266
  - test/dummy/config/routes.rb
219
267
  - test/dummy/config.ru
220
268
  - test/dummy/db/schema.rb
221
- - test/dummy/log/development.log
222
269
  - test/dummy/public/404.html
223
270
  - test/dummy/public/422.html
224
271
  - test/dummy/public/500.html
@@ -240,7 +287,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
287
  version: '0'
241
288
  segments:
242
289
  - 0
243
- hash: -1742732038736838628
290
+ hash: 3400804130527026999
244
291
  required_rubygems_version: !ruby/object:Gem::Requirement
245
292
  none: false
246
293
  requirements:
@@ -249,10 +296,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
296
  version: '0'
250
297
  segments:
251
298
  - 0
252
- hash: -1742732038736838628
299
+ hash: 3400804130527026999
253
300
  requirements: []
254
301
  rubyforge_project:
255
- rubygems_version: 1.8.15
302
+ rubygems_version: 1.8.24
256
303
  signing_key:
257
304
  specification_version: 3
258
305
  summary: Spud Blog Engine.
@@ -279,7 +326,6 @@ test_files:
279
326
  - test/dummy/config/routes.rb
280
327
  - test/dummy/config.ru
281
328
  - test/dummy/db/schema.rb
282
- - test/dummy/log/development.log
283
329
  - test/dummy/public/404.html
284
330
  - test/dummy/public/422.html
285
331
  - test/dummy/public/500.html
@@ -1,36 +0,0 @@
1
- Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
2
- Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
3
- Mysql2::Error: Table 'spud_blog_development.spud_users' doesn't exist: SHOW FULL FIELDS FROM `spud_users`
4
-  (153.8ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
5
-  (287.7ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
6
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
7
- Migrating to CreateSpudPosts (20120125180945)
8
-  (163.8ms) CREATE TABLE `spud_posts` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_user_id` int(11), `title` varchar(255), `content` text, `comments_enabled` tinyint(1) DEFAULT 0, `visible` tinyint(1) DEFAULT 1, `published_at` datetime, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
9
-  (225.6ms) CREATE INDEX `index_spud_posts_on_spud_user_id` ON `spud_posts` (`spud_user_id`)
10
-  (178.6ms) CREATE INDEX `index_spud_posts_on_visible` ON `spud_posts` (`visible`)
11
-  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120125180945')
12
- Migrating to CreateSpudPostCategories (20120125181022)
13
-  (214.2ms) CREATE TABLE `spud_post_categories` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
14
-  (209.6ms) CREATE TABLE `spud_post_categories_posts` (`spud_post_id` int(11), `spud_post_category_id` int(11)) ENGINE=InnoDB
15
-  (182.2ms) CREATE INDEX `index_spud_post_categories_posts_on_spud_post_category_id` ON `spud_post_categories_posts` (`spud_post_category_id`)
16
-  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120125181022')
17
- Migrating to CreateSpudPostComments (20120125181359)
18
-  (171.4ms) CREATE TABLE `spud_post_comments` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `spud_post_id` int(11), `author` varchar(255), `content` text, `approved` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
19
-  (237.9ms) CREATE INDEX `index_spud_post_comments_on_spud_post_id` ON `spud_post_comments` (`spud_post_id`)
20
-  (227.0ms) CREATE INDEX `index_spud_post_comments_on_approved` ON `spud_post_comments` (`approved`)
21
-  (0.5ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120125181359')
22
- Migrating to AddUrlToSpudPosts (20120127143054)
23
-  (239.3ms) ALTER TABLE `spud_posts` ADD `url_name` varchar(255)
24
-  (234.5ms) CREATE INDEX `index_spud_posts_on_url_name` ON `spud_posts` (`url_name`)
25
-  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120127143054')
26
- Migrating to AddUrlToSpudPostCategories (20120127144942)
27
-  (196.9ms) ALTER TABLE `spud_post_categories` ADD `parent_id` int(11) DEFAULT 0
28
-  (220.7ms) ALTER TABLE `spud_post_categories` ADD `url_name` varchar(255)
29
-  (179.0ms) CREATE INDEX `index_spud_post_categories_on_parent_id` ON `spud_post_categories` (`parent_id`)
30
-  (178.4ms) CREATE INDEX `index_spud_post_categories_on_url_name` ON `spud_post_categories` (`url_name`)
31
-  (0.6ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120127144942')
32
- Migrating to AddIsNewsToSpudPosts (20120210165540)
33
-  (207.1ms) ALTER TABLE `spud_posts` ADD `is_news` tinyint(1) DEFAULT 0
34
-  (212.3ms) CREATE INDEX `index_spud_posts_on_is_news` ON `spud_posts` (`is_news`)
35
-  (0.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20120210165540')
36
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`