spud_blog 0.8.7 → 0.8.8

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.
@@ -27,7 +27,7 @@ class Spud::Admin::NewsPostsController < Spud::Admin::ApplicationController
27
27
 
28
28
  def new
29
29
  @categories = SpudPostCategory.grouped
30
- @post = SpudPost.new(:published_at => Date.today, :spud_user_id => current_user.id, :is_news => true, :comments_enabled => false)
30
+ @post = SpudPost.new(:published_at => Time.zone.now, :spud_user_id => current_user.id, :is_news => true, :comments_enabled => false)
31
31
  respond_with @post
32
32
  end
33
33
 
@@ -27,7 +27,7 @@ class Spud::Admin::PostsController < Spud::Admin::ApplicationController
27
27
 
28
28
  def new
29
29
  @categories = SpudPostCategory.grouped
30
- @post = SpudPost.new(:published_at => Time.now.strftime("%Y-%m-%d %H:%M"), :spud_user_id => current_user.id)
30
+ @post = SpudPost.new(:published_at => Time.zone.now, :spud_user_id => current_user.id)
31
31
  respond_with @post
32
32
  end
33
33
 
@@ -15,7 +15,15 @@
15
15
  <tbody>
16
16
  <% @posts.each do |post| %>
17
17
  <tr>
18
- <td><%= link_to post.title, edit_spud_admin_news_post_path(post) %></td>
18
+
19
+ <td>
20
+ <%= link_to edit_spud_admin_news_path(post) do %>
21
+ <%=post.title%>
22
+ <%if !post.visible%>
23
+ <span class="badge">Draft</span>
24
+ <%end%>
25
+ <%end%>
26
+ </td>
19
27
  <td><%= post.author.full_name %></td>
20
28
  <td><%= link_to(post.published_at.strftime('%m/%d/%Y'), news_post_path(post.url_name)) %></td>
21
29
  <td align="right">
@@ -32,7 +32,7 @@
32
32
  <div class="control-group">
33
33
  <%= f.label :published_at, 'Publish Date', :class=>"control-label" %>
34
34
  <div class="controls">
35
- <%= f.text_field :published_at, :class => 'spud_form_date_picker' %>
35
+ <%= f.text_field :published_at,:value => f.object.published_at.strftime("%Y-%m-%d %H:%M") , :class => 'spud_form_date_picker' %>
36
36
  </div>
37
37
  </div>
38
38
  <%if @current_user.super_admin%>
@@ -16,7 +16,14 @@
16
16
  <tbody>
17
17
  <% @posts.each do |post| %>
18
18
  <tr>
19
- <td><%= link_to post.title, edit_spud_admin_post_path(post) %></td>
19
+ <td>
20
+ <%= link_to edit_spud_admin_post_path(post) do %>
21
+ <%=post.title%>
22
+ <%if !post.visible%>
23
+ <span class="badge">Draft</span>
24
+ <%end%>
25
+ <%end%>
26
+ </td>
20
27
  <td><%= post.author.full_name %></td>
21
28
  <td><%= link_to(post.published_at.strftime('%m/%d/%Y'), blog_post_path(post.url_name)) %></td>
22
29
  <td><%= post.comments.size %></td>
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Blog
3
- VERSION = "0.8.7"
3
+ VERSION = "0.8.8"
4
4
  end
5
5
  end
@@ -0,0 +1,36 @@
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` 
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.7
4
+ version: 0.8.8
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-10 00:00:00.000000000 Z
12
+ date: 2012-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70203864381060 !ruby/object:Gem::Requirement
16
+ requirement: &70330527319860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70203864381060
24
+ version_requirements: *70330527319860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: spud_core
27
- requirement: &70203864380320 !ruby/object:Gem::Requirement
27
+ requirement: &70330527319340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: 0.9.0
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70203864380320
38
+ version_requirements: *70330527319340
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: spud_permalinks
41
- requirement: &70203864379540 !ruby/object:Gem::Requirement
41
+ requirement: &70330527313740 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ~>
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: 0.0.1
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70203864379540
49
+ version_requirements: *70330527313740
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: mysql2
52
- requirement: &70203864379140 !ruby/object:Gem::Requirement
52
+ requirement: &70330527313100 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: '0'
58
58
  type: :development
59
59
  prerelease: false
60
- version_requirements: *70203864379140
60
+ version_requirements: *70330527313100
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rspec
63
- requirement: &70203864378460 !ruby/object:Gem::Requirement
63
+ requirement: &70330527312380 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '>='
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: '0'
69
69
  type: :development
70
70
  prerelease: false
71
- version_requirements: *70203864378460
71
+ version_requirements: *70330527312380
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: rspec-rails
74
- requirement: &70203864378000 !ruby/object:Gem::Requirement
74
+ requirement: &70330527311760 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ! '>='
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: '0'
80
80
  type: :development
81
81
  prerelease: false
82
- version_requirements: *70203864378000
82
+ version_requirements: *70330527311760
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: factory_girl
85
- requirement: &70203864377460 !ruby/object:Gem::Requirement
85
+ requirement: &70330527310940 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - =
@@ -90,10 +90,10 @@ dependencies:
90
90
  version: 2.5.0
91
91
  type: :development
92
92
  prerelease: false
93
- version_requirements: *70203864377460
93
+ version_requirements: *70330527310940
94
94
  - !ruby/object:Gem::Dependency
95
95
  name: mocha
96
- requirement: &70203864376740 !ruby/object:Gem::Requirement
96
+ requirement: &70330527310200 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - =
@@ -101,10 +101,10 @@ dependencies:
101
101
  version: 0.10.3
102
102
  type: :development
103
103
  prerelease: false
104
- version_requirements: *70203864376740
104
+ version_requirements: *70330527310200
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: database_cleaner
107
- requirement: &70203864376240 !ruby/object:Gem::Requirement
107
+ requirement: &70330527309480 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - =
@@ -112,7 +112,7 @@ dependencies:
112
112
  version: 0.7.1
113
113
  type: :development
114
114
  prerelease: false
115
- version_requirements: *70203864376240
115
+ version_requirements: *70330527309480
116
116
  description: Spud blogging/news and rss engine.
117
117
  email:
118
118
  - greg@westlakedesign.com
@@ -218,6 +218,7 @@ files:
218
218
  - test/dummy/config/routes.rb
219
219
  - test/dummy/config.ru
220
220
  - test/dummy/db/schema.rb
221
+ - test/dummy/log/development.log
221
222
  - test/dummy/public/404.html
222
223
  - test/dummy/public/422.html
223
224
  - test/dummy/public/500.html
@@ -239,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
240
  version: '0'
240
241
  segments:
241
242
  - 0
242
- hash: 4023632794416678270
243
+ hash: -3292979416074427203
243
244
  required_rubygems_version: !ruby/object:Gem::Requirement
244
245
  none: false
245
246
  requirements:
@@ -248,10 +249,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
249
  version: '0'
249
250
  segments:
250
251
  - 0
251
- hash: 4023632794416678270
252
+ hash: -3292979416074427203
252
253
  requirements: []
253
254
  rubyforge_project:
254
- rubygems_version: 1.8.10
255
+ rubygems_version: 1.8.15
255
256
  signing_key:
256
257
  specification_version: 3
257
258
  summary: Spud Blog Engine.
@@ -278,6 +279,7 @@ test_files:
278
279
  - test/dummy/config/routes.rb
279
280
  - test/dummy/config.ru
280
281
  - test/dummy/db/schema.rb
282
+ - test/dummy/log/development.log
281
283
  - test/dummy/public/404.html
282
284
  - test/dummy/public/422.html
283
285
  - test/dummy/public/500.html