after_commit_queue 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +39 -0
  4. data/lib/after_commit_queue/version.rb +3 -0
  5. data/lib/after_commit_queue.rb +30 -0
  6. data/lib/tasks/after_commit_queue_tasks.rake +4 -0
  7. data/test/after_commit_queue_test.rb +27 -0
  8. data/test/dummy/README.rdoc +261 -0
  9. data/test/dummy/Rakefile +7 -0
  10. data/test/dummy/app/assets/javascripts/application.js +13 -0
  11. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  12. data/test/dummy/app/controllers/application_controller.rb +3 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/models/server.rb +23 -0
  15. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  16. data/test/dummy/config/application.rb +59 -0
  17. data/test/dummy/config/boot.rb +10 -0
  18. data/test/dummy/config/database.yml +25 -0
  19. data/test/dummy/config/environment.rb +5 -0
  20. data/test/dummy/config/environments/development.rb +37 -0
  21. data/test/dummy/config/environments/production.rb +67 -0
  22. data/test/dummy/config/environments/test.rb +37 -0
  23. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  24. data/test/dummy/config/initializers/inflections.rb +15 -0
  25. data/test/dummy/config/initializers/mime_types.rb +5 -0
  26. data/test/dummy/config/initializers/secret_token.rb +7 -0
  27. data/test/dummy/config/initializers/session_store.rb +8 -0
  28. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  29. data/test/dummy/config/locales/en.yml +5 -0
  30. data/test/dummy/config/routes.rb +58 -0
  31. data/test/dummy/config.ru +4 -0
  32. data/test/dummy/db/development.sqlite3 +0 -0
  33. data/test/dummy/db/migrate/20120622135717_create_servers.rb +8 -0
  34. data/test/dummy/db/schema.rb +22 -0
  35. data/test/dummy/db/test.sqlite3 +0 -0
  36. data/test/dummy/log/development.log +31 -0
  37. data/test/dummy/log/test.log +272 -0
  38. data/test/dummy/public/404.html +26 -0
  39. data/test/dummy/public/422.html +26 -0
  40. data/test/dummy/public/500.html +25 -0
  41. data/test/dummy/public/favicon.ico +0 -0
  42. data/test/dummy/script/rails +6 -0
  43. data/test/dummy/test/fixtures/servers.yml +7 -0
  44. data/test/dummy/test/unit/server_test.rb +7 -0
  45. data/test/test_helper.rb +18 -0
  46. metadata +168 -0
@@ -0,0 +1,22 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20120622135717) do
15
+
16
+ create_table "servers", :force => true do |t|
17
+ t.string "state"
18
+ t.datetime "created_at", :null => false
19
+ t.datetime "updated_at", :null => false
20
+ end
21
+
22
+ end
Binary file
@@ -0,0 +1,31 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ Connecting to database specified by database.yml
4
+  (0.1ms) select sqlite_version(*)
5
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6
+  (0.0ms) PRAGMA index_list("schema_migrations")
7
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
8
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
9
+ Migrating to CreateServers (20120622135717)
10
+  (0.0ms) begin transaction
11
+  (0.3ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
12
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120622135717')
13
+  (1.2ms) commit transaction
14
+  (0.2ms) select sqlite_version(*)
15
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
16
+  (0.0ms) PRAGMA index_list("servers")
17
+ Connecting to database specified by database.yml
18
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
19
+ Migrating to CreateServers (20120622135717)
20
+  (0.2ms) select sqlite_version(*)
21
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
22
+  (0.0ms) PRAGMA index_list("servers")
23
+ Connecting to database specified by database.yml
24
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
25
+  (0.2ms) select sqlite_version(*)
26
+  (1.2ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
27
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
28
+  (0.0ms) PRAGMA index_list("schema_migrations")
29
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
30
+  (0.1ms) SELECT version FROM "schema_migrations"
31
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
@@ -0,0 +1,272 @@
1
+ Connecting to database specified by database.yml
2
+  (0.2ms) begin transaction
3
+  (0.0ms) rollback transaction
4
+ Connecting to database specified by database.yml
5
+ Connecting to database specified by database.yml
6
+ Connecting to database specified by database.yml
7
+  (0.2ms) begin transaction
8
+  (0.0ms) rollback transaction
9
+  (0.0ms) begin transaction
10
+  (0.0ms) rollback transaction
11
+ Connecting to database specified by database.yml
12
+  (0.3ms) begin transaction
13
+  (1.6ms) SAVEPOINT active_record_1
14
+ SQL (5.6ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00]]
15
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
16
+  (0.4ms) rollback transaction
17
+  (0.1ms) begin transaction
18
+  (0.0ms) SAVEPOINT active_record_1
19
+ SQL (0.3ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:15 UTC +00:00]]
20
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
21
+  (0.4ms) rollback transaction
22
+ Connecting to database specified by database.yml
23
+  (0.3ms) begin transaction
24
+  (0.1ms) SAVEPOINT active_record_1
25
+ SQL (3.7ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00]]
26
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
27
+  (1.6ms) rollback transaction
28
+  (0.1ms) begin transaction
29
+  (0.0ms) SAVEPOINT active_record_1
30
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:26:35 UTC +00:00]]
31
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
32
+  (0.4ms) rollback transaction
33
+ Connecting to database specified by database.yml
34
+  (0.3ms) begin transaction
35
+  (0.0ms) SAVEPOINT active_record_1
36
+ SQL (3.1ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00]]
37
+  (0.0ms) RELEASE SAVEPOINT active_record_1
38
+  (0.0ms) SAVEPOINT active_record_1
39
+  (0.3ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:32:50.318470' WHERE "servers"."id" = 1
40
+  (0.0ms) RELEASE SAVEPOINT active_record_1
41
+  (1.6ms) rollback transaction
42
+  (0.1ms) begin transaction
43
+  (0.0ms) SAVEPOINT active_record_1
44
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:32:50 UTC +00:00]]
45
+  (0.1ms) RELEASE SAVEPOINT active_record_1
46
+  (0.4ms) rollback transaction
47
+ Connecting to database specified by database.yml
48
+  (0.3ms) begin transaction
49
+  (0.1ms) SAVEPOINT active_record_1
50
+ SQL (4.3ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00]]
51
+  (0.0ms) RELEASE SAVEPOINT active_record_1
52
+  (0.0ms) SAVEPOINT active_record_1
53
+  (0.4ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:33:50.364494' WHERE "servers"."id" = 1
54
+  (0.0ms) RELEASE SAVEPOINT active_record_1
55
+  (1.4ms) rollback transaction
56
+  (0.1ms) begin transaction
57
+  (0.1ms) SAVEPOINT active_record_1
58
+ SQL (0.6ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:33:50 UTC +00:00]]
59
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60
+  (0.0ms) SAVEPOINT active_record_1
61
+  (0.0ms) RELEASE SAVEPOINT active_record_1
62
+  (0.6ms) rollback transaction
63
+ Connecting to database specified by database.yml
64
+  (0.3ms) begin transaction
65
+  (0.1ms) SAVEPOINT active_record_1
66
+ SQL (3.1ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00]]
67
+  (0.0ms) RELEASE SAVEPOINT active_record_1
68
+  (0.0ms) SAVEPOINT active_record_1
69
+  (0.3ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:22.376388' WHERE "servers"."id" = 1
70
+  (0.0ms) RELEASE SAVEPOINT active_record_1
71
+  (1.6ms) rollback transaction
72
+  (0.1ms) begin transaction
73
+  (0.0ms) SAVEPOINT active_record_1
74
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:22 UTC +00:00]]
75
+  (0.0ms) RELEASE SAVEPOINT active_record_1
76
+  (0.3ms) rollback transaction
77
+ Connecting to database specified by database.yml
78
+  (0.3ms) begin transaction
79
+  (0.0ms) SAVEPOINT active_record_1
80
+ SQL (3.0ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00]]
81
+  (0.0ms) RELEASE SAVEPOINT active_record_1
82
+  (0.0ms) SAVEPOINT active_record_1
83
+  (0.3ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:33.777347' WHERE "servers"."id" = 1
84
+  (0.0ms) RELEASE SAVEPOINT active_record_1
85
+  (0.5ms) rollback transaction
86
+  (0.0ms) begin transaction
87
+  (0.0ms) SAVEPOINT active_record_1
88
+ SQL (0.3ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:33 UTC +00:00]]
89
+  (0.0ms) RELEASE SAVEPOINT active_record_1
90
+  (0.3ms) rollback transaction
91
+ Connecting to database specified by database.yml
92
+  (0.3ms) begin transaction
93
+  (0.0ms) SAVEPOINT active_record_1
94
+ SQL (3.0ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00]]
95
+  (0.0ms) RELEASE SAVEPOINT active_record_1
96
+  (0.0ms) SAVEPOINT active_record_1
97
+  (0.3ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:50.157970' WHERE "servers"."id" = 1
98
+  (0.0ms) RELEASE SAVEPOINT active_record_1
99
+  (1.6ms) rollback transaction
100
+  (0.1ms) begin transaction
101
+  (0.0ms) SAVEPOINT active_record_1
102
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:50 UTC +00:00]]
103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
104
+  (0.3ms) rollback transaction
105
+ Connecting to database specified by database.yml
106
+  (0.3ms) begin transaction
107
+  (0.0ms) SAVEPOINT active_record_1
108
+ SQL (4.1ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00]]
109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110
+  (0.0ms) SAVEPOINT active_record_1
111
+  (0.3ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:34:58.016351' WHERE "servers"."id" = 1
112
+  (0.0ms) RELEASE SAVEPOINT active_record_1
113
+  (1.4ms) rollback transaction
114
+  (0.1ms) begin transaction
115
+  (0.0ms) SAVEPOINT active_record_1
116
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:34:58 UTC +00:00]]
117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
118
+  (0.4ms) rollback transaction
119
+ Connecting to database specified by database.yml
120
+  (0.4ms) begin transaction
121
+  (0.0ms) SAVEPOINT active_record_1
122
+ SQL (3.0ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00]]
123
+  (0.0ms) RELEASE SAVEPOINT active_record_1
124
+  (0.0ms) SAVEPOINT active_record_1
125
+  (0.3ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:36:42.874011' WHERE "servers"."id" = 1
126
+  (0.0ms) RELEASE SAVEPOINT active_record_1
127
+  (0.5ms) rollback transaction
128
+  (0.0ms) begin transaction
129
+  (0.0ms) SAVEPOINT active_record_1
130
+ SQL (0.3ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:36:42 UTC +00:00]]
131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132
+  (0.3ms) rollback transaction
133
+ Connecting to database specified by database.yml
134
+  (0.1ms) begin transaction
135
+ SQL (3.2ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00]]
136
+  (2.1ms) commit transaction
137
+  (0.1ms) begin transaction
138
+  (0.3ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:37:40.555853' WHERE "servers"."id" = 1
139
+  (0.8ms) commit transaction
140
+  (0.0ms) begin transaction
141
+ SQL (0.5ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:37:40 UTC +00:00]]
142
+  (0.6ms) commit transaction
143
+ Connecting to database specified by database.yml
144
+  (0.0ms) begin transaction
145
+ SQL (3.1ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:37:52 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:37:52 UTC +00:00]]
146
+  (2.3ms) commit transaction
147
+  (0.1ms) begin transaction
148
+  (0.3ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:37:52.895872' WHERE "servers"."id" = 3
149
+  (1.0ms) commit transaction
150
+  (0.0ms) begin transaction
151
+ SQL (0.5ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:37:52 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:37:52 UTC +00:00]]
152
+  (0.8ms) commit transaction
153
+ Connecting to database specified by database.yml
154
+  (0.0ms) begin transaction
155
+ SQL (3.5ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:38:31 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:38:31 UTC +00:00]]
156
+  (2.3ms) commit transaction
157
+  (0.1ms) begin transaction
158
+  (0.2ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:38:31.039058' WHERE "servers"."id" = 5
159
+  (1.0ms) commit transaction
160
+  (0.0ms) begin transaction
161
+ SQL (0.6ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:38:31 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:38:31 UTC +00:00]]
162
+  (1.0ms) commit transaction
163
+ Connecting to database specified by database.yml
164
+  (0.0ms) begin transaction
165
+ SQL (5.5ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:46:01 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:46:01 UTC +00:00]]
166
+  (0.6ms) commit transaction
167
+  (0.0ms) begin transaction
168
+  (0.2ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:46:02.001583' WHERE "servers"."id" = 7
169
+  (0.8ms) commit transaction
170
+  (0.1ms) begin transaction
171
+ SQL (0.5ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:46:02 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:46:02 UTC +00:00]]
172
+  (1.0ms) commit transaction
173
+ Connecting to database specified by database.yml
174
+  (0.1ms) begin transaction
175
+ SQL (3.3ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00]]
176
+  (1.7ms) commit transaction
177
+  (0.0ms) begin transaction
178
+  (0.3ms) UPDATE "servers" SET "state" = 'stopped', "updated_at" = '2012-06-22 14:46:44.233785' WHERE "servers"."id" = 9
179
+  (0.8ms) commit transaction
180
+  (0.0ms) begin transaction
181
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:46:44 UTC +00:00]]
182
+  (1.1ms) commit transaction
183
+ Connecting to database specified by database.yml
184
+  (0.0ms) begin transaction
185
+ SQL (3.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:48:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:48:42 UTC +00:00]]
186
+  (2.0ms) commit transaction
187
+  (0.0ms) begin transaction
188
+  (0.2ms) UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 14:48:42.577921' WHERE "servers"."id" = 11
189
+  (0.6ms) commit transaction
190
+  (0.1ms) begin transaction
191
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:48:42 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:48:42 UTC +00:00]]
192
+  (0.8ms) commit transaction
193
+ Connecting to database specified by database.yml
194
+  (0.1ms) begin transaction
195
+ SQL (3.2ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00]]
196
+  (1.7ms) commit transaction
197
+  (0.0ms) begin transaction
198
+  (0.2ms) UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 14:49:15.132299' WHERE "servers"."id" = 13
199
+  (1.1ms) commit transaction
200
+  (0.0ms) begin transaction
201
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 14:49:15 UTC +00:00]]
202
+  (0.7ms) commit transaction
203
+ Connecting to database specified by database.yml
204
+  (0.0ms) begin transaction
205
+ SQL (3.9ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:49:22 UTC +00:00], ["state", "pending"], ["updated_at", Fri, 22 Jun 2012 14:49:22 UTC +00:00]]
206
+  (2.0ms) commit transaction
207
+  (0.0ms) begin transaction
208
+  (0.3ms) UPDATE "servers" SET "state" = 'running', "updated_at" = '2012-06-22 14:49:22.969116' WHERE "servers"."id" = 15
209
+  (1.0ms) commit transaction
210
+  (0.0ms) begin transaction
211
+  (0.2ms) UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 14:49:22.972534' WHERE "servers"."id" = 15
212
+  (0.9ms) commit transaction
213
+  (0.0ms) begin transaction
214
+ SQL (0.3ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 14:49:22 UTC +00:00], ["state", "pending"], ["updated_at", Fri, 22 Jun 2012 14:49:22 UTC +00:00]]
215
+  (0.9ms) commit transaction
216
+  (0.0ms) begin transaction
217
+  (0.3ms) UPDATE "servers" SET "state" = 'running', "updated_at" = '2012-06-22 14:49:22.977939' WHERE "servers"."id" = 16
218
+  (0.7ms) commit transaction
219
+ Connecting to database specified by database.yml
220
+  (0.0ms) begin transaction
221
+ SQL (6.1ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00]]
222
+  (1.1ms) commit transaction
223
+  (0.0ms) begin transaction
224
+  (0.3ms) UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:18:36.399920' WHERE "servers"."id" = 17
225
+  (0.6ms) commit transaction
226
+  (0.1ms) begin transaction
227
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:18:36 UTC +00:00]]
228
+  (0.6ms) commit transaction
229
+ Connecting to database specified by database.yml
230
+  (0.0ms) begin transaction
231
+ SQL (2.8ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:19:07 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:19:07 UTC +00:00]]
232
+  (2.2ms) commit transaction
233
+  (0.0ms) begin transaction
234
+  (0.2ms) UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:19:07.087702' WHERE "servers"."id" = 19
235
+  (0.9ms) commit transaction
236
+  (0.1ms) begin transaction
237
+ SQL (0.3ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:19:07 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:19:07 UTC +00:00]]
238
+  (1.2ms) commit transaction
239
+ Connecting to database specified by database.yml
240
+  (0.1ms) begin transaction
241
+ SQL (10.0ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00]]
242
+  (3.3ms) commit transaction
243
+  (0.0ms) begin transaction
244
+  (0.3ms) UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:21:33.954780' WHERE "servers"."id" = 21
245
+  (1.1ms) commit transaction
246
+  (0.1ms) begin transaction
247
+ SQL (0.3ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:33 UTC +00:00]]
248
+  (0.7ms) commit transaction
249
+ Connecting to database specified by database.yml
250
+  (0.3ms) begin transaction
251
+  (0.0ms) SAVEPOINT active_record_1
252
+ SQL (5.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00]]
253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
254
+  (0.0ms) SAVEPOINT active_record_1
255
+  (0.5ms) UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:21:45.041318' WHERE "servers"."id" = 23
256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
257
+  (0.5ms) rollback transaction
258
+  (0.0ms) begin transaction
259
+  (0.0ms) SAVEPOINT active_record_1
260
+ SQL (0.4ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:21:45 UTC +00:00]]
261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
262
+  (0.3ms) rollback transaction
263
+ Connecting to database specified by database.yml
264
+  (0.1ms) begin transaction
265
+ SQL (7.5ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00]]
266
+  (1.2ms) commit transaction
267
+  (0.0ms) begin transaction
268
+  (0.3ms) UPDATE "servers" SET "state" = 'turned_off', "updated_at" = '2012-06-22 15:35:43.917293' WHERE "servers"."id" = 23
269
+  (0.6ms) commit transaction
270
+  (0.1ms) begin transaction
271
+ SQL (0.5ms) INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00], ["state", "running"], ["updated_at", Fri, 22 Jun 2012 15:35:43 UTC +00:00]]
272
+  (0.7ms) commit transaction
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ name: MyString
5
+
6
+ two:
7
+ name: MyString
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ServerTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,18 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # We use transactions in tests
13
+ ActiveSupport::TestCase.use_transactional_fixtures = false
14
+
15
+ # Load fixtures from the engine
16
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
17
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
18
+ end