bivouac 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +15 -0
- data/bin/bivouac +5 -10
- data/doc/rdoc/classes/BivouacHelpers/HtmlView.html +46 -37
- data/doc/rdoc/classes/BivouacHelpers/ScriptAculoUsView.html +27 -20
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README.html +45 -1
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/html_rb.html +1 -1
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/javascript_rb.html +1 -1
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html +1 -1
- data/examples/bivouac_sample/Rakefile +0 -0
- data/examples/bivouac_sample/app/controllers/toggle_sortable.rb +2 -1
- data/examples/bivouac_sample/app/views/_sortable_result.rb +1 -1
- data/examples/bivouac_sample/script/console +0 -0
- data/examples/bivouac_sample/script/generate +0 -0
- data/examples/bivouac_sample/script/plugin +0 -0
- data/examples/bivouac_sample/script/server +0 -0
- data/examples/blog/Rakefile +56 -0
- data/examples/blog/app/blog.rb +107 -0
- data/examples/blog/app/controllers/comment.rb +17 -0
- data/examples/blog/app/controllers/index.rb +15 -0
- data/examples/blog/app/controllers/login.rb +33 -0
- data/examples/blog/app/controllers/logout.rb +15 -0
- data/examples/blog/app/controllers/not_found.rb +14 -0
- data/examples/blog/app/controllers/post.rb +48 -0
- data/examples/blog/app/helpers/_helpers.rb +30 -0
- data/examples/blog/app/helpers/blog.rb +14 -0
- data/examples/blog/app/models/comment.rb +18 -0
- data/examples/blog/app/models/post.rb +19 -0
- data/examples/blog/app/models/user.rb +12 -0
- data/examples/blog/app/views/_partials.rb +81 -0
- data/examples/blog/app/views/index/index.rb +23 -0
- data/examples/blog/app/views/layouts/default_layout.rb +40 -0
- data/examples/blog/app/views/login/login.rb +27 -0
- data/examples/blog/app/views/not_found.rb +13 -0
- data/examples/blog/app/views/post/add.rb +12 -0
- data/examples/blog/app/views/post/edit.rb +12 -0
- data/examples/blog/app/views/post/view.rb +14 -0
- data/examples/blog/config/console.rc +12 -0
- data/examples/blog/config/database.yml +3 -0
- data/examples/blog/config/environment.rb +58 -0
- data/examples/blog/db/blog.db +0 -0
- data/examples/blog/db/create.rb +11 -0
- data/examples/blog/db/migrate/001_users.rb +22 -0
- data/examples/blog/db/migrate/002_posts.rb +24 -0
- data/examples/blog/db/migrate/003_comments.rb +24 -0
- data/examples/blog/log/Blog.log +382 -0
- data/examples/{blog_goh → blog}/public/images/camping.png +0 -0
- data/examples/{blog_goh → blog}/public/index.html +3 -2
- data/examples/blog/public/javascripts/builder.js +136 -0
- data/examples/blog/public/javascripts/controls.js +965 -0
- data/examples/blog/public/javascripts/dragdrop.js +974 -0
- data/examples/blog/public/javascripts/effects.js +1122 -0
- data/examples/blog/public/javascripts/prototype.js +4320 -0
- data/examples/blog/public/javascripts/scriptaculous.js +58 -0
- data/examples/blog/public/javascripts/slider.js +275 -0
- data/examples/blog/public/javascripts/sound.js +55 -0
- data/examples/blog/public/javascripts/unittest.js +568 -0
- data/examples/blog/public/stylesheets/autocomplete.css +22 -0
- data/examples/blog/public/stylesheets/blog.css +107 -0
- data/examples/blog/script/console +12 -0
- data/examples/blog/script/generate +17 -0
- data/examples/blog/script/plugin +16 -0
- data/examples/blog/script/server +135 -0
- data/examples/blog/test/test_comment.rb +22 -0
- data/examples/blog/test/test_index.rb +22 -0
- data/examples/blog/test/test_login.rb +22 -0
- data/examples/blog/test/test_logout.rb +18 -0
- data/examples/blog/test/test_post.rb +30 -0
- data/examples/blog/test/test_post_new.rb +22 -0
- data/lib/bivouac.rb +2 -2
- data/lib/bivouac/commands/generate.rb +48 -8
- data/lib/bivouac/commands/plugin.rb +30 -15
- data/lib/bivouac/ext/filtering_camping.rb +46 -0
- data/lib/bivouac/helpers/view/goh/html.rb +9 -0
- data/lib/bivouac/helpers/view/goh/scriptaculous.rb +12 -8
- data/lib/bivouac/tasks/bivouac.rb +1 -0
- data/lib/bivouac/tasks/framework.rake +8 -8
- data/lib/bivouac/tasks/plugins.rake +17 -1
- data/lib/bivouac/template.rb +0 -0
- data/lib/bivouac/template/{application_goh.rb → application.rb} +36 -12
- data/lib/bivouac/template/application/{helpers_goh.rb → helpers.rb} +1 -1
- data/lib/bivouac/template/console.rb +2 -4
- data/lib/bivouac/template/environment.rb +1 -1
- data/lib/bivouac/template/generate.rb +0 -0
- data/lib/bivouac/template/generate/create.rb +0 -0
- data/lib/bivouac/template/generate/helper.rb +12 -0
- data/lib/bivouac/template/generate/migrate.rb +0 -0
- data/lib/bivouac/template/generate/migrate_end.rb +1 -0
- data/lib/bivouac/template/plugin.rb +6 -1
- data/lib/bivouac/template/server.rb +124 -3
- data/lib/bivouac/template/static/builder.js +19 -19
- data/lib/bivouac/template/static/controls.js +74 -74
- data/lib/bivouac/template/static/dragdrop.js +167 -166
- data/lib/bivouac/template/static/effects.js +171 -163
- data/lib/bivouac/template/static/not_found_controller.rb +8 -4
- data/lib/bivouac/template/static/prototype.js +218 -119
- data/lib/bivouac/template/static/scriptaculous.js +22 -20
- data/lib/bivouac/template/static/slider.js +39 -39
- data/lib/bivouac/template/static/sound.js +11 -11
- data/lib/bivouac/template/static/unittest.js +16 -16
- metadata +96 -60
- data/examples/blog_goh/app/blog.rb +0 -72
- data/examples/blog_goh/app/controllers/add.rb +0 -19
- data/examples/blog_goh/app/controllers/comment.rb +0 -9
- data/examples/blog_goh/app/controllers/edit.rb +0 -18
- data/examples/blog_goh/app/controllers/index.rb +0 -8
- data/examples/blog_goh/app/controllers/info.rb +0 -11
- data/examples/blog_goh/app/controllers/login.rb +0 -15
- data/examples/blog_goh/app/controllers/logout.rb +0 -8
- data/examples/blog_goh/app/controllers/view.rb +0 -9
- data/examples/blog_goh/app/models/comment.rb +0 -5
- data/examples/blog_goh/app/models/post.rb +0 -5
- data/examples/blog_goh/app/models/user.rb +0 -4
- data/examples/blog_goh/app/views/_form.rb +0 -16
- data/examples/blog_goh/app/views/_login.rb +0 -13
- data/examples/blog_goh/app/views/_post.rb +0 -9
- data/examples/blog_goh/app/views/add.rb +0 -9
- data/examples/blog_goh/app/views/edit.rb +0 -9
- data/examples/blog_goh/app/views/index.rb +0 -12
- data/examples/blog_goh/app/views/layout.rb +0 -18
- data/examples/blog_goh/app/views/login.rb +0 -6
- data/examples/blog_goh/app/views/logout.rb +0 -6
- data/examples/blog_goh/app/views/view.rb +0 -20
- data/examples/blog_goh/config/environment.rb +0 -27
- data/examples/blog_goh/db/Blog.db +0 -0
- data/examples/blog_goh/db/create.rb +0 -8
- data/examples/blog_goh/db/migrate/comment.rb +0 -15
- data/examples/blog_goh/db/migrate/post.rb +0 -15
- data/examples/blog_goh/db/migrate/user.rb +0 -15
- data/examples/blog_goh/log/Blog.log +0 -75
- data/examples/blog_goh/public/stylesheets/style.css +0 -10
- data/examples/blog_goh/script/generate +0 -3
- data/examples/blog_goh/script/server +0 -5
- data/lib/bivouac/template/application/postamble.rb +0 -195
- 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,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,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,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,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,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,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
|
-
[4;36;1mSQL (0.000268)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
3
|
-
[4;35;1mSQL (0.000000)[0m [0mSQLite3::SQLException: no such table: sessions: DROP TABLE sessions[0m
|
4
|
-
[4;36;1mSQL (0.277974)[0m [0;1mCREATE TABLE sessions ("id" INTEGER PRIMARY KEY NOT NULL, "hashid" varchar(32) DEFAULT NULL, "created_at" datetime DEFAULT NULL, "ivars" text DEFAULT NULL) [0m
|
5
|
-
[4;35;1mSQL (0.000459)[0m [0mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
6
|
-
[4;36;1mSQL (0.000348)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
7
|
-
[4;35;1mSQL (0.090689)[0m [0mCREATE TABLE blog_schema_infos ("id" INTEGER PRIMARY KEY NOT NULL, "version" float DEFAULT NULL) [0m
|
8
|
-
[4;36;1mBlog::Models::SchemaInfo Load (0.000262)[0m [0;1mSELECT * FROM blog_schema_infos LIMIT 1[0m
|
9
|
-
[4;35;1mSQL (0.088558)[0m [0mCREATE TABLE blog_comments ("id" INTEGER PRIMARY KEY NOT NULL, "post_id" integer NOT NULL, "username" varchar(255) DEFAULT NULL, "body" text DEFAULT NULL) [0m
|
10
|
-
[4;36;1mSQL (0.093018)[0m [0;1mCREATE TABLE blog_posts ("id" INTEGER PRIMARY KEY NOT NULL, "user_id" integer NOT NULL, "title" varchar(255) DEFAULT NULL, "body" text DEFAULT NULL) [0m
|
11
|
-
[4;35;1mSQL (0.068089)[0m [0mCREATE TABLE blog_users ("id" INTEGER PRIMARY KEY NOT NULL, "username" varchar(255) DEFAULT NULL, "password" varchar(255) DEFAULT NULL) [0m
|
12
|
-
[4;36;1mSQL (0.000583)[0m [0;1mINSERT INTO blog_users ("username", "password") VALUES('admin', 'bivouac')[0m
|
13
|
-
[4;35;1mSQL (0.000507)[0m [0mINSERT INTO blog_schema_infos ("version") VALUES(1.0)[0m
|
14
|
-
[4;36;1mCamping::Models::Session Load (0.000300)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = '2BZzk1mWnunHy4FqcP3qX2HR1IU3hFwK') LIMIT 1[0m
|
15
|
-
[4;35;1mSQL (0.005173)[0m [0mINSERT INTO sessions ("hashid", "created_at", "ivars") VALUES('EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv', '2007-08-01 09:44:15', '--- !map:HashWithIndifferentAccess {}
|
16
|
-
|
17
|
-
')[0m
|
18
|
-
[4;36;1mBlog::Models::Post Load (0.000335)[0m [0;1mSELECT * FROM blog_posts [0m
|
19
|
-
[4;35;1mCamping::Models::Session Load (0.000451)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
20
|
-
[4;36;1mCamping::Models::Session Load (0.000566)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
21
|
-
[4;35;1mCamping::Models::Session Load (0.000493)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
22
|
-
[4;36;1mCamping::Models::Session Load (0.000502)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
23
|
-
[4;35;1mBlog::Models::User Load (0.000374)[0m [0mSELECT * FROM blog_users WHERE (username = 'admin' AND password = 'bivouac') LIMIT 1[0m
|
24
|
-
[4;36;1mCamping::Models::Session Update (0.005425)[0m [0;1mUPDATE 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[0m
|
28
|
-
[4;35;1mCamping::Models::Session Load (0.000453)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
29
|
-
[4;36;1mCamping::Models::Session Load (0.000492)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
30
|
-
[4;35;1mBlog::Models::User Load (0.000337)[0m [0mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
31
|
-
[4;36;1mCamping::Models::Session Load (0.000426)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
32
|
-
[4;35;1mCamping::Models::Session Load (0.000516)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
33
|
-
[4;36;1mSQL (0.004818)[0m [0;1mINSERT INTO blog_posts ("body", "title", "user_id") VALUES('P1
|
34
|
-
', '1', 1)[0m
|
35
|
-
[4;35;1mCamping::Models::Session Load (0.000516)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
36
|
-
[4;36;1mBlog::Models::Post Load (0.000385)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
37
|
-
[4;35;1mBlog::Models::Comment Load (0.000187)[0m [0mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
38
|
-
[4;36;1mCamping::Models::Session Load (0.000415)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
39
|
-
[4;35;1mCamping::Models::Session Load (0.000505)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
40
|
-
[4;36;1mSQL (0.004120)[0m [0;1mINSERT INTO blog_comments ("body", "post_id", "username") VALUES('cg1', 1, 'g')[0m
|
41
|
-
[4;35;1mCamping::Models::Session Load (0.000514)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
42
|
-
[4;36;1mBlog::Models::Post Load (0.000348)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
43
|
-
[4;35;1mBlog::Models::Comment Load (0.000343)[0m [0mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
44
|
-
[4;36;1mCamping::Models::Session Load (0.000749)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
45
|
-
[4;35;1mCamping::Models::Session Load (0.000512)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
46
|
-
[4;36;1mBlog::Models::User Load (0.000383)[0m [0;1mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
47
|
-
[4;35;1mBlog::Models::Post Load (0.000335)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
48
|
-
[4;36;1mCamping::Models::Session Load (0.000482)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
49
|
-
[4;35;1mCamping::Models::Session Load (0.000465)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
50
|
-
[4;36;1mBlog::Models::Post Load (0.000330)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
51
|
-
[4;35;1mBlog::Models::Post Update (0.004381)[0m [0mUPDATE blog_posts SET "title" = '1', "body" = 'P1.01
|
52
|
-
', "user_id" = 1 WHERE "id" = 1[0m
|
53
|
-
[4;36;1mCamping::Models::Session Load (0.000506)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
54
|
-
[4;35;1mBlog::Models::Post Load (0.000345)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
55
|
-
[4;36;1mBlog::Models::Comment Load (0.000326)[0m [0;1mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
56
|
-
[4;35;1mCamping::Models::Session Load (0.000477)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
57
|
-
[4;36;1mCamping::Models::Session Load (0.000517)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
58
|
-
[4;35;1mBlog::Models::User Load (0.000333)[0m [0mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
59
|
-
[4;36;1mCamping::Models::Session Load (0.000486)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
60
|
-
[4;35;1mCamping::Models::Session Load (0.000488)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
61
|
-
[4;36;1mSQL (0.004740)[0m [0;1mINSERT INTO blog_posts ("body", "title", "user_id") VALUES('P2', '2', 1)[0m
|
62
|
-
[4;35;1mCamping::Models::Session Load (0.000523)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
63
|
-
[4;36;1mBlog::Models::Post Load (0.000455)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 2) [0m
|
64
|
-
[4;35;1mBlog::Models::Comment Load (0.000197)[0m [0mSELECT * FROM blog_comments WHERE (post_id = '2') [0m
|
65
|
-
[4;36;1mCamping::Models::Session Load (0.000901)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
66
|
-
[4;35;1mCamping::Models::Session Load (0.000483)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
67
|
-
[4;36;1mBlog::Models::Post Load (0.000415)[0m [0;1mSELECT * FROM blog_posts [0m
|
68
|
-
[4;35;1mCamping::Models::Session Load (0.000438)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
69
|
-
[4;36;1mSQL (0.000724)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
70
|
-
[4;35;1mSQL (0.000444)[0m [0mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
71
|
-
[4;36;1mSQL (0.000400)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
72
|
-
[4;35;1mBlog::Models::SchemaInfo Load (0.000234)[0m [0mSELECT * FROM blog_schema_infos LIMIT 1[0m
|
73
|
-
[4;36;1mCamping::Models::Session Load (0.000482)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|
74
|
-
[4;35;1mBlog::Models::Post Load (0.000481)[0m [0mSELECT * FROM blog_posts [0m
|
75
|
-
[4;36;1mCamping::Models::Session Load (0.000456)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'EhhszLKn3LN0HDKOVcnRlmgF8LDAuHPv') LIMIT 1[0m
|