bivouac 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. data/README +15 -0
  2. data/bin/bivouac +5 -10
  3. data/doc/rdoc/classes/BivouacHelpers/HtmlView.html +46 -37
  4. data/doc/rdoc/classes/BivouacHelpers/ScriptAculoUsView.html +27 -20
  5. data/doc/rdoc/created.rid +1 -1
  6. data/doc/rdoc/files/README.html +45 -1
  7. data/doc/rdoc/files/lib/bivouac/helpers/view/goh/html_rb.html +1 -1
  8. data/doc/rdoc/files/lib/bivouac/helpers/view/goh/javascript_rb.html +1 -1
  9. data/doc/rdoc/files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html +1 -1
  10. data/examples/bivouac_sample/Rakefile +0 -0
  11. data/examples/bivouac_sample/app/controllers/toggle_sortable.rb +2 -1
  12. data/examples/bivouac_sample/app/views/_sortable_result.rb +1 -1
  13. data/examples/bivouac_sample/script/console +0 -0
  14. data/examples/bivouac_sample/script/generate +0 -0
  15. data/examples/bivouac_sample/script/plugin +0 -0
  16. data/examples/bivouac_sample/script/server +0 -0
  17. data/examples/blog/Rakefile +56 -0
  18. data/examples/blog/app/blog.rb +107 -0
  19. data/examples/blog/app/controllers/comment.rb +17 -0
  20. data/examples/blog/app/controllers/index.rb +15 -0
  21. data/examples/blog/app/controllers/login.rb +33 -0
  22. data/examples/blog/app/controllers/logout.rb +15 -0
  23. data/examples/blog/app/controllers/not_found.rb +14 -0
  24. data/examples/blog/app/controllers/post.rb +48 -0
  25. data/examples/blog/app/helpers/_helpers.rb +30 -0
  26. data/examples/blog/app/helpers/blog.rb +14 -0
  27. data/examples/blog/app/models/comment.rb +18 -0
  28. data/examples/blog/app/models/post.rb +19 -0
  29. data/examples/blog/app/models/user.rb +12 -0
  30. data/examples/blog/app/views/_partials.rb +81 -0
  31. data/examples/blog/app/views/index/index.rb +23 -0
  32. data/examples/blog/app/views/layouts/default_layout.rb +40 -0
  33. data/examples/blog/app/views/login/login.rb +27 -0
  34. data/examples/blog/app/views/not_found.rb +13 -0
  35. data/examples/blog/app/views/post/add.rb +12 -0
  36. data/examples/blog/app/views/post/edit.rb +12 -0
  37. data/examples/blog/app/views/post/view.rb +14 -0
  38. data/examples/blog/config/console.rc +12 -0
  39. data/examples/blog/config/database.yml +3 -0
  40. data/examples/blog/config/environment.rb +58 -0
  41. data/examples/blog/db/blog.db +0 -0
  42. data/examples/blog/db/create.rb +11 -0
  43. data/examples/blog/db/migrate/001_users.rb +22 -0
  44. data/examples/blog/db/migrate/002_posts.rb +24 -0
  45. data/examples/blog/db/migrate/003_comments.rb +24 -0
  46. data/examples/blog/log/Blog.log +382 -0
  47. data/examples/{blog_goh → blog}/public/images/camping.png +0 -0
  48. data/examples/{blog_goh → blog}/public/index.html +3 -2
  49. data/examples/blog/public/javascripts/builder.js +136 -0
  50. data/examples/blog/public/javascripts/controls.js +965 -0
  51. data/examples/blog/public/javascripts/dragdrop.js +974 -0
  52. data/examples/blog/public/javascripts/effects.js +1122 -0
  53. data/examples/blog/public/javascripts/prototype.js +4320 -0
  54. data/examples/blog/public/javascripts/scriptaculous.js +58 -0
  55. data/examples/blog/public/javascripts/slider.js +275 -0
  56. data/examples/blog/public/javascripts/sound.js +55 -0
  57. data/examples/blog/public/javascripts/unittest.js +568 -0
  58. data/examples/blog/public/stylesheets/autocomplete.css +22 -0
  59. data/examples/blog/public/stylesheets/blog.css +107 -0
  60. data/examples/blog/script/console +12 -0
  61. data/examples/blog/script/generate +17 -0
  62. data/examples/blog/script/plugin +16 -0
  63. data/examples/blog/script/server +135 -0
  64. data/examples/blog/test/test_comment.rb +22 -0
  65. data/examples/blog/test/test_index.rb +22 -0
  66. data/examples/blog/test/test_login.rb +22 -0
  67. data/examples/blog/test/test_logout.rb +18 -0
  68. data/examples/blog/test/test_post.rb +30 -0
  69. data/examples/blog/test/test_post_new.rb +22 -0
  70. data/lib/bivouac.rb +2 -2
  71. data/lib/bivouac/commands/generate.rb +48 -8
  72. data/lib/bivouac/commands/plugin.rb +30 -15
  73. data/lib/bivouac/ext/filtering_camping.rb +46 -0
  74. data/lib/bivouac/helpers/view/goh/html.rb +9 -0
  75. data/lib/bivouac/helpers/view/goh/scriptaculous.rb +12 -8
  76. data/lib/bivouac/tasks/bivouac.rb +1 -0
  77. data/lib/bivouac/tasks/framework.rake +8 -8
  78. data/lib/bivouac/tasks/plugins.rake +17 -1
  79. data/lib/bivouac/template.rb +0 -0
  80. data/lib/bivouac/template/{application_goh.rb → application.rb} +36 -12
  81. data/lib/bivouac/template/application/{helpers_goh.rb → helpers.rb} +1 -1
  82. data/lib/bivouac/template/console.rb +2 -4
  83. data/lib/bivouac/template/environment.rb +1 -1
  84. data/lib/bivouac/template/generate.rb +0 -0
  85. data/lib/bivouac/template/generate/create.rb +0 -0
  86. data/lib/bivouac/template/generate/helper.rb +12 -0
  87. data/lib/bivouac/template/generate/migrate.rb +0 -0
  88. data/lib/bivouac/template/generate/migrate_end.rb +1 -0
  89. data/lib/bivouac/template/plugin.rb +6 -1
  90. data/lib/bivouac/template/server.rb +124 -3
  91. data/lib/bivouac/template/static/builder.js +19 -19
  92. data/lib/bivouac/template/static/controls.js +74 -74
  93. data/lib/bivouac/template/static/dragdrop.js +167 -166
  94. data/lib/bivouac/template/static/effects.js +171 -163
  95. data/lib/bivouac/template/static/not_found_controller.rb +8 -4
  96. data/lib/bivouac/template/static/prototype.js +218 -119
  97. data/lib/bivouac/template/static/scriptaculous.js +22 -20
  98. data/lib/bivouac/template/static/slider.js +39 -39
  99. data/lib/bivouac/template/static/sound.js +11 -11
  100. data/lib/bivouac/template/static/unittest.js +16 -16
  101. metadata +96 -60
  102. data/examples/blog_goh/app/blog.rb +0 -72
  103. data/examples/blog_goh/app/controllers/add.rb +0 -19
  104. data/examples/blog_goh/app/controllers/comment.rb +0 -9
  105. data/examples/blog_goh/app/controllers/edit.rb +0 -18
  106. data/examples/blog_goh/app/controllers/index.rb +0 -8
  107. data/examples/blog_goh/app/controllers/info.rb +0 -11
  108. data/examples/blog_goh/app/controllers/login.rb +0 -15
  109. data/examples/blog_goh/app/controllers/logout.rb +0 -8
  110. data/examples/blog_goh/app/controllers/view.rb +0 -9
  111. data/examples/blog_goh/app/models/comment.rb +0 -5
  112. data/examples/blog_goh/app/models/post.rb +0 -5
  113. data/examples/blog_goh/app/models/user.rb +0 -4
  114. data/examples/blog_goh/app/views/_form.rb +0 -16
  115. data/examples/blog_goh/app/views/_login.rb +0 -13
  116. data/examples/blog_goh/app/views/_post.rb +0 -9
  117. data/examples/blog_goh/app/views/add.rb +0 -9
  118. data/examples/blog_goh/app/views/edit.rb +0 -9
  119. data/examples/blog_goh/app/views/index.rb +0 -12
  120. data/examples/blog_goh/app/views/layout.rb +0 -18
  121. data/examples/blog_goh/app/views/login.rb +0 -6
  122. data/examples/blog_goh/app/views/logout.rb +0 -6
  123. data/examples/blog_goh/app/views/view.rb +0 -20
  124. data/examples/blog_goh/config/environment.rb +0 -27
  125. data/examples/blog_goh/db/Blog.db +0 -0
  126. data/examples/blog_goh/db/create.rb +0 -8
  127. data/examples/blog_goh/db/migrate/comment.rb +0 -15
  128. data/examples/blog_goh/db/migrate/post.rb +0 -15
  129. data/examples/blog_goh/db/migrate/user.rb +0 -15
  130. data/examples/blog_goh/log/Blog.log +0 -75
  131. data/examples/blog_goh/public/stylesheets/style.css +0 -10
  132. data/examples/blog_goh/script/generate +0 -3
  133. data/examples/blog_goh/script/server +0 -5
  134. data/lib/bivouac/template/application/postamble.rb +0 -195
  135. data/lib/camping/cookies_sessions.rb +0 -39
@@ -1,72 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- #
4
- # Project Blog
5
- #
6
- # Created using bivouac on Wed Aug 01 09:38:28 +0200 2007.
7
- # Copyright (c) 2007 __My__. All rights reserved.
8
- #
9
-
10
- require 'rubygems'
11
- require 'camping'
12
- require 'camping/session'
13
- require 'mime/types'
14
- require 'bivouac'
15
-
16
- include Bivouac
17
-
18
- Camping.goes :Blog
19
-
20
- # Load helpers from app/helpers
21
- files( 'helpers' ) { |file| require( file ) }
22
-
23
- # Load models from app/models
24
- files( 'models' ) { |file| require( file ) }
25
-
26
- # Load database schema from db/migrate
27
- files( '../db/migrate' ) { |file| require( file ) }
28
-
29
- # Load views from app/views
30
- files( 'views' ) { |file| require( file ) }
31
-
32
- # Load controllers from app/controllers
33
- files( 'controllers', :except => [File.basename(__FILE__)] ) { |file| require( file ) }
34
-
35
- module Blog::Controllers
36
- class Public < R '/public/(.+)'
37
- PATH = File.expand_path(File.dirname(__FILE__))
38
-
39
- def get file
40
- if file.include? '..'
41
- @status = '403'
42
- return '403 - Invalid path'
43
- else
44
- type = (MIME::Types.type_for(file)[0] || '/text/plain').to_s
45
- @headers['Content-Type'] = type
46
- @headers['X-Sendfile'] = File.join PATH, '..', 'public', file
47
- end
48
- end
49
- end
50
- end
51
-
52
- # Load create
53
- files( '../db' ) { |file| require( file ) }
54
-
55
- # WEBrick postamble
56
- if __FILE__ == $0
57
- require 'webrick/httpserver'
58
- require 'camping/webrick'
59
-
60
- Blog::Models::Base.establish_connection :adapter => 'sqlite3', :database => File.dirname(__FILE__) + "/../db/Blog.db"
61
- Blog::Models::Base.logger = Logger.new(File.dirname(__FILE__) + "/../log/Blog.log")
62
- Blog.create if Blog.respond_to? :create
63
- s = WEBrick::HTTPServer.new :BindAddress => "0.0.0.0", :Port => 3301
64
- s.mount "/", WEBrick::CampingHandler, Blog
65
-
66
- # This lets Ctrl+C shut down your server
67
- trap(:INT) do
68
- s.shutdown
69
- end
70
-
71
- s.start
72
- end
@@ -1,19 +0,0 @@
1
- module Blog::Controllers
2
- class Add
3
- def get
4
- unless @state.user_id.blank?
5
- @user = User.find @state.user_id
6
- @post = Post.new
7
- end
8
- render :add
9
- end
10
- def post
11
- unless @state.user_id.blank?
12
- post = Post.create :title => input.post_title,
13
- :body => input.post_body,
14
- :user_id => @state.user_id
15
- redirect View, post
16
- end
17
- end
18
- end
19
- end
@@ -1,9 +0,0 @@
1
- module Blog::Controllers
2
- class Comment
3
- def post
4
- Models::Comment.create(:username => input.post_username,
5
- :body => input.post_body, :post_id => input.post_id)
6
- redirect View, input.post_id
7
- end
8
- end
9
- end
@@ -1,18 +0,0 @@
1
- module Blog::Controllers
2
- class Edit < R '/edit/(\d+)', '/edit'
3
- def get post_id
4
- unless @state.user_id.blank?
5
- @user = User.find @state.user_id
6
- end
7
- @post = Post.find post_id
8
- render :edit
9
- end
10
- def post
11
- unless @state.user_id.blank?
12
- @post = Post.find input.post_id
13
- @post.update_attributes :title => input.post_title, :body => input.post_body
14
- redirect View, @post
15
- end
16
- end
17
- end
18
- end
@@ -1,8 +0,0 @@
1
- module Blog::Controllers
2
- class Index < R '/'
3
- def get
4
- @posts = Post.find :all
5
- render :index
6
- end
7
- end
8
- end
@@ -1,11 +0,0 @@
1
- module Blog::Controllers
2
- class Info < R '/info/(\d+)', '/info/(\w+)/(\d+)', '/info', '/info/(\d+)/(\d+)/(\d+)/([\w-]+)'
3
- def get(*args)
4
- div do
5
- code args.inspect; br; br
6
- code @env.inspect; br
7
- code "Link: #{R(Info, 1, 2)}"
8
- end
9
- end
10
- end
11
- end
@@ -1,15 +0,0 @@
1
- module Blog::Controllers
2
- class Login
3
- def post
4
- @user = User.find :first, :conditions => ['username = ? AND password = ?', input.username, input.password]
5
-
6
- if @user
7
- @login = 'login success !'
8
- @state.user_id = @user.id
9
- else
10
- @login = 'wrong user name or password'
11
- end
12
- render :login
13
- end
14
- end
15
- end
@@ -1,8 +0,0 @@
1
- module Blog::Controllers
2
- class Logout
3
- def get
4
- @state.user_id = nil
5
- render :logout
6
- end
7
- end
8
- end
@@ -1,9 +0,0 @@
1
- module Blog::Controllers
2
- class View < R '/view/(\d+)'
3
- def get post_id
4
- @post = Post.find post_id
5
- @comments = Models::Comment.find :all, :conditions => ['post_id = ?', post_id]
6
- render :view
7
- end
8
- end
9
- end
@@ -1,5 +0,0 @@
1
- module Blog::Models
2
- class Comment < Base
3
- belongs_to :post
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Blog::Models
2
- class Post < Base
3
- belongs_to :user
4
- end
5
- end
@@ -1,4 +0,0 @@
1
- module Blog::Models
2
- class User < Base
3
- end
4
- end
@@ -1,16 +0,0 @@
1
- module Blog::Views
2
- def _form(post, opts)
3
- p { "You are logged in as #{@user.username} | #{a 'Logout', :href => R(Logout)}" }
4
- form({:method => 'post'}.merge(opts)) do
5
- label 'Title', :for => 'post_title'; br
6
- input :name => 'post_title', :type => 'text',
7
- :value => post.title; br
8
-
9
- label 'Body', :for => 'post_body'; br
10
- textarea post.body, :name => 'post_body'; br
11
-
12
- input :type => 'hidden', :name => 'post_id', :value => post.id
13
- input :type => 'submit'
14
- end
15
- end
16
- end
@@ -1,13 +0,0 @@
1
- module Blog::Views
2
- def _login
3
- form :action => R(Login), :method => 'post' do
4
- label 'Username', :for => 'username'; br
5
- input :name => 'username', :type => 'text'; br
6
-
7
- label 'Password', :for => 'password'; br
8
- input :name => 'password', :type => 'text'; br
9
-
10
- input :type => 'submit', :name => 'login', :value => 'Login'
11
- end
12
- end
13
- end
@@ -1,9 +0,0 @@
1
- module Blog::Views
2
- def _post( post )
3
- h1 post.title
4
- p post.body
5
- p do
6
- [a("Edit", :href => R(Edit, post)), a("View", :href => R(View, post))].join " | "
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module Blog::Views
2
- def add
3
- if @user
4
- _form( @post, :action => R(Add) )
5
- else
6
- _login
7
- end
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- module Blog::Views
2
- def edit
3
- if @user
4
- _form(@post, :action => R(Edit))
5
- else
6
- _login
7
- end
8
- end
9
- end
@@ -1,12 +0,0 @@
1
- module Blog::Views
2
- def index
3
- if @posts.empty?
4
- p 'No posts found.'
5
- p { a 'Add', :href => R(Add) }
6
- else
7
- for post in @posts
8
- _post( post )
9
- end
10
- end
11
- end
12
- end
@@ -1,18 +0,0 @@
1
- module Blog::Views
2
- def layout
3
- html do
4
- head do
5
- title 'blog'
6
- link :rel => 'stylesheet', :type => 'text/css',
7
- :href => '/public/stylesheets/style.css', :media => 'screen'
8
- end
9
- body do
10
- h1.header { a 'blog', :href => R(Index) }
11
- small { a 'add', :href => R(Add) }
12
- div.content do
13
- self << yield
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,6 +0,0 @@
1
- module Blog::Views
2
- def login
3
- p { b @login }
4
- p { a 'Continue', :href => R(Add) }
5
- end
6
- end
@@ -1,6 +0,0 @@
1
- module Blog::Views
2
- def logout
3
- p "You have been logged out."
4
- p { a 'Continue', :href => R(Index) }
5
- end
6
- end
@@ -1,20 +0,0 @@
1
- module Blog::Views
2
- def view
3
- _post(@post)
4
-
5
- p "Comment for this post:"
6
- for c in @comments
7
- h1 c.username
8
- p c.body
9
- end
10
-
11
- form :action => R(Comment), :method => 'post' do
12
- label 'Name', :for => 'post_username'; br
13
- input :name => 'post_username', :type => 'text'; br
14
- label 'Comment', :for => 'post_body'; br
15
- textarea :name => 'post_body' do; end; br
16
- input :type => 'hidden', :name => 'post_id', :value => @post.id
17
- input :type => 'submit'
18
- end
19
- end
20
- end
@@ -1,27 +0,0 @@
1
- #
2
- # Project Blog
3
- #
4
- # Created using bivouac on Wed Aug 01 09:38:28 +0200 2007.
5
- # Copyright (c) 2007 __My__. All rights reserved.
6
- #
7
- # DO NOT EDIT THIS FILE, OR YOU REALLY KNOW WHAT YOU ARE DOING !
8
- #
9
-
10
- require 'ostruct'
11
-
12
- module Bivouac
13
- class Environment
14
-
15
- attr_reader :environment
16
-
17
- def initialize
18
- @environment = OpenStruct.new( )
19
-
20
- @environment.appname = "Blog"
21
- @environment.db = "sqlite3"
22
- @environment.appdir = "blog"
23
- @environment.orgtype = "GOH"
24
- @environment.postamble = "webrick"
25
- end
26
- end
27
- end
Binary file
@@ -1,8 +0,0 @@
1
- module Blog
2
- include Camping::Session
3
- end
4
-
5
- def Blog.create
6
- Camping::Models::Session.create_schema
7
- Blog::Models.create_schema :assume => (Blog::Models::Comment.table_exists? ? 1.0 : 0.0)
8
- end
@@ -1,15 +0,0 @@
1
- module Blog::Models
2
- class CreateComment < V 1.0
3
- def self.up
4
- create_table :blog_comments do |t|
5
- t.column :id , :integer , :null => false
6
- t.column :post_id , :integer , :null => false
7
- t.column :username , :string
8
- t.column :body , :text
9
- end
10
- end
11
- def self.down
12
- drop_table :blog_comments
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- module Blog::Models
2
- class CreatePost < V 1.0
3
- def self.up
4
- create_table :blog_posts do |t|
5
- t.column :id , :integer , :null => false
6
- t.column :user_id , :integer , :null => false
7
- t.column :title , :string , :limit => 255
8
- t.column :body , :text
9
- end
10
- end
11
- def self.down
12
- drop_table :blog_posts
13
- end
14
- end
15
- end
@@ -1,15 +0,0 @@
1
- module Blog::Models
2
- class CreateUser < V 1.0
3
- def self.up
4
- create_table :blog_users do |t|
5
- t.column :id , :integer , :null => false
6
- t.column :username , :string
7
- t.column :password , :string
8
- end
9
- User.create :username => 'admin', :password => 'bivouac'
10
- end
11
- def self.down
12
- drop_table :blog_users
13
- end
14
- end
15
- end
@@ -1,75 +0,0 @@
1
- # Logfile created on Wed Aug 01 09:39:05 +0200 2007 by /
2
- SQL (0.000268) SELECT name FROM sqlite_master WHERE type = 'table'
3
- SQL (0.000000) SQLite3::SQLException: no such table: sessions: DROP TABLE sessions
4
- SQL (0.277974) CREATE TABLE sessions ("id" INTEGER PRIMARY KEY NOT NULL, "hashid" varchar(32) DEFAULT NULL, "created_at" datetime DEFAULT NULL, "ivars" text DEFAULT NULL) 
5
- SQL (0.000459) SELECT name FROM sqlite_master WHERE type = 'table'
6
- SQL (0.000348) SELECT name FROM sqlite_master WHERE type = 'table'
7
- SQL (0.090689) CREATE TABLE blog_schema_infos ("id" INTEGER PRIMARY KEY NOT NULL, "version" float DEFAULT NULL) 
8
- Blog::Models::SchemaInfo Load (0.000262) SELECT * FROM blog_schema_infos LIMIT 1
9
- SQL (0.088558) CREATE TABLE blog_comments ("id" INTEGER PRIMARY KEY NOT NULL, "post_id" integer NOT NULL, "username" varchar(255) DEFAULT NULL, "body" text DEFAULT NULL) 
10
- SQL (0.093018) CREATE TABLE blog_posts ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer NOT NULL, "title" varchar(255) DEFAULT NULL, "body" text DEFAULT NULL) 
11
- SQL (0.068089) CREATE TABLE blog_users ("id" INTEGER PRIMARY KEY NOT NULL, "username" varchar(255) DEFAULT NULL, "password" varchar(255) DEFAULT NULL) 
12
- SQL (0.000583) INSERT INTO blog_users ("username", "password") VALUES('admin', 'bivouac')
13
- SQL (0.000507) INSERT INTO blog_schema_infos ("version") VALUES(1.0)
14
- Camping::Models::Session Load (0.000300) SELECT * FROM sessions WHERE (sessions."hashid" = '2BZzk1mWnunHy4FqcP3qX2HR1IU3hFwK') LIMIT 1
15
- SQL (0.005173) INSERT INTO sessions ("hashid", "created_at", "ivars") VALUES('EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv', '2007-08-01 09:44:15', '--- !map:HashWithIndifferentAccess {}
16
-
17
- ')
18
- Blog::Models::Post Load (0.000335) SELECT * FROM blog_posts 
19
- Camping::Models::Session Load (0.000451) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
20
- Camping::Models::Session Load (0.000566) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
21
- Camping::Models::Session Load (0.000493) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
22
- Camping::Models::Session Load (0.000502) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
23
- Blog::Models::User Load (0.000374) SELECT * FROM blog_users WHERE (username = 'admin' AND password = 'bivouac') LIMIT 1
24
- Camping::Models::Session Update (0.005425) UPDATE sessions SET "created_at" = '2007-08-01 09:44:15', "hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv', "ivars" = '--- !map:HashWithIndifferentAccess
25
- Blog: !map:HashWithIndifferentAccess
26
- user_id: 1
27
- ' WHERE "id" = 1
28
- Camping::Models::Session Load (0.000453) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
29
- Camping::Models::Session Load (0.000492) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
30
- Blog::Models::User Load (0.000337) SELECT * FROM blog_users WHERE (blog_users."id" = 1) 
31
- Camping::Models::Session Load (0.000426) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
32
- Camping::Models::Session Load (0.000516) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
33
- SQL (0.004818) INSERT INTO blog_posts ("body", "title", "user_id") VALUES('P1
34
- ', '1', 1)
35
- Camping::Models::Session Load (0.000516) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
36
- Blog::Models::Post Load (0.000385) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
37
- Blog::Models::Comment Load (0.000187) SELECT * FROM blog_comments WHERE (post_id = '1') 
38
- Camping::Models::Session Load (0.000415) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
39
- Camping::Models::Session Load (0.000505) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
40
- SQL (0.004120) INSERT INTO blog_comments ("body", "post_id", "username") VALUES('cg1', 1, 'g')
41
- Camping::Models::Session Load (0.000514) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
42
- Blog::Models::Post Load (0.000348) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
43
- Blog::Models::Comment Load (0.000343) SELECT * FROM blog_comments WHERE (post_id = '1') 
44
- Camping::Models::Session Load (0.000749) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
45
- Camping::Models::Session Load (0.000512) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
46
- Blog::Models::User Load (0.000383) SELECT * FROM blog_users WHERE (blog_users."id" = 1) 
47
- Blog::Models::Post Load (0.000335) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
48
- Camping::Models::Session Load (0.000482) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
49
- Camping::Models::Session Load (0.000465) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
50
- Blog::Models::Post Load (0.000330) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
51
- Blog::Models::Post Update (0.004381) UPDATE blog_posts SET "title" = '1', "body" = 'P1.01
52
- ', "user_id" = 1 WHERE "id" = 1
53
- Camping::Models::Session Load (0.000506) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
54
- Blog::Models::Post Load (0.000345) SELECT * FROM blog_posts WHERE (blog_posts."id" = 1) 
55
- Blog::Models::Comment Load (0.000326) SELECT * FROM blog_comments WHERE (post_id = '1') 
56
- Camping::Models::Session Load (0.000477) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
57
- Camping::Models::Session Load (0.000517) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
58
- Blog::Models::User Load (0.000333) SELECT * FROM blog_users WHERE (blog_users."id" = 1) 
59
- Camping::Models::Session Load (0.000486) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
60
- Camping::Models::Session Load (0.000488) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
61
- SQL (0.004740) INSERT INTO blog_posts ("body", "title", "user_id") VALUES('P2', '2', 1)
62
- Camping::Models::Session Load (0.000523) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
63
- Blog::Models::Post Load (0.000455) SELECT * FROM blog_posts WHERE (blog_posts."id" = 2) 
64
- Blog::Models::Comment Load (0.000197) SELECT * FROM blog_comments WHERE (post_id = '2') 
65
- Camping::Models::Session Load (0.000901) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
66
- Camping::Models::Session Load (0.000483) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
67
- Blog::Models::Post Load (0.000415) SELECT * FROM blog_posts 
68
- Camping::Models::Session Load (0.000438) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
69
- SQL (0.000724) SELECT name FROM sqlite_master WHERE type = 'table'
70
- SQL (0.000444) SELECT name FROM sqlite_master WHERE type = 'table'
71
- SQL (0.000400) SELECT name FROM sqlite_master WHERE type = 'table'
72
- Blog::Models::SchemaInfo Load (0.000234) SELECT * FROM blog_schema_infos LIMIT 1
73
- Camping::Models::Session Load (0.000482) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1
74
- Blog::Models::Post Load (0.000481) SELECT * FROM blog_posts 
75
- Camping::Models::Session Load (0.000456) SELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1