attachs 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/attachs/active_record/base.rb +3 -3
- data/lib/attachs/storages/local.rb +4 -4
- data/lib/attachs/types/file.rb +12 -2
- data/lib/attachs/types/image.rb +1 -1
- data/lib/attachs/version.rb +1 -1
- data/lib/tasks/attachs_tasks.rake +1 -2
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +769 -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: 94b980a966f14a77e1b2defca114a83d950c8566
|
4
|
+
data.tar.gz: 30b92c04c7f9fc4780fad0b084cb6de224c1bee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1dad78b55fae9ad9f47da0af5c2dd0c0ac4741219547969069069cbae7c219b492b87d9f83d1575d7f96032d7f3d2d11ac7a4ac2f1ff220a21e22263cb43aa3
|
7
|
+
data.tar.gz: d084e48e21159cb04de2c0b6031e096be747c737a17ef84394665e83df4b0ecaa4084e3a776d47d5456bd3f2e704a107009aca5bb46d83b707c05a75a763ebf4
|
@@ -75,7 +75,7 @@ module Attachs
|
|
75
75
|
attr_reader :attachments
|
76
76
|
|
77
77
|
def inherited(subclass)
|
78
|
-
subclass.instance_variable_set
|
78
|
+
subclass.instance_variable_set :@attachments, @attachments
|
79
79
|
super
|
80
80
|
end
|
81
81
|
|
@@ -126,14 +126,14 @@ module Attachs
|
|
126
126
|
attachments[attr] = nil
|
127
127
|
attributes[attr.to_s] = nil
|
128
128
|
end
|
129
|
-
instance_variable_set
|
129
|
+
instance_variable_set :"@delete_#{attr}", value
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|
133
133
|
def define_attachable_attribute_method_get(attr, options)
|
134
134
|
define_method attr do
|
135
135
|
return attachments[attr] if attachments.has_key? attr
|
136
|
-
return nil
|
136
|
+
return nil unless super() or options.has_key? :default
|
137
137
|
attachments[attr] = build_attachment_instance(super(), options)
|
138
138
|
end
|
139
139
|
attr_reader :"delete_#{attr}"
|
@@ -13,6 +13,10 @@ module Attachs
|
|
13
13
|
def size(path)
|
14
14
|
::File.size realpath(path)
|
15
15
|
end
|
16
|
+
|
17
|
+
def realpath(path)
|
18
|
+
base_path.join path
|
19
|
+
end
|
16
20
|
|
17
21
|
def url(path)
|
18
22
|
::File.join Rails.application.config.attachs.base_url, path
|
@@ -43,10 +47,6 @@ module Attachs
|
|
43
47
|
@tmp == true
|
44
48
|
end
|
45
49
|
|
46
|
-
def realpath(path)
|
47
|
-
base_path.join path
|
48
|
-
end
|
49
|
-
|
50
50
|
def base_path
|
51
51
|
Rails.root.join tmp? ? 'tmp' : 'public'
|
52
52
|
end
|
data/lib/attachs/types/file.rb
CHANGED
@@ -57,14 +57,24 @@ module Attachs
|
|
57
57
|
@filename ||= "#{(Time.now.to_f * 10000000).to_i}#{::File.extname upload.original_filename}".downcase
|
58
58
|
end
|
59
59
|
|
60
|
+
def original_filename
|
61
|
+
return nil unless upload.present?
|
62
|
+
upload.original_filename
|
63
|
+
end
|
64
|
+
|
60
65
|
def path(*args)
|
61
66
|
return nil if deleted?
|
62
|
-
stored? ? destination_path(*args) : upload.path
|
67
|
+
(stored? ? destination_path(*args) : upload.path).to_s
|
68
|
+
end
|
69
|
+
|
70
|
+
def realpath(*args)
|
71
|
+
return nil if deleted? or Rails.application.config.attachs.storage == :s3
|
72
|
+
(stored? ? storage.realpath(path) : upload.path).to_s
|
63
73
|
end
|
64
74
|
|
65
75
|
def url(*args)
|
66
76
|
return nil if deleted? or not stored?
|
67
|
-
storage.url
|
77
|
+
storage.url(path(*args)).to_s
|
68
78
|
end
|
69
79
|
|
70
80
|
def store
|
data/lib/attachs/types/image.rb
CHANGED
data/lib/attachs/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -8541,5 +8541,774 @@ LocalValidatorsTest: test_should_check_the_file_content_type
|
|
8541
8541
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8542
8542
|
----------------------------------------------------
|
8543
8543
|
LocalValidatorsTest: test_should_check_the_file_size
|
8544
|
+
----------------------------------------------------
|
8545
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8546
|
+
[1m[36m (24.4ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
8547
|
+
[1m[35m (2.4ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8548
|
+
[1m[36m (3.5ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
8549
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8550
|
+
[1m[36m (2.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
8551
|
+
[1m[35m (2.5ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8552
|
+
[1m[36m (0.5ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
8553
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8554
|
+
-------------------------------------------------------------------------
|
8555
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
8556
|
+
-------------------------------------------------------------------------
|
8557
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8558
|
+
[1m[35mSQL (7.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Oct 2013 13:46:17 UTC +00:00], ["file", "13806351776560518.txt"], ["updated_at", Tue, 01 Oct 2013 13:46:17 UTC +00:00]]
|
8559
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8560
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8561
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
8562
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8563
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
8564
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8565
|
+
-------------------------------------------------------------------------
|
8566
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
8567
|
+
-------------------------------------------------------------------------
|
8568
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8569
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8570
|
+
-------------------------------------------------------------------
|
8571
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
8572
|
+
-------------------------------------------------------------------
|
8573
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8574
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8575
|
+
---------------------------------------------------------------------------
|
8576
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
8577
|
+
---------------------------------------------------------------------------
|
8578
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8579
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8580
|
+
----------------------------------------------
|
8581
|
+
LocalGenerateTest: test_should_generate_preset
|
8582
|
+
----------------------------------------------
|
8583
|
+
Started GET "/uploads/images/small/13806351777260390.jpg" for 127.0.0.1 at 2013-10-01 10:46:17 -0300
|
8584
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
8585
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13806351777260390"}
|
8586
|
+
Redirected to http://www.example.com/uploads/images/small/13806351777260390.jpg
|
8587
|
+
Completed 302 Found in 54ms (ActiveRecord: 0.0ms)
|
8588
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8589
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8590
|
+
---------------------------------------------------------------------
|
8591
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
8592
|
+
---------------------------------------------------------------------
|
8593
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8594
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Oct 2013 13:46:18 UTC +00:00], ["image", "13806351780701480.jpg"], ["updated_at", Tue, 01 Oct 2013 13:46:18 UTC +00:00]]
|
8595
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8596
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8597
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
8598
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8599
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
8600
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8601
|
+
---------------------------------------------------------------
|
8602
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
8603
|
+
---------------------------------------------------------------
|
8604
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8605
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8606
|
+
--------------------------------------------------------------------
|
8607
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
8608
|
+
--------------------------------------------------------------------
|
8609
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8610
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8611
|
+
---------------------------------------------------------------------------------------------
|
8612
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
8613
|
+
---------------------------------------------------------------------------------------------
|
8614
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8615
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 01 Oct 2013 13:46:18 UTC +00:00], ["file", "13806351785246860.jpg"], ["updated_at", Tue, 01 Oct 2013 13:46:18 UTC +00:00]]
|
8616
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8617
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8618
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13806351785287270.txt"], ["updated_at", Tue, 01 Oct 2013 13:46:18 UTC +00:00]]
|
8619
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
8620
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8621
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
8622
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8623
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
8624
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8625
|
+
-----------------------------------------------------------------------------------
|
8626
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
8627
|
+
-----------------------------------------------------------------------------------
|
8628
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8629
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Tue, 01 Oct 2013 13:46:18 UTC +00:00], ["updated_at", Tue, 01 Oct 2013 13:46:18 UTC +00:00]]
|
8630
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8631
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
8632
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8633
|
+
-------------------------------------------------------------------
|
8634
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
8635
|
+
-------------------------------------------------------------------
|
8636
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8637
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8638
|
+
---------------------------------------------------------
|
8639
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
8640
|
+
---------------------------------------------------------
|
8641
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8642
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8643
|
+
------------------------------------------------------------
|
8644
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
8645
|
+
------------------------------------------------------------
|
8646
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8647
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8648
|
+
----------------------------------------------------
|
8649
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
8650
|
+
----------------------------------------------------
|
8651
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8652
|
+
[1m[36m (3.9ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
8653
|
+
[1m[35m (2.6ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8654
|
+
[1m[36m (4.3ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
8655
|
+
[1m[35m (3.0ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8656
|
+
[1m[36m (3.3ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
8657
|
+
[1m[35m (3.0ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8658
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
8659
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8660
|
+
-------------------------------------------------------------------------
|
8661
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
8662
|
+
-------------------------------------------------------------------------
|
8663
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8664
|
+
[1m[35mSQL (40.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:34:28 UTC +00:00], ["file", "13817000685041558.txt"], ["updated_at", Sun, 13 Oct 2013 21:34:28 UTC +00:00]]
|
8665
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8666
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8667
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
8668
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8669
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
8670
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8671
|
+
-------------------------------------------------------------------------
|
8672
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
8673
|
+
-------------------------------------------------------------------------
|
8674
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8675
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8676
|
+
-------------------------------------------------------------------
|
8677
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
8678
|
+
-------------------------------------------------------------------
|
8679
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8680
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8681
|
+
---------------------------------------------------------------------------
|
8682
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
8683
|
+
---------------------------------------------------------------------------
|
8684
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8685
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8686
|
+
----------------------------------------------
|
8687
|
+
LocalGenerateTest: test_should_generate_preset
|
8688
|
+
----------------------------------------------
|
8689
|
+
Started GET "/uploads/images/small/13817000686047580.jpg" for 127.0.0.1 at 2013-10-13 19:34:29 -0200
|
8690
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
8691
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13817000686047580"}
|
8692
|
+
Redirected to http://www.example.com/uploads/images/small/13817000686047580.jpg
|
8693
|
+
Completed 302 Found in 60ms (ActiveRecord: 0.0ms)
|
8694
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8695
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8696
|
+
---------------------------------------------------------------------
|
8697
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
8698
|
+
---------------------------------------------------------------------
|
8699
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8700
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:34:29 UTC +00:00], ["image", "13817000695453848.jpg"], ["updated_at", Sun, 13 Oct 2013 21:34:29 UTC +00:00]]
|
8701
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8702
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8703
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
8704
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8705
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
8706
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8707
|
+
---------------------------------------------------------------
|
8708
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
8709
|
+
---------------------------------------------------------------
|
8710
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8711
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8712
|
+
--------------------------------------------------------------------
|
8713
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
8714
|
+
--------------------------------------------------------------------
|
8715
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8716
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8717
|
+
---------------------------------------------------------------------------------------------
|
8718
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
8719
|
+
---------------------------------------------------------------------------------------------
|
8720
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8721
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:34:29 UTC +00:00], ["file", "13817000699933400.jpg"], ["updated_at", Sun, 13 Oct 2013 21:34:29 UTC +00:00]]
|
8722
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8723
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8724
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13817000699973860.txt"], ["updated_at", Sun, 13 Oct 2013 21:34:29 UTC +00:00]]
|
8725
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
8726
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8727
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
8728
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8729
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
8730
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8731
|
+
-----------------------------------------------------------------------------------
|
8732
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
8733
|
+
-----------------------------------------------------------------------------------
|
8734
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8735
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 13 Oct 2013 21:34:30 UTC +00:00], ["updated_at", Sun, 13 Oct 2013 21:34:30 UTC +00:00]]
|
8736
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8737
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
8738
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8739
|
+
-------------------------------------------------------------------
|
8740
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
8741
|
+
-------------------------------------------------------------------
|
8742
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8743
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8744
|
+
---------------------------------------------------------
|
8745
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
8746
|
+
---------------------------------------------------------
|
8747
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8748
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8749
|
+
------------------------------------------------------------
|
8750
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
8751
|
+
------------------------------------------------------------
|
8752
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8753
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8754
|
+
----------------------------------------------------
|
8755
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
8756
|
+
----------------------------------------------------
|
8757
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8758
|
+
[1m[36m (3.0ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
8759
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8760
|
+
[1m[36m (2.7ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
8761
|
+
[1m[35m (2.9ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8762
|
+
[1m[36m (2.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
8763
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8764
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
8765
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8766
|
+
-------------------------------------------------------------------------
|
8767
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
8768
|
+
-------------------------------------------------------------------------
|
8769
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8770
|
+
[1m[35mSQL (2.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:37:19 UTC +00:00], ["file", "13817002394493870.txt"], ["updated_at", Sun, 13 Oct 2013 21:37:19 UTC +00:00]]
|
8771
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8772
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8773
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
8774
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8775
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
8776
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8777
|
+
-------------------------------------------------------------------------
|
8778
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
8779
|
+
-------------------------------------------------------------------------
|
8780
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8781
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8782
|
+
-------------------------------------------------------------------
|
8783
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
8784
|
+
-------------------------------------------------------------------
|
8785
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8786
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8787
|
+
---------------------------------------------------------------------------
|
8788
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
8789
|
+
---------------------------------------------------------------------------
|
8790
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8791
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8792
|
+
----------------------------------------------
|
8793
|
+
LocalGenerateTest: test_should_generate_preset
|
8794
|
+
----------------------------------------------
|
8795
|
+
Started GET "/uploads/images/small/13817002394776750.jpg" for 127.0.0.1 at 2013-10-13 19:37:19 -0200
|
8796
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
8797
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13817002394776750"}
|
8798
|
+
Redirected to http://www.example.com/uploads/images/small/13817002394776750.jpg
|
8799
|
+
Completed 302 Found in 59ms (ActiveRecord: 0.0ms)
|
8800
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8801
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8802
|
+
---------------------------------------------------------------------
|
8803
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
8804
|
+
---------------------------------------------------------------------
|
8805
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8806
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:37:19 UTC +00:00], ["image", "13817002396840960.jpg"], ["updated_at", Sun, 13 Oct 2013 21:37:19 UTC +00:00]]
|
8807
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8808
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8809
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
8810
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8811
|
+
[1m[36m (1.4ms)[0m [1mrollback transaction[0m
|
8812
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8813
|
+
---------------------------------------------------------------
|
8814
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
8815
|
+
---------------------------------------------------------------
|
8816
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8817
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8818
|
+
--------------------------------------------------------------------
|
8819
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
8820
|
+
--------------------------------------------------------------------
|
8821
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8822
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8823
|
+
---------------------------------------------------------------------------------------------
|
8824
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
8825
|
+
---------------------------------------------------------------------------------------------
|
8826
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8827
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:37:20 UTC +00:00], ["file", "13817002401523080.jpg"], ["updated_at", Sun, 13 Oct 2013 21:37:20 UTC +00:00]]
|
8828
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8829
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8830
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13817002401568260.txt"], ["updated_at", Sun, 13 Oct 2013 21:37:20 UTC +00:00]]
|
8831
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
8832
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8833
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
8834
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8835
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
8836
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8837
|
+
-----------------------------------------------------------------------------------
|
8838
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
8839
|
+
-----------------------------------------------------------------------------------
|
8840
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8841
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 13 Oct 2013 21:37:20 UTC +00:00], ["updated_at", Sun, 13 Oct 2013 21:37:20 UTC +00:00]]
|
8842
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8843
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
8844
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8845
|
+
-------------------------------------------------------------------
|
8846
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
8847
|
+
-------------------------------------------------------------------
|
8848
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8849
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8850
|
+
---------------------------------------------------------
|
8851
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
8852
|
+
---------------------------------------------------------
|
8853
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8854
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8855
|
+
------------------------------------------------------------
|
8856
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
8857
|
+
------------------------------------------------------------
|
8858
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8859
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8860
|
+
----------------------------------------------------
|
8861
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
8862
|
+
----------------------------------------------------
|
8863
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8864
|
+
[1m[36m (52.9ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
8865
|
+
[1m[35m (2.1ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8866
|
+
[1m[36m (3.1ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
8867
|
+
[1m[35m (3.2ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8868
|
+
[1m[36m (3.8ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
8869
|
+
[1m[35m (4.2ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8870
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
8871
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8872
|
+
-------------------------------------------------------------------------
|
8873
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
8874
|
+
-------------------------------------------------------------------------
|
8875
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8876
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:37:30 UTC +00:00], ["file", "13817002500534890.txt"], ["updated_at", Sun, 13 Oct 2013 21:37:30 UTC +00:00]]
|
8877
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8878
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8879
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
8880
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8881
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
8882
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8883
|
+
-------------------------------------------------------------------------
|
8884
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
8885
|
+
-------------------------------------------------------------------------
|
8886
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8887
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8888
|
+
-------------------------------------------------------------------
|
8889
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
8890
|
+
-------------------------------------------------------------------
|
8891
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8892
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8893
|
+
---------------------------------------------------------------------------
|
8894
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
8895
|
+
---------------------------------------------------------------------------
|
8896
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8897
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8898
|
+
----------------------------------------------
|
8899
|
+
LocalGenerateTest: test_should_generate_preset
|
8900
|
+
----------------------------------------------
|
8901
|
+
Started GET "/uploads/images/small/13817002500806510.jpg" for 127.0.0.1 at 2013-10-13 19:37:30 -0200
|
8902
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
8903
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13817002500806510"}
|
8904
|
+
Redirected to http://www.example.com/uploads/images/small/13817002500806510.jpg
|
8905
|
+
Completed 302 Found in 53ms (ActiveRecord: 0.0ms)
|
8906
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8907
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8908
|
+
---------------------------------------------------------------------
|
8909
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
8910
|
+
---------------------------------------------------------------------
|
8911
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8912
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:37:30 UTC +00:00], ["image", "13817002502760242.jpg"], ["updated_at", Sun, 13 Oct 2013 21:37:30 UTC +00:00]]
|
8913
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8914
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8915
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
8916
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8917
|
+
[1m[36m (1.1ms)[0m [1mrollback transaction[0m
|
8918
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8919
|
+
---------------------------------------------------------------
|
8920
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
8921
|
+
---------------------------------------------------------------
|
8922
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8923
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8924
|
+
--------------------------------------------------------------------
|
8925
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
8926
|
+
--------------------------------------------------------------------
|
8927
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
8928
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8929
|
+
---------------------------------------------------------------------------------------------
|
8930
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
8931
|
+
---------------------------------------------------------------------------------------------
|
8932
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
8933
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:37:30 UTC +00:00], ["file", "13817002507377212.jpg"], ["updated_at", Sun, 13 Oct 2013 21:37:30 UTC +00:00]]
|
8934
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8935
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8936
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13817002507415722.txt"], ["updated_at", Sun, 13 Oct 2013 21:37:30 UTC +00:00]]
|
8937
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
8938
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8939
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
8940
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8941
|
+
[1m[35m (1.0ms)[0m rollback transaction
|
8942
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
8943
|
+
-----------------------------------------------------------------------------------
|
8944
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
8945
|
+
-----------------------------------------------------------------------------------
|
8946
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8947
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 13 Oct 2013 21:37:30 UTC +00:00], ["updated_at", Sun, 13 Oct 2013 21:37:30 UTC +00:00]]
|
8948
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
8949
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
8950
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8951
|
+
-------------------------------------------------------------------
|
8952
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
8953
|
+
-------------------------------------------------------------------
|
8954
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8955
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8956
|
+
---------------------------------------------------------
|
8957
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
8958
|
+
---------------------------------------------------------
|
8959
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8960
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8961
|
+
------------------------------------------------------------
|
8962
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
8963
|
+
------------------------------------------------------------
|
8964
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8965
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8966
|
+
----------------------------------------------------
|
8967
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
8968
|
+
----------------------------------------------------
|
8969
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8970
|
+
[1m[36m (2.8ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
8971
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8972
|
+
[1m[36m (2.7ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
8973
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8974
|
+
[1m[36m (3.7ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
8975
|
+
[1m[35m (3.0ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8976
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
8977
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8978
|
+
-------------------------------------------------------------------------
|
8979
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
8980
|
+
-------------------------------------------------------------------------
|
8981
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8982
|
+
[1m[35mSQL (2.3ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:44:59 UTC +00:00], ["file", "13817006999691770.txt"], ["updated_at", Sun, 13 Oct 2013 21:44:59 UTC +00:00]]
|
8983
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8984
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8985
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
8986
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8987
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
8988
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8989
|
+
-------------------------------------------------------------------------
|
8990
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
8991
|
+
-------------------------------------------------------------------------
|
8992
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8993
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8994
|
+
-------------------------------------------------------------------
|
8995
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
8996
|
+
-------------------------------------------------------------------
|
8997
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8998
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8999
|
+
---------------------------------------------------------------------------
|
9000
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9001
|
+
---------------------------------------------------------------------------
|
9002
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9003
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9004
|
+
----------------------------------------------
|
9005
|
+
LocalGenerateTest: test_should_generate_preset
|
9006
|
+
----------------------------------------------
|
9007
|
+
Started GET "/uploads/images/small/13817006999966650.jpg" for 127.0.0.1 at 2013-10-13 19:45:00 -0200
|
9008
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
9009
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13817006999966650"}
|
9010
|
+
Redirected to http://www.example.com/uploads/images/small/13817006999966650.jpg
|
9011
|
+
Completed 302 Found in 58ms (ActiveRecord: 0.0ms)
|
9012
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9013
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9014
|
+
---------------------------------------------------------------------
|
9015
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9016
|
+
---------------------------------------------------------------------
|
9017
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9018
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:45:00 UTC +00:00], ["image", "13817007002054852.jpg"], ["updated_at", Sun, 13 Oct 2013 21:45:00 UTC +00:00]]
|
9019
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9020
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9021
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
9022
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9023
|
+
[1m[36m (0.9ms)[0m [1mrollback transaction[0m
|
9024
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9025
|
+
---------------------------------------------------------------
|
9026
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9027
|
+
---------------------------------------------------------------
|
9028
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9029
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9030
|
+
--------------------------------------------------------------------
|
9031
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9032
|
+
--------------------------------------------------------------------
|
9033
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
9034
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9035
|
+
---------------------------------------------------------------------------------------------
|
9036
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9037
|
+
---------------------------------------------------------------------------------------------
|
9038
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9039
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:45:00 UTC +00:00], ["file", "13817007006514968.jpg"], ["updated_at", Sun, 13 Oct 2013 21:45:00 UTC +00:00]]
|
9040
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9041
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9042
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13817007006561270.txt"], ["updated_at", Sun, 13 Oct 2013 21:45:00 UTC +00:00]]
|
9043
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
9044
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9045
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9046
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9047
|
+
[1m[35m (0.7ms)[0m rollback transaction
|
9048
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9049
|
+
-----------------------------------------------------------------------------------
|
9050
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9051
|
+
-----------------------------------------------------------------------------------
|
9052
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9053
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 13 Oct 2013 21:45:00 UTC +00:00], ["updated_at", Sun, 13 Oct 2013 21:45:00 UTC +00:00]]
|
9054
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9055
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9056
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9057
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9058
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
9059
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 13 Oct 2013 21:45:00 UTC +00:00], ["updated_at", Sun, 13 Oct 2013 21:45:00 UTC +00:00]]
|
9060
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9061
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9062
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
9063
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9064
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
9065
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9066
|
+
-------------------------------------------------------------------
|
9067
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9068
|
+
-------------------------------------------------------------------
|
9069
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9070
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9071
|
+
---------------------------------------------------------
|
9072
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9073
|
+
---------------------------------------------------------
|
9074
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9075
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9076
|
+
------------------------------------------------------------
|
9077
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9078
|
+
------------------------------------------------------------
|
9079
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9080
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9081
|
+
----------------------------------------------------
|
9082
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9083
|
+
----------------------------------------------------
|
9084
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9085
|
+
[1m[36m (55.0ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
9086
|
+
[1m[35m (2.2ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9087
|
+
[1m[36m (2.9ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
9088
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9089
|
+
[1m[36m (2.7ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
9090
|
+
[1m[35m (3.0ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9091
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
9092
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9093
|
+
-------------------------------------------------------------------------
|
9094
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9095
|
+
-------------------------------------------------------------------------
|
9096
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9097
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:49:09 UTC +00:00], ["file", "13817009498498750.txt"], ["updated_at", Sun, 13 Oct 2013 21:49:09 UTC +00:00]]
|
9098
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9099
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9100
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
9101
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9102
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
9103
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9104
|
+
-------------------------------------------------------------------------
|
9105
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9106
|
+
-------------------------------------------------------------------------
|
9107
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9108
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9109
|
+
-------------------------------------------------------------------
|
9110
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9111
|
+
-------------------------------------------------------------------
|
9112
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9113
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9114
|
+
---------------------------------------------------------------------------
|
9115
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9116
|
+
---------------------------------------------------------------------------
|
9117
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9118
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9119
|
+
----------------------------------------------
|
9120
|
+
LocalGenerateTest: test_should_generate_preset
|
9121
|
+
----------------------------------------------
|
9122
|
+
Started GET "/uploads/images/small/13817009498768088.jpg" for 127.0.0.1 at 2013-10-13 19:49:09 -0200
|
9123
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
9124
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13817009498768088"}
|
9125
|
+
Redirected to http://www.example.com/uploads/images/small/13817009498768088.jpg
|
9126
|
+
Completed 302 Found in 53ms (ActiveRecord: 0.0ms)
|
9127
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9128
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9129
|
+
---------------------------------------------------------------------
|
9130
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9131
|
+
---------------------------------------------------------------------
|
9132
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9133
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:49:10 UTC +00:00], ["image", "13817009500685608.jpg"], ["updated_at", Sun, 13 Oct 2013 21:49:10 UTC +00:00]]
|
9134
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9135
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9136
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
9137
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9138
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
9139
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9140
|
+
---------------------------------------------------------------
|
9141
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9142
|
+
---------------------------------------------------------------
|
9143
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9144
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9145
|
+
--------------------------------------------------------------------
|
9146
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9147
|
+
--------------------------------------------------------------------
|
9148
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
9149
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9150
|
+
---------------------------------------------------------------------------------------------
|
9151
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9152
|
+
---------------------------------------------------------------------------------------------
|
9153
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9154
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:49:10 UTC +00:00], ["file", "13817009505169862.jpg"], ["updated_at", Sun, 13 Oct 2013 21:49:10 UTC +00:00]]
|
9155
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9156
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9157
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13817009505208920.txt"], ["updated_at", Sun, 13 Oct 2013 21:49:10 UTC +00:00]]
|
9158
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
9159
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9160
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9161
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9162
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
9163
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9164
|
+
-----------------------------------------------------------------------------------
|
9165
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9166
|
+
-----------------------------------------------------------------------------------
|
9167
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9168
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 13 Oct 2013 21:49:10 UTC +00:00], ["updated_at", Sun, 13 Oct 2013 21:49:10 UTC +00:00]]
|
9169
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9170
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9171
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9172
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9173
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9174
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 13 Oct 2013 21:49:10 UTC +00:00], ["updated_at", Sun, 13 Oct 2013 21:49:10 UTC +00:00]]
|
9175
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9176
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9177
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
9178
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9179
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
9180
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9181
|
+
-------------------------------------------------------------------
|
9182
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9183
|
+
-------------------------------------------------------------------
|
9184
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9185
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9186
|
+
---------------------------------------------------------
|
9187
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9188
|
+
---------------------------------------------------------
|
9189
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9190
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9191
|
+
------------------------------------------------------------
|
9192
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9193
|
+
------------------------------------------------------------
|
9194
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
9195
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9196
|
+
----------------------------------------------------
|
9197
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
9198
|
+
----------------------------------------------------
|
9199
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9200
|
+
[1m[36m (49.0ms)[0m [1mDROP TABLE "all_attacheds"[0m
|
9201
|
+
[1m[35m (2.9ms)[0m CREATE TABLE "all_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "file_presence" varchar(255), "file_content_type" varchar(255), "file_size" varchar(255), "file_all" varchar(255), "file_default" varchar(255), "image_presence" varchar(255), "image_content_type" varchar(255), "image_size" varchar(255), "image_all" varchar(255), "image_default" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9202
|
+
[1m[36m (2.7ms)[0m [1mDROP TABLE "file_attacheds"[0m
|
9203
|
+
[1m[35m (3.2ms)[0m CREATE TABLE "file_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9204
|
+
[1m[36m (2.5ms)[0m [1mDROP TABLE "image_attacheds"[0m
|
9205
|
+
[1m[35m (4.1ms)[0m CREATE TABLE "image_attacheds" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime, "updated_at" datetime)
|
9206
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
9207
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9208
|
+
-------------------------------------------------------------------------
|
9209
|
+
LocalFileRecordTest: test_should_maintain_properties_and_delete_correctly
|
9210
|
+
-------------------------------------------------------------------------
|
9211
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9212
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00], ["file", "13817011291105258.txt"], ["updated_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00]]
|
9213
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9214
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9215
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ?[0m [["id", 1]]
|
9216
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
9217
|
+
[1m[36m (0.8ms)[0m [1mrollback transaction[0m
|
9218
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9219
|
+
-------------------------------------------------------------------------
|
9220
|
+
LocalFileStringTest: test_should_maintain_properties_and_delete_correctly
|
9221
|
+
-------------------------------------------------------------------------
|
9222
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9223
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9224
|
+
-------------------------------------------------------------------
|
9225
|
+
LocalFileUploadTest: test_file_should_exists_and_mantain_properties
|
9226
|
+
-------------------------------------------------------------------
|
9227
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9228
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9229
|
+
---------------------------------------------------------------------------
|
9230
|
+
LocalFileUploadTest: test_should_store/delete_file_correctly_and_accept_cdn
|
9231
|
+
---------------------------------------------------------------------------
|
9232
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9233
|
+
[1m[35m (0.0ms)[0m begin transaction
|
9234
|
+
----------------------------------------------
|
9235
|
+
LocalGenerateTest: test_should_generate_preset
|
9236
|
+
----------------------------------------------
|
9237
|
+
Started GET "/uploads/images/small/13817011291379762.jpg" for 127.0.0.1 at 2013-10-13 19:52:09 -0200
|
9238
|
+
Processing by Attachs::PresetsController#generate as JPEG
|
9239
|
+
Parameters: {"status"=>404, "preset"=>"small", "image"=>"13817011291379762"}
|
9240
|
+
Redirected to http://www.example.com/uploads/images/small/13817011291379762.jpg
|
9241
|
+
Completed 302 Found in 53ms (ActiveRecord: 0.0ms)
|
9242
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9243
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9244
|
+
---------------------------------------------------------------------
|
9245
|
+
LocalImagePresetsTest: test_should_save/destory_main_image_and_thumbs
|
9246
|
+
---------------------------------------------------------------------
|
9247
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9248
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "image_attacheds" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00], ["image", "13817011293349912.jpg"], ["updated_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00]]
|
9249
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9250
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9251
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ?[0m [["id", 1]]
|
9252
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9253
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
9254
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9255
|
+
---------------------------------------------------------------
|
9256
|
+
LocalImageStringTest: test_should_destory_main_image_and_thumbs
|
9257
|
+
---------------------------------------------------------------
|
9258
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
9259
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9260
|
+
--------------------------------------------------------------------
|
9261
|
+
LocalImageUploadTest: test_should_save/destory_main_image_and_thumbs
|
9262
|
+
--------------------------------------------------------------------
|
9263
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
9264
|
+
[1m[35m (0.1ms)[0m begin transaction
|
9265
|
+
---------------------------------------------------------------------------------------------
|
9266
|
+
LocalRecordsTest: test_should_save/update/destroy_from_the_database_and_save/destroy_the_file
|
9267
|
+
---------------------------------------------------------------------------------------------
|
9268
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
9269
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "file_attacheds" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00], ["file", "13817011297851470.jpg"], ["updated_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00]]
|
9270
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9271
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9272
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "file_attacheds" SET "file" = ?, "updated_at" = ? WHERE "file_attacheds"."id" = 1[0m [["file", "13817011297891378.txt"], ["updated_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00]]
|
9273
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
9274
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9275
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9276
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9277
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
9278
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9279
|
+
-----------------------------------------------------------------------------------
|
9280
|
+
LocalRecordsTest: test_should_take_default_file/image_and_shouldn't_store/delete_it
|
9281
|
+
-----------------------------------------------------------------------------------
|
9282
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9283
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "file_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00], ["updated_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00]]
|
9284
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9285
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9286
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "file_attacheds" WHERE "file_attacheds"."id" = ? [["id", 1]]
|
9287
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9288
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
9289
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "image_attacheds" ("created_at", "updated_at") VALUES (?, ?)[0m [["created_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00], ["updated_at", Sun, 13 Oct 2013 21:52:09 UTC +00:00]]
|
9290
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
9291
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
9292
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "image_attacheds" WHERE "image_attacheds"."id" = ? [["id", 1]]
|
9293
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
9294
|
+
[1m[35m (0.9ms)[0m rollback transaction
|
9295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9296
|
+
-------------------------------------------------------------------
|
9297
|
+
LocalValidatorsTest: test_should_check_all_the_validations_together
|
9298
|
+
-------------------------------------------------------------------
|
9299
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9300
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9301
|
+
---------------------------------------------------------
|
9302
|
+
LocalValidatorsTest: test_should_check_if_file_is_present
|
9303
|
+
---------------------------------------------------------
|
9304
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9305
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9306
|
+
------------------------------------------------------------
|
9307
|
+
LocalValidatorsTest: test_should_check_the_file_content_type
|
9308
|
+
------------------------------------------------------------
|
9309
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
9310
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9311
|
+
----------------------------------------------------
|
9312
|
+
LocalValidatorsTest: test_should_check_the_file_size
|
8544
9313
|
----------------------------------------------------
|
8545
9314
|
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attachs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattways
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|