rooler 0.0.3 → 0.0.4
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 +8 -8
- data/app/models/rooler/liquid_inspector.rb +1 -1
- data/lib/rooler/version.rb +1 -1
- data/test/dummy/log/test.log +373 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NWFiZmM0MzM3OWIyNDBiODcxNjMzODU4YWVkN2ZmNDA2MDY2ZjNjZQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZWViYzZhZWM0NzUzNmYxNmNlNzFmYmZiZjNlNmY4NjQ5NjZiMWUzYg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MDcxZGVjZjk1NmQ4MDJlZDUyYWQ2MzJkYmJkMTg5YmQ1MjQ2ZjkxMmVhN2Ri
|
|
10
|
+
NWQwNDViZWFhNjk5ZjkyMjQ3OTAyNTE3NTk1NWFhNzcxZTIwN2M2YzAxOTg5
|
|
11
|
+
NGNkOTk5YjdlMDAxZjgwNDk2ZGE3ZmM1YjEzYjA2NTYzYjc3YzI=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZDg2ZDUzZGQ0MTA1NGEyYmM2ODE1ZTM1YjAwZjk1YWYxMzIwMzcxZmRmNjBm
|
|
14
|
+
ODM1NWU5MzYwYzc4Yjc2ZWExYWFmNzI5Y2U3NDg3YzZmYmNlZDZkMjMyODlh
|
|
15
|
+
YTAzMGUwMmVmNDZlZDg3MTFlYzJkYmJlODg4OGNkMTViN2Y0MjM=
|
data/lib/rooler/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
|
@@ -43945,3 +43945,376 @@ RoolerTest: test_resets_resetable_deliveries
|
|
|
43945
43945
|
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
43946
43946
|
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "rooler_deliveries"
|
|
43947
43947
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
43948
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
43949
|
+
----------------------------------------
|
|
43950
|
+
Rooler::DeliveryMailerTest: test_deliver
|
|
43951
|
+
----------------------------------------
|
|
43952
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
43953
|
+
[1m[36mSQL (38.2ms)[0m [1mINSERT INTO "rooler_templates" ("body", "cc", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["body", "body is: {{rule.name}}"], ["cc", "{{rule.name}}@cc.com"], ["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["name", "template-1"], ["subject", "subject is: {{rule.name}}"], ["to", "{{rule.name}}@to.com"], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
43954
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
43955
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
43956
|
+
[1m[35mSQL (1.5ms)[0m INSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "test_name"], ["template_id", 221], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
43957
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
43958
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
43959
|
+
[1m[36mRooler::Delivery Exists (1.1ms)[0m [1mSELECT 1 AS one FROM "rooler_deliveries" WHERE ("rooler_deliveries"."rule_id" = 199 AND "rooler_deliveries"."deliverable_type" = 'Rooler::Rule' AND "rooler_deliveries"."deliverable_id" = 199) LIMIT 1[0m
|
|
43960
|
+
[1m[35mSQL (0.9ms)[0m INSERT INTO "rooler_deliveries" ("created_at", "deliverable_id", "deliverable_type", "rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["deliverable_id", 199], ["deliverable_type", "Rooler::Rule"], ["rule_id", 199], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
43961
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
43962
|
+
[1m[35mRooler::Template Load (1.4ms)[0m SELECT "rooler_templates".* FROM "rooler_templates" INNER JOIN "rooler_rules" ON "rooler_templates"."id" = "rooler_rules"."template_id" WHERE "rooler_rules"."id" = $1 ORDER BY "rooler_templates"."id" ASC LIMIT 1 [["id", 199]]
|
|
43963
|
+
Rendered /Users/yonah/Development/spree/rooler/app/views/rooler/delivery_mailer/send_mail.html.erb (60.4ms)
|
|
43964
|
+
|
|
43965
|
+
Sent mail to test_name@to.com (44.1ms)
|
|
43966
|
+
Date: Thu, 27 Mar 2014 20:30:26 +0100
|
|
43967
|
+
From: default@myapp.com
|
|
43968
|
+
To: test_name@to.com
|
|
43969
|
+
Cc: test_name@cc.com
|
|
43970
|
+
Message-ID: <53347c52b9a36_40c43fd9dd434cd8334cd@Yonahs-MacBook-Pro.local.mail>
|
|
43971
|
+
Subject: subject is: test_name
|
|
43972
|
+
Mime-Version: 1.0
|
|
43973
|
+
Content-Type: text/html;
|
|
43974
|
+
charset=UTF-8
|
|
43975
|
+
Content-Transfer-Encoding: 7bit
|
|
43976
|
+
|
|
43977
|
+
body is: test_name
|
|
43978
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
|
43979
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
43980
|
+
---------------------------------------------------------------------------------------
|
|
43981
|
+
Rooler::RuleTest: test_check_all_method_finds_objects_of_rules_class_using_klass_method
|
|
43982
|
+
---------------------------------------------------------------------------------------
|
|
43983
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
43984
|
+
[1m[35mSQL (1.2ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
43985
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
43986
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
43987
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-1"], ["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["name", "template-2"], ["subject", "subject-1"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
43988
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
43989
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
43990
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-1"], ["template_id", 222], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
43991
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
43992
|
+
[1m[35mFoo Load (0.4ms)[0m SELECT "foos".* FROM "foos" WHERE ('t')
|
|
43993
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
43994
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "body-2"], ["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["name", "template-3"], ["subject", "subject-2"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
43995
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
43996
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
43997
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["klass_finder_method", "empty_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-2"], ["template_id", 223], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
43998
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
43999
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
44000
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
44001
|
+
------------------------------------------------------------------------------
|
|
44002
|
+
Rooler::RuleTest: test_creates_deliveries_ONCE_for_objects_matching_class_rule
|
|
44003
|
+
------------------------------------------------------------------------------
|
|
44004
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44005
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44006
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44007
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44008
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-3"], ["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["name", "template-4"], ["subject", "subject-3"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44009
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44010
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44011
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-3"], ["template_id", 224], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44012
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44013
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "rooler_deliveries"
|
|
44014
|
+
[1m[36m (0.6ms)[0m [1mSELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1[0m [["rule_id", 202]]
|
|
44015
|
+
[1m[35mFoo Load (0.4ms)[0m SELECT "foos".* FROM "foos" WHERE ('t') AND (1=1)
|
|
44016
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44017
|
+
[1m[35mRooler::Delivery Exists (0.3ms)[0m SELECT 1 AS one FROM "rooler_deliveries" WHERE ("rooler_deliveries"."rule_id" = 202 AND "rooler_deliveries"."deliverable_type" = 'Foo' AND "rooler_deliveries"."deliverable_id" = 134) LIMIT 1
|
|
44018
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_deliveries" ("created_at", "deliverable_id", "deliverable_type", "rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["deliverable_id", 134], ["deliverable_type", "Foo"], ["rule_id", 202], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44019
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44020
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "rooler_rules" SET "last_checked_at" = '2014-03-27 19:30:26.854917' WHERE "rooler_rules"."id" = 202[0m
|
|
44021
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "rooler_deliveries"
|
|
44022
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "rooler_deliveries"[0m
|
|
44023
|
+
[1m[35m (0.2ms)[0m SELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 [["rule_id", 202]]
|
|
44024
|
+
[1m[36mFoo Load (0.3ms)[0m [1mSELECT "foos".* FROM "foos" WHERE ('t') AND ("foos"."id" NOT IN (134))[0m
|
|
44025
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "rooler_rules" SET "last_checked_at" = '2014-03-27 19:30:26.859140' WHERE "rooler_rules"."id" = 202
|
|
44026
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "rooler_deliveries"[0m
|
|
44027
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
44028
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
44029
|
+
--------------------------------------------------------------------------------------------------------
|
|
44030
|
+
Rooler::RuleTest: test_find_by_klass_method_finds_objects_of_rules_class_using_klass_method_with_params.
|
|
44031
|
+
--------------------------------------------------------------------------------------------------------
|
|
44032
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44033
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44034
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44035
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44036
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44037
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44038
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44039
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-4"], ["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["name", "template-5"], ["subject", "subject-4"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44040
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44041
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44042
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["klass_finder_method", "take"], ["klass_name", "Foo"], ["method_params", "--- 1\n...\n"], ["name", "rule-4"], ["template_id", 225], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44043
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44044
|
+
[1m[35mFoo Load (0.3ms)[0m SELECT "foos".* FROM "foos" LIMIT 1
|
|
44045
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
44046
|
+
[1m[35m (0.2ms)[0m BEGIN
|
|
44047
|
+
--------------------------------------------------------------------------------------------------------------------------------------
|
|
44048
|
+
Rooler::RuleTest: test_find_undelivered_by_klass_finds_unprocessed_objects_using_klass_method._works_with_both_AR_relations_and_arrays
|
|
44049
|
+
--------------------------------------------------------------------------------------------------------------------------------------
|
|
44050
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44051
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44052
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44053
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44054
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-5"], ["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["name", "template-6"], ["subject", "subject-5"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44055
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44056
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44057
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-5"], ["template_id", 226], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44058
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44059
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44060
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-6"], ["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["name", "template-7"], ["subject", "subject-6"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44061
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44062
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44063
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["klass_finder_method", "array_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-6"], ["template_id", 227], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44064
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44065
|
+
[1m[35m (0.4ms)[0m SELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 [["rule_id", 204]]
|
|
44066
|
+
[1m[36mFoo Load (0.3ms)[0m [1mSELECT "foos".* FROM "foos" WHERE ('t') AND (1=1)[0m
|
|
44067
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44068
|
+
[1m[36mRooler::Delivery Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "rooler_deliveries" WHERE ("rooler_deliveries"."rule_id" = 204 AND "rooler_deliveries"."deliverable_type" = 'Foo' AND "rooler_deliveries"."deliverable_id" = 137) LIMIT 1[0m
|
|
44069
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "rooler_deliveries" ("created_at", "deliverable_id", "deliverable_type", "rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["deliverable_id", 137], ["deliverable_type", "Foo"], ["rule_id", 204], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44070
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44071
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "rooler_rules" SET "last_checked_at" = '2014-03-27 19:30:26.941212' WHERE "rooler_rules"."id" = 204
|
|
44072
|
+
[1m[36mFoo Load (0.3ms)[0m [1mSELECT "foos".* FROM "foos" WHERE ('t')[0m
|
|
44073
|
+
[1m[35m (0.4ms)[0m SELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 [["rule_id", 205]]
|
|
44074
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44075
|
+
[1m[35mRooler::Delivery Exists (0.3ms)[0m SELECT 1 AS one FROM "rooler_deliveries" WHERE ("rooler_deliveries"."rule_id" = 205 AND "rooler_deliveries"."deliverable_type" = 'Foo' AND "rooler_deliveries"."deliverable_id" = 137) LIMIT 1
|
|
44076
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "rooler_deliveries" ("created_at", "deliverable_id", "deliverable_type", "rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["deliverable_id", 137], ["deliverable_type", "Foo"], ["rule_id", 205], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44077
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44078
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "rooler_rules" SET "last_checked_at" = '2014-03-27 19:30:26.949974' WHERE "rooler_rules"."id" = 205[0m
|
|
44079
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44080
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44081
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44082
|
+
[1m[36mRooler::Rule Load (0.5ms)[0m [1mSELECT "rooler_rules".* FROM "rooler_rules" WHERE "rooler_rules"."id" = $1 LIMIT 1[0m [["id", 204]]
|
|
44083
|
+
[1m[35m (0.3ms)[0m SELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 [["rule_id", 204]]
|
|
44084
|
+
[1m[36mFoo Load (0.3ms)[0m [1mSELECT "foos".* FROM "foos" WHERE ('t') AND ("foos"."id" NOT IN (137))[0m
|
|
44085
|
+
[1m[35mRooler::Rule Load (0.3ms)[0m SELECT "rooler_rules".* FROM "rooler_rules" WHERE "rooler_rules"."id" = $1 LIMIT 1 [["id", 205]]
|
|
44086
|
+
[1m[36mFoo Load (0.2ms)[0m [1mSELECT "foos".* FROM "foos" WHERE ('t')[0m
|
|
44087
|
+
[1m[35m (0.3ms)[0m SELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 [["rule_id", 205]]
|
|
44088
|
+
[1m[36m (0.3ms)[0m [1mSELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1[0m [["rule_id", 205]]
|
|
44089
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
44090
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
44091
|
+
----------------------------------------------------------------------------------------------------
|
|
44092
|
+
Rooler::RuleTest: test_finds_delivered_objects_where_the_condition_no_longer_applies_and_resets_them
|
|
44093
|
+
----------------------------------------------------------------------------------------------------
|
|
44094
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44095
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "foos" ("active", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["active", true], ["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44096
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44097
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44098
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "body-7"], ["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["name", "template-8"], ["subject", "subject-7"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44099
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44100
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44101
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["klass_finder_method", "active_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-7"], ["template_id", 228], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44102
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44103
|
+
[1m[36m (0.2ms)[0m [1mSELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1[0m [["rule_id", 206]]
|
|
44104
|
+
[1m[35mFoo Load (0.3ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."active" = 't' AND (1=1)
|
|
44105
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44106
|
+
[1m[35mRooler::Delivery Exists (0.3ms)[0m SELECT 1 AS one FROM "rooler_deliveries" WHERE ("rooler_deliveries"."rule_id" = 206 AND "rooler_deliveries"."deliverable_type" = 'Foo' AND "rooler_deliveries"."deliverable_id" = 139) LIMIT 1
|
|
44107
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_deliveries" ("created_at", "deliverable_id", "deliverable_type", "rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00], ["deliverable_id", 139], ["deliverable_type", "Foo"], ["rule_id", 206], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44108
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44109
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "rooler_rules" SET "last_checked_at" = '2014-03-27 19:30:26.980215' WHERE "rooler_rules"."id" = 206[0m
|
|
44110
|
+
[1m[35m (0.2ms)[0m SELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 [["rule_id", 206]]
|
|
44111
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "foos" WHERE "foos"."active" = 't' AND ("foos"."id" NOT IN (139))[0m
|
|
44112
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "rooler_deliveries"
|
|
44113
|
+
[1m[36m (0.2ms)[0m [1mSELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1[0m [["rule_id", 206]]
|
|
44114
|
+
[1m[35mFoo Load (0.2ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."active" = 't' AND ("foos"."id" NOT IN (139))
|
|
44115
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "rooler_rules" SET "last_checked_at" = '2014-03-27 19:30:26.985510' WHERE "rooler_rules"."id" = 206[0m
|
|
44116
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "rooler_deliveries"
|
|
44117
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44118
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "foos" SET "active" = $1, "updated_at" = $2 WHERE "foos"."id" = 139 [["active", false], ["updated_at", Thu, 27 Mar 2014 19:30:26 UTC +00:00]]
|
|
44119
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44120
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "rooler_deliveries"
|
|
44121
|
+
[1m[36m (0.2ms)[0m [1mSELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1[0m [["rule_id", 206]]
|
|
44122
|
+
[1m[35mFoo Load (0.4ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."active" = 't'
|
|
44123
|
+
[1m[36mRooler::Delivery Load (0.5ms)[0m [1mSELECT "rooler_deliveries".* FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 AND "rooler_deliveries"."deliverable_id" IN (139)[0m [["rule_id", 206]]
|
|
44124
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44125
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "rooler_deliveries" WHERE "rooler_deliveries"."id" = $1[0m [["id", 104]]
|
|
44126
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44127
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "rooler_deliveries"[0m
|
|
44128
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44129
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "foos" SET "active" = $1, "updated_at" = $2 WHERE "foos"."id" = 139[0m [["active", true], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44130
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44131
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "rooler_deliveries"[0m
|
|
44132
|
+
[1m[35m (0.3ms)[0m SELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 [["rule_id", 206]]
|
|
44133
|
+
[1m[36mFoo Load (0.4ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."active" = 't' AND (1=1)[0m
|
|
44134
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44135
|
+
[1m[36mRooler::Delivery Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "rooler_deliveries" WHERE ("rooler_deliveries"."rule_id" = 206 AND "rooler_deliveries"."deliverable_type" = 'Foo' AND "rooler_deliveries"."deliverable_id" = 139) LIMIT 1[0m
|
|
44136
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_deliveries" ("created_at", "deliverable_id", "deliverable_type", "rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["deliverable_id", 139], ["deliverable_type", "Foo"], ["rule_id", 206], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44137
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44138
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "rooler_rules" SET "last_checked_at" = '2014-03-27 19:30:27.018332' WHERE "rooler_rules"."id" = 206
|
|
44139
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "rooler_deliveries"[0m
|
|
44140
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
|
44141
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
44142
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
44143
|
+
Rooler::RuleTest: test_scope_ready_to_be_checked_returns_rules_where_last_checked_at_is_<_than_check_frequency.ago_or_nil
|
|
44144
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
44145
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44146
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-8"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-9"], ["subject", "subject-8"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44147
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44148
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44149
|
+
[1m[35mSQL (1.0ms)[0m INSERT INTO "rooler_rules" ("check_frequency", "created_at", "klass_finder_method", "klass_name", "last_checked_at", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["check_frequency", 600], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["last_checked_at", Thu, 27 Mar 2014 19:21:27 UTC +00:00], ["method_params", nil], ["name", "rule-8"], ["template_id", 229], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44150
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44151
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44152
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-9"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-10"], ["subject", "subject-9"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44153
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44154
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44155
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "rooler_rules" ("check_frequency", "created_at", "klass_finder_method", "klass_name", "last_checked_at", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["check_frequency", 600], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["last_checked_at", Thu, 27 Mar 2014 19:19:27 UTC +00:00], ["method_params", nil], ["name", "rule-9"], ["template_id", 230], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44156
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44157
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44158
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-10"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-11"], ["subject", "subject-10"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44159
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44160
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44161
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "rooler_rules" ("check_frequency", "created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["check_frequency", 600], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-10"], ["template_id", 231], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44162
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44163
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44164
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-11"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-12"], ["subject", "subject-11"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44165
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44166
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44167
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-11"], ["template_id", 232], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44168
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44169
|
+
[1m[35mRooler::Rule Load (0.7ms)[0m SELECT "rooler_rules".* FROM "rooler_rules" WHERE (last_checked_at IS NULL OR check_frequency IS NULL OR (last_checked_at + check_frequency*'1 second'::interval) < now())
|
|
44170
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
44171
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
44172
|
+
---------------------------------------------------------------------------------------
|
|
44173
|
+
Rooler::RuleTest: test_won't_let_you_create_a_rule_with_an_invalid_class_or_method_name
|
|
44174
|
+
---------------------------------------------------------------------------------------
|
|
44175
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44176
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "body-12"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-13"], ["subject", "subject-12"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44177
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44178
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44179
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
|
44180
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44181
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-13"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-14"], ["subject", "subject-13"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44182
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44183
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44184
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
|
44185
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
|
44186
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
44187
|
+
--------------------------------------------------------------------------
|
|
44188
|
+
Rooler::TemplateTest: test_finds_an_object_from_one_of_the_templates_rules
|
|
44189
|
+
--------------------------------------------------------------------------
|
|
44190
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44191
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "body-14"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-15"], ["subject", "subject-14"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44192
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44193
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44194
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-14"], ["template_id", 235], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44195
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44196
|
+
[1m[36mRooler::Rule Load (0.6ms)[0m [1mSELECT "rooler_rules".* FROM "rooler_rules" WHERE "rooler_rules"."template_id" = $1[0m [["template_id", 235]]
|
|
44197
|
+
[1m[35mFoo Load (0.3ms)[0m SELECT "foos".* FROM "foos" WHERE ('t') ORDER BY "foos"."id" ASC LIMIT 1
|
|
44198
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44199
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44200
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44201
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44202
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44203
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44204
|
+
[1m[36mFoo Load (0.5ms)[0m [1mSELECT "foos".* FROM "foos" WHERE ('t') ORDER BY "foos"."id" ASC LIMIT 1[0m
|
|
44205
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
44206
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
|
44207
|
+
----------------------------------------------------------------------------------
|
|
44208
|
+
Rooler::TemplateTest: test_returns_a_tree_of_liquid_methods_from_the_sample_object
|
|
44209
|
+
----------------------------------------------------------------------------------
|
|
44210
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44211
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-15"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-16"], ["subject", "subject-15"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44212
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44213
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44214
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-15"], ["template_id", 236], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44215
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44216
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44217
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44218
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44219
|
+
[1m[36mRooler::Rule Load (0.4ms)[0m [1mSELECT "rooler_rules".* FROM "rooler_rules" WHERE "rooler_rules"."template_id" = $1[0m [["template_id", 236]]
|
|
44220
|
+
[1m[35mFoo Load (0.3ms)[0m SELECT "foos".* FROM "foos" WHERE ('t') ORDER BY "foos"."id" ASC LIMIT 1
|
|
44221
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
44222
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
44223
|
+
----------------------------------------
|
|
44224
|
+
RoolerTest: test_delivers_pending_emails
|
|
44225
|
+
----------------------------------------
|
|
44226
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44227
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "body-16"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-17"], ["subject", "subject-16"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44228
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44229
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44230
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-16"], ["template_id", 237], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44231
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44232
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44233
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "body-17"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-18"], ["subject", "subject-17"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44234
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44235
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44236
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-17"], ["template_id", 238], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44237
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44238
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44239
|
+
[1m[35mRooler::Delivery Exists (0.4ms)[0m SELECT 1 AS one FROM "rooler_deliveries" WHERE ("rooler_deliveries"."rule_id" = 213 AND "rooler_deliveries"."deliverable_type" = 'Rooler::Rule' AND "rooler_deliveries"."deliverable_id" = 214) LIMIT 1
|
|
44240
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_deliveries" ("created_at", "deliverable_id", "deliverable_type", "rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["deliverable_id", 214], ["deliverable_type", "Rooler::Rule"], ["rule_id", 213], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44241
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44242
|
+
[1m[36mRooler::Delivery Load (0.3ms)[0m [1mSELECT "rooler_deliveries".* FROM "rooler_deliveries" WHERE "rooler_deliveries"."delivered_at" IS NULL[0m
|
|
44243
|
+
[1m[35mRooler::Template Load (0.5ms)[0m SELECT "rooler_templates".* FROM "rooler_templates" INNER JOIN "rooler_rules" ON "rooler_templates"."id" = "rooler_rules"."template_id" WHERE "rooler_rules"."id" = $1 ORDER BY "rooler_templates"."id" ASC LIMIT 1 [["id", 213]]
|
|
44244
|
+
[1m[36mRooler::Rule Load (0.6ms)[0m [1mSELECT "rooler_rules".* FROM "rooler_rules" WHERE "rooler_rules"."id" = $1 ORDER BY "rooler_rules"."id" ASC LIMIT 1[0m [["id", 214]]
|
|
44245
|
+
Rendered /Users/yonah/Development/spree/rooler/app/views/rooler/delivery_mailer/send_mail.html.erb (0.2ms)
|
|
44246
|
+
|
|
44247
|
+
Sent mail to test@email.com (19.7ms)
|
|
44248
|
+
Date: Thu, 27 Mar 2014 20:30:27 +0100
|
|
44249
|
+
From: default@myapp.com
|
|
44250
|
+
To: test@email.com
|
|
44251
|
+
Message-ID: <53347c5348267_40c43fd9dd434cd833565@Yonahs-MacBook-Pro.local.mail>
|
|
44252
|
+
Subject: subject-16
|
|
44253
|
+
Mime-Version: 1.0
|
|
44254
|
+
Content-Type: text/html;
|
|
44255
|
+
charset=UTF-8
|
|
44256
|
+
Content-Transfer-Encoding: 7bit
|
|
44257
|
+
|
|
44258
|
+
body-16
|
|
44259
|
+
[1m[35mSQL (0.4ms)[0m UPDATE "rooler_deliveries" SET "delivered_at" = '2014-03-27 19:30:27.313532' WHERE "rooler_deliveries"."id" = 106
|
|
44260
|
+
[1m[36mRooler::Delivery Load (0.5ms)[0m [1mSELECT "rooler_deliveries".* FROM "rooler_deliveries" WHERE "rooler_deliveries"."id" = $1 LIMIT 1[0m [["id", 106]]
|
|
44261
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
|
44262
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
|
44263
|
+
------------------------------------------
|
|
44264
|
+
RoolerTest: test_processes_scheduled_rules
|
|
44265
|
+
------------------------------------------
|
|
44266
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44267
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "foos" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44268
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44269
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44270
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["body", "body-18"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-19"], ["subject", "subject-18"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44271
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44272
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44273
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "rooler_rules" ("check_frequency", "created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["check_frequency", 60], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_record_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-18"], ["template_id", 239], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44274
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44275
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "rooler_deliveries"[0m
|
|
44276
|
+
[1m[35mRooler::Rule Load (0.4ms)[0m SELECT "rooler_rules".* FROM "rooler_rules" WHERE (last_checked_at IS NULL OR check_frequency IS NULL OR (last_checked_at + check_frequency*'1 second'::interval) < now())
|
|
44277
|
+
[1m[36m (0.2ms)[0m [1mSELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1[0m [["rule_id", 215]]
|
|
44278
|
+
[1m[35mFoo Load (0.3ms)[0m SELECT "foos".* FROM "foos" WHERE ('t') AND (1=1)
|
|
44279
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44280
|
+
[1m[35mRooler::Delivery Exists (0.4ms)[0m SELECT 1 AS one FROM "rooler_deliveries" WHERE ("rooler_deliveries"."rule_id" = 215 AND "rooler_deliveries"."deliverable_type" = 'Foo' AND "rooler_deliveries"."deliverable_id" = 143) LIMIT 1
|
|
44281
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_deliveries" ("created_at", "deliverable_id", "deliverable_type", "rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["deliverable_id", 143], ["deliverable_type", "Foo"], ["rule_id", 215], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44282
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44283
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "rooler_rules" SET "last_checked_at" = '2014-03-27 19:30:27.342658' WHERE "rooler_rules"."id" = 215[0m
|
|
44284
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "rooler_deliveries"
|
|
44285
|
+
[1m[36mRooler::Delivery Load (0.3ms)[0m [1mSELECT "rooler_deliveries".* FROM "rooler_deliveries" ORDER BY "rooler_deliveries"."id" DESC LIMIT 1[0m
|
|
44286
|
+
[1m[35mFoo Load (0.6ms)[0m SELECT "foos".* FROM "foos" WHERE "foos"."id" = $1 ORDER BY "foos"."id" ASC LIMIT 1 [["id", 143]]
|
|
44287
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
|
44288
|
+
[1m[35m (0.1ms)[0m BEGIN
|
|
44289
|
+
--------------------------------------------
|
|
44290
|
+
RoolerTest: test_resets_resetable_deliveries
|
|
44291
|
+
--------------------------------------------
|
|
44292
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44293
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "foos" ("active", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["active", true], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44294
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44295
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
|
44296
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "rooler_templates" ("body", "created_at", "name", "subject", "to", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["body", "body-19"], ["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["name", "template-20"], ["subject", "subject-19"], ["to", "test@email.com"], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44297
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
44298
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44299
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "rooler_rules" ("created_at", "klass_finder_method", "klass_name", "method_params", "name", "template_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["klass_finder_method", "active_finder"], ["klass_name", "Foo"], ["method_params", nil], ["name", "rule-19"], ["template_id", 240], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44300
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44301
|
+
[1m[35m (0.3ms)[0m SELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 [["rule_id", 216]]
|
|
44302
|
+
[1m[36mFoo Load (0.3ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."active" = 't' AND (1=1)[0m
|
|
44303
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
44304
|
+
[1m[36mRooler::Delivery Exists (0.3ms)[0m [1mSELECT 1 AS one FROM "rooler_deliveries" WHERE ("rooler_deliveries"."rule_id" = 216 AND "rooler_deliveries"."deliverable_type" = 'Foo' AND "rooler_deliveries"."deliverable_id" = 144) LIMIT 1[0m
|
|
44305
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "rooler_deliveries" ("created_at", "deliverable_id", "deliverable_type", "rule_id", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00], ["deliverable_id", 144], ["deliverable_type", "Foo"], ["rule_id", 216], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44306
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44307
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "rooler_rules" SET "last_checked_at" = '2014-03-27 19:30:27.366810' WHERE "rooler_rules"."id" = 216
|
|
44308
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44309
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "foos" SET "active" = $1, "updated_at" = $2 WHERE "foos"."id" = 144 [["active", false], ["updated_at", Thu, 27 Mar 2014 19:30:27 UTC +00:00]]
|
|
44310
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44311
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "rooler_deliveries"
|
|
44312
|
+
[1m[36mRooler::Rule Load (0.4ms)[0m [1mSELECT "rooler_rules".* FROM "rooler_rules"[0m
|
|
44313
|
+
[1m[35m (0.3ms)[0m SELECT "rooler_deliveries"."deliverable_id" FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 [["rule_id", 216]]
|
|
44314
|
+
[1m[36mFoo Load (0.4ms)[0m [1mSELECT "foos".* FROM "foos" WHERE "foos"."active" = 't'[0m
|
|
44315
|
+
[1m[35mRooler::Delivery Load (0.6ms)[0m SELECT "rooler_deliveries".* FROM "rooler_deliveries" WHERE "rooler_deliveries"."rule_id" = $1 AND "rooler_deliveries"."deliverable_id" IN (144) [["rule_id", 216]]
|
|
44316
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
44317
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "rooler_deliveries" WHERE "rooler_deliveries"."id" = $1 [["id", 108]]
|
|
44318
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
44319
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "rooler_deliveries"
|
|
44320
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|