after_commit_queue 1.2.0 → 1.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e433311ed540c64198826ce29c13d199bd932f2f
4
- data.tar.gz: 903b98ef62043d34abb9e56748ade38b11dc5d8d
3
+ metadata.gz: 11b2f78a5f57bef8e33680d0f0bbd1602b75deec
4
+ data.tar.gz: 155446bed1c1ca24ac460de82b320d2e9598eab8
5
5
  SHA512:
6
- metadata.gz: 8cbc6429372bfcef3802025c4e3cb24562f6b3744c109f8b4289d15f72fdb68a967dc64d41415e4f867e7f7f1232e151bbb36081ef41b1e610e5ad571381c433
7
- data.tar.gz: ba5bf64c08c5062aea023bd2852b5779e61fe611b56ab1b8c64c5894ab01c569faf793cb46abb28919e1a67b1063558514000ddc1b89810807d86c8a98e78ebc
6
+ metadata.gz: 663f1ccfd200d00dcef2cc686e2f971c3117f63ffe20dc41bc9fb5369cb1d8429390d38d21ef4ea6bb124dc80b43d9b59188ed9ad09ae9ba37d583f454c8fcaa
7
+ data.tar.gz: eaf7e53c87a686671831227f68ef68da53334726f5b77faf17cde3b7d257fc153f90a3c4ff4e514d8ba8ecbc2533d252182398648663c55f82803ec9c8a8fd48
@@ -1,3 +1,3 @@
1
1
  module AfterCommitQueue
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
Binary file
@@ -57,3 +57,298 @@ AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
57
57
   (0.0ms) begin transaction
58
58
  SQL (0.3ms) 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
   (1.0ms) commit transaction
60
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
61
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
62
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
63
+ Migrating to CreateServers (20120622135717)
64
+  (0.1ms) begin transaction
65
+  (0.4ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
66
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
67
+  (1.2ms) commit transaction
68
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
69
+  (1.2ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
70
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
71
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
72
+  (0.1ms) SELECT version FROM "schema_migrations"
73
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
74
+ --------------------------------------------------------------------
75
+ AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
76
+ --------------------------------------------------------------------
77
+  (0.1ms) begin transaction
78
+ SQL (5.0ms) 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
+  (1.0ms) commit transaction
80
+  (0.1ms) begin transaction
81
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
82
+  (1.0ms) commit transaction
83
+ ------------------------------------------------------
84
+ AfterCommitQueueTest: test_clears_queue_after_rollback
85
+ ------------------------------------------------------
86
+  (0.1ms) begin transaction
87
+ SQL (0.3ms) 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
+  (1.0ms) rollback transaction
89
+ --------------------------------------------------------------------------
90
+ AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
91
+ --------------------------------------------------------------------------
92
+ ----------------------------------------------------------
93
+ AfterCommitQueueTest: test_external_observer_changes_state
94
+ ----------------------------------------------------------
95
+  (0.1ms) begin transaction
96
+ SQL (0.3ms) 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]]
97
+  (1.4ms) commit transaction
98
+  (0.1ms) begin transaction
99
+ SQL (0.4ms) 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
+  (1.0ms) commit transaction
101
+  (0.1ms) begin transaction
102
+ SQL (0.2ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
103
+  (1.1ms) commit transaction
104
+ --------------------------------------------------------------------
105
+ AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
106
+ --------------------------------------------------------------------
107
+  (0.0ms) begin transaction
108
+ SQL (0.3ms) 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
+  (1.0ms) commit transaction
110
+  (0.0ms) begin transaction
111
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3 [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:33:08 UTC +00:00]]
112
+  (1.1ms) commit transaction
113
+ ---------------------------------------------------------------------
114
+ AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
115
+ ---------------------------------------------------------------------
116
+  (0.1ms) begin transaction
117
+ SQL (0.3ms) 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
+  (1.0ms) commit transaction
119
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
120
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
121
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
122
+ Migrating to CreateServers (20120622135717)
123
+  (0.1ms) begin transaction
124
+  (0.4ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
125
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
126
+  (1.3ms) commit transaction
127
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
128
+  (1.3ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
129
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
130
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
131
+  (0.1ms) SELECT version FROM "schema_migrations"
132
+  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
133
+ --------------------------------------------------------------------
134
+ AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
135
+ --------------------------------------------------------------------
136
+  (0.1ms) begin transaction
137
+ SQL (2.4ms) 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
+  (2.5ms) commit transaction
139
+  (0.1ms) begin transaction
140
+ SQL (0.4ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
141
+  (1.0ms) commit transaction
142
+ ------------------------------------------------------
143
+ AfterCommitQueueTest: test_clears_queue_after_rollback
144
+ ------------------------------------------------------
145
+  (0.0ms) begin transaction
146
+ SQL (0.3ms) 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
+  (0.5ms) rollback transaction
148
+ --------------------------------------------------------------------------
149
+ AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
150
+ --------------------------------------------------------------------------
151
+ ----------------------------------------------------------
152
+ AfterCommitQueueTest: test_external_observer_changes_state
153
+ ----------------------------------------------------------
154
+  (0.1ms) begin transaction
155
+ SQL (0.3ms) 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]]
156
+  (1.0ms) commit transaction
157
+  (0.0ms) begin transaction
158
+ SQL (0.3ms) 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
+  (1.0ms) commit transaction
160
+  (0.0ms) begin transaction
161
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
162
+  (1.1ms) commit transaction
163
+ --------------------------------------------------------------------
164
+ AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
165
+ --------------------------------------------------------------------
166
+  (0.1ms) begin transaction
167
+ SQL (0.7ms) 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
+  (1.2ms) commit transaction
169
+  (0.1ms) begin transaction
170
+ SQL (0.4ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3 [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:34:01 UTC +00:00]]
171
+  (1.0ms) commit transaction
172
+ ---------------------------------------------------------------------
173
+ AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
174
+ ---------------------------------------------------------------------
175
+  (0.1ms) begin transaction
176
+ SQL (0.3ms) 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
+  (1.0ms) commit transaction
178
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
179
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
180
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
181
+ Migrating to CreateServers (20120622135717)
182
+  (0.0ms) begin transaction
183
+  (0.3ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
184
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
185
+  (1.2ms) commit transaction
186
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
187
+  (1.2ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
188
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
189
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
190
+  (0.1ms) SELECT version FROM "schema_migrations"
191
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
192
+ --------------------------------------------------------------------
193
+ AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
194
+ --------------------------------------------------------------------
195
+  (0.1ms) begin transaction
196
+ SQL (2.4ms) 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
+  (2.3ms) commit transaction
198
+  (0.0ms) begin transaction
199
+ SQL (0.7ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
200
+  (1.0ms) commit transaction
201
+ ------------------------------------------------------
202
+ AfterCommitQueueTest: test_clears_queue_after_rollback
203
+ ------------------------------------------------------
204
+  (0.0ms) begin transaction
205
+ SQL (0.3ms) 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
+  (0.5ms) rollback transaction
207
+ --------------------------------------------------------------------------
208
+ AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
209
+ --------------------------------------------------------------------------
210
+ ----------------------------------------------------------
211
+ AfterCommitQueueTest: test_external_observer_changes_state
212
+ ----------------------------------------------------------
213
+  (0.0ms) begin transaction
214
+ SQL (0.3ms) 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]]
215
+  (1.0ms) commit transaction
216
+  (0.0ms) begin transaction
217
+ SQL (0.3ms) 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
+  (1.2ms) commit transaction
219
+  (0.1ms) begin transaction
220
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
221
+  (0.8ms) commit transaction
222
+ --------------------------------------------------------------------
223
+ AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
224
+ --------------------------------------------------------------------
225
+  (0.1ms) begin transaction
226
+ SQL (0.4ms) 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
+  (1.0ms) commit transaction
228
+  (0.0ms) begin transaction
229
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3 [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:34:07 UTC +00:00]]
230
+  (1.1ms) commit transaction
231
+ ---------------------------------------------------------------------
232
+ AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
233
+ ---------------------------------------------------------------------
234
+  (0.0ms) begin transaction
235
+ SQL (0.3ms) 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
+  (1.1ms) commit transaction
237
+  (4.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
238
+  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
239
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
240
+ Migrating to CreateServers (20120622135717)
241
+  (0.1ms) begin transaction
242
+  (0.4ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
243
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
244
+  (1.2ms) commit transaction
245
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
246
+  (1.2ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
247
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
248
+  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
249
+  (0.1ms) SELECT version FROM "schema_migrations"
250
+  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
251
+ --------------------------------------------------------------------
252
+ AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
253
+ --------------------------------------------------------------------
254
+  (0.1ms) begin transaction
255
+ SQL (2.4ms) 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
+  (2.2ms) commit transaction
257
+  (0.0ms) begin transaction
258
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
259
+  (1.0ms) commit transaction
260
+ ------------------------------------------------------
261
+ AfterCommitQueueTest: test_clears_queue_after_rollback
262
+ ------------------------------------------------------
263
+  (0.1ms) begin transaction
264
+ SQL (0.3ms) 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
+  (0.5ms) rollback transaction
266
+ --------------------------------------------------------------------------
267
+ AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
268
+ --------------------------------------------------------------------------
269
+ ----------------------------------------------------------
270
+ AfterCommitQueueTest: test_external_observer_changes_state
271
+ ----------------------------------------------------------
272
+  (0.1ms) begin transaction
273
+ SQL (0.3ms) 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]]
274
+  (1.1ms) commit transaction
275
+  (0.0ms) begin transaction
276
+ SQL (0.3ms) 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
+  (1.1ms) commit transaction
278
+  (0.0ms) begin transaction
279
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
280
+  (1.0ms) commit transaction
281
+ --------------------------------------------------------------------
282
+ AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
283
+ --------------------------------------------------------------------
284
+  (0.0ms) begin transaction
285
+ SQL (0.3ms) 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
+  (0.9ms) commit transaction
287
+  (0.1ms) begin transaction
288
+ SQL (0.5ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3 [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:34:38 UTC +00:00]]
289
+  (1.0ms) commit transaction
290
+ ---------------------------------------------------------------------
291
+ AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
292
+ ---------------------------------------------------------------------
293
+  (0.0ms) begin transaction
294
+ SQL (0.3ms) 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
+  (1.0ms) commit transaction
296
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
297
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
298
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
299
+ Migrating to CreateServers (20120622135717)
300
+  (0.0ms) begin transaction
301
+  (0.3ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
302
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120622135717"]]
303
+  (1.4ms) commit transaction
304
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
305
+  (1.3ms) CREATE TABLE "servers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "state" varchar(255), "created_at" datetime, "updated_at" datetime) 
306
+  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
307
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
308
+  (0.1ms) SELECT version FROM "schema_migrations"
309
+  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20120622135717')
310
+ --------------------------------------------------------------------
311
+ AfterCommitQueueTest: test_clear_queue_after_methods_from_are_called
312
+ --------------------------------------------------------------------
313
+  (0.1ms) begin transaction
314
+ SQL (2.6ms) 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
+  (1.0ms) commit transaction
316
+  (0.0ms) begin transaction
317
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 1 [["state", "turned_off"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
318
+  (1.0ms) commit transaction
319
+ ------------------------------------------------------
320
+ AfterCommitQueueTest: test_clears_queue_after_rollback
321
+ ------------------------------------------------------
322
+  (0.1ms) begin transaction
323
+ SQL (0.3ms) 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
+  (0.5ms) rollback transaction
325
+ --------------------------------------------------------------------------
326
+ AfterCommitQueueTest: test_clears_queue_even_when_no_callback_was_enqueued
327
+ --------------------------------------------------------------------------
328
+ ----------------------------------------------------------
329
+ AfterCommitQueueTest: test_external_observer_changes_state
330
+ ----------------------------------------------------------
331
+  (0.1ms) begin transaction
332
+ SQL (0.3ms) 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]]
333
+  (1.0ms) commit transaction
334
+  (0.1ms) begin transaction
335
+ SQL (0.3ms) 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
+  (0.9ms) commit transaction
337
+  (0.0ms) begin transaction
338
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 2 [["state", "uninstalled"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
339
+  (0.9ms) commit transaction
340
+ --------------------------------------------------------------------
341
+ AfterCommitQueueTest: test_run_blocks_after_transaction_is_committed
342
+ --------------------------------------------------------------------
343
+  (0.0ms) begin transaction
344
+ SQL (0.3ms) 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
+  (0.8ms) commit transaction
346
+  (0.0ms) begin transaction
347
+ SQL (0.3ms) UPDATE "servers" SET "state" = ?, "updated_at" = ? WHERE "servers"."id" = 3 [["state", "crashed"], ["updated_at", Mon, 05 Oct 2015 14:35:13 UTC +00:00]]
348
+  (1.2ms) commit transaction
349
+ ---------------------------------------------------------------------
350
+ AfterCommitQueueTest: test_run_methods_after_transaction_is_committed
351
+ ---------------------------------------------------------------------
352
+  (0.1ms) begin transaction
353
+ SQL (0.5ms) 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
+  (1.0ms) commit transaction
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.2.0
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-09-29 00:00:00.000000000 Z
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