rails_uploads 0.2.0 → 0.2.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.
@@ -4,8 +4,8 @@ module RailsUploads
4
4
 
5
5
  cattr_accessor :config
6
6
 
7
- def initialize(test)
8
- config = self.class.config[test ? 'test' : 'production']
7
+ def initialize(default)
8
+ config = self.class.config[default ? Rails.env : 'production']
9
9
  AWS.config access_key_id: config['access_key_id'], secret_access_key: config['secret_access_key']
10
10
  @bucket = AWS::S3.new.buckets[config['bucket']]
11
11
  @tmp = {}
@@ -1,5 +1,5 @@
1
1
  module RailsUploads
2
2
 
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
 
5
5
  end
@@ -34,6 +34,7 @@ namespace :uploads do
34
34
  task :create do
35
35
  config = YAML.load_file(Rails.root.join('config', 's3.yml'))
36
36
  config.each do |env, options|
37
+ require 'aws-sdk'
37
38
  AWS.config access_key_id: options['access_key_id'], secret_access_key: options['secret_access_key']
38
39
  bucket = options['bucket']
39
40
  begin
@@ -1,15 +1,15 @@
1
1
 
2
2
  development:
3
- bucket: development-bucket
4
- access_key_id: development_access_key_id
5
- secret_access_key: development_secret_access_key
3
+ bucket: ru-development
4
+ access_key_id: AKIAJFJTTRMZOGXSFQRQ
5
+ secret_access_key: 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
6
6
 
7
7
  test:
8
- bucket: test-bucket
9
- access_key_id: test_access_key_id
10
- secret_access_key: test_secret_access_key
8
+ bucket: ru-test
9
+ access_key_id: AKIAJFJTTRMZOGXSFQRQ
10
+ secret_access_key: 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
11
11
 
12
12
  production:
13
- bucket: production-bucket
14
- access_key_id: production_access_key_id
15
- secret_access_key: production_secret_access_key
13
+ bucket: ru-production
14
+ access_key_id: AKIAJFJTTRMZOGXSFQRQ
15
+ secret_access_key: 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
@@ -21683,3 +21683,446 @@ Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
21683
21683
   (0.0ms) rollback transaction
21684
21684
   (0.1ms) begin transaction
21685
21685
   (0.1ms) rollback transaction
21686
+ Connecting to database specified by database.yml
21687
+  (2.0ms) select sqlite_version(*)
21688
+  (0.2ms) CREATE TABLE "file_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
21689
+  (0.1ms) CREATE TABLE "image_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
21690
+  (0.1ms) CREATE TABLE "validation_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "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 NOT NULL, "updated_at" datetime NOT NULL)
21691
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
21692
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
21693
+  (0.1ms) SELECT version FROM "schema_migrations"
21694
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130124013431')
21695
+  (0.1ms) begin transaction
21696
+  (0.1ms) SAVEPOINT active_record_1
21697
+ SQL (7.3ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:09:49 UTC +00:00], ["file", "13689077896946812.txt"], ["updated_at", Sat, 18 May 2013 20:09:49 UTC +00:00]]
21698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21699
+  (0.0ms) SAVEPOINT active_record_1
21700
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21702
+  (0.1ms) rollback transaction
21703
+  (0.1ms) begin transaction
21704
+  (0.0ms) rollback transaction
21705
+  (0.1ms) begin transaction
21706
+  (0.1ms) rollback transaction
21707
+  (0.1ms) begin transaction
21708
+  (0.1ms) rollback transaction
21709
+  (0.1ms) begin transaction
21710
+ Started GET "/uploads/images/small/13689077897680920.jpg" for 127.0.0.1 at 2013-05-18 17:09:50 -0300
21711
+ Processing by RailsUploads::PresetsController#generate as JPEG
21712
+ Parameters: {"status"=>404, "preset"=>"small", "image"=>"13689077897680920"}
21713
+ Redirected to http://www.example.com/uploads/images/small/13689077897680920.jpg
21714
+ Completed 302 Found in 64ms (ActiveRecord: 0.0ms)
21715
+  (0.1ms) rollback transaction
21716
+  (0.1ms) begin transaction
21717
+  (0.1ms) SAVEPOINT active_record_1
21718
+ SQL (0.6ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:09:50 UTC +00:00], ["image", "13689077903505450.jpg"], ["updated_at", Sat, 18 May 2013 20:09:50 UTC +00:00]]
21719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21720
+  (0.1ms) SAVEPOINT active_record_1
21721
+ SQL (0.1ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
21722
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21723
+  (0.1ms) rollback transaction
21724
+  (0.1ms) begin transaction
21725
+  (0.1ms) rollback transaction
21726
+  (0.0ms) begin transaction
21727
+  (0.1ms) rollback transaction
21728
+  (0.1ms) begin transaction
21729
+  (0.0ms) SAVEPOINT active_record_1
21730
+ SQL (0.4ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:09:50 UTC +00:00], ["file", "13689077908065540.jpg"], ["updated_at", Sat, 18 May 2013 20:09:50 UTC +00:00]]
21731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21732
+  (0.0ms) SAVEPOINT active_record_1
21733
+  (0.1ms) UPDATE "file_uploads" SET "file" = '13689077908132632.txt', "updated_at" = '2013-05-18 20:09:50.816363' WHERE "file_uploads"."id" = 1
21734
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21735
+  (0.0ms) SAVEPOINT active_record_1
21736
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21738
+  (0.1ms) rollback transaction
21739
+  (0.0ms) begin transaction
21740
+  (0.0ms) SAVEPOINT active_record_1
21741
+ SQL (0.3ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:09:50 UTC +00:00], ["file", nil], ["updated_at", Sat, 18 May 2013 20:09:50 UTC +00:00]]
21742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21743
+  (0.0ms) SAVEPOINT active_record_1
21744
+ SQL (0.0ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21746
+  (0.0ms) SAVEPOINT active_record_1
21747
+ SQL (0.2ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:09:50 UTC +00:00], ["image", nil], ["updated_at", Sat, 18 May 2013 20:09:50 UTC +00:00]]
21748
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21749
+  (0.0ms) SAVEPOINT active_record_1
21750
+ SQL (0.1ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
21751
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21752
+  (0.0ms) rollback transaction
21753
+  (0.1ms) begin transaction
21754
+  (0.1ms) rollback transaction
21755
+  (0.1ms) begin transaction
21756
+  (0.0ms) rollback transaction
21757
+  (0.0ms) begin transaction
21758
+  (0.0ms) rollback transaction
21759
+  (0.1ms) begin transaction
21760
+  (0.1ms) rollback transaction
21761
+  (0.1ms) begin transaction
21762
+  (0.1ms) SAVEPOINT active_record_1
21763
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
21764
+ undefined method `each' for nil:NilClass
21765
+  (0.1ms) rollback transaction
21766
+  (0.0ms) begin transaction
21767
+  (0.1ms) rollback transaction
21768
+  (0.1ms) begin transaction
21769
+  (0.1ms) rollback transaction
21770
+  (0.1ms) begin transaction
21771
+  (0.1ms) rollback transaction
21772
+  (0.1ms) begin transaction
21773
+  (0.1ms) SAVEPOINT active_record_1
21774
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
21775
+ undefined method `each' for nil:NilClass
21776
+  (0.1ms) rollback transaction
21777
+  (0.1ms) begin transaction
21778
+  (0.1ms) rollback transaction
21779
+  (0.1ms) begin transaction
21780
+  (0.1ms) rollback transaction
21781
+  (0.1ms) begin transaction
21782
+  (0.1ms) SAVEPOINT active_record_1
21783
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
21784
+ undefined method `each' for nil:NilClass
21785
+  (0.1ms) rollback transaction
21786
+  (0.1ms) begin transaction
21787
+  (0.1ms) SAVEPOINT active_record_1
21788
+ SQL (0.4ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:10:06 UTC +00:00], ["file", nil], ["updated_at", Sat, 18 May 2013 20:10:06 UTC +00:00]]
21789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21790
+  (0.1ms) rollback transaction
21791
+  (0.1ms) begin transaction
21792
+  (0.1ms) rollback transaction
21793
+  (0.0ms) begin transaction
21794
+  (0.1ms) rollback transaction
21795
+ Connecting to database specified by database.yml
21796
+  (2.1ms) select sqlite_version(*)
21797
+  (0.3ms) CREATE TABLE "file_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
21798
+  (0.1ms) CREATE TABLE "image_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
21799
+  (0.1ms) CREATE TABLE "validation_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "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 NOT NULL, "updated_at" datetime NOT NULL)
21800
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
21801
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
21802
+  (0.1ms) SELECT version FROM "schema_migrations"
21803
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130124013431')
21804
+  (0.1ms) begin transaction
21805
+  (0.1ms) SAVEPOINT active_record_1
21806
+ SQL (8.3ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:12:03 UTC +00:00], ["file", "13689079239341990.txt"], ["updated_at", Sat, 18 May 2013 20:12:03 UTC +00:00]]
21807
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21808
+  (0.0ms) SAVEPOINT active_record_1
21809
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21810
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21811
+  (0.1ms) rollback transaction
21812
+  (0.0ms) begin transaction
21813
+  (0.1ms) rollback transaction
21814
+  (0.1ms) begin transaction
21815
+  (0.1ms) rollback transaction
21816
+  (0.1ms) begin transaction
21817
+  (0.0ms) rollback transaction
21818
+  (0.1ms) begin transaction
21819
+ Started GET "/uploads/images/small/13689079240378640.jpg" for 127.0.0.1 at 2013-05-18 17:12:04 -0300
21820
+ Processing by RailsUploads::PresetsController#generate as JPEG
21821
+ Parameters: {"status"=>404, "preset"=>"small", "image"=>"13689079240378640"}
21822
+ Redirected to http://www.example.com/uploads/images/small/13689079240378640.jpg
21823
+ Completed 302 Found in 65ms (ActiveRecord: 0.0ms)
21824
+  (0.1ms) rollback transaction
21825
+  (0.1ms) begin transaction
21826
+  (0.1ms) SAVEPOINT active_record_1
21827
+ SQL (0.6ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:12:04 UTC +00:00], ["image", "13689079242478722.jpg"], ["updated_at", Sat, 18 May 2013 20:12:04 UTC +00:00]]
21828
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21829
+  (0.0ms) SAVEPOINT active_record_1
21830
+ SQL (0.1ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
21831
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21832
+  (0.1ms) rollback transaction
21833
+  (0.1ms) begin transaction
21834
+  (0.1ms) rollback transaction
21835
+  (0.0ms) begin transaction
21836
+  (0.1ms) rollback transaction
21837
+  (0.1ms) begin transaction
21838
+  (0.0ms) SAVEPOINT active_record_1
21839
+ SQL (0.4ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:12:04 UTC +00:00], ["file", "13689079247109662.jpg"], ["updated_at", Sat, 18 May 2013 20:12:04 UTC +00:00]]
21840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21841
+  (0.0ms) SAVEPOINT active_record_1
21842
+  (0.7ms) UPDATE "file_uploads" SET "file" = '13689079247175060.txt', "updated_at" = '2013-05-18 20:12:04.720583' WHERE "file_uploads"."id" = 1
21843
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21844
+  (0.0ms) SAVEPOINT active_record_1
21845
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21846
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21847
+  (0.1ms) rollback transaction
21848
+  (0.0ms) begin transaction
21849
+  (0.0ms) SAVEPOINT active_record_1
21850
+ SQL (0.3ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:12:04 UTC +00:00], ["file", nil], ["updated_at", Sat, 18 May 2013 20:12:04 UTC +00:00]]
21851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21852
+  (0.0ms) SAVEPOINT active_record_1
21853
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21855
+  (0.0ms) SAVEPOINT active_record_1
21856
+ SQL (0.2ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:12:04 UTC +00:00], ["image", nil], ["updated_at", Sat, 18 May 2013 20:12:04 UTC +00:00]]
21857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21858
+  (0.0ms) SAVEPOINT active_record_1
21859
+ SQL (0.0ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
21860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21861
+  (0.0ms) rollback transaction
21862
+  (0.0ms) begin transaction
21863
+  (0.1ms) rollback transaction
21864
+  (0.1ms) begin transaction
21865
+  (0.0ms) rollback transaction
21866
+  (0.0ms) begin transaction
21867
+  (0.1ms) rollback transaction
21868
+  (0.1ms) begin transaction
21869
+  (0.1ms) rollback transaction
21870
+  (0.1ms) begin transaction
21871
+  (0.1ms) SAVEPOINT active_record_1
21872
+ SQL (0.4ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:12:07 UTC +00:00], ["file", "13689079249434300.txt"], ["updated_at", Sat, 18 May 2013 20:12:07 UTC +00:00]]
21873
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21874
+  (0.1ms) SAVEPOINT active_record_1
21875
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21876
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21877
+  (0.1ms) rollback transaction
21878
+  (0.1ms) begin transaction
21879
+  (0.1ms) rollback transaction
21880
+  (0.1ms) begin transaction
21881
+  (0.1ms) rollback transaction
21882
+  (0.1ms) begin transaction
21883
+  (0.1ms) rollback transaction
21884
+  (0.1ms) begin transaction
21885
+  (0.1ms) SAVEPOINT active_record_1
21886
+ SQL (0.7ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:12:22 UTC +00:00], ["image", "13689079367551758.jpg"], ["updated_at", Sat, 18 May 2013 20:12:22 UTC +00:00]]
21887
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21888
+  (0.2ms) SAVEPOINT active_record_1
21889
+ SQL (0.1ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
21890
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21891
+  (0.2ms) rollback transaction
21892
+  (0.1ms) begin transaction
21893
+  (0.1ms) rollback transaction
21894
+  (0.1ms) begin transaction
21895
+  (0.2ms) rollback transaction
21896
+  (0.1ms) begin transaction
21897
+  (0.1ms) SAVEPOINT active_record_1
21898
+ SQL (0.6ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:13:09 UTC +00:00], ["file", "13689079867281440.jpg"], ["updated_at", Sat, 18 May 2013 20:13:09 UTC +00:00]]
21899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21900
+  (0.2ms) SAVEPOINT active_record_1
21901
+  (0.2ms) UPDATE "file_uploads" SET "file" = '13689079916456090.txt', "updated_at" = '2013-05-18 20:13:13.072765' WHERE "file_uploads"."id" = 1
21902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21903
+  (0.1ms) SAVEPOINT active_record_1
21904
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21905
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21906
+  (0.2ms) rollback transaction
21907
+  (0.1ms) begin transaction
21908
+  (0.1ms) SAVEPOINT active_record_1
21909
+ SQL (0.4ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:13:17 UTC +00:00], ["file", nil], ["updated_at", Sat, 18 May 2013 20:13:17 UTC +00:00]]
21910
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21911
+  (0.1ms) rollback transaction
21912
+  (0.1ms) begin transaction
21913
+  (0.1ms) rollback transaction
21914
+  (0.1ms) begin transaction
21915
+  (0.1ms) rollback transaction
21916
+  (0.1ms) begin transaction
21917
+  (0.1ms) rollback transaction
21918
+  (0.1ms) begin transaction
21919
+  (0.1ms) rollback transaction
21920
+ Connecting to database specified by database.yml
21921
+  (1.9ms) select sqlite_version(*)
21922
+  (0.2ms) CREATE TABLE "file_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
21923
+  (0.1ms) CREATE TABLE "image_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
21924
+  (0.2ms) CREATE TABLE "validation_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "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 NOT NULL, "updated_at" datetime NOT NULL)
21925
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
21926
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
21927
+  (0.0ms) SELECT version FROM "schema_migrations"
21928
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130124013431')
21929
+  (0.1ms) begin transaction
21930
+  (0.1ms) SAVEPOINT active_record_1
21931
+ SQL (8.1ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:17:57 UTC +00:00], ["file", "13689082776423738.txt"], ["updated_at", Sat, 18 May 2013 20:17:57 UTC +00:00]]
21932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21933
+  (0.0ms) SAVEPOINT active_record_1
21934
+ SQL (0.2ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21935
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21936
+  (0.1ms) rollback transaction
21937
+  (0.1ms) begin transaction
21938
+  (0.1ms) rollback transaction
21939
+  (0.0ms) begin transaction
21940
+  (0.1ms) rollback transaction
21941
+  (0.1ms) begin transaction
21942
+  (0.1ms) rollback transaction
21943
+  (0.1ms) begin transaction
21944
+ Started GET "/uploads/images/small/13689082778217420.jpg" for 127.0.0.1 at 2013-05-18 17:17:57 -0300
21945
+ Processing by RailsUploads::PresetsController#generate as JPEG
21946
+ Parameters: {"status"=>404, "preset"=>"small", "image"=>"13689082778217420"}
21947
+ Redirected to http://www.example.com/uploads/images/small/13689082778217420.jpg
21948
+ Completed 302 Found in 66ms (ActiveRecord: 0.0ms)
21949
+  (0.1ms) rollback transaction
21950
+  (0.1ms) begin transaction
21951
+  (0.1ms) SAVEPOINT active_record_1
21952
+ SQL (0.5ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:17:58 UTC +00:00], ["image", "13689082780988632.jpg"], ["updated_at", Sat, 18 May 2013 20:17:58 UTC +00:00]]
21953
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21954
+  (0.0ms) SAVEPOINT active_record_1
21955
+ SQL (0.2ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
21956
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21957
+  (0.1ms) rollback transaction
21958
+  (0.1ms) begin transaction
21959
+  (0.1ms) rollback transaction
21960
+  (0.1ms) begin transaction
21961
+  (0.1ms) rollback transaction
21962
+  (0.1ms) begin transaction
21963
+  (0.0ms) SAVEPOINT active_record_1
21964
+ SQL (0.4ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:17:58 UTC +00:00], ["file", "13689082785762320.jpg"], ["updated_at", Sat, 18 May 2013 20:17:58 UTC +00:00]]
21965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21966
+  (0.0ms) SAVEPOINT active_record_1
21967
+  (0.1ms) UPDATE "file_uploads" SET "file" = '13689082785827930.txt', "updated_at" = '2013-05-18 20:17:58.585878' WHERE "file_uploads"."id" = 1
21968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21969
+  (0.0ms) SAVEPOINT active_record_1
21970
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21971
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21972
+  (0.1ms) rollback transaction
21973
+  (0.1ms) begin transaction
21974
+  (0.0ms) SAVEPOINT active_record_1
21975
+ SQL (0.3ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:17:58 UTC +00:00], ["file", nil], ["updated_at", Sat, 18 May 2013 20:17:58 UTC +00:00]]
21976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21977
+  (0.0ms) SAVEPOINT active_record_1
21978
+ SQL (0.0ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
21979
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21980
+  (0.0ms) SAVEPOINT active_record_1
21981
+ SQL (0.2ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:17:58 UTC +00:00], ["image", nil], ["updated_at", Sat, 18 May 2013 20:17:58 UTC +00:00]]
21982
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21983
+  (0.0ms) SAVEPOINT active_record_1
21984
+ SQL (0.1ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
21985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21986
+  (0.0ms) rollback transaction
21987
+  (0.0ms) begin transaction
21988
+  (0.1ms) rollback transaction
21989
+  (0.0ms) begin transaction
21990
+  (0.1ms) rollback transaction
21991
+  (0.0ms) begin transaction
21992
+  (0.1ms) rollback transaction
21993
+  (0.0ms) begin transaction
21994
+  (0.1ms) rollback transaction
21995
+  (0.1ms) begin transaction
21996
+  (0.1ms) SAVEPOINT active_record_1
21997
+ SQL (0.5ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:18:01 UTC +00:00], ["file", "13689082788034238.txt"], ["updated_at", Sat, 18 May 2013 20:18:01 UTC +00:00]]
21998
+  (0.1ms) RELEASE SAVEPOINT active_record_1
21999
+  (0.1ms) SAVEPOINT active_record_1
22000
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
22001
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22002
+  (0.2ms) rollback transaction
22003
+  (0.1ms) begin transaction
22004
+  (0.1ms) rollback transaction
22005
+  (0.1ms) begin transaction
22006
+  (0.1ms) rollback transaction
22007
+  (0.1ms) begin transaction
22008
+  (0.1ms) rollback transaction
22009
+  (0.1ms) begin transaction
22010
+  (0.1ms) SAVEPOINT active_record_1
22011
+ SQL (0.6ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:18:26 UTC +00:00], ["image", "13689082980453990.jpg"], ["updated_at", Sat, 18 May 2013 20:18:26 UTC +00:00]]
22012
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22013
+  (0.1ms) SAVEPOINT active_record_1
22014
+ SQL (0.1ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
22015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22016
+  (0.2ms) rollback transaction
22017
+  (0.1ms) begin transaction
22018
+  (0.1ms) rollback transaction
22019
+  (0.1ms) begin transaction
22020
+  (0.2ms) rollback transaction
22021
+  (0.1ms) begin transaction
22022
+  (0.1ms) SAVEPOINT active_record_1
22023
+ SQL (0.7ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:19:29 UTC +00:00], ["file", "13689083678659770.jpg"], ["updated_at", Sat, 18 May 2013 20:19:29 UTC +00:00]]
22024
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22025
+  (0.1ms) SAVEPOINT active_record_1
22026
+  (0.1ms) UPDATE "file_uploads" SET "file" = '13689083709693250.txt', "updated_at" = '2013-05-18 20:19:31.957126' WHERE "file_uploads"."id" = 1
22027
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22028
+  (0.1ms) SAVEPOINT active_record_1
22029
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
22030
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22031
+  (0.1ms) rollback transaction
22032
+  (0.1ms) begin transaction
22033
+  (0.1ms) SAVEPOINT active_record_1
22034
+ SQL (0.5ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:19:34 UTC +00:00], ["file", nil], ["updated_at", Sat, 18 May 2013 20:19:34 UTC +00:00]]
22035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22036
+  (0.1ms) SAVEPOINT active_record_1
22037
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
22038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22039
+  (0.1ms) SAVEPOINT active_record_1
22040
+ SQL (0.5ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:19:37 UTC +00:00], ["image", nil], ["updated_at", Sat, 18 May 2013 20:19:37 UTC +00:00]]
22041
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22042
+  (0.1ms) SAVEPOINT active_record_1
22043
+ SQL (0.1ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
22044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22045
+  (0.1ms) rollback transaction
22046
+  (0.1ms) begin transaction
22047
+  (0.1ms) rollback transaction
22048
+  (0.1ms) begin transaction
22049
+  (0.1ms) rollback transaction
22050
+  (0.1ms) begin transaction
22051
+  (0.1ms) rollback transaction
22052
+  (0.1ms) begin transaction
22053
+  (0.1ms) rollback transaction
22054
+ Connecting to database specified by database.yml
22055
+  (1.9ms) select sqlite_version(*)
22056
+  (0.3ms) CREATE TABLE "file_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "file" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
22057
+  (0.1ms) CREATE TABLE "image_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
22058
+  (0.1ms) CREATE TABLE "validation_uploads" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "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 NOT NULL, "updated_at" datetime NOT NULL)
22059
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
22060
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
22061
+  (0.0ms) SELECT version FROM "schema_migrations"
22062
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130124013431')
22063
+  (0.1ms) begin transaction
22064
+  (0.0ms) SAVEPOINT active_record_1
22065
+ SQL (7.3ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:20:56 UTC +00:00], ["file", "13689084567741352.txt"], ["updated_at", Sat, 18 May 2013 20:20:56 UTC +00:00]]
22066
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22067
+  (0.0ms) SAVEPOINT active_record_1
22068
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
22069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22070
+  (0.1ms) rollback transaction
22071
+  (0.0ms) begin transaction
22072
+  (0.1ms) rollback transaction
22073
+  (0.1ms) begin transaction
22074
+  (0.1ms) rollback transaction
22075
+  (0.1ms) begin transaction
22076
+  (0.1ms) rollback transaction
22077
+  (0.1ms) begin transaction
22078
+ Started GET "/uploads/images/small/13689084568416012.jpg" for 127.0.0.1 at 2013-05-18 17:20:56 -0300
22079
+ Processing by RailsUploads::PresetsController#generate as JPEG
22080
+ Parameters: {"status"=>404, "preset"=>"small", "image"=>"13689084568416012"}
22081
+ Redirected to http://www.example.com/uploads/images/small/13689084568416012.jpg
22082
+ Completed 302 Found in 64ms (ActiveRecord: 0.0ms)
22083
+  (0.1ms) rollback transaction
22084
+  (0.1ms) begin transaction
22085
+  (0.1ms) SAVEPOINT active_record_1
22086
+ SQL (0.6ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:20:57 UTC +00:00], ["image", "13689084570122950.jpg"], ["updated_at", Sat, 18 May 2013 20:20:57 UTC +00:00]]
22087
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22088
+  (0.1ms) SAVEPOINT active_record_1
22089
+ SQL (0.2ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
22090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22091
+  (0.1ms) rollback transaction
22092
+  (0.1ms) begin transaction
22093
+  (0.1ms) rollback transaction
22094
+  (0.1ms) begin transaction
22095
+  (0.1ms) rollback transaction
22096
+  (0.1ms) begin transaction
22097
+  (0.1ms) SAVEPOINT active_record_1
22098
+ SQL (0.4ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:20:57 UTC +00:00], ["file", "13689084575165620.jpg"], ["updated_at", Sat, 18 May 2013 20:20:57 UTC +00:00]]
22099
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22100
+  (0.1ms) SAVEPOINT active_record_1
22101
+  (0.1ms) UPDATE "file_uploads" SET "file" = '13689084575235892.txt', "updated_at" = '2013-05-18 20:20:57.526899' WHERE "file_uploads"."id" = 1
22102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
22103
+  (0.0ms) SAVEPOINT active_record_1
22104
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
22105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22106
+  (0.1ms) rollback transaction
22107
+  (0.0ms) begin transaction
22108
+  (0.0ms) SAVEPOINT active_record_1
22109
+ SQL (0.3ms) INSERT INTO "file_uploads" ("created_at", "file", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:20:57 UTC +00:00], ["file", nil], ["updated_at", Sat, 18 May 2013 20:20:57 UTC +00:00]]
22110
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22111
+  (0.0ms) SAVEPOINT active_record_1
22112
+ SQL (0.1ms) DELETE FROM "file_uploads" WHERE "file_uploads"."id" = ? [["id", 1]]
22113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22114
+  (0.0ms) SAVEPOINT active_record_1
22115
+ SQL (0.2ms) INSERT INTO "image_uploads" ("created_at", "image", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 18 May 2013 20:20:57 UTC +00:00], ["image", nil], ["updated_at", Sat, 18 May 2013 20:20:57 UTC +00:00]]
22116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22117
+  (0.0ms) SAVEPOINT active_record_1
22118
+ SQL (0.0ms) DELETE FROM "image_uploads" WHERE "image_uploads"."id" = ? [["id", 1]]
22119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
22120
+  (0.0ms) rollback transaction
22121
+  (0.1ms) begin transaction
22122
+  (0.1ms) rollback transaction
22123
+  (0.1ms) begin transaction
22124
+  (0.0ms) rollback transaction
22125
+  (0.0ms) begin transaction
22126
+  (0.0ms) rollback transaction
22127
+  (0.1ms) begin transaction
22128
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_uploads
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: