blogit 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
  module Blogit
2
2
  class PostsController < ApplicationController
3
3
 
4
+ if blogit_conf.include_admin_actions
5
+ before_filter :raise_404, except: [:index, :show]
6
+ end
7
+
4
8
  blogit_authenticate(except: [:index, :show])
5
9
 
6
10
  expose(:posts) { Post.for_index(params[:page]) }
@@ -24,37 +28,41 @@ module Blogit
24
28
  def show
25
29
  end
26
30
 
27
- # Don't include admin actions if not
28
- if blogit_conf.include_admin_actions
29
31
 
30
- def new
31
- end
32
+ def new
33
+ end
32
34
 
33
- def edit
34
- end
35
+ def edit
36
+ end
35
37
 
36
- def create
37
- if post.save
38
- redirect_to post, notice: 'Blog post was successfully created.'
39
- else
40
- render action: "new"
41
- end
38
+ def create
39
+ if post.save
40
+ redirect_to post, notice: 'Blog post was successfully created.'
41
+ else
42
+ render action: "new"
42
43
  end
44
+ end
43
45
 
44
- def update
45
- if post.update_attributes(params[:post])
46
- redirect_to post, notice: 'Blog post was successfully updated.'
47
- else
48
- render action: "edit"
49
- end
46
+ def update
47
+ if post.update_attributes(params[:post])
48
+ redirect_to post, notice: 'Blog post was successfully updated.'
49
+ else
50
+ render action: "edit"
50
51
  end
52
+ end
51
53
 
52
- def destroy
53
- post.destroy
54
- redirect_to posts_url, notice: "Blog post was successfully destroyed."
55
- end
56
-
54
+ def destroy
55
+ post.destroy
56
+ redirect_to posts_url, notice: "Blog post was successfully destroyed."
57
57
  end
58
58
 
59
+ private
60
+
61
+ def raise_404
62
+ # Don't include admin actions if include_admin_actions is false
63
+ render file: "#{Rails.root}/public/404.html", status: :not_found, layout: false
64
+ end
65
+
59
66
  end
67
+
60
68
  end
data/config/routes.rb CHANGED
@@ -1,14 +1,9 @@
1
1
  Blogit::Engine.routes.draw do
2
2
 
3
- resources :posts, constraints: {id: /\d+[\-a-z]*/i}, only: [:index, :show] do
3
+ resources :posts do
4
4
  resources :comments, only: [:create, :destroy]
5
5
  end
6
6
 
7
- # admin actions
8
- if Blogit.configuration.include_admin_actions
9
- resources :posts, only: [:new, :create, :edit, :update, :destroy]
10
- end
11
-
12
7
  match "/(page/:page)" => "posts#index"
13
8
  root to: "posts#index"
14
9
  end
@@ -1,3 +1,3 @@
1
1
  module Blogit
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -21550,3 +21550,448 @@ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
21550
21550
 
21551
21551
  Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 20:52:03 +0000
21552
21552
  Served asset /application.js - 304 Not Modified (0ms)
21553
+
21554
+
21555
+ Started GET "/blog/posts/1-this-is-a-test-post" for 127.0.0.1 at 2011-11-16 21:11:29 +0000
21556
+ Processing by Blogit::PostsController#show as HTML
21557
+ Parameters: {"id"=>"1-this-is-a-test-post"}
21558
+ Blogit::Post Load (0.2ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "1-this-is-a-test-post"]]
21559
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (82.8ms)
21560
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (3.4ms)
21561
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21562
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (20.5ms)
21563
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21564
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (65.3ms)
21565
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (175.6ms)
21566
+ Blogit::Comment Load (0.1ms) SELECT "blog_comments".* FROM "blog_comments" WHERE "blog_comments"."post_id" = 1
21567
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21568
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_comment.html.erb (1.9ms)
21569
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_form.html.erb (9.7ms)
21570
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (263.3ms)
21571
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21572
+ Completed 200 OK in 333ms (Views: 331.4ms | ActiveRecord: 1.2ms)
21573
+
21574
+
21575
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:29 +0000
21576
+ Served asset /blogit/comments.css - 304 Not Modified (2ms)
21577
+
21578
+
21579
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:29 +0000
21580
+ Served asset /blogit/posts.css - 304 Not Modified (3ms)
21581
+
21582
+
21583
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:29 +0000
21584
+ Served asset /blogit.css - 304 Not Modified (0ms)
21585
+
21586
+
21587
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 21:11:29 +0000
21588
+ Served asset /blogit.js - 304 Not Modified (0ms)
21589
+
21590
+
21591
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:29 +0000
21592
+ Served asset /application.css - 200 OK (0ms)
21593
+
21594
+
21595
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 21:11:29 +0000
21596
+ Served asset /jquery.js - 200 OK (2ms)
21597
+
21598
+
21599
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 21:11:29 +0000
21600
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
21601
+
21602
+
21603
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 21:11:29 +0000
21604
+ Served asset /application.js - 200 OK (0ms)
21605
+
21606
+
21607
+ Started GET "/blog/posts/new" for 127.0.0.1 at 2011-11-16 21:11:32 +0000
21608
+ Processing by Blogit::PostsController#show as HTML
21609
+ Parameters: {"id"=>"new"}
21610
+ Blogit::Post Load (0.1ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "new"]]
21611
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (18.1ms)
21612
+ Completed 500 Internal Server Error in 22ms
21613
+
21614
+ ActionView::Template::Error (Couldn't find Blogit::Post with id=new):
21615
+ 1: <%= render post %>
21616
+ 2: <% if blogit_conf.include_comments %>
21617
+ 3: <div id="comments">
21618
+ 4: <%= render comments %>
21619
+
21620
+
21621
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.9ms)
21622
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (26.3ms)
21623
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (28.9ms)
21624
+
21625
+
21626
+ Started GET "/blog/posts/1" for 127.0.0.1 at 2011-11-16 21:11:40 +0000
21627
+ Processing by Blogit::PostsController#show as HTML
21628
+ Parameters: {"id"=>"1"}
21629
+ Blogit::Post Load (0.1ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "1"]]
21630
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (1.2ms)
21631
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.6ms)
21632
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21633
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (32.3ms)
21634
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21635
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (4.4ms)
21636
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (41.2ms)
21637
+ Blogit::Comment Load (0.2ms) SELECT "blog_comments".* FROM "blog_comments" WHERE "blog_comments"."post_id" = 1
21638
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21639
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_comment.html.erb (5.7ms)
21640
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_form.html.erb (3.3ms)
21641
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (69.3ms)
21642
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21643
+ Completed 200 OK in 76ms (Views: 74.7ms | ActiveRecord: 1.1ms)
21644
+
21645
+
21646
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:40 +0000
21647
+ Served asset /blogit/comments.css - 304 Not Modified (0ms)
21648
+
21649
+
21650
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:40 +0000
21651
+ Served asset /blogit/posts.css - 304 Not Modified (0ms)
21652
+
21653
+
21654
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:40 +0000
21655
+ Served asset /blogit.css - 304 Not Modified (0ms)
21656
+
21657
+
21658
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 21:11:40 +0000
21659
+ Served asset /blogit.js - 304 Not Modified (0ms)
21660
+
21661
+
21662
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 21:11:40 +0000
21663
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
21664
+
21665
+
21666
+ Started GET "/blog/posts/1/edit" for 127.0.0.1 at 2011-11-16 21:11:42 +0000
21667
+ Processing by Blogit::PostsController#edit as HTML
21668
+ Parameters: {"id"=>"1"}
21669
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21670
+ Redirected to http://localhost:3000/blog/
21671
+ Completed 302 Found in 6ms
21672
+
21673
+
21674
+ Started GET "/blog/" for 127.0.0.1 at 2011-11-16 21:11:42 +0000
21675
+ Processing by Blogit::PostsController#index as HTML
21676
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21677
+ Blogit::Post Load (0.2ms) SELECT "blog_posts".* FROM "blog_posts" ORDER BY updated_at DESC LIMIT 5 OFFSET 0
21678
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (1.2ms)
21679
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.5ms)
21680
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21681
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (0.5ms)
21682
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21683
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (4.5ms)
21684
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (1.6ms)
21685
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (0.7ms)
21686
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.6ms)
21687
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21688
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (0.5ms)
21689
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21690
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (0.8ms)
21691
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (0.6ms)
21692
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (24.8ms)
21693
+  (0.1ms) SELECT COUNT(*) FROM "blog_posts" 
21694
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_pagination.html.erb (2.7ms)
21695
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/index.html.erb within layouts/application (37.0ms)
21696
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21697
+ Completed 200 OK in 45ms (Views: 43.5ms | ActiveRecord: 0.9ms)
21698
+
21699
+
21700
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:42 +0000
21701
+ Served asset /blogit/comments.css - 304 Not Modified (0ms)
21702
+
21703
+
21704
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:42 +0000
21705
+ Served asset /blogit/posts.css - 304 Not Modified (0ms)
21706
+
21707
+
21708
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 21:11:42 +0000
21709
+ Served asset /blogit.css - 304 Not Modified (0ms)
21710
+
21711
+
21712
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 21:11:42 +0000
21713
+ Served asset /blogit.js - 304 Not Modified (0ms)
21714
+
21715
+
21716
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 21:11:42 +0000
21717
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
21718
+
21719
+
21720
+ Started GET "/blog/" for 127.0.0.1 at 2011-11-16 21:15:28 +0000
21721
+
21722
+ ActionController::RoutingError (undefined local variable or method `except' for Blogit::PostsController:Class):
21723
+
21724
+
21725
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
21726
+
21727
+
21728
+ Started GET "/blog/" for 127.0.0.1 at 2011-11-16 21:15:36 +0000
21729
+ Processing by Blogit::PostsController#index as HTML
21730
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21731
+ Blogit::Post Load (0.2ms) SELECT "blog_posts".* FROM "blog_posts" ORDER BY updated_at DESC LIMIT 5 OFFSET 0
21732
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (1.2ms)
21733
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.5ms)
21734
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21735
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (0.5ms)
21736
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21737
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (4.2ms)
21738
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (1.3ms)
21739
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (0.8ms)
21740
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.6ms)
21741
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21742
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (0.6ms)
21743
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21744
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (0.8ms)
21745
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (0.6ms)
21746
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (23.2ms)
21747
+  (0.1ms) SELECT COUNT(*) FROM "blog_posts" 
21748
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_pagination.html.erb (2.0ms)
21749
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/index.html.erb within layouts/application (62.5ms)
21750
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21751
+ Completed 200 OK in 70ms (Views: 68.9ms | ActiveRecord: 0.9ms)
21752
+
21753
+
21754
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 21:15:37 +0000
21755
+ Served asset /blogit/comments.css - 304 Not Modified (0ms)
21756
+
21757
+
21758
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 21:15:37 +0000
21759
+ Served asset /blogit/posts.css - 304 Not Modified (0ms)
21760
+
21761
+
21762
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 21:15:37 +0000
21763
+ Served asset /blogit.js - 304 Not Modified (0ms)
21764
+
21765
+
21766
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 21:15:37 +0000
21767
+ Served asset /application.css - 304 Not Modified (0ms)
21768
+
21769
+
21770
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 21:15:37 +0000
21771
+ Served asset /blogit.css - 304 Not Modified (0ms)
21772
+
21773
+
21774
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 21:15:37 +0000
21775
+ Served asset /jquery.js - 304 Not Modified (0ms)
21776
+
21777
+
21778
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 21:15:37 +0000
21779
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
21780
+
21781
+
21782
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 21:15:37 +0000
21783
+ Served asset /application.js - 304 Not Modified (0ms)
21784
+
21785
+
21786
+ Started GET "/blog/posts/1" for 127.0.0.1 at 2011-11-16 21:15:42 +0000
21787
+ Processing by Blogit::PostsController#show as HTML
21788
+ Parameters: {"id"=>"1"}
21789
+ Blogit::Post Load (0.1ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "1"]]
21790
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (1.2ms)
21791
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.7ms)
21792
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21793
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (7.3ms)
21794
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21795
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (4.8ms)
21796
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (17.1ms)
21797
+ Blogit::Comment Load (0.2ms) SELECT "blog_comments".* FROM "blog_comments" WHERE "blog_comments"."post_id" = 1
21798
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21799
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_comment.html.erb (5.8ms)
21800
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_form.html.erb (3.4ms)
21801
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (73.7ms)
21802
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21803
+ Completed 200 OK in 80ms (Views: 78.8ms | ActiveRecord: 1.2ms)
21804
+
21805
+
21806
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 21:15:43 +0000
21807
+ Served asset /blogit/comments.css - 304 Not Modified (0ms)
21808
+
21809
+
21810
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 21:15:43 +0000
21811
+ Served asset /blogit/posts.css - 304 Not Modified (0ms)
21812
+
21813
+
21814
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 21:15:43 +0000
21815
+ Served asset /blogit.css - 304 Not Modified (0ms)
21816
+
21817
+
21818
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 21:15:43 +0000
21819
+ Served asset /application.css - 304 Not Modified (0ms)
21820
+
21821
+
21822
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 21:15:43 +0000
21823
+ Served asset /blogit.js - 304 Not Modified (0ms)
21824
+
21825
+
21826
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 21:15:43 +0000
21827
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
21828
+
21829
+
21830
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 21:15:43 +0000
21831
+ Served asset /jquery.js - 304 Not Modified (0ms)
21832
+
21833
+
21834
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 21:15:43 +0000
21835
+ Served asset /application.js - 304 Not Modified (0ms)
21836
+
21837
+
21838
+ Started GET "/blog/posts/1/edit" for 127.0.0.1 at 2011-11-16 21:15:45 +0000
21839
+ Processing by Blogit::PostsController#edit as HTML
21840
+ Parameters: {"id"=>"1"}
21841
+ Completed 500 Internal Server Error in 0ms
21842
+
21843
+ NoMethodError (undefined method `before' for true:TrueClass):
21844
+
21845
+
21846
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
21847
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
21848
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (2.9ms)
21849
+
21850
+
21851
+ Started GET "/blog/posts/1/edit" for 127.0.0.1 at 2011-11-16 21:16:18 +0000
21852
+ Processing by Blogit::PostsController#edit as HTML
21853
+ Parameters: {"id"=>"1"}
21854
+ Completed 500 Internal Server Error in 38ms
21855
+
21856
+ ActionView::MissingTemplate (Missing template /404.html with {:handlers=>[:erb, :builder], :formats=>[:html, :text, :js, :css, :ics, :csv, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json], :locale=>[:en, :en]}. Searched in:
21857
+ * "/Users/Gavin/Gems/blogit/spec/dummy/app/views"
21858
+ * "/Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/kaminari-0.12.4/app/views"
21859
+ * "/Users/Gavin/Gems/blogit/app/views"
21860
+ * "/Users/Gavin/Gems/blogit/spec/dummy"
21861
+ * "/"
21862
+ ):
21863
+
21864
+
21865
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.4ms)
21866
+
21867
+
21868
+ Started GET "/blog/posts/1/edit" for 127.0.0.1 at 2011-11-16 21:16:28 +0000
21869
+ Processing by Blogit::PostsController#edit as HTML
21870
+ Parameters: {"id"=>"1"}
21871
+ Completed 500 Internal Server Error in 7ms
21872
+
21873
+ ActionView::MissingTemplate (Missing template blogit/posts/404, blogit/application/404, application/404 with {:handlers=>[:erb, :builder], :formats=>[:html], :locale=>[:en, :en]}. Searched in:
21874
+ * "/Users/Gavin/Gems/blogit/spec/dummy/app/views"
21875
+ * "/Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/kaminari-0.12.4/app/views"
21876
+ * "/Users/Gavin/Gems/blogit/app/views"
21877
+ ):
21878
+
21879
+
21880
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.3ms)
21881
+
21882
+
21883
+ Started GET "/blog/posts/1/edit" for 127.0.0.1 at 2011-11-16 21:18:02 +0000
21884
+ Processing by Blogit::PostsController#edit as HTML
21885
+ Parameters: {"id"=>"1"}
21886
+ Rendered public/404.html (0.4ms)
21887
+ Completed 404 Not Found in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms)
21888
+
21889
+
21890
+ Started GET "/blog/posts/new" for 127.0.0.1 at 2011-11-16 21:18:06 +0000
21891
+ Processing by Blogit::PostsController#new as HTML
21892
+ Rendered public/404.html (0.0ms)
21893
+ Completed 404 Not Found in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
21894
+
21895
+
21896
+ Started GET "/blog/posts/1" for 127.0.0.1 at 2011-11-16 21:18:08 +0000
21897
+ Processing by Blogit::PostsController#show as HTML
21898
+ Parameters: {"id"=>"1"}
21899
+ Blogit::Post Load (0.1ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "1"]]
21900
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (1.2ms)
21901
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.6ms)
21902
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21903
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (6.8ms)
21904
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21905
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (4.3ms)
21906
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (15.7ms)
21907
+ Blogit::Comment Load (0.1ms) SELECT "blog_comments".* FROM "blog_comments" WHERE "blog_comments"."post_id" = 1
21908
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21909
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_comment.html.erb (6.0ms)
21910
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_form.html.erb (3.2ms)
21911
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (43.4ms)
21912
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21913
+ Completed 200 OK in 77ms (Views: 75.3ms | ActiveRecord: 1.1ms)
21914
+
21915
+
21916
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 21:18:08 +0000
21917
+ Served asset /blogit/posts.css - 304 Not Modified (0ms)
21918
+
21919
+
21920
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 21:18:08 +0000
21921
+ Served asset /blogit/comments.css - 304 Not Modified (0ms)
21922
+
21923
+
21924
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 21:18:08 +0000
21925
+ Served asset /blogit.css - 304 Not Modified (0ms)
21926
+
21927
+
21928
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 21:18:08 +0000
21929
+ Served asset /jquery.js - 304 Not Modified (0ms)
21930
+
21931
+
21932
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 21:18:08 +0000
21933
+ Served asset /application.css - 304 Not Modified (0ms)
21934
+
21935
+
21936
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 21:18:08 +0000
21937
+ Served asset /blogit.js - 304 Not Modified (0ms)
21938
+
21939
+
21940
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 21:18:08 +0000
21941
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
21942
+
21943
+
21944
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 21:18:08 +0000
21945
+ Served asset /application.js - 304 Not Modified (0ms)
21946
+
21947
+
21948
+ Started GET "/blog/posts/1" for 127.0.0.1 at 2011-11-16 21:20:13 +0000
21949
+ Processing by Blogit::PostsController#show as HTML
21950
+ Parameters: {"id"=>"1"}
21951
+ Blogit::Post Load (0.1ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "1"]]
21952
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (1.2ms)
21953
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.7ms)
21954
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21955
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (6.9ms)
21956
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21957
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (5.0ms)
21958
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (45.2ms)
21959
+ Blogit::Comment Load (0.1ms) SELECT "blog_comments".* FROM "blog_comments" WHERE "blog_comments"."post_id" = 1
21960
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21961
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_comment.html.erb (5.8ms)
21962
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_form.html.erb (3.2ms)
21963
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (72.6ms)
21964
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21965
+ Completed 200 OK in 80ms (Views: 78.1ms | ActiveRecord: 1.2ms)
21966
+
21967
+
21968
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 21:20:13 +0000
21969
+ Served asset /blogit/comments.css - 304 Not Modified (0ms)
21970
+
21971
+
21972
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 21:20:13 +0000
21973
+ Served asset /blogit/posts.css - 304 Not Modified (0ms)
21974
+
21975
+
21976
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 21:20:13 +0000
21977
+ Served asset /blogit.css - 304 Not Modified (0ms)
21978
+
21979
+
21980
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 21:20:13 +0000
21981
+ Served asset /blogit.js - 304 Not Modified (0ms)
21982
+
21983
+
21984
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 21:20:13 +0000
21985
+ Served asset /application.css - 304 Not Modified (0ms)
21986
+
21987
+
21988
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 21:20:13 +0000
21989
+ Served asset /jquery.js - 304 Not Modified (0ms)
21990
+
21991
+
21992
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 21:20:13 +0000
21993
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
21994
+
21995
+
21996
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 21:20:13 +0000
21997
+ Served asset /application.js - 304 Not Modified (0ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blogit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70115521795160 !ruby/object:Gem::Requirement
16
+ requirement: &70332652535320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70115521795160
24
+ version_requirements: *70332652535320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &70115521794720 !ruby/object:Gem::Requirement
27
+ requirement: &70332652534820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70115521794720
35
+ version_requirements: *70332652534820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: RedCloth
38
- requirement: &70115521794260 !ruby/object:Gem::Requirement
38
+ requirement: &70332652534200 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70115521794260
46
+ version_requirements: *70332652534200
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: redcarpet
49
- requirement: &70115521793840 !ruby/object:Gem::Requirement
49
+ requirement: &70332652533580 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70115521793840
57
+ version_requirements: *70332652533580
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: nokogiri
60
- requirement: &70115521793400 !ruby/object:Gem::Requirement
60
+ requirement: &70332652533080 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70115521793400
68
+ version_requirements: *70332652533080
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: albino
71
- requirement: &70115521792880 !ruby/object:Gem::Requirement
71
+ requirement: &70332652532380 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.3.3
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70115521792880
79
+ version_requirements: *70332652532380
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: sqlite3
82
- requirement: &70115521789860 !ruby/object:Gem::Requirement
82
+ requirement: &70332652531660 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70115521789860
90
+ version_requirements: *70332652531660
91
91
  description: Add a blog to your Rails application in minutes with this mountable Rails
92
92
  Engine
93
93
  email:
@@ -260,7 +260,6 @@ files:
260
260
  - spec/dummy/tmp/cache/assets/E30/DC0/sprockets%2F9ddd7093ee1d47cbacd526f4bdd36e3c
261
261
  - spec/dummy/tmp/cache/assets/E49/530/sprockets%2F10dadda372ee79deb251d7bbbb025cec
262
262
  - spec/dummy/tmp/cache/assets/E82/4C0/sprockets%2F0d49c3fa07b559dbecbaabf2a4bad9c8
263
- - spec/dummy/tmp/pids/server.pid
264
263
  - spec/factories.rb
265
264
  - spec/helpers/blogit/application_helper_spec.rb
266
265
  - spec/helpers/blogit/posts_helper_spec.rb
@@ -289,7 +288,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
289
288
  version: '0'
290
289
  segments:
291
290
  - 0
292
- hash: 2458462864745558987
291
+ hash: 157529124326137188
293
292
  required_rubygems_version: !ruby/object:Gem::Requirement
294
293
  none: false
295
294
  requirements:
@@ -298,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
298
297
  version: '0'
299
298
  segments:
300
299
  - 0
301
- hash: 2458462864745558987
300
+ hash: 157529124326137188
302
301
  requirements: []
303
302
  rubyforge_project:
304
303
  rubygems_version: 1.8.11
@@ -419,7 +418,6 @@ test_files:
419
418
  - spec/dummy/tmp/cache/assets/E30/DC0/sprockets%2F9ddd7093ee1d47cbacd526f4bdd36e3c
420
419
  - spec/dummy/tmp/cache/assets/E49/530/sprockets%2F10dadda372ee79deb251d7bbbb025cec
421
420
  - spec/dummy/tmp/cache/assets/E82/4C0/sprockets%2F0d49c3fa07b559dbecbaabf2a4bad9c8
422
- - spec/dummy/tmp/pids/server.pid
423
421
  - spec/factories.rb
424
422
  - spec/helpers/blogit/application_helper_spec.rb
425
423
  - spec/helpers/blogit/posts_helper_spec.rb
@@ -1 +0,0 @@
1
- 17115