after_commit_queue 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/after_commit_queue/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +295 -0
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11b2f78a5f57bef8e33680d0f0bbd1602b75deec
|
4
|
+
data.tar.gz: 155446bed1c1ca24ac460de82b320d2e9598eab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 663f1ccfd200d00dcef2cc686e2f971c3117f63ffe20dc41bc9fb5369cb1d8429390d38d21ef4ea6bb124dc80b43d9b59188ed9ad09ae9ba37d583f454c8fcaa
|
7
|
+
data.tar.gz: eaf7e53c87a686671831227f68ef68da53334726f5b77faf17cde3b7d257fc153f90a3c4ff4e514d8ba8ecbc2533d252182398648663c55f82803ec9c8a8fd48
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -57,3 +57,298 @@ AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
|
57
57
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
58
58
|
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 29 Sep 2015 20:23:15 UTC +00:00], ["state", "running"], ["updated_at", Tue, 29 Sep 2015 20:23:15 UTC +00:00]]
|
59
59
|
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
60
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
61
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
62
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
63
|
+
Migrating to CreateServers (20120622135717)
|
64
|
+
[1m[35m (0.1ms)[0m begin transaction
|
65
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
66
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
67
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
68
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
69
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
70
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
71
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
72
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
73
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
74
|
+
--------------------------------------------------------------------
|
75
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
76
|
+
--------------------------------------------------------------------
|
77
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
78
|
+
[1m[35mSQL (5.0ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
|
79
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
80
|
+
[1m[35m (0.1ms)[0m begin transaction
|
81
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
|
82
|
+
[1m[35m (1.0ms)[0m commit transaction
|
83
|
+
------------------------------------------------------
|
84
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
85
|
+
------------------------------------------------------
|
86
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
87
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
|
88
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
89
|
+
--------------------------------------------------------------------------
|
90
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
91
|
+
--------------------------------------------------------------------------
|
92
|
+
----------------------------------------------------------
|
93
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
94
|
+
----------------------------------------------------------
|
95
|
+
[1m[35m (0.1ms)[0m begin transaction
|
96
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
|
97
|
+
[1m[35m (1.4ms)[0m commit transaction
|
98
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
99
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
|
100
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
101
|
+
[1m[35m (0.1ms)[0m begin transaction
|
102
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
|
103
|
+
[1m[35m (1.1ms)[0m commit transaction
|
104
|
+
--------------------------------------------------------------------
|
105
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
106
|
+
--------------------------------------------------------------------
|
107
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
108
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
|
109
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
110
|
+
[1m[35m (0.0ms)[0m begin transaction
|
111
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
|
112
|
+
[1m[35m (1.1ms)[0m commit transaction
|
113
|
+
---------------------------------------------------------------------
|
114
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
115
|
+
---------------------------------------------------------------------
|
116
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
117
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
|
118
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
119
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
120
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
121
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
122
|
+
Migrating to CreateServers (20120622135717)
|
123
|
+
[1m[35m (0.1ms)[0m begin transaction
|
124
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
125
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
126
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
127
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
128
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
129
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
130
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
131
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
132
|
+
[1m[36m (1.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
133
|
+
--------------------------------------------------------------------
|
134
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
135
|
+
--------------------------------------------------------------------
|
136
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
137
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
|
138
|
+
[1m[36m (2.5ms)[0m [1mcommit transaction[0m
|
139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
140
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
|
141
|
+
[1m[35m (1.0ms)[0m commit transaction
|
142
|
+
------------------------------------------------------
|
143
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
144
|
+
------------------------------------------------------
|
145
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
146
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
|
147
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
148
|
+
--------------------------------------------------------------------------
|
149
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
150
|
+
--------------------------------------------------------------------------
|
151
|
+
----------------------------------------------------------
|
152
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
153
|
+
----------------------------------------------------------
|
154
|
+
[1m[35m (0.1ms)[0m begin transaction
|
155
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
|
156
|
+
[1m[35m (1.0ms)[0m commit transaction
|
157
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
158
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
|
159
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
160
|
+
[1m[35m (0.0ms)[0m begin transaction
|
161
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
|
162
|
+
[1m[35m (1.1ms)[0m commit transaction
|
163
|
+
--------------------------------------------------------------------
|
164
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
165
|
+
--------------------------------------------------------------------
|
166
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
167
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
|
168
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
169
|
+
[1m[35m (0.1ms)[0m begin transaction
|
170
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
|
171
|
+
[1m[35m (1.0ms)[0m commit transaction
|
172
|
+
---------------------------------------------------------------------
|
173
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
174
|
+
---------------------------------------------------------------------
|
175
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
176
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
|
177
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
178
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
179
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
180
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
181
|
+
Migrating to CreateServers (20120622135717)
|
182
|
+
[1m[35m (0.0ms)[0m begin transaction
|
183
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
184
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
185
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
186
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
187
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
188
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
189
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
190
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
191
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
192
|
+
--------------------------------------------------------------------
|
193
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
194
|
+
--------------------------------------------------------------------
|
195
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
196
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
|
197
|
+
[1m[36m (2.3ms)[0m [1mcommit transaction[0m
|
198
|
+
[1m[35m (0.0ms)[0m begin transaction
|
199
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
|
200
|
+
[1m[35m (1.0ms)[0m commit transaction
|
201
|
+
------------------------------------------------------
|
202
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
203
|
+
------------------------------------------------------
|
204
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
205
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
|
206
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
207
|
+
--------------------------------------------------------------------------
|
208
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
209
|
+
--------------------------------------------------------------------------
|
210
|
+
----------------------------------------------------------
|
211
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
212
|
+
----------------------------------------------------------
|
213
|
+
[1m[35m (0.0ms)[0m begin transaction
|
214
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
|
215
|
+
[1m[35m (1.0ms)[0m commit transaction
|
216
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
217
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
|
218
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
219
|
+
[1m[35m (0.1ms)[0m begin transaction
|
220
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
|
221
|
+
[1m[35m (0.8ms)[0m commit transaction
|
222
|
+
--------------------------------------------------------------------
|
223
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
224
|
+
--------------------------------------------------------------------
|
225
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
226
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
|
227
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
228
|
+
[1m[35m (0.0ms)[0m begin transaction
|
229
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
|
230
|
+
[1m[35m (1.1ms)[0m commit transaction
|
231
|
+
---------------------------------------------------------------------
|
232
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
233
|
+
---------------------------------------------------------------------
|
234
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
235
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
|
236
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
237
|
+
[1m[36m (4.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
238
|
+
[1m[35m (1.5ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
239
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
240
|
+
Migrating to CreateServers (20120622135717)
|
241
|
+
[1m[35m (0.1ms)[0m begin transaction
|
242
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
243
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
244
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
245
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
246
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
247
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
248
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
249
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
250
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
251
|
+
--------------------------------------------------------------------
|
252
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
253
|
+
--------------------------------------------------------------------
|
254
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
255
|
+
[1m[35mSQL (2.4ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
|
256
|
+
[1m[36m (2.2ms)[0m [1mcommit transaction[0m
|
257
|
+
[1m[35m (0.0ms)[0m begin transaction
|
258
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
|
259
|
+
[1m[35m (1.0ms)[0m commit transaction
|
260
|
+
------------------------------------------------------
|
261
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
262
|
+
------------------------------------------------------
|
263
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
264
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
|
265
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
266
|
+
--------------------------------------------------------------------------
|
267
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
268
|
+
--------------------------------------------------------------------------
|
269
|
+
----------------------------------------------------------
|
270
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
271
|
+
----------------------------------------------------------
|
272
|
+
[1m[35m (0.1ms)[0m begin transaction
|
273
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
|
274
|
+
[1m[35m (1.1ms)[0m commit transaction
|
275
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
276
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
|
277
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
278
|
+
[1m[35m (0.0ms)[0m begin transaction
|
279
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
|
280
|
+
[1m[35m (1.0ms)[0m commit transaction
|
281
|
+
--------------------------------------------------------------------
|
282
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
283
|
+
--------------------------------------------------------------------
|
284
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
285
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
|
286
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
287
|
+
[1m[35m (0.1ms)[0m begin transaction
|
288
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
|
289
|
+
[1m[35m (1.0ms)[0m commit transaction
|
290
|
+
---------------------------------------------------------------------
|
291
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
292
|
+
---------------------------------------------------------------------
|
293
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
294
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
|
295
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
296
|
+
[1m[36m (2.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
297
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
298
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
299
|
+
Migrating to CreateServers (20120622135717)
|
300
|
+
[1m[35m (0.0ms)[0m begin transaction
|
301
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
302
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
|
303
|
+
[1m[36m (1.4ms)[0m [1mcommit transaction[0m
|
304
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
305
|
+
[1m[36m (1.3ms)[0m [1mCREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
306
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
307
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
308
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
309
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20120622135717')[0m
|
310
|
+
--------------------------------------------------------------------
|
311
|
+
AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
|
312
|
+
--------------------------------------------------------------------
|
313
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
314
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
|
315
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
316
|
+
[1m[35m (0.0ms)[0m begin transaction
|
317
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1[0m [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
|
318
|
+
[1m[35m (1.0ms)[0m commit transaction
|
319
|
+
------------------------------------------------------
|
320
|
+
AfterCommitQueueTest: test_clears_queue_after_rollback
|
321
|
+
------------------------------------------------------
|
322
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
323
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
|
324
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
325
|
+
--------------------------------------------------------------------------
|
326
|
+
AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
|
327
|
+
--------------------------------------------------------------------------
|
328
|
+
----------------------------------------------------------
|
329
|
+
AfterCommitQueueTest: test_external_observer_changes_state
|
330
|
+
----------------------------------------------------------
|
331
|
+
[1m[35m (0.1ms)[0m begin transaction
|
332
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
|
333
|
+
[1m[35m (1.0ms)[0m commit transaction
|
334
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
335
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
|
336
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
337
|
+
[1m[35m (0.0ms)[0m begin transaction
|
338
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2[0m [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
|
339
|
+
[1m[35m (0.9ms)[0m commit transaction
|
340
|
+
--------------------------------------------------------------------
|
341
|
+
AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
|
342
|
+
--------------------------------------------------------------------
|
343
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
344
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
|
345
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
346
|
+
[1m[35m (0.0ms)[0m begin transaction
|
347
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3[0m [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
|
348
|
+
[1m[35m (1.2ms)[0m commit transaction
|
349
|
+
---------------------------------------------------------------------
|
350
|
+
AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
|
351
|
+
---------------------------------------------------------------------
|
352
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
353
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "servers" ("created_at", "state", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00], ["state", "running"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
|
354
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: after_commit_queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grzegorz Kołodziejczyk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-10-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -25,20 +25,6 @@ dependencies:
|
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '3.0'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: state_machine
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '0'
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: sqlite3
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|