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
@@ -0,0 +1,12 @@
1
+ #
2
+ # Project Blog
3
+ #
4
+ # Created using bivouac on Thu Nov 13 12:39:40 +0100 2008.
5
+ # Copyright (c) 2008 __My__. All rights reserved.
6
+ #
7
+
8
+ module Blog::Views
9
+ def post_edit
10
+ _form(@post, :action => R(PostEdit, @post))
11
+ end
12
+ end
@@ -0,0 +1,14 @@
1
+ #
2
+ # Project Blog
3
+ #
4
+ # Created using bivouac on Thu Nov 13 12:39:40 +0100 2008.
5
+ # Copyright (c) 2008 __My__. All rights reserved.
6
+ #
7
+
8
+ module Blog::Views
9
+ def post_view
10
+ _post(@post)
11
+ _comments(@post)
12
+ _add_comment(@post)
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ #
2
+ # Project Blog
3
+ #
4
+ # Created using bivouac on Thu Nov 13 11:58:26 +0100 2008.
5
+ # Copyright (c) 2008 __My__. All rights reserved.
6
+ #
7
+
8
+ IRB.conf[:PROMPT_MODE] = :SIMPLE
9
+ IRB.conf[:AUTO_INDENT] = true
10
+
11
+ ## DO NOT REMOVE OR CHANGE LINES BELLOW
12
+ include Blog::Models
@@ -0,0 +1,3 @@
1
+ ---
2
+ :database: db/blog.db
3
+ :adapter: sqlite3
@@ -0,0 +1,58 @@
1
+ #
2
+ # Project Blog
3
+ #
4
+ # Created using bivouac on Thu Nov 13 11:58:29 +0100 2008.
5
+ # Copyright (c) 2008 __My__. All rights reserved.
6
+ #
7
+
8
+ require 'ostruct'
9
+ require 'yaml'
10
+
11
+ module Bivouac
12
+ class Environment
13
+
14
+ attr_reader :environment
15
+
16
+ def initialize
17
+ @environment = OpenStruct.new(
18
+ # Address to bind to
19
+ :host => "0.0.0.0",
20
+
21
+ # Application port
22
+ :port => 3301,
23
+
24
+ # To force using a specific server, uncomment the line below
25
+ # You can use "mongrel", "thin" or "webrick"
26
+ #:server_force => "mongrel",
27
+
28
+ # Database configuration
29
+ # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
30
+ :db => open("#{File.dirname( __FILE__ )}/database.yml") {|f| YAML.load(f)},
31
+
32
+ # Name of the application
33
+ # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
34
+ :appname => "Blog",
35
+
36
+ # Path of the application
37
+ # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
38
+ :appdir => "blog",
39
+
40
+ # File of the application
41
+ # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
42
+ :appfile => "blog",
43
+
44
+ # Organisation type of the application
45
+ # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
46
+ :orgtype => "GOH",
47
+
48
+ # Session type
49
+ # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
50
+ :session => "cookie",
51
+
52
+ # Session type
53
+ # DO NOT CHANGE IT, OR YOU REALLY KNOW WHAT YOU ARE DOING!
54
+ :versions => {:configs => "0.4.0", :public => "0.4.0", :app => "0.4.0", :scripts => "0.4.0"}
55
+ )
56
+ end
57
+ end
58
+ end
Binary file
@@ -0,0 +1,11 @@
1
+ #
2
+ # Project Blog
3
+ #
4
+ # Created using bivouac on Thu Nov 13 11:26:38 +0100 2008.
5
+ # Copyright (c) 2008 __My__. All rights reserved.
6
+ #
7
+
8
+ def Blog.create
9
+
10
+ Blog::Models.create_schema
11
+ end
@@ -0,0 +1,22 @@
1
+ #
2
+ # Project Blog
3
+ #
4
+ # Created using bivouac on Thu Nov 13 11:30:34 +0100 2008.
5
+ # Copyright (c) 2008 __My__. All rights reserved.
6
+ #
7
+
8
+ module Blog::Models
9
+ class CreateUser < V 1.0
10
+ def self.up
11
+ create_table :blog_users do |t|
12
+ t.string :username
13
+ t.string :password
14
+ t.timestamps
15
+ end
16
+ end
17
+
18
+ def self.down
19
+ drop_table :blog_users
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,24 @@
1
+ #
2
+ # Project Blog
3
+ #
4
+ # Created using bivouac on Thu Nov 13 11:51:36 +0100 2008.
5
+ # Copyright (c) 2008 __My__. All rights reserved.
6
+ #
7
+
8
+ module Blog::Models
9
+ class CreatePost < V 1.0
10
+ def self.up
11
+ create_table :blog_posts do |t|
12
+ t.integer :user_id
13
+ t.string :title
14
+ t.text :body
15
+ t.text :html_body
16
+ t.timestamps
17
+ end
18
+ end
19
+
20
+ def self.down
21
+ drop_table :blog_posts
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ #
2
+ # Project Blog
3
+ #
4
+ # Created using bivouac on Thu Nov 13 11:52:56 +0100 2008.
5
+ # Copyright (c) 2008 __My__. All rights reserved.
6
+ #
7
+
8
+ module Blog::Models
9
+ class CreateComment < V 1.0
10
+ def self.up
11
+ create_table :blog_comments do |t|
12
+ t.integer :post_id
13
+ t.string :username
14
+ t.text :body
15
+ t.text :html_body
16
+ t.timestamps
17
+ end
18
+ end
19
+
20
+ def self.down
21
+ drop_table :blog_comments
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,382 @@
1
+ # Logfile created on Thu Nov 13 11:58:53 +0100 2008 by /
2
+ SQL (0.000675)  SELECT name
3
+ FROM sqlite_master
4
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
5
+ 
6
+ Blog::Models::SchemaInfo Load (0.000172) SELECT * FROM "blog_schema_infos" LIMIT 1
7
+ SQL (0.000771)  SELECT name
8
+ FROM sqlite_master
9
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
10
+ 
11
+ Blog::Models::SchemaInfo Load (0.000258) SELECT * FROM "blog_schema_infos" LIMIT 1
12
+ SQL (0.000675)  SELECT name
13
+ FROM sqlite_master
14
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
15
+ 
16
+ Blog::Models::SchemaInfo Load (0.000192) SELECT * FROM "blog_schema_infos" LIMIT 1
17
+ Blog::Models::Post Load (0.001018) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
18
+ SQL (0.000709)  SELECT name
19
+ FROM sqlite_master
20
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
21
+ 
22
+ Blog::Models::SchemaInfo Load (0.000187) SELECT * FROM "blog_schema_infos" LIMIT 1
23
+ Blog::Models::Post Load (0.000846) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
24
+ SQL (0.000699)  SELECT name
25
+ FROM sqlite_master
26
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
27
+ 
28
+ Blog::Models::SchemaInfo Load (0.000244) SELECT * FROM "blog_schema_infos" LIMIT 1
29
+ SQL (0.000685)  SELECT name
30
+ FROM sqlite_master
31
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
32
+ 
33
+ Blog::Models::SchemaInfo Load (0.000179) SELECT * FROM "blog_schema_infos" LIMIT 1
34
+ SQL (0.000874)  SELECT name
35
+ FROM sqlite_master
36
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
37
+ 
38
+ Blog::Models::SchemaInfo Load (0.000241) SELECT * FROM "blog_schema_infos" LIMIT 1
39
+ SQL (0.000673)  SELECT name
40
+ FROM sqlite_master
41
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
42
+ 
43
+ Blog::Models::SchemaInfo Load (0.000177) SELECT * FROM "blog_schema_infos" LIMIT 1
44
+ SQL (0.000879)  SELECT name
45
+ FROM sqlite_master
46
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
47
+ 
48
+ Blog::Models::SchemaInfo Load (0.000262) SELECT * FROM "blog_schema_infos" LIMIT 1
49
+ Blog::Models::Post Load (0.000987) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
50
+ SQL (0.001159)  SELECT name
51
+ FROM sqlite_master
52
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
53
+ 
54
+ Blog::Models::SchemaInfo Load (0.000212) SELECT * FROM "blog_schema_infos" LIMIT 1
55
+ Blog::Models::User Load (0.000223) SELECT * FROM "blog_users" WHERE ("blog_users"."username" = '' AND "blog_users"."password" = '') LIMIT 1
56
+ SQL (0.000705)  SELECT name
57
+ FROM sqlite_master
58
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
59
+ 
60
+ Blog::Models::SchemaInfo Load (0.000195) SELECT * FROM "blog_schema_infos" LIMIT 1
61
+ Blog::Models::User Load (0.000291) SELECT * FROM "blog_users" 
62
+ Blog::Models::User Create (0.000692) INSERT INTO "blog_users" ("updated_at", "username", "password", "created_at") VALUES('2008-11-13 12:59:31', 'greg', 'pipo', '2008-11-13 12:59:31')
63
+ Blog::Models::User Load (0.000493) SELECT * FROM "blog_users" 
64
+ SQL (0.000682)  SELECT name
65
+ FROM sqlite_master
66
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
67
+ 
68
+ Blog::Models::SchemaInfo Load (0.000173) SELECT * FROM "blog_schema_infos" LIMIT 1
69
+ Blog::Models::User Load (0.000381) SELECT * FROM "blog_users" WHERE ("blog_users"."username" = 'greg' AND "blog_users"."password" = 'pipo') LIMIT 1
70
+ Blog::Models::Post Load (0.000789) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
71
+ Blog::Models::Post Create (0.000694) INSERT INTO "blog_posts" ("html_body", "updated_at", "title", "body", "user_id", "created_at") VALUES('<p>Hello world !</p>', '2008-11-13 13:00:10', 'Welcome to my blog', 'Hello world !', 1, '2008-11-13 13:00:10')
72
+ Blog::Models::Post Load (0.001048) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
73
+ Blog::Models::User Load (0.000384) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
74
+ Blog::Models::Post Load (0.000462) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
75
+ Blog::Models::User Load (0.000327) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
76
+ Blog::Models::Post Load (0.000362) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
77
+ Blog::Models::Post Load (0.000359) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
78
+ Blog::Models::Post Load (0.000381) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
79
+ Blog::Models::User Load (0.000241) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
80
+ Blog::Models::Post Create (0.000499) INSERT INTO "blog_posts" ("html_body", "updated_at", "title", "body", "user_id", "created_at") VALUES('<p>And i can <strong>use</strong> <em>RedCloth</em></p>
81
+ <p>To write to my post</p>', '2008-11-13 13:00:57', 'This is my seconde post', 'And i can *use* _RedCloth_
82
+
83
+ To write to my post', 1, '2008-11-13 13:00:57')
84
+ Blog::Models::Post Load (0.000694) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
85
+ Blog::Models::User Load (0.000308) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
86
+ Blog::Models::Post Load (0.001103) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
87
+ Blog::Models::User Load (0.000306) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
88
+ Blog::Models::User Load (0.000248) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
89
+ Blog::Models::Post Load (0.001003) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
90
+ Blog::Models::User Load (0.000274) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
91
+ Blog::Models::User Load (0.000244) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
92
+ Blog::Models::Post Load (0.000375) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
93
+ Blog::Models::User Load (0.000252) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
94
+ SQL (0.000687)  SELECT name
95
+ FROM sqlite_master
96
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
97
+ 
98
+ Blog::Models::SchemaInfo Load (0.000490) SELECT * FROM "blog_schema_infos" LIMIT 1
99
+ Blog::Models::Post Load (0.074799) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
100
+ Blog::Models::User Load (0.000444) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
101
+ Blog::Models::User Load (0.000380) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
102
+ SQL (0.000386)  SELECT name
103
+ FROM sqlite_master
104
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
105
+ 
106
+ SQL (0.000188) select sqlite_version(*)
107
+ SQL (0.002256) CREATE TABLE "blog_schema_infos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version" float) 
108
+ Blog::Models::SchemaInfo Load (0.000239) SELECT * FROM "blog_schema_infos" LIMIT 1
109
+ SQL (0.001856) CREATE TABLE "blog_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "password" varchar(255), "created_at" datetime, "updated_at" datetime) 
110
+ SQL (0.003895) CREATE TABLE "blog_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" varchar(255), "body" text, "html_body" text, "created_at" datetime, "updated_at" datetime) 
111
+ SQL (0.003146) CREATE TABLE "blog_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "username" varchar(255), "body" text, "html_body" text, "created_at" datetime, "updated_at" datetime) 
112
+ Blog::Models::SchemaInfo Create (0.000550) INSERT INTO "blog_schema_infos" ("version") VALUES(1.0)
113
+ SQL (0.000721)  SELECT name
114
+ FROM sqlite_master
115
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
116
+ 
117
+ Blog::Models::SchemaInfo Load (0.000221) SELECT * FROM "blog_schema_infos" LIMIT 1
118
+ Blog::Models::User Create (0.001171) INSERT INTO "blog_users" ("updated_at", "username", "password", "created_at") VALUES('2008-11-13 14:24:35', 'greg', 'toto', '2008-11-13 14:24:35')
119
+ SQL (0.000685)  SELECT name
120
+ FROM sqlite_master
121
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
122
+ 
123
+ Blog::Models::SchemaInfo Load (0.000241) SELECT * FROM "blog_schema_infos" LIMIT 1
124
+ Blog::Models::Post Load (0.001902) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
125
+ Blog::Models::User Load (0.000222) SELECT * FROM "blog_users" WHERE ("blog_users"."username" = 'greg' AND "blog_users"."password" = 'pipo') LIMIT 1
126
+ Blog::Models::User Load (0.000342) SELECT * FROM "blog_users" WHERE ("blog_users"."username" = 'greg' AND "blog_users"."password" = 'pipo') LIMIT 1
127
+ SQL (0.000699)  SELECT name
128
+ FROM sqlite_master
129
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
130
+ 
131
+ Blog::Models::SchemaInfo Load (0.000238) SELECT * FROM "blog_schema_infos" LIMIT 1
132
+ Blog::Models::User Load (0.000563) SELECT * FROM "blog_users" 
133
+ SQL (0.000709)  SELECT name
134
+ FROM sqlite_master
135
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
136
+ 
137
+ Blog::Models::SchemaInfo Load (0.000174) SELECT * FROM "blog_schema_infos" LIMIT 1
138
+ Blog::Models::User Load (0.000371) SELECT * FROM "blog_users" WHERE ("blog_users"."username" = 'greg' AND "blog_users"."password" = 'toto') LIMIT 1
139
+ Blog::Models::Post Load (0.000871) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
140
+ Blog::Models::Post Create (0.000701) INSERT INTO "blog_posts" ("html_body", "updated_at", "title", "body", "user_id", "created_at") VALUES('<p>Premier port</p>', '2008-11-13 14:25:45', 'Test', 'Premier port', 1, '2008-11-13 14:25:45')
141
+ Blog::Models::Post Load (0.000414) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
142
+ Blog::Models::User Load (0.000274) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
143
+ Blog::Models::Post Load (0.000444) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
144
+ Blog::Models::User Load (0.000324) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
145
+ Blog::Models::Post Load (0.000827) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
146
+ Blog::Models::User Load (0.000280) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
147
+ Blog::Models::Post Load (0.000398) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
148
+ Blog::Models::User Load (0.000587) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
149
+ SQL (0.000673)  SELECT name
150
+ FROM sqlite_master
151
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
152
+ 
153
+ Blog::Models::SchemaInfo Load (0.000217) SELECT * FROM "blog_schema_infos" LIMIT 1
154
+ Blog::Models::Post Load (0.000483) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
155
+ Blog::Models::User Load (0.000349) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
156
+ Blog::Models::Post Load (0.001089) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
157
+ Blog::Models::User Load (0.000334) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
158
+ Blog::Models::Post Load (0.000363) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
159
+ Blog::Models::User Load (0.000259) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
160
+ SQL (0.000734)  SELECT name
161
+ FROM sqlite_master
162
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
163
+ 
164
+ Blog::Models::SchemaInfo Load (0.000186) SELECT * FROM "blog_schema_infos" LIMIT 1
165
+ Blog::Models::Post Load (0.000338) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
166
+ Blog::Models::User Load (0.000324) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
167
+ SQL (0.000684)  SELECT name
168
+ FROM sqlite_master
169
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
170
+ 
171
+ Blog::Models::SchemaInfo Load (0.000218) SELECT * FROM "blog_schema_infos" LIMIT 1
172
+ Blog::Models::Post Load (0.001093) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
173
+ Blog::Models::User Load (0.000374) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
174
+ Blog::Models::Post Load (0.000365) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
175
+ Blog::Models::User Load (0.000248) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
176
+ SQL (0.000729)  SELECT name
177
+ FROM sqlite_master
178
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
179
+ 
180
+ Blog::Models::SchemaInfo Load (0.000217) SELECT * FROM "blog_schema_infos" LIMIT 1
181
+ Blog::Models::Comment Create (0.000664) INSERT INTO "blog_comments" ("html_body", "updated_at", "body", "post_id", "username", "created_at") VALUES('<p>This is my comment ;)</p>', '2008-11-13 14:33:05', 'This is my comment ;)', 1, 'Greg', '2008-11-13 14:33:05')
182
+ Blog::Models::Post Load (0.000447) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
183
+ Blog::Models::User Load (0.000373) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
184
+ Blog::Models::Post Load (0.000809) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
185
+ Blog::Models::User Load (0.000299) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
186
+ Blog::Models::Post Load (0.000367) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
187
+ Blog::Models::User Load (0.000249) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
188
+ Blog::Models::Comment Create (0.000514) INSERT INTO "blog_comments" ("html_body", "updated_at", "body", "post_id", "username", "created_at") VALUES('<p>This is a second comment for this post</p>', '2008-11-13 14:33:24', 'This is a second comment for this post', 1, 'Toto', '2008-11-13 14:33:24')
189
+ Blog::Models::Post Load (0.000519) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
190
+ Blog::Models::User Load (0.000377) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
191
+ SQL (0.000777)  SELECT name
192
+ FROM sqlite_master
193
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
194
+ 
195
+ Blog::Models::SchemaInfo Load (0.000283) SELECT * FROM "blog_schema_infos" LIMIT 1
196
+ Blog::Models::Comment Load (0.000776) SELECT * FROM "blog_comments" 
197
+ SQL (0.000698)  SELECT name
198
+ FROM sqlite_master
199
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
200
+ 
201
+ Blog::Models::SchemaInfo Load (0.000250) SELECT * FROM "blog_schema_infos" LIMIT 1
202
+ Blog::Models::Post Load (0.000499) SELECT * FROM "blog_posts" 
203
+ Blog::Models::Post Load (0.000486) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
204
+ Blog::Models::Comment Load (0.000538) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 1) 
205
+ SQL (0.000672)  SELECT name
206
+ FROM sqlite_master
207
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
208
+ 
209
+ Blog::Models::SchemaInfo Load (0.000218) SELECT * FROM "blog_schema_infos" LIMIT 1
210
+ Blog::Models::Post Load (0.001056) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
211
+ Blog::Models::User Load (0.000350) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
212
+ Blog::Models::Post Load (0.000441) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
213
+ Blog::Models::User Load (0.000360) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
214
+ Blog::Models::Comment Load (0.000483) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 1) 
215
+ SQL (0.000813)  SELECT name
216
+ FROM sqlite_master
217
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
218
+ 
219
+ Blog::Models::SchemaInfo Load (0.000262) SELECT * FROM "blog_schema_infos" LIMIT 1
220
+ Blog::Models::Post Load (0.073465) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
221
+ Blog::Models::User Load (0.000429) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
222
+ Blog::Models::Post Load (0.000365) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
223
+ Blog::Models::User Load (0.000263) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
224
+ Blog::Models::Comment Load (0.000671) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 1) 
225
+ Blog::Models::Post Load (0.000452) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
226
+ Blog::Models::User Load (0.000342) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
227
+ Blog::Models::Comment Load (0.000779) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 1) 
228
+ Blog::Models::Post Load (0.000426) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
229
+ Blog::Models::User Load (0.000256) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
230
+ Blog::Models::Comment Load (0.000340) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 1) 
231
+ SQL (0.000670)  SELECT name
232
+ FROM sqlite_master
233
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
234
+ 
235
+ Blog::Models::SchemaInfo Load (0.000176) SELECT * FROM "blog_schema_infos" LIMIT 1
236
+ Blog::Models::Post Load (0.000324) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
237
+ Blog::Models::User Load (0.000296) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
238
+ Blog::Models::Comment Load (0.000479) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 1) 
239
+ Blog::Models::Post Load (0.001079) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
240
+ Blog::Models::User Load (0.000586) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
241
+ Blog::Models::Post Load (0.000865) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
242
+ Blog::Models::User Load (0.000337) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
243
+ Blog::Models::Post Create (0.000725) INSERT INTO "blog_posts" ("html_body", "updated_at", "title", "body", "user_id", "created_at") VALUES('<p>Pour d’obscures raisons que je n’expliquerai pas ici, je suis passé de Free à Orange et cela sans que mon salaire n’est été augmenté</p>
244
+ <p>J’ai fait mon abonnement chez orange le 28 août dernier, et grâce à la réactivité de France Télécom, je peux maintenant naviguer sur internet depuis le 22 septembre !!! Un mois (payé) pour activer le service, ils n’ont pas fini de m’entendre hurler ! Surtout que le “service technique” me soutenait mordicus que si cela ne fonctionnait pas, c’était à cause d’un problème chez moi et que “nous allons vous envoyer un technicien pour vérifier votre installation — cela fera 145 €, Monsieur, bonne journée de la part d’Orange et France Télécom !”</p>
245
+ <p>Le technicien finit enfin par arriver, tout cela pour me dire que “ha ben non, visiblement le problème vient de chez nous…” et il me rappelle 15 minutes après sont départ, depuis “le central” : “Désolé monsieur, nous avions inversé, en fait c’est le fil blanc sur le bouton blanc , et le fil rouge sur le bouton rouge… Cela doit fonctionner maintenant. Bonne journée de la part d’Orange et France Télécom !”. Et en effet, Ô miracle, je retrouve enfin internet !</p>
246
+ <p>Le temps de reprendre un mois d’arriéré de mail et autres news, je me dis ce matin “mais au fait, chez Orange, ils m’ont créé une adresse mail. Et si j’allais voir ce que cela donne ?”. Avant de poursuivre sachez que je n’ai jamais donné cette adresse à personne, que je ne l’ai jamais consulté, bref que je n’y ai jamais touché. Et bien, croyez-moi, c’est formidable internet avec Orange parce qu’après une semaine d’activation sans aucune utilisation de mon adresse mail @orange.fr, j’ai déjà 31 propositions pour acheter du viagra, des cartes de visite ou pour participer au débrouillage du compte bancaire d’un vieil Équatorien décédé dans un accident d’avion et dont la veuve ignore l’existence du compte garni de plusieurs milliards de tonnes de sucre (et oui, il était vraiment très vieux).</p>
247
+ <p>N’essayez pas de m’écrire @orange.fr, c’est une poubelle !</p>', '2008-11-13 14:55:36', 'Spammez moi avec Orange', 'Pour d’obscures raisons que je n’expliquerai pas ici, je suis passé de Free à Orange et cela sans que mon salaire n’est été augmenté
248
+
249
+ J’ai fait mon abonnement chez orange le 28 août dernier, et grâce à la réactivité de France Télécom, je peux maintenant naviguer sur internet depuis le 22 septembre !!! Un mois (payé) pour activer le service, ils n’ont pas fini de m’entendre hurler ! Surtout que le “service technique” me soutenait mordicus que si cela ne fonctionnait pas, c’était à cause d’un problème chez moi et que “nous allons vous envoyer un technicien pour vérifier votre installation — cela fera 145 €, Monsieur, bonne journée de la part d’Orange et France Télécom !”
250
+
251
+ Le technicien finit enfin par arriver, tout cela pour me dire que “ha ben non, visiblement le problème vient de chez nous…” et il me rappelle 15 minutes après sont départ, depuis “le central” : “Désolé monsieur, nous avions inversé, en fait c’est le fil blanc sur le bouton blanc , et le fil rouge sur le bouton rouge… Cela doit fonctionner maintenant. Bonne journée de la part d’Orange et France Télécom !”. Et en effet, Ô miracle, je retrouve enfin internet !
252
+
253
+ Le temps de reprendre un mois d’arriéré de mail et autres news, je me dis ce matin “mais au fait, chez Orange, ils m’ont créé une adresse mail. Et si j’allais voir ce que cela donne ?”. Avant de poursuivre sachez que je n’ai jamais donné cette adresse à personne, que je ne l’ai jamais consulté, bref que je n’y ai jamais touché. Et bien, croyez-moi, c’est formidable internet avec Orange parce qu’après une semaine d’activation sans aucune utilisation de mon adresse mail @orange.fr, j’ai déjà 31 propositions pour acheter du viagra, des cartes de visite ou pour participer au débrouillage du compte bancaire d’un vieil Équatorien décédé dans un accident d’avion et dont la veuve ignore l’existence du compte garni de plusieurs milliards de tonnes de sucre (et oui, il était vraiment très vieux).
254
+
255
+ N’essayez pas de m’écrire @orange.fr, c’est une poubelle !', 1, '2008-11-13 14:55:36')
256
+ Blog::Models::Post Load (0.000600) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
257
+ Blog::Models::User Load (0.000408) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
258
+ Blog::Models::Comment Load (0.000195) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 2) 
259
+ Blog::Models::Post Load (0.001681) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
260
+ Blog::Models::User Load (0.000383) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
261
+ Blog::Models::User Load (0.000319) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
262
+ Blog::Models::Post Load (0.000461) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
263
+ Blog::Models::Post Load (0.000970) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
264
+ Blog::Models::User Load (0.000327) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
265
+ Blog::Models::User Load (0.000515) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
266
+ Blog::Models::Post Load (0.000420) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
267
+ Blog::Models::User Load (0.000250) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
268
+ Blog::Models::Comment Load (0.000146) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 2) 
269
+ Blog::Models::Comment Create (0.000691) INSERT INTO "blog_comments" ("html_body", "updated_at", "body", "post_id", "username", "created_at") VALUES('<p>Tu n&#8217;as plus qu&#8217;à te créer une adresse @hotmail ;)</p>', '2008-11-13 14:57:20', 'Tu n''as plus qu''à te créer une adresse @hotmail ;)', 2, 'Martin', '2008-11-13 14:57:20')
270
+ Blog::Models::Post Load (0.000477) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
271
+ Blog::Models::User Load (0.000467) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
272
+ Blog::Models::Comment Load (0.000372) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 2) 
273
+ Blog::Models::Post Load (0.000394) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
274
+ Blog::Models::User Load (0.000325) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
275
+ Blog::Models::Comment Load (0.000282) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 2) 
276
+ Blog::Models::Post Load (0.000467) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
277
+ Blog::Models::User Load (0.000260) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
278
+ Blog::Models::Comment Load (0.000264) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 2) 
279
+ Blog::Models::Post Load (0.000434) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
280
+ Blog::Models::User Load (0.000341) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
281
+ Blog::Models::Comment Load (0.000392) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 2) 
282
+ Blog::Models::Comment Create (0.000623) INSERT INTO "blog_comments" ("html_body", "updated_at", "body", "post_id", "username", "created_at") VALUES('<p>Mouarf !</p>', '2008-11-13 14:58:28', 'Mouarf !', 2, 'Greg', '2008-11-13 14:58:28')
283
+ Blog::Models::Post Load (0.000554) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
284
+ Blog::Models::User Load (0.000347) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
285
+ Blog::Models::Comment Load (0.000526) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 2) 
286
+ SQL (0.000667)  SELECT name
287
+ FROM sqlite_master
288
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
289
+ 
290
+ Blog::Models::SchemaInfo Load (0.000173) SELECT * FROM "blog_schema_infos" LIMIT 1
291
+ Blog::Models::Post Load (0.000395) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 2) 
292
+ Blog::Models::User Load (0.000412) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
293
+ Blog::Models::Comment Load (0.000469) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 2) 
294
+ Blog::Models::Post Create (0.001100) INSERT INTO "blog_posts" ("html_body", "updated_at", "title", "body", "user_id", "created_at") VALUES('<p>Il y a quelques jours, Magnus Holm annoncait la <a href="http://img.skitch.com/20081031-pmjabs2ij4iw14imct16s66jxy.png">refonte</a> de l&#8217;exemple de blog proposé dans <a href="http://github.com/judofyr/camping/tree/blog">Camping</a></p>
295
+ <p>Je me suis amusé à refaire sont développement pour l&#8217;ajouter dans le package <a href="http://bivouac.rubyforge.org">Bivouac</a></p>', '2008-11-13 15:04:39', 'Yes, it is !', 'Il y a quelques jours, Magnus Holm annoncait la "refonte":http://img.skitch.com/20081031-pmjabs2ij4iw14imct16s66jxy.png de l''exemple de blog proposé dans "Camping":http://github.com/judofyr/camping/tree/blog
296
+
297
+ Je me suis amusé à refaire sont développement pour l''ajouter dans le package "Bivouac":http://bivouac.rubyforge.org', 1, '2008-11-13 15:04:39')
298
+ Blog::Models::Post Load (0.000557) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 3) 
299
+ Blog::Models::User Load (0.000364) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
300
+ Blog::Models::Comment Load (0.000205) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 3) 
301
+ Blog::Models::Post Load (0.001125) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
302
+ Blog::Models::User Load (0.000362) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
303
+ Blog::Models::User Load (0.000247) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
304
+ Blog::Models::User Load (0.000245) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
305
+ Blog::Models::Post Load (0.000363) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 3) 
306
+ Blog::Models::Post Load (0.000354) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 3) 
307
+ Blog::Models::Post Update (0.000552) UPDATE "blog_posts" SET "html_body" = '<p>Il y a quelques jours, Magnus Holm annoncait la <a href="http://img.skitch.com/20081031-pmjabs2ij4iw14imct16s66jxy.png">refonte</a> de l&#8217;exemple de blog proposé dans <a href="http://github.com/judofyr/camping/tree/blog">Camping</a></p>
308
+ <p>Je me suis amusé à refaire sont développement pour l&#8217;ajouter dans le package <a href="http://bivouac.rubyforge.org">Bivouac</a>. Tout est dans le repository sur rubyforge.</p>', "body" = 'Il y a quelques jours, Magnus Holm annoncait la "refonte":http://img.skitch.com/20081031-pmjabs2ij4iw14imct16s66jxy.png de l''exemple de blog proposé dans "Camping":http://github.com/judofyr/camping/tree/blog
309
+
310
+ Je me suis amusé à refaire sont développement pour l''ajouter dans le package "Bivouac":http://bivouac.rubyforge.org. Tout est dans le repository sur rubyforge.', "updated_at" = '2008-11-13 15:05:26' WHERE "id" = 3
311
+ Blog::Models::Post Load (0.000589) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 3) 
312
+ Blog::Models::User Load (0.000388) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
313
+ Blog::Models::Comment Load (0.000253) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 3) 
314
+ Blog::Models::Comment Create (0.000616) INSERT INTO "blog_comments" ("html_body", "updated_at", "body", "post_id", "username", "created_at") VALUES('<p>Et en plus il y a les commentaires&#8230;</p>', '2008-11-13 15:05:57', 'Et en plus il y a les commentaires...', 3, 'Arthur', '2008-11-13 15:05:57')
315
+ Blog::Models::Post Load (0.000505) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 3) 
316
+ Blog::Models::User Load (0.000315) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
317
+ Blog::Models::Comment Load (0.000342) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 3) 
318
+ SQL (0.000398)  SELECT name
319
+ FROM sqlite_master
320
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
321
+ 
322
+ SQL (0.012028) select sqlite_version(*)
323
+ SQL (0.003282) CREATE TABLE "blog_schema_infos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "version" float) 
324
+ Blog::Models::SchemaInfo Load (0.000306) SELECT * FROM "blog_schema_infos" LIMIT 1
325
+ SQL (0.004022) CREATE TABLE "blog_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "password" varchar(255), "created_at" datetime, "updated_at" datetime) 
326
+ SQL (0.003406) CREATE TABLE "blog_posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "title" varchar(255), "body" text, "html_body" text, "created_at" datetime, "updated_at" datetime) 
327
+ SQL (0.005392) CREATE TABLE "blog_comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "username" varchar(255), "body" text, "html_body" text, "created_at" datetime, "updated_at" datetime) 
328
+ Blog::Models::SchemaInfo Create (0.000523) INSERT INTO "blog_schema_infos" ("version") VALUES(1.0)
329
+ Blog::Models::Post Load (0.000769) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
330
+ SQL (0.001093)  SELECT name
331
+ FROM sqlite_master
332
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
333
+ 
334
+ Blog::Models::SchemaInfo Load (0.000271) SELECT * FROM "blog_schema_infos" LIMIT 1
335
+ Blog::Models::User Create (0.001050) INSERT INTO "blog_users" ("updated_at", "username", "password", "created_at") VALUES('2008-11-13 20:08:44', 'greg', 'pipo', '2008-11-13 20:08:44')
336
+ SQL (0.000735)  SELECT name
337
+ FROM sqlite_master
338
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
339
+ 
340
+ Blog::Models::SchemaInfo Load (0.000192) SELECT * FROM "blog_schema_infos" LIMIT 1
341
+ Blog::Models::User Load (0.000225) SELECT * FROM "blog_users" WHERE ("blog_users"."password" = 'glatvdpipo' AND "blog_users"."username" = 'greg') LIMIT 1
342
+ Blog::Models::User Load (0.000568) SELECT * FROM "blog_users" WHERE ("blog_users"."password" = 'pipo' AND "blog_users"."username" = 'greg') LIMIT 1
343
+ Blog::Models::Post Load (0.000845) SELECT * FROM "blog_posts" ORDER BY updated_at DESC
344
+ Blog::Models::Post Create (0.000705) INSERT INTO "blog_posts" ("html_body", "updated_at", "title", "body", "user_id", "created_at") VALUES('<p>Je viens de commiter dans le <a href="http://bivouac.rubyforge.org/svn/trunk/bivouac/">repository</a> de bivouac la <em>release candidate 1</em> de la version 0.4.0.</p>
345
+ <p>Au programme pas mal de changements :</p>
346
+ <ul>
347
+ <li>Support de Camping &gt;= 1.9</li>
348
+ <li>Ajoute de l&#8217;option :ieOnly au helper javascript_include_tag</li>
349
+ <li>postamble.rb est définitivement abandonné</li>
350
+ <li>script/plugin et la classe Bivouac::Plugin class ont été modifiés afin de supporter une nouvelle tache Rakefile : plugin:update</li>
351
+ <li>Mise à jour du controller &#8220;Not Found&#8221;</li>
352
+ <li>Remplacement de before_filter par la solution proposée par <a href="http://github.com/judofyr/filtering_camping/tree/master">Magnus Holm</a></li>
353
+ <li>Le générateur view fait son come back</li>
354
+ <li>Ajout du générateur Helper</li>
355
+ </ul>
356
+ <p>Bien entendu il y a également les traditionnelles correction de bug.</p>
357
+ <p>Notez enfin de l&#8217;exemple de blog fournit dans les sources a été totalement réécrit sur le model proposé par <a href="http://github.com/judofyr/camping/tree/blog">Magnus</a> dans Camping</p>', '2008-11-13 20:16:31', 'Bivouac 0.4.0-RC1', 'Je viens de commiter dans le "repository":http://bivouac.rubyforge.org/svn/trunk/bivouac/ de bivouac la _release candidate 1_ de la version 0.4.0.
358
+
359
+ Au programme pas mal de changements :
360
+
361
+ * Support de Camping >= 1.9
362
+ * Ajoute de l''option :ieOnly au helper javascript_include_tag
363
+ * postamble.rb est définitivement abandonné
364
+ * script/plugin et la classe Bivouac::Plugin class ont été modifiés afin de supporter une nouvelle tache Rakefile : plugin:update
365
+ * Mise à jour du controller "Not Found"
366
+ * Remplacement de before_filter par la solution proposée par "Magnus Holm":http://github.com/judofyr/filtering_camping/tree/master
367
+ * Le générateur view fait son come back
368
+ * Ajout du générateur Helper
369
+
370
+ Bien entendu il y a également les traditionnelles correction de bug.
371
+
372
+ Notez enfin de l''exemple de blog fournit dans les sources a été totalement réécrit sur le model proposé par "Magnus":http://github.com/judofyr/camping/tree/blog dans Camping', 1, '2008-11-13 20:16:31')
373
+ Blog::Models::Post Load (0.000927) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
374
+ Blog::Models::User Load (0.000373) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
375
+ Blog::Models::Comment Load (0.000254) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 1) 
376
+ Blog::Models::Comment Create (0.000537) INSERT INTO "blog_comments" ("html_body", "updated_at", "body", "post_id", "username", "created_at") VALUES('<p>Et les commentaires fonctionnent&#8230;</p>', '2008-11-13 20:16:55', 'Et les commentaires fonctionnent...', 1, 'Arthur', '2008-11-13 20:16:55')
377
+ Blog::Models::Post Load (0.000490) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
378
+ Blog::Models::User Load (0.000332) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
379
+ Blog::Models::Comment Load (0.000296) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 1) 
380
+ Blog::Models::Post Load (0.000373) SELECT * FROM "blog_posts" WHERE ("blog_posts"."id" = 1) 
381
+ Blog::Models::User Load (0.000298) SELECT * FROM "blog_users" WHERE ("blog_users"."id" = 1) 
382
+ Blog::Models::Comment Load (0.000313) SELECT * FROM "blog_comments" WHERE ("blog_comments".post_id = 1)