attachs 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60ccaef21683898e8c414a86f0db866a5ebaec4b
4
- data.tar.gz: 80a04699db9e65bcdbe8db0036f732872f516422
3
+ metadata.gz: 8f41270f6e3b3f78005eeee69a6adb0da08de2dc
4
+ data.tar.gz: f5cab9282733a4bfb82fec72f9bdb26b86d3e6c2
5
5
  SHA512:
6
- metadata.gz: d09a6f88341cfd6c7e8a81db8fa3eb9c692a13a0b84d717b3ac7354896a1d4bc02760feebc7feb68f1cb372233d27c8b36dc3e42d5b4cacb50053cfb3fcf0178
7
- data.tar.gz: d755524af02fdb500ad2887961f13ed1a3ff42079b9c39c57a4c80d526e9d1ae21bd0354e79115ecfd3faf3f2230ff38f7637e2b5ee0cd1e39101202f84d2633
6
+ metadata.gz: 4f00ade11ad08328986ebe5830cfe1c30ff10c7c739910ec7915a9c3a5da7858559ecd15e2e7e1aa2cfd4c7a9db7d53979c981918f57d73f7ff0918604683a76
7
+ data.tar.gz: c2e7e43b2079a621a89088f69e9cdb0e3f2a99d74107835ccf4fafc3ab5e92e896272e7de7c1bcef637c5e4c2797e747761cb0b0d2113f094579c224655ac96e
@@ -1,5 +1,5 @@
1
1
  module Attachs
2
2
 
3
- VERSION = '0.4.3'
3
+ VERSION = '0.4.4'
4
4
 
5
5
  end
@@ -0,0 +1,15 @@
1
+
2
+ development:
3
+ bucket: development-bucket
4
+ access_key_id: development_access_key_id
5
+ secret_access_key: development_secret_access_key
6
+
7
+ test:
8
+ bucket: test-bucket
9
+ access_key_id: test_access_key_id
10
+ secret_access_key: test_secret_access_key
11
+
12
+ production:
13
+ bucket: production-bucket
14
+ access_key_id: production_access_key_id
15
+ secret_access_key: production_secret_access_key
@@ -64668,3 +64668,208 @@ Missing styles regenerated successfully.
64668
64668
  GeneratorsTest: test_initializer_generator
64669
64669
  ------------------------------------------
64670
64670
   (0.0ms) rollback transaction
64671
+  (10.7ms) CREATE TABLE "media" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attach_filename" varchar, "attach_content_type" varchar, "attach_size" integer, "attach_updated_at" datetime, "local_attach_filename" varchar, "local_attach_content_type" varchar, "local_attach_size" integer, "local_attach_updated_at" datetime, "s3_attach_filename" varchar, "s3_attach_content_type" varchar, "s3_attach_size" integer, "s3_attach_updated_at" datetime, "created_at" datetime, "updated_at" datetime) 
64672
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
64673
+  (0.0ms) select sqlite_version(*)
64674
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
64675
+  (0.0ms) SELECT version FROM "schema_migrations"
64676
+  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140808012639')
64677
+  (0.3ms) CREATE TABLE "media" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attach_filename" varchar, "attach_content_type" varchar, "attach_size" integer, "attach_updated_at" datetime, "local_attach_filename" varchar, "local_attach_content_type" varchar, "local_attach_size" integer, "local_attach_updated_at" datetime, "s3_attach_filename" varchar, "s3_attach_content_type" varchar, "s3_attach_size" integer, "s3_attach_updated_at" datetime, "created_at" datetime, "updated_at" datetime) 
64678
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
64679
+  (0.0ms) select sqlite_version(*)
64680
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
64681
+  (0.0ms) SELECT version FROM "schema_migrations"
64682
+  (0.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20140808012639')
64683
+  (0.1ms) begin transaction
64684
+ -------------------------------
64685
+ AttachmentTest: test_uri_source
64686
+ -------------------------------
64687
+  (0.1ms) SAVEPOINT active_record_1
64688
+ SQL (0.2ms) INSERT INTO "media" ("attach_filename", "attach_content_type", "attach_size", "attach_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attach_filename", "file.txt"], ["attach_content_type", "application/xml"], ["attach_size", 290], ["attach_updated_at", "2015-07-05 14:52:45.334035"], ["created_at", "2015-07-05 14:52:45.337919"], ["updated_at", "2015-07-05 14:52:45.337919"]]
64689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64690
+  (0.0ms) rollback transaction
64691
+  (0.1ms) begin transaction
64692
+ --------------------------------------
64693
+ AttachmentTest: test_attachment_source
64694
+ --------------------------------------
64695
+  (0.1ms) SAVEPOINT active_record_1
64696
+ SQL (0.1ms) INSERT INTO "media" ("attach_filename", "attach_content_type", "attach_size", "attach_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attach_filename", "file.txt"], ["attach_content_type", "text/plain"], ["attach_size", 11], ["attach_updated_at", "2015-07-05 14:52:45.427657"], ["created_at", "2015-07-05 14:52:45.428128"], ["updated_at", "2015-07-05 14:52:45.428128"]]
64697
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64698
+  (0.0ms) SAVEPOINT active_record_1
64699
+ SQL (0.0ms) INSERT INTO "media" ("attach_filename", "attach_content_type", "attach_size", "attach_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attach_filename", "file.txt"], ["attach_content_type", "text/plain"], ["attach_size", 11], ["attach_updated_at", "2015-07-05 14:52:45.427657"], ["created_at", "2015-07-05 14:52:45.429913"], ["updated_at", "2015-07-05 14:52:45.429913"]]
64700
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64701
+  (0.0ms) rollback transaction
64702
+  (0.0ms) begin transaction
64703
+ ---------------------------------------
64704
+ ValidatorsTest: test_presence_validator
64705
+ ---------------------------------------
64706
+  (0.1ms) SAVEPOINT active_record_1
64707
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64708
+  (0.0ms) rollback transaction
64709
+  (0.1ms) begin transaction
64710
+ -------------------------------------------------
64711
+ ValidatorsTest: test_content_type_regex_validator
64712
+ -------------------------------------------------
64713
+  (0.0ms) SAVEPOINT active_record_1
64714
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64715
+  (0.0ms) rollback transaction
64716
+  (0.0ms) begin transaction
64717
+ -----------------------------------------
64718
+ ValidatorsTest: test_size_range_validator
64719
+ -----------------------------------------
64720
+  (0.1ms) SAVEPOINT active_record_1
64721
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64722
+  (0.0ms) rollback transaction
64723
+  (0.0ms) begin transaction
64724
+ -------------------------------------------
64725
+ ValidatorsTest: test_size_maximum_validator
64726
+ -------------------------------------------
64727
+  (0.0ms) SAVEPOINT active_record_1
64728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64729
+  (0.0ms) rollback transaction
64730
+  (0.0ms) begin transaction
64731
+ -------------------------------------------
64732
+ ValidatorsTest: test_size_minimum_validator
64733
+ -------------------------------------------
64734
+  (0.0ms) SAVEPOINT active_record_1
64735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64736
+  (0.0ms) rollback transaction
64737
+  (0.0ms) begin transaction
64738
+ -----------------------------------------------------
64739
+ ValidatorsTest: test_content_type_inclusion_validator
64740
+ -----------------------------------------------------
64741
+  (0.0ms) SAVEPOINT active_record_1
64742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64743
+  (0.0ms) rollback transaction
64744
+  (0.0ms) begin transaction
64745
+ ------------------------------------------
64746
+ GeneratorsTest: test_initializer_generator
64747
+ ------------------------------------------
64748
+  (0.1ms) rollback transaction
64749
+  (0.0ms) begin transaction
64750
+ ------------------------------------
64751
+ MigrationTest: test_column_migration
64752
+ ------------------------------------
64753
+  (0.1ms) CREATE TABLE "pictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL) 
64754
+  (0.1ms) ALTER TABLE "pictures" ADD "image_filename" varchar
64755
+  (0.1ms) ALTER TABLE "pictures" ADD "image_content_type" varchar
64756
+  (0.1ms) ALTER TABLE "pictures" ADD "image_size" integer
64757
+  (0.1ms) ALTER TABLE "pictures" ADD "image_updated_at" datetime
64758
+  (0.0ms) SAVEPOINT active_record_1
64759
+  (0.4ms) CREATE TEMPORARY TABLE "apictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image_filename" varchar, "image_content_type" varchar, "image_size" integer, "image_updated_at" datetime) 
64760
+  (0.1ms) SELECT * FROM "pictures"
64761
+  (6.8ms) DROP TABLE "pictures"
64762
+  (0.1ms) CREATE TABLE "pictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image_content_type" varchar, "image_size" integer, "image_updated_at" datetime)
64763
+  (0.0ms) SELECT * FROM "apictures"
64764
+  (0.1ms) DROP TABLE "apictures"
64765
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64766
+  (0.0ms) SAVEPOINT active_record_1
64767
+  (0.1ms) CREATE TEMPORARY TABLE "apictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image_content_type" varchar, "image_size" integer, "image_updated_at" datetime) 
64768
+  (0.1ms) SELECT * FROM "pictures"
64769
+  (0.1ms) DROP TABLE "pictures"
64770
+  (0.1ms) CREATE TABLE "pictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image_size" integer, "image_updated_at" datetime)
64771
+  (0.0ms) SELECT * FROM "apictures"
64772
+  (0.1ms) DROP TABLE "apictures"
64773
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64774
+  (0.0ms) SAVEPOINT active_record_1
64775
+  (0.1ms) CREATE TEMPORARY TABLE "apictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image_size" integer, "image_updated_at" datetime) 
64776
+  (0.0ms) SELECT * FROM "pictures"
64777
+  (0.1ms) DROP TABLE "pictures"
64778
+  (0.1ms) CREATE TABLE "pictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image_updated_at" datetime)
64779
+  (0.0ms) SELECT * FROM "apictures"
64780
+  (0.1ms) DROP TABLE "apictures"
64781
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64782
+  (0.0ms) SAVEPOINT active_record_1
64783
+  (0.1ms) CREATE TEMPORARY TABLE "apictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image_updated_at" datetime) 
64784
+  (0.0ms) SELECT * FROM "pictures"
64785
+  (0.1ms) DROP TABLE "pictures"
64786
+  (0.1ms) CREATE TABLE "pictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
64787
+  (0.0ms) SELECT * FROM "apictures"
64788
+  (0.1ms) DROP TABLE "apictures"
64789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64790
+  (0.1ms) rollback transaction
64791
+  (0.0ms) begin transaction
64792
+ -----------------------------------
64793
+ MigrationTest: test_table_migration
64794
+ -----------------------------------
64795
+  (0.1ms) CREATE TABLE "pictures" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "image_filename" varchar, "image_content_type" varchar, "image_size" integer, "image_updated_at" datetime)
64796
+  (0.1ms) DROP TABLE "pictures"
64797
+  (0.0ms) rollback transaction
64798
+  (0.0ms) begin transaction
64799
+ --------------------------------------
64800
+ TasksTest: test_refersh_missing_styles
64801
+ --------------------------------------
64802
+  (0.1ms) SAVEPOINT active_record_1
64803
+ SQL (0.2ms) INSERT INTO "media" ("attach_filename", "attach_content_type", "attach_size", "attach_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attach_filename", "180x150.gif"], ["attach_content_type", "image/gif"], ["attach_size", 5461], ["attach_updated_at", "2015-07-05 14:52:45.547890"], ["created_at", "2015-07-05 14:52:45.548393"], ["updated_at", "2015-07-05 14:52:45.548393"]]
64804
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64805
+ Medium Load (0.1ms) SELECT "media".* FROM "media" ORDER BY "media"."id" ASC LIMIT 1000
64806
+ Missing styles regenerated successfully.
64807
+  (0.1ms) rollback transaction
64808
+  (0.0ms) begin transaction
64809
+ ----------------------------------
64810
+ TasksTest: test_refresh_all_styles
64811
+ ----------------------------------
64812
+  (0.1ms) SAVEPOINT active_record_1
64813
+ SQL (0.1ms) INSERT INTO "media" ("attach_filename", "attach_content_type", "attach_size", "attach_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["attach_filename", "180x150.gif"], ["attach_content_type", "image/gif"], ["attach_size", 5461], ["attach_updated_at", "2015-07-05 14:52:47.087346"], ["created_at", "2015-07-05 14:52:47.087873"], ["updated_at", "2015-07-05 14:52:47.087873"]]
64814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64815
+ Medium Load (0.1ms) SELECT "media".* FROM "media" ORDER BY "media"."id" ASC LIMIT 1000
64816
+ All styles regenerated successfully.
64817
+ Medium Load (0.1ms) SELECT "media".* FROM "media" ORDER BY "media"."id" ASC LIMIT 1000
64818
+ All styles regenerated successfully.
64819
+  (0.1ms) rollback transaction
64820
+  (0.0ms) begin transaction
64821
+ --------------------------------
64822
+ ProcessorTest: test_cover_resize
64823
+ --------------------------------
64824
+  (0.1ms) rollback transaction
64825
+  (0.0ms) begin transaction
64826
+ --------------------------------
64827
+ ProcessorTest: test_force_resize
64828
+ --------------------------------
64829
+  (0.1ms) rollback transaction
64830
+  (0.0ms) begin transaction
64831
+ ----------------------------------
64832
+ ProcessorTest: test_contain_resize
64833
+ ----------------------------------
64834
+  (0.1ms) rollback transaction
64835
+  (0.1ms) begin transaction
64836
+ --------------------------------
64837
+ LocalStorageTest: test_image_url
64838
+ --------------------------------
64839
+  (0.0ms) SAVEPOINT active_record_1
64840
+ SQL (0.1ms) INSERT INTO "media" ("local_attach_filename", "local_attach_content_type", "local_attach_size", "local_attach_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["local_attach_filename", "180x150.gif"], ["local_attach_content_type", "image/gif"], ["local_attach_size", 5461], ["local_attach_updated_at", "2015-07-05 14:52:48.769893"], ["created_at", "2015-07-05 14:52:48.770342"], ["updated_at", "2015-07-05 14:52:48.770342"]]
64841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64842
+  (0.1ms) rollback transaction
64843
+  (0.1ms) begin transaction
64844
+ -------------------------------
64845
+ LocalStorageTest: test_file_url
64846
+ -------------------------------
64847
+  (0.0ms) SAVEPOINT active_record_1
64848
+ SQL (0.1ms) INSERT INTO "media" ("local_attach_filename", "local_attach_content_type", "local_attach_size", "local_attach_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["local_attach_filename", "file.txt"], ["local_attach_content_type", "text/plain"], ["local_attach_size", 11], ["local_attach_updated_at", "2015-07-05 14:52:49.006010"], ["created_at", "2015-07-05 14:52:49.006341"], ["updated_at", "2015-07-05 14:52:49.006341"]]
64849
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64850
+  (0.0ms) rollback transaction
64851
+  (0.0ms) begin transaction
64852
+ ----------------------------------
64853
+ LocalStorageTest: test_detroy_attr
64854
+ ----------------------------------
64855
+  (0.0ms) SAVEPOINT active_record_1
64856
+ SQL (0.0ms) INSERT INTO "media" ("local_attach_filename", "local_attach_content_type", "local_attach_size", "local_attach_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["local_attach_filename", "file.txt"], ["local_attach_content_type", "text/plain"], ["local_attach_size", 11], ["local_attach_updated_at", "2015-07-05 14:52:49.009184"], ["created_at", "2015-07-05 14:52:49.009555"], ["updated_at", "2015-07-05 14:52:49.009555"]]
64857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64858
+  (0.0ms) SAVEPOINT active_record_1
64859
+ SQL (0.1ms) UPDATE "media" SET "local_attach_filename" = ?, "local_attach_content_type" = ?, "local_attach_size" = ?, "local_attach_updated_at" = ?, "updated_at" = ? WHERE "media"."id" = ? [["local_attach_filename", nil], ["local_attach_content_type", nil], ["local_attach_size", nil], ["local_attach_updated_at", nil], ["updated_at", "2015-07-05 14:52:49.215589"], ["id", 1]]
64860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64861
+  (0.0ms) rollback transaction
64862
+  (0.0ms) begin transaction
64863
+ ---------------------------
64864
+ LocalStorageTest: test_crud
64865
+ ---------------------------
64866
+  (0.0ms) SAVEPOINT active_record_1
64867
+ SQL (0.0ms) INSERT INTO "media" ("local_attach_filename", "local_attach_content_type", "local_attach_size", "local_attach_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["local_attach_filename", "file.txt"], ["local_attach_content_type", "text/plain"], ["local_attach_size", 11], ["local_attach_updated_at", "2015-07-05 14:52:49.222571"], ["created_at", "2015-07-05 14:52:49.222958"], ["updated_at", "2015-07-05 14:52:49.222958"]]
64868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64869
+  (0.0ms) SAVEPOINT active_record_1
64870
+ SQL (0.0ms) UPDATE "media" SET "local_attach_filename" = ?, "local_attach_content_type" = ?, "local_attach_size" = ?, "local_attach_updated_at" = ?, "updated_at" = ? WHERE "media"."id" = ? [["local_attach_filename", "180x150.gif"], ["local_attach_content_type", "image/gif"], ["local_attach_size", 5461], ["local_attach_updated_at", "2015-07-05 14:52:49.224768"], ["updated_at", "2015-07-05 14:52:49.224931"], ["id", 1]]
64871
+  (0.1ms) RELEASE SAVEPOINT active_record_1
64872
+  (0.0ms) SAVEPOINT active_record_1
64873
+ SQL (0.1ms) DELETE FROM "media" WHERE "media"."id" = ? [["id", 1]]
64874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
64875
+  (0.0ms) 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.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Museways
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-14 00:00:00.000000000 Z
11
+ date: 2015-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -31,9 +31,9 @@ dependencies:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 4.0.0
34
- - - "<="
34
+ - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: 4.2.0
36
+ version: 4.3.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -41,9 +41,9 @@ dependencies:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
43
  version: 4.0.0
44
- - - "<="
44
+ - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: 4.2.0
46
+ version: 4.3.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: sqlite3
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -123,6 +123,7 @@ files:
123
123
  - test/dummy/config/initializers/wrap_parameters.rb
124
124
  - test/dummy/config/locales/en.yml
125
125
  - test/dummy/config/routes.rb
126
+ - test/dummy/config/s3.yml
126
127
  - test/dummy/db/migrate/20140808012639_create_media.rb
127
128
  - test/dummy/db/schema.rb
128
129
  - test/dummy/log/development.log
@@ -214,6 +215,7 @@ test_files:
214
215
  - test/dummy/config/initializers/wrap_parameters.rb
215
216
  - test/dummy/config/locales/en.yml
216
217
  - test/dummy/config/routes.rb
218
+ - test/dummy/config/s3.yml
217
219
  - test/dummy/config.ru
218
220
  - test/dummy/db/migrate/20140808012639_create_media.rb
219
221
  - test/dummy/db/schema.rb