bivouac 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +0 -0
- data/COPYING +0 -0
- data/README +14 -2
- data/bin/bivouac +0 -0
- data/examples/blog_erb/app/controllers/add.rb +19 -0
- data/examples/blog_erb/app/controllers/blog.rb +84 -0
- data/examples/blog_erb/app/controllers/comment.rb +9 -0
- data/examples/blog_erb/app/controllers/edit.rb +18 -0
- data/examples/blog_erb/app/controllers/index.rb +8 -0
- data/examples/blog_erb/app/controllers/info.rb +11 -0
- data/examples/blog_erb/app/controllers/login.rb +15 -0
- data/examples/blog_erb/app/controllers/logout.rb +8 -0
- data/examples/blog_erb/app/controllers/view.rb +9 -0
- data/examples/blog_erb/app/models/comment.rb +5 -0
- data/examples/blog_erb/app/models/post.rb +5 -0
- data/examples/blog_erb/app/models/user.rb +4 -0
- data/examples/blog_erb/app/views/add.html +18 -0
- data/examples/blog_erb/app/views/edit.html +18 -0
- data/examples/blog_erb/app/views/index.html +12 -0
- data/examples/blog_erb/app/views/layout.html +12 -0
- data/examples/blog_erb/app/views/login.html +2 -0
- data/examples/blog_erb/app/views/logout.html +2 -0
- data/examples/blog_erb/app/views/view.html +20 -0
- data/examples/blog_erb/config/environment.rb +27 -0
- data/examples/blog_erb/db/create.rb +8 -0
- data/examples/blog_erb/db/migrate/comment.rb +15 -0
- data/examples/blog_erb/db/migrate/post.rb +15 -0
- data/examples/blog_erb/db/migrate/user.rb +15 -0
- data/examples/blog_erb/log/Blog.log +112 -0
- data/examples/blog_erb/public/images/camping.png +0 -0
- data/examples/blog_erb/public/index.html +242 -0
- data/examples/blog_erb/public/stylesheets/style.css +10 -0
- data/examples/blog_erb/script/generate +3 -0
- data/examples/blog_erb/script/server +5 -0
- data/examples/blog_goh/app/controllers/add.rb +19 -0
- data/examples/blog_goh/app/controllers/blog.rb +76 -0
- data/examples/blog_goh/app/controllers/comment.rb +9 -0
- data/examples/blog_goh/app/controllers/edit.rb +18 -0
- data/examples/blog_goh/app/controllers/index.rb +8 -0
- data/examples/blog_goh/app/controllers/info.rb +11 -0
- data/examples/blog_goh/app/controllers/login.rb +15 -0
- data/examples/blog_goh/app/controllers/logout.rb +8 -0
- data/examples/blog_goh/app/controllers/view.rb +9 -0
- data/examples/blog_goh/app/models/comment.rb +5 -0
- data/examples/blog_goh/app/models/post.rb +5 -0
- data/examples/blog_goh/app/models/user.rb +4 -0
- data/examples/blog_goh/app/views/_form.rb +16 -0
- data/examples/blog_goh/app/views/_login.rb +13 -0
- data/examples/blog_goh/app/views/_post.rb +9 -0
- data/examples/blog_goh/app/views/add.rb +9 -0
- data/examples/blog_goh/app/views/edit.rb +9 -0
- data/examples/blog_goh/app/views/index.rb +12 -0
- data/examples/blog_goh/app/views/layout.rb +18 -0
- data/examples/blog_goh/app/views/login.rb +6 -0
- data/examples/blog_goh/app/views/logout.rb +6 -0
- data/examples/blog_goh/app/views/view.rb +20 -0
- data/examples/blog_goh/config/environment.rb +27 -0
- data/examples/blog_goh/db/create.rb +4 -0
- data/examples/blog_goh/db/migrate/comment.rb +15 -0
- data/examples/blog_goh/db/migrate/post.rb +15 -0
- data/examples/blog_goh/db/migrate/user.rb +15 -0
- data/examples/blog_goh/log/camping.log +19 -0
- data/examples/blog_goh/public/images/camping.png +0 -0
- data/examples/blog_goh/public/index.html +242 -0
- data/examples/blog_goh/public/stylesheets/style.css +10 -0
- data/examples/blog_goh/script/generate +3 -0
- data/examples/blog_goh/script/server +5 -0
- data/lib/bivouac/commands/generate.rb +87 -40
- data/lib/bivouac/commands/server.rb +0 -0
- data/lib/bivouac/template/application/postamble_cgi.rb +2 -2
- data/lib/bivouac/template/application/postamble_fastcgi.rb +2 -2
- data/lib/bivouac/template/application/postamble_mongrel.rb +0 -0
- data/lib/bivouac/template/application/postamble_none.rb +0 -0
- data/lib/bivouac/template/application/postamble_webrick.rb +2 -2
- data/lib/bivouac/template/application_erb.rb +3 -1
- data/lib/bivouac/template/application_goh.rb +1 -0
- data/lib/bivouac/template/application_jof.rb +5 -0
- data/lib/bivouac/template/environment.rb +0 -0
- data/lib/bivouac/template/generate/controller.rb +1 -1
- data/lib/bivouac/template/generate/create.rb +5 -1
- data/lib/bivouac/template/generate/migrate.rb +0 -0
- data/lib/bivouac/template/generate/model.rb +0 -0
- data/lib/bivouac/template/generate/view_erb.rb +2 -0
- data/lib/bivouac/template/generate/{view.rb → view_goh.rb} +0 -0
- data/lib/bivouac/template/generate.rb +0 -0
- data/lib/bivouac/template/server.rb +0 -0
- data/lib/bivouac/template/static/camping.png +0 -0
- data/lib/bivouac/template/static/index.html +0 -0
- data/lib/bivouac/template/static/index.rb +0 -0
- data/lib/bivouac/template.rb +0 -0
- data/lib/bivouac.rb +0 -0
- data/setup.rb +1585 -0
- data/test/test_bivouac.rb +0 -0
- data/test/test_template.rb +0 -0
- metadata +99 -14
- data/doc/created.rid +0 -1
- data/doc/files/AUTHORS.html +0 -95
- data/doc/files/COPYING.html +0 -519
- data/doc/files/README.html +0 -160
- data/doc/index.html +0 -10
- data/doc/permalink.gif +0 -0
- data/doc/rdoc-style.css +0 -106
- data/doc/rubyfr.png +0 -0
data/AUTHORS
CHANGED
File without changes
|
data/COPYING
CHANGED
File without changes
|
data/README
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
= Bivouac - 0.0.
|
1
|
+
= Bivouac - 0.0.3
|
2
2
|
|
3
3
|
Copyright (C) 2007 Gregoire Lejeune
|
4
4
|
|
@@ -8,10 +8,22 @@ Copyright (C) 2007 Gregoire Lejeune
|
|
8
8
|
|
9
9
|
== DESCRIPTION:
|
10
10
|
|
11
|
-
Bivouac is a simple generator for camping.
|
11
|
+
Bivouac is a simple generator for camping[http://code.whytheluckystiff.net/camping].
|
12
12
|
|
13
13
|
== FEATURES/PROBLEMS:
|
14
14
|
|
15
|
+
=== 0.0.3:
|
16
|
+
* Model generation is now ok (i hope)
|
17
|
+
* It's now possible to create "Get Out of Hand" and "Eruby/Erb" projects
|
18
|
+
* script/generate have 3 new options :
|
19
|
+
* <tt>-v</tt> if you don't want to create the view
|
20
|
+
* <tt>-d</tt> if you don't want the default route
|
21
|
+
* <tt>-r</tt> if you want to add more routes
|
22
|
+
* Only sqlite3 is supported
|
23
|
+
|
24
|
+
=== 0.0.2:
|
25
|
+
* So many problems!
|
26
|
+
|
15
27
|
=== 0.0.1:
|
16
28
|
* Can't generate models and migrates
|
17
29
|
|
data/bin/bivouac
CHANGED
File without changes
|
@@ -0,0 +1,19 @@
|
|
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, true
|
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
|
@@ -0,0 +1,84 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
#
|
4
|
+
# Project Blog
|
5
|
+
#
|
6
|
+
# Created using bivouac on Tue Jul 31 18:19:12 +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
|
+
begin
|
19
|
+
require 'erubis'
|
20
|
+
ERB = Erubis::Eruby
|
21
|
+
rescue MissingSourceFile
|
22
|
+
require 'erb'
|
23
|
+
end
|
24
|
+
|
25
|
+
Camping.goes :Blog
|
26
|
+
|
27
|
+
module Blog
|
28
|
+
def render(m, layout=false)
|
29
|
+
content = ERB.new(IO.read("#{File.dirname(__FILE__)}/../views/#{m}.html")).result(binding)
|
30
|
+
content = ERB.new(IO.read("#{File.dirname(__FILE__)}/../views/layout.html")).result(binding) if layout
|
31
|
+
return content
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# Load helpers from app/helpers
|
36
|
+
files( '../helpers' ) { |file| require( file ) }
|
37
|
+
|
38
|
+
# Load models from app/models
|
39
|
+
files( '../models' ) { |file| require( file ) }
|
40
|
+
|
41
|
+
# Load database schema from db/migrate
|
42
|
+
files( '../../db/migrate' ) { |file| require( file ) }
|
43
|
+
|
44
|
+
# Load controllers from app/controllers
|
45
|
+
files( '../controllers', :except => [File.basename(__FILE__)] ) { |file| require( file ) }
|
46
|
+
|
47
|
+
module Blog::Controllers
|
48
|
+
class Public < R '/public/(.+)'
|
49
|
+
PATH = File.expand_path(File.dirname(__FILE__))
|
50
|
+
|
51
|
+
def get file
|
52
|
+
if file.include? '..'
|
53
|
+
@status = '403'
|
54
|
+
return '403 - Invalid path'
|
55
|
+
else
|
56
|
+
type = (MIME::Types.type_for(file)[0] || '/text/plain').to_s
|
57
|
+
@headers['Content-Type'] = type
|
58
|
+
@headers['X-Sendfile'] = File.join PATH, '..', '..', 'public', file
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Load create
|
65
|
+
files( '../../db' ) { |file| require( file ) }
|
66
|
+
|
67
|
+
# WEBrick postamble
|
68
|
+
if __FILE__ == $0
|
69
|
+
require 'webrick/httpserver'
|
70
|
+
require 'camping/webrick'
|
71
|
+
|
72
|
+
Blog::Models::Base.establish_connection :adapter => 'sqlite3', :database => File.dirname(__FILE__) + "/../../db/Blog.db"
|
73
|
+
Blog::Models::Base.logger = Logger.new(File.dirname(__FILE__) + "/../../log/Blog.log")
|
74
|
+
Blog.create if Blog.respond_to? :create
|
75
|
+
s = WEBrick::HTTPServer.new :BindAddress => "0.0.0.0", :Port => 3301
|
76
|
+
s.mount "/", WEBrick::CampingHandler, Blog
|
77
|
+
|
78
|
+
# This lets Ctrl+C shut down your server
|
79
|
+
trap(:INT) do
|
80
|
+
s.shutdown
|
81
|
+
end
|
82
|
+
|
83
|
+
s.start
|
84
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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, true
|
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
|
@@ -0,0 +1,15 @@
|
|
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, true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<% if @user %>
|
2
|
+
<p>You are logged in as <%= @user.username %> | <a href="/logout">Logout</a></p>
|
3
|
+
<form method="post" action="/add">
|
4
|
+
Title : <br />
|
5
|
+
<input name="post_title" type="text" value="<%= @post.title %>"><br />
|
6
|
+
Body : <br />
|
7
|
+
<textarea name="post_body"><%= @post.body %></textarea><br />
|
8
|
+
<input type="hidden" name="post_id" value="<%= @post.id %>">
|
9
|
+
<input type="submit">
|
10
|
+
<% else %>
|
11
|
+
<form action="/login" method="post">
|
12
|
+
Username : <br />
|
13
|
+
<input type="text" name="username" /><br />
|
14
|
+
Password : <br />
|
15
|
+
<input type="text" name="password" /><br />
|
16
|
+
<input type="submit" name="login" value="Login">
|
17
|
+
</form>
|
18
|
+
<% end %>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<% if @user %>
|
2
|
+
<p>You are logged in as <%= @user.username %> | <a href="/logout">Logout</a></p>
|
3
|
+
<form method="post" action="/edit">
|
4
|
+
Title : <br />
|
5
|
+
<input name="post_title" type="text" value="<%= @post.title %>"><br />
|
6
|
+
Body : <br />
|
7
|
+
<textarea name="post_body"><%= @post.body %></textarea><br />
|
8
|
+
<input type="hidden" name="post_id" value="<%= @post.id %>">
|
9
|
+
<input type="submit">
|
10
|
+
<% else %>
|
11
|
+
<form action="/login" method="post">
|
12
|
+
Username : <br />
|
13
|
+
<input type="text" name="username" /><br />
|
14
|
+
Password : <br />
|
15
|
+
<input type="text" name="password" /><br />
|
16
|
+
<input type="submit" name="login" value="Login">
|
17
|
+
</form>
|
18
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<% if @posts.empty? %>
|
2
|
+
<p>No posts found.</p>
|
3
|
+
<p><a href="/add">Add</a></p>
|
4
|
+
<% else %>
|
5
|
+
<% for post in @posts %>
|
6
|
+
<h1><%= post.title %></h1>
|
7
|
+
<p><%= post.body %></p>
|
8
|
+
<p>
|
9
|
+
<a href="/edit/<%= post.id %>">Edit</a> | <a href="/view/<%= post.id %>">View</a>
|
10
|
+
</p>
|
11
|
+
<% end%>
|
12
|
+
<% end %>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
|
4
|
+
<title>blog</title>
|
5
|
+
<link type="text/css" rel="stylesheet" href="/public/stylesheets/style.css" media="screen"/>
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h1 class="header"><a href="/">blog</a></h1>
|
9
|
+
<div class="content">
|
10
|
+
<%= content %>
|
11
|
+
</div>
|
12
|
+
</body>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<h1><%= @post.title %></h1>
|
2
|
+
<p><%= @post.body %></p>
|
3
|
+
<p>
|
4
|
+
<a href="/edit/<%= @post.id %>">Edit</a> | <a href="/view/<%= @post.id %>">View</a>
|
5
|
+
</p>
|
6
|
+
|
7
|
+
<p>Comment for this post:</p>
|
8
|
+
|
9
|
+
<% for c in @comments %>
|
10
|
+
<h1><%= c.username %></h1>
|
11
|
+
<p><%= c.body %></p>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<form action="/comment" method="post">
|
15
|
+
Name : <input name="post_username" type="text"><br />
|
16
|
+
Comment :<br />
|
17
|
+
<textarea name="post_body"></textarea><br />
|
18
|
+
<input type="hidden" name="post_id" value="<%= @post.id %>">
|
19
|
+
<input type="submit">
|
20
|
+
</form>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#
|
2
|
+
# Project Blog
|
3
|
+
#
|
4
|
+
# Created using bivouac on Tue Jul 31 18:01:08 +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 = "ERB"
|
24
|
+
@environment.postamble = "webrick"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,15 @@
|
|
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
|
@@ -0,0 +1,15 @@
|
|
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
|
@@ -0,0 +1,15 @@
|
|
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
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# Logfile created on Tue Jul 31 18:44:09 +0200 2007 by /
|
2
|
+
[4;36;1mSQL (0.000331)[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.110131)[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.000480)[0m [0mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
6
|
+
[4;36;1mSQL (0.000309)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
7
|
+
[4;35;1mSQL (0.244545)[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.000307)[0m [0;1mSELECT * FROM blog_schema_infos LIMIT 1[0m
|
9
|
+
[4;35;1mSQL (0.087348)[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.068467)[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.078659)[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.000478)[0m [0;1mINSERT INTO blog_users ("username", "password") VALUES('admin', 'bivouac')[0m
|
13
|
+
[4;35;1mSQL (0.000577)[0m [0mINSERT INTO blog_schema_infos ("version") VALUES(1.0)[0m
|
14
|
+
[4;36;1mCamping::Models::Session Load (0.000328)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'embQk59C3ESMmQvAyXAwvYP3eBTDoegY') LIMIT 1[0m
|
15
|
+
[4;35;1mSQL (0.000611)[0m [0mINSERT INTO sessions ("hashid", "created_at", "ivars") VALUES('qnIE0e112l1pvd5dRiZrGfJgFJvW2y19', '2007-07-31 18:44:18', '--- !map:HashWithIndifferentAccess {}
|
16
|
+
|
17
|
+
')[0m
|
18
|
+
[4;36;1mBlog::Models::Post Load (0.000313)[0m [0;1mSELECT * FROM blog_posts [0m
|
19
|
+
[4;35;1mCamping::Models::Session Load (0.000618)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
20
|
+
[4;36;1mCamping::Models::Session Load (0.000609)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
21
|
+
[4;35;1mBlog::Models::User Load (0.000411)[0m [0mSELECT * FROM blog_users WHERE (username = 'admin' AND password = 'bivouac') LIMIT 1[0m
|
22
|
+
[4;36;1mCamping::Models::Session Update (0.001165)[0m [0;1mUPDATE sessions SET "created_at" = '2007-07-31 18:44:18', "hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19', "ivars" = '--- !map:HashWithIndifferentAccess
|
23
|
+
Blog: !map:HashWithIndifferentAccess
|
24
|
+
user_id: 1
|
25
|
+
' WHERE "id" = 1[0m
|
26
|
+
[4;35;1mCamping::Models::Session Load (0.000592)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
27
|
+
[4;36;1mBlog::Models::User Load (0.000456)[0m [0;1mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
28
|
+
[4;36;1mSQL (0.000712)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
29
|
+
[4;35;1mSQL (0.000409)[0m [0mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
30
|
+
[4;36;1mSQL (0.000413)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
31
|
+
[4;35;1mBlog::Models::SchemaInfo Load (0.000246)[0m [0mSELECT * FROM blog_schema_infos LIMIT 1[0m
|
32
|
+
[4;36;1mCamping::Models::Session Load (0.000480)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
33
|
+
[4;35;1mCamping::Models::Session Update (0.001387)[0m [0mUPDATE sessions SET "created_at" = '2007-07-31 18:44:18', "hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19', "ivars" = '--- !map:HashWithIndifferentAccess
|
34
|
+
Blog: !map:HashWithIndifferentAccess
|
35
|
+
user_id:
|
36
|
+
' WHERE "id" = 1[0m
|
37
|
+
[4;36;1mCamping::Models::Session Load (0.000579)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
38
|
+
[4;35;1mCamping::Models::Session Load (0.000558)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
39
|
+
[4;36;1mBlog::Models::Post Load (0.000286)[0m [0;1mSELECT * FROM blog_posts [0m
|
40
|
+
[4;35;1mCamping::Models::Session Load (0.000568)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
41
|
+
[4;36;1mCamping::Models::Session Load (0.000529)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
42
|
+
[4;35;1mBlog::Models::User Load (0.000490)[0m [0mSELECT * FROM blog_users WHERE (username = 'admin' AND password = 'bivouac') LIMIT 1[0m
|
43
|
+
[4;36;1mCamping::Models::Session Update (0.001054)[0m [0;1mUPDATE sessions SET "created_at" = '2007-07-31 18:44:18', "hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19', "ivars" = '--- !map:HashWithIndifferentAccess
|
44
|
+
Blog: !map:HashWithIndifferentAccess
|
45
|
+
user_id: 1
|
46
|
+
' WHERE "id" = 1[0m
|
47
|
+
[4;35;1mCamping::Models::Session Load (0.000549)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
48
|
+
[4;36;1mBlog::Models::User Load (0.000566)[0m [0;1mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
49
|
+
[4;35;1mCamping::Models::Session Load (0.000552)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
50
|
+
[4;36;1mSQL (0.000572)[0m [0;1mINSERT INTO blog_posts ("body", "title", "user_id") VALUES('Ca fonctionne aussi avec ERB !!!', 'Blog ERB', 1)[0m
|
51
|
+
[4;35;1mCamping::Models::Session Load (0.000595)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
52
|
+
[4;36;1mBlog::Models::Post Load (0.000450)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
53
|
+
[4;35;1mBlog::Models::Comment Load (0.000218)[0m [0mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
54
|
+
[4;36;1mCamping::Models::Session Load (0.000537)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
55
|
+
[4;35;1mCamping::Models::Session Load (0.000573)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
56
|
+
[4;36;1mBlog::Models::Post Load (0.000519)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
57
|
+
[4;35;1mBlog::Models::Comment Load (0.000207)[0m [0mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
58
|
+
[4;36;1mCamping::Models::Session Load (0.000449)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
59
|
+
[4;36;1mSQL (0.000700)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
60
|
+
[4;35;1mSQL (0.000420)[0m [0mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
61
|
+
[4;36;1mSQL (0.000408)[0m [0;1mSELECT name FROM sqlite_master WHERE type = 'table'[0m
|
62
|
+
[4;35;1mBlog::Models::SchemaInfo Load (0.000292)[0m [0mSELECT * FROM blog_schema_infos LIMIT 1[0m
|
63
|
+
[4;36;1mCamping::Models::Session Load (0.000495)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
64
|
+
[4;35;1mBlog::Models::Post Load (0.000400)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
65
|
+
[4;36;1mBlog::Models::Comment Load (0.000217)[0m [0;1mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
66
|
+
[4;35;1mCamping::Models::Session Load (0.000420)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
67
|
+
[4;36;1mCamping::Models::Session Load (0.000608)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
68
|
+
[4;35;1mBlog::Models::Post Load (0.000464)[0m [0mSELECT * FROM blog_posts [0m
|
69
|
+
[4;36;1mCamping::Models::Session Load (0.000702)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
70
|
+
[4;35;1mCamping::Models::Session Load (0.000590)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
71
|
+
[4;36;1mBlog::Models::Post Load (0.000448)[0m [0;1mSELECT * FROM blog_posts [0m
|
72
|
+
[4;35;1mCamping::Models::Session Load (0.000525)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
73
|
+
[4;36;1mCamping::Models::Session Load (0.000552)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
74
|
+
[4;35;1mBlog::Models::Post Load (0.000458)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
75
|
+
[4;36;1mBlog::Models::Comment Load (0.000211)[0m [0;1mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
76
|
+
[4;35;1mCamping::Models::Session Load (0.000472)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
77
|
+
[4;36;1mCamping::Models::Session Load (0.000538)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
78
|
+
[4;35;1mBlog::Models::User Load (0.000485)[0m [0mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
79
|
+
[4;36;1mBlog::Models::Post Load (0.000415)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
80
|
+
[4;35;1mCamping::Models::Session Load (0.000452)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
81
|
+
[4;36;1mBlog::Models::Post Load (0.000285)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
82
|
+
[4;35;1mBlog::Models::Post Update (0.000950)[0m [0mUPDATE blog_posts SET "title" = 'Blog ERB', "body" = 'Ca fonctionne aussi avec ERB !!!', "user_id" = 1 WHERE "id" = 1[0m
|
83
|
+
[4;36;1mCamping::Models::Session Load (0.000620)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
84
|
+
[4;35;1mBlog::Models::Post Load (0.000437)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
85
|
+
[4;36;1mBlog::Models::Comment Load (0.000189)[0m [0;1mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
86
|
+
[4;35;1mCamping::Models::Session Load (0.000473)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
87
|
+
[4;36;1mCamping::Models::Session Load (0.000583)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
88
|
+
[4;35;1mBlog::Models::Post Load (0.000392)[0m [0mSELECT * FROM blog_posts [0m
|
89
|
+
[4;36;1mCamping::Models::Session Load (0.000540)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
90
|
+
[4;35;1mBlog::Models::Post Load (0.000447)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
91
|
+
[4;36;1mBlog::Models::Comment Load (0.000188)[0m [0;1mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
92
|
+
[4;35;1mCamping::Models::Session Load (0.000498)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
93
|
+
[4;36;1mSQL (0.000516)[0m [0;1mINSERT INTO blog_comments ("body", "post_id", "username") VALUES('pipo', 1, 'greg')[0m
|
94
|
+
[4;35;1mCamping::Models::Session Load (0.000517)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
95
|
+
[4;36;1mBlog::Models::Post Load (0.000355)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
96
|
+
[4;35;1mBlog::Models::Comment Load (0.000337)[0m [0mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
97
|
+
[4;36;1mCamping::Models::Session Load (0.000510)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
98
|
+
[4;35;1mSQL (0.000521)[0m [0mINSERT INTO blog_comments ("body", "post_id", "username") VALUES('C''est beau et il faut chaud. Je me sent bien !!!', 1, 'Hello')[0m
|
99
|
+
[4;36;1mCamping::Models::Session Load (0.000513)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
100
|
+
[4;35;1mBlog::Models::Post Load (0.000384)[0m [0mSELECT * FROM blog_posts WHERE (blog_posts."id" = 1) [0m
|
101
|
+
[4;36;1mBlog::Models::Comment Load (0.000513)[0m [0;1mSELECT * FROM blog_comments WHERE (post_id = '1') [0m
|
102
|
+
[4;35;1mCamping::Models::Session Load (0.000558)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
103
|
+
[4;36;1mBlog::Models::Post Load (0.000403)[0m [0;1mSELECT * FROM blog_posts [0m
|
104
|
+
[4;35;1mCamping::Models::Session Load (0.000499)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
105
|
+
[4;36;1mBlog::Models::User Load (0.000364)[0m [0;1mSELECT * FROM blog_users WHERE (blog_users."id" = 1) [0m
|
106
|
+
[4;35;1mCamping::Models::Session Load (0.000519)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
107
|
+
[4;36;1mSQL (0.000832)[0m [0;1mINSERT INTO blog_posts ("body", "title", "user_id") VALUES('Ceci et le second post !', 'Post #2', 1)[0m
|
108
|
+
[4;35;1mCamping::Models::Session Load (0.000521)[0m [0mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
109
|
+
[4;36;1mBlog::Models::Post Load (0.000352)[0m [0;1mSELECT * FROM blog_posts WHERE (blog_posts."id" = 2) [0m
|
110
|
+
[4;35;1mBlog::Models::Comment Load (0.000184)[0m [0mSELECT * FROM blog_comments WHERE (post_id = '2') [0m
|
111
|
+
[4;36;1mCamping::Models::Session Load (0.000505)[0m [0;1mSELECT * FROM sessions WHERE (sessions."hashid" = 'qnIE0e112l1pvd5dRiZrGfJgFJvW2y19') LIMIT 1[0m
|
112
|
+
[4;35;1mBlog::Models::Post Load (0.000476)[0m [0mSELECT * FROM blog_posts [0m
|
Binary file
|