witch_doctor 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/witch_doctor/antivirus_concern.rb +7 -1
- data/lib/witch_doctor/version.rb +1 -1
- data/spec/dummy/log/test.log +622 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b90d201e964e217789d40cb46ece7c0cac3e62e6
|
4
|
+
data.tar.gz: 3fb22f847c9fe7a42e8d2e7d0e89aab3c912b7d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af212a673286818932bbd24897c9de1cfe53443923fd64ae07c470492d278b35fc7b0265cd9eed716a9521fc664783a5baf66abe538aaad498609d875b369216
|
7
|
+
data.tar.gz: 0000d5200b7c430f40432b66061c013e628197bace0d721699f8ae206ee81aee2cdef64fce786a66abcdd78d0ba157571b77367bf72675d2e5a28721afe7eb3a
|
@@ -14,7 +14,7 @@ module WitchDoctor
|
|
14
14
|
def schedule_virus_scan(options)
|
15
15
|
mount_point = options.fetch(:on)
|
16
16
|
|
17
|
-
after_save "schedule_#{mount_point}_virus_scan", if:
|
17
|
+
after_save "schedule_#{mount_point}_virus_scan", if: "schedule_#{mount_point}_virus_scan?"
|
18
18
|
after_destroy "unschedule_#{mount_point}_virus_scan"
|
19
19
|
|
20
20
|
define_method("unschedule_#{mount_point}_virus_scan") do
|
@@ -24,6 +24,12 @@ module WitchDoctor
|
|
24
24
|
define_method("schedule_#{mount_point}_virus_scan") do
|
25
25
|
virus_scans.create! do |vs|
|
26
26
|
vs.mount_point = mount_point.to_s
|
27
|
+
# This is especially useful for integration testing, since your application may
|
28
|
+
# make assumptions (e.g. in the views) about the existence of a virus scan
|
29
|
+
unless virus_scan_scheduling_on?
|
30
|
+
vs.scan_result = 'Clean'
|
31
|
+
vs.scanned_at = Time.now
|
32
|
+
end
|
27
33
|
end
|
28
34
|
end
|
29
35
|
|
data/lib/witch_doctor/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -620,3 +620,625 @@ Completed 406 Not Acceptable in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
|
620
620
|
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
621
621
|
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
622
622
|
[1m[35m (0.1ms)[0m rollback transaction
|
623
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
624
|
+
[1m[35m (3.5ms)[0m DELETE FROM "documents";
|
625
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
626
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
627
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
628
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
629
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
630
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
631
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
632
|
+
[1m[35m (0.3ms)[0m DELETE FROM "documents";
|
633
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
634
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
635
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
636
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
637
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
638
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
639
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
640
|
+
[1m[35m (0.3ms)[0m DELETE FROM "documents";
|
641
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
642
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
643
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
644
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
645
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
646
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
647
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
648
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
649
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
650
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
651
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
652
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
653
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
654
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
655
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
656
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
657
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
658
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
659
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
660
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
661
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
662
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
663
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
664
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
665
|
+
[1m[36mSQL (3.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
666
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
667
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
668
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
669
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
670
|
+
[1m[35mVirusScan Load (0.2ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
671
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
672
|
+
Parameters: {"id"=>"1"}
|
673
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
674
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
675
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
676
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
677
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
678
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
679
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
680
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
681
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
682
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
683
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
684
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
685
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
686
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
687
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
688
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
689
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
690
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
691
|
+
Parameters: {"token"=>"999", "id"=>"1"}
|
692
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
693
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
694
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
695
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
696
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
697
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
698
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
699
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
700
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
701
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
702
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
703
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
704
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
705
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
706
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
707
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
708
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
709
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
710
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
711
|
+
[1m[36mWitchDoctor::VirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1[0m [["id", "1"]]
|
712
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
713
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "virus_scans" SET "scan_result" = ?, "updated_at" = ?, "scanned_at" = ? WHERE "virus_scans"."id" = 1[0m [["scan_result", "Clean"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["scanned_at", Fri, 04 Mar 2016 00:00:00 UTC +00:00]]
|
714
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
715
|
+
[1m[36mWitchDoctor::VirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
716
|
+
[1m[35mDocument Load (0.1ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
|
717
|
+
Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.6ms)
|
718
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
719
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
720
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
721
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
722
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
723
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
724
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
725
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
726
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
727
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
728
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
729
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
730
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
731
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
732
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
733
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
734
|
+
Processing by WitchDoctor::VirusScansController#update as HTML
|
735
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Clean"}, "id"=>"1"}
|
736
|
+
Completed 406 Not Acceptable in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
737
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
738
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
739
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
740
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
741
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
742
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
743
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
744
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
745
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
746
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
747
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
748
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
749
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
750
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
751
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
752
|
+
[1m[35mVirusScan Load (0.0ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
753
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
754
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{"scan_result"=>"Wazaaap"}, "id"=>"1"}
|
755
|
+
[1m[36mWitchDoctor::VirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1[0m [["id", "1"]]
|
756
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
757
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
758
|
+
Completed 400 Bad Request in 7ms (Views: 0.2ms | ActiveRecord: 0.2ms)
|
759
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1 [["id", 1]]
|
760
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
761
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
762
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
763
|
+
[1m[35m (0.0ms)[0m DELETE FROM "virus_scans";
|
764
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
765
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
766
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
767
|
+
[1m[35m (0.1ms)[0m begin transaction
|
768
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
769
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
770
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
771
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
772
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
773
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
774
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
775
|
+
Processing by WitchDoctor::VirusScansController#update as JSON
|
776
|
+
Parameters: {"token"=>"1234", "virus_scan"=>{}, "id"=>"1"}
|
777
|
+
[1m[35mWitchDoctor::VirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL AND "virus_scans"."id" = ? LIMIT 1 [["id", "1"]]
|
778
|
+
Completed 406 Not Acceptable in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
|
779
|
+
[1m[36mVirusScan Load (0.0ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."id" = ? LIMIT 1[0m [["id", 1]]
|
780
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
781
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
782
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
783
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
784
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
785
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
786
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
787
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
788
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
789
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
790
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
791
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
792
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
793
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
794
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
795
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
796
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
797
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
798
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
799
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
800
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
801
|
+
Completed 401 Unauthorized in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
802
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
803
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
804
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
805
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
806
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
807
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
808
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
809
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
810
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
811
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
812
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
813
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
814
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
815
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
816
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
817
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
818
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
819
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
820
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
821
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
822
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
823
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
824
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
825
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
826
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
827
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
828
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
829
|
+
Parameters: {"token"=>"1234"}
|
830
|
+
[1m[35mWitchDoctor::VirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 10
|
831
|
+
[1m[36mDocument Load (0.0ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", 1]]
|
832
|
+
[1m[35mDocument Load (0.0ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 3]]
|
833
|
+
Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
|
834
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
835
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
836
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
837
|
+
[1m[35m (0.0ms)[0m DELETE FROM "virus_scans";
|
838
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
839
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
840
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
841
|
+
[1m[35m (0.0ms)[0m begin transaction
|
842
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
843
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
844
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
845
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
846
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
847
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
848
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
849
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
850
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
851
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
852
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
853
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
854
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
855
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
856
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
857
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
858
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
859
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
860
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
861
|
+
Parameters: {"token"=>"1234"}
|
862
|
+
Completed 406 Not Acceptable in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
863
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
864
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
865
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
866
|
+
[1m[35m (0.0ms)[0m DELETE FROM "virus_scans";
|
867
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
868
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
869
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
870
|
+
[1m[35m (0.1ms)[0m begin transaction
|
871
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
872
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
873
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
874
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
875
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
876
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
877
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
878
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
879
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
880
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
881
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
882
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
883
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
884
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
885
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
886
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
887
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
888
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
889
|
+
Processing by WitchDoctor::VirusScansController#index as HTML
|
890
|
+
Parameters: {"token"=>"1234"}
|
891
|
+
Completed 406 Not Acceptable in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
892
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
893
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
894
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
895
|
+
[1m[35m (0.1ms)[0m DELETE FROM "virus_scans";
|
896
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
897
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
898
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
899
|
+
[1m[35m (0.1ms)[0m begin transaction
|
900
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
901
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
902
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
903
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
904
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
905
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
906
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
907
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
908
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
909
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
910
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
911
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
912
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
913
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
914
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
915
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
916
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 3], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
917
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
918
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
919
|
+
[1m[36mWitchDoctor::VirusScan Load (0.3ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL LIMIT 10[0m
|
920
|
+
[1m[35mDocument Load (0.2ms)[0m SELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1 [["id", 1]]
|
921
|
+
[1m[36mDocument Load (0.2ms)[0m [1mSELECT "documents".* FROM "documents" WHERE "documents"."id" = ? LIMIT 1[0m [["id", 3]]
|
922
|
+
Completed 200 OK in 6ms (Views: 0.5ms | ActiveRecord: 0.7ms)
|
923
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
924
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
925
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
926
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
927
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
928
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
929
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
930
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
931
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
932
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
933
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
934
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
935
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
936
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
937
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
938
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
939
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
940
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
941
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
942
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
943
|
+
Processing by WitchDoctor::VirusScansController#index as JSON
|
944
|
+
Parameters: {"token"=>999}
|
945
|
+
Completed 403 Forbidden in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
946
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
947
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
948
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
949
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
950
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
951
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
952
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
953
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
954
|
+
Unpermitted parameters: resource_type, resource_id, mount_point, scanned_at
|
955
|
+
[1m[35m (0.4ms)[0m DELETE FROM "documents";
|
956
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
957
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
958
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
959
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
960
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
961
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
962
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
963
|
+
Unpermitted parameters: resource_type, resource_id, mount_point, scanned_at
|
964
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
965
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
966
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
967
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
968
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
969
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
970
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
971
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
972
|
+
[1m[35m (0.3ms)[0m DELETE FROM "documents";
|
973
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
974
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
975
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
976
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
977
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
978
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
979
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
980
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
981
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
982
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
983
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
984
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
985
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
986
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
987
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
988
|
+
[1m[35m (0.3ms)[0m DELETE FROM "documents";
|
989
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
990
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
991
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
992
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
993
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
994
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
995
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
996
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
997
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
998
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
999
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1000
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1001
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1002
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1003
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1004
|
+
[1m[35m (0.3ms)[0m DELETE FROM "documents";
|
1005
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1006
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1007
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1008
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1009
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1010
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1011
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1012
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1013
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1014
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1015
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1016
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1017
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1018
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1019
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1020
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1021
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1022
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1023
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1024
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1025
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1026
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1027
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1028
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1029
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1030
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1031
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1032
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1033
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1034
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1035
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1036
|
+
[1m[35m (0.3ms)[0m DELETE FROM "documents";
|
1037
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1038
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1039
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1040
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1041
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1042
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1043
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1044
|
+
[1m[35m (0.4ms)[0m DELETE FROM "documents";
|
1045
|
+
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1046
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1047
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1048
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1049
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1050
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1051
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1052
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1053
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1054
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1055
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1056
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1057
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1058
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1059
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1060
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1061
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1062
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1063
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1064
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1065
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1066
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1067
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1068
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1069
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1070
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1071
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1072
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1073
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1074
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1075
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1076
|
+
[1m[35m (0.3ms)[0m DELETE FROM "documents";
|
1077
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1078
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1079
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1080
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1081
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1082
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1083
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1084
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1085
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1086
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1087
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1088
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1089
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1090
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1091
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1092
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1093
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1094
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1095
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1096
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1097
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1098
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1099
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1100
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1101
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1102
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1103
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1104
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1105
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1106
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1108
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1109
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1110
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1111
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1112
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1113
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1114
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1115
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1116
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1117
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1118
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1119
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1120
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1121
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1122
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1123
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1124
|
+
[1m[35m (0.2ms)[0m DELETE FROM "documents";
|
1125
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1126
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1127
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1128
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1129
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1130
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1132
|
+
[1m[35m (0.3ms)[0m DELETE FROM "documents";
|
1133
|
+
[1m[36m (0.2ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1134
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1135
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1136
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1137
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1138
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
1139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1140
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1141
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1142
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1143
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1144
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "virus_scans"
|
1145
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1146
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "documents" WHERE "documents"."id" = ? [["id", 1]]
|
1147
|
+
[1m[36mVirusScan Load (0.2ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."resource_id" = ? AND "virus_scans"."resource_type" = ? AND "virus_scans"."mount_point" = 'attachment'[0m [["resource_id", 1], ["resource_type", "Document"]]
|
1148
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "virus_scans" WHERE "virus_scans"."id" = ? [["id", 1]]
|
1149
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1150
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "virus_scans"
|
1151
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
1152
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1153
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1154
|
+
[1m[35m (0.0ms)[0m DELETE FROM "virus_scans";
|
1155
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1156
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1157
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1158
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1159
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM "documents";[0m
|
1160
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1161
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1162
|
+
[1m[35m (0.1ms)[0m DELETE FROM "virus_scans";
|
1163
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1164
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1165
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1166
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1167
|
+
[1m[36m (0.2ms)[0m [1mDELETE FROM "documents";[0m
|
1168
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1169
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1170
|
+
[1m[35m (0.1ms)[0m DELETE FROM "virus_scans";
|
1171
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1172
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1173
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1174
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1175
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1176
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1177
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1178
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1179
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1180
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1181
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1182
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1183
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "virus_scans" SET "scan_result" = ?, "updated_at" = ?, "scanned_at" = ? WHERE "virus_scans"."id" = 2[0m [["scan_result", "Clean"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["scanned_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1184
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1185
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM "documents";[0m
|
1186
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1187
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'documents';[0m
|
1188
|
+
[1m[35m (0.0ms)[0m DELETE FROM "virus_scans";
|
1189
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1190
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'virus_scans';
|
1191
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1192
|
+
[1m[35m (0.1ms)[0m begin transaction
|
1193
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1194
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1195
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1196
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1197
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1198
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1199
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1200
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1202
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
1203
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1204
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1205
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1206
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1207
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1208
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1209
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1210
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1211
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1212
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1213
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1214
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1215
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "scan_result", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["scan_result", "Clean"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1216
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1217
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1218
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?) [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1219
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1220
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1221
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1222
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 2], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1223
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1224
|
+
[1m[35mVirusScan Load (0.1ms)[0m SELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL
|
1225
|
+
[1m[36mVirusScan Load (0.1ms)[0m [1mSELECT "virus_scans".* FROM "virus_scans" WHERE "virus_scans"."scan_result" IS NULL[0m
|
1226
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
1227
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1228
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1229
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1230
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1231
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1232
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1233
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1234
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1235
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "documents" ("attachment", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["attachment", "blank_pdf.pdf"], ["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1236
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "virus_scans" ("created_at", "mount_point", "resource_id", "resource_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00], ["mount_point", "attachment"], ["resource_id", 1], ["resource_type", "Document"], ["updated_at", Fri, 04 Mar 2016 17:11:30 UTC +00:00]]
|
1237
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1238
|
+
[1m[35m (0.1ms)[0m DELETE FROM "documents";
|
1239
|
+
[1m[36m (0.1ms)[0m [1mSELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';[0m
|
1240
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'documents';
|
1241
|
+
[1m[36m (0.0ms)[0m [1mDELETE FROM "virus_scans";[0m
|
1242
|
+
[1m[35m (0.1ms)[0m SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
|
1243
|
+
[1m[36m (0.1ms)[0m [1mDELETE FROM sqlite_sequence where name = 'virus_scans';[0m
|
1244
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: witch_doctor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Valent
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|