fogged 0.0.12 → 0.0.13

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: ceb2197719fd9737a9ebcabbc2645128dcc85822
4
- data.tar.gz: 967ee4286c60f10f5e2e2a0503e22f4d651c9c96
3
+ metadata.gz: 9027c3f59256d3b9a2b28054206d0fc8e29e15c7
4
+ data.tar.gz: 90e6febe6d6d3aa798d88b14292b119d79bbd710
5
5
  SHA512:
6
- metadata.gz: 326755b4fd2f45a641c8c21e4bb4e56b8c77376a8c1b98977b987bea48bc751712256ce5a3c47440d24e7d01af0a6426e9aa26094c966a5d075a46a99ff53006
7
- data.tar.gz: 8e1a4066f384a420c5ef26c36a6159248b83db2a3247f715cb6df5ab7b60232d5da0e0cb6607363279fc176811d01328c8765a9b251f0ea22027c4457be973aa
6
+ metadata.gz: 467f6133404370e6d075c0ac09bf608d71274412c73be5db34ddca31e51f967a00e7cc740da4bcc4beb428bf1e584b6a23039b484856850ab8a2e83dfc62b4fe
7
+ data.tar.gz: b9fd52b1f84eb052d2dde9d7690851a46d16ebc1edb16c57d8a3aee1347f50924f2961e78f3835908154cfcb714c3f32367e73b89b5e3c7e29b78147af42bbb4
@@ -89,16 +89,16 @@ module Fogged
89
89
  end
90
90
 
91
91
  def fogged_file
92
- return @fogged_file if defined?(@fogged_file)
93
-
94
- files = Fogged.resources.files
95
- @fogged_file = files.get(fogged_name) || files.create(
96
- :key => fogged_name,
97
- :body => "",
98
- :content_type => content_type
99
- )
100
- @fogged_file.public = "public_read"
101
- @fogged_file.tap(&:save)
92
+ @_fogged_file ||= begin
93
+ files = Fogged.resources.files
94
+ file = files.get(fogged_name) || files.create(
95
+ :key => fogged_name,
96
+ :body => "",
97
+ :content_type => content_type
98
+ )
99
+ file.public = "public_read"
100
+ file.tap(&:save)
101
+ end
102
102
  end
103
103
 
104
104
  def find_size!
@@ -41,7 +41,7 @@ module Fogged
41
41
  }
42
42
 
43
43
  if Fogged.zencoder_notification_url
44
- params.merge!(:notifications => [Fogged.zencoder_notification_url])
44
+ params[:notifications] = [Fogged.zencoder_notification_url]
45
45
  end
46
46
 
47
47
  @resource.update!(
@@ -80,7 +80,7 @@ module Fogged
80
80
  end
81
81
 
82
82
  def bucket
83
- @resource.fogged_file.directory.key
83
+ Fogged.resources.key
84
84
  end
85
85
 
86
86
  def fogged_name_for(type, number = 0)
@@ -2,11 +2,11 @@ module Fogged
2
2
  module Resources
3
3
  class Encoder
4
4
  def self.for(resource)
5
- "Fogged::Resources::#{provider_for(resource)}Encoder".constantize.new(resource)
5
+ "Fogged::Resources::#{provider}Encoder".constantize.new(resource)
6
6
  end
7
7
 
8
- def self.provider_for(resource)
9
- return :AWS if resource.fogged_file.class.to_s.include?("AWS")
8
+ def self.provider
9
+ return :AWS if Fogged.provider == :aws
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Fogged
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
Binary file
@@ -141685,3 +141685,892 @@ spawn> child PID = 87361
141685
141685
   (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
141686
141686
   (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
141687
141687
  spawn> child[87361] took 0.05548 sec
141688
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
141689
+  (0.1ms) begin transaction
141690
+ Fixture Delete (1.3ms) DELETE FROM "fogged_resources"
141691
+ Fixture Insert (0.6ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 517391740)
141692
+ Fixture Insert (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 701625837)
141693
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 819504217)
141694
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 132093124)
141695
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 431685987)
141696
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 620280917)
141697
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 335514824)
141698
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 183950720)
141699
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 1039265257)
141700
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 596998220)
141701
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 433078596)
141702
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 785871319)
141703
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 937304175)
141704
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 14225656)
141705
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 515736925)
141706
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-09-07 13:03:35', '2016-09-07 13:03:35', 538821867)
141707
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-09-07 13:03:35', '2016-09-07 13:03:35', 731805050)
141708
+ Fixture Delete (0.5ms) DELETE FROM "images"
141709
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 579229346)
141710
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 153115190)
141711
+ Fixture Delete (0.9ms) DELETE FROM "movie_fogged_resources"
141712
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:35', '2016-09-07 13:03:35', 419883833, 624739301, 701625837)
141713
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:35', '2016-09-07 13:03:35', 849405871, 624739301, 819504217)
141714
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:35', '2016-09-07 13:03:35', 98413728, 245026679, 784085492)
141715
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:35', '2016-09-07 13:03:35', 779853880, 245026679, 431685987)
141716
+ Fixture Delete (0.4ms) DELETE FROM "movies"
141717
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 624739301)
141718
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 245026679)
141719
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:03:35', '2016-09-07 13:03:35', 948421225)
141720
+  (1.1ms) commit transaction
141721
+  (0.1ms) begin transaction
141722
+ --------------------------------------------------------------------
141723
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_resource
141724
+ --------------------------------------------------------------------
141725
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141726
+ Processing by Fogged::ResourcesController#confirm as HTML
141727
+ Parameters: {"id"=>"785871319"}
141728
+ Fogged::Resource Load (0.6ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141729
+  (0.1ms) SAVEPOINT active_record_1
141730
+ SQL (0.3ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-09-07 13:03:35.927963"], ["id", 785871319]]
141731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141732
+  (0.1ms) SAVEPOINT active_record_1
141733
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141734
+ Completed 200 OK in 18ms (Views: 1.2ms | ActiveRecord: 1.1ms)
141735
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141736
+  (1.0ms) rollback transaction
141737
+  (0.1ms) begin transaction
141738
+ ------------------------------------------------------------------------------------------------
141739
+ Fogged::ResourcesControllerConfirmTest: test_should_confirm_video_resource_with_zencoder_enabled
141740
+ ------------------------------------------------------------------------------------------------
141741
+ spawn> parent PID = 20013
141742
+ spawn> child PID = 20016
141743
+ Fogged::Resource Load (1.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141744
+ Processing by Fogged::ResourcesController#confirm as HTML
141745
+ Parameters: {"id"=>"335514824"}
141746
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141747
+  (0.2ms) begin transaction
141748
+ SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-09-07 13:03:36.006803"], ["id", 335514824]]
141749
+  (0.8ms) commit transaction
141750
+  (0.1ms) begin transaction
141751
+  (0.1ms) commit transaction
141752
+ Completed 200 OK in 13ms (Views: 1.7ms | ActiveRecord: 1.7ms)
141753
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141754
+ spawn> child[20016] took 0.063429 sec
141755
+  (0.4ms) begin transaction
141756
+ ----------------------------------------------------------------------------------------
141757
+ Fogged::ResourcesControllerConfirmTest: test_should_not_confirm_resource_with_invalid_id
141758
+ ----------------------------------------------------------------------------------------
141759
+ Processing by Fogged::ResourcesController#confirm as HTML
141760
+ Parameters: {"id"=>"123456"}
141761
+ Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
141762
+ Completed 404 Not Found in 2ms (ActiveRecord: 0.8ms)
141763
+  (0.1ms) rollback transaction
141764
+  (0.1ms) begin transaction
141765
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
141766
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 517391740)
141767
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 701625837)
141768
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 819504217)
141769
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 132093124)
141770
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 431685987)
141771
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 620280917)
141772
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 335514824)
141773
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 183950720)
141774
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 1039265257)
141775
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 596998220)
141776
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 433078596)
141777
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 785871319)
141778
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 937304175)
141779
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 14225656)
141780
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 515736925)
141781
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-09-07 13:03:36', '2016-09-07 13:03:36', 538821867)
141782
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-09-07 13:03:36', '2016-09-07 13:03:36', 731805050)
141783
+ Fixture Delete (0.1ms) DELETE FROM "images"
141784
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 579229346)
141785
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 153115190)
141786
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
141787
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 419883833, 624739301, 701625837)
141788
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 849405871, 624739301, 819504217)
141789
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 98413728, 245026679, 784085492)
141790
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 779853880, 245026679, 431685987)
141791
+ Fixture Delete (0.1ms) DELETE FROM "movies"
141792
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 624739301)
141793
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 245026679)
141794
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 948421225)
141795
+  (1.0ms) commit transaction
141796
+  (0.0ms) begin transaction
141797
+ --------------------------------------------
141798
+ FoggedTest: test_should_check_if_file_exists
141799
+ --------------------------------------------
141800
+  (0.1ms) rollback transaction
141801
+  (0.4ms) begin transaction
141802
+ ---------------------------------------------------
141803
+ FoggedTest: test_should_return_directory_public_url
141804
+ ---------------------------------------------------
141805
+  (0.0ms) rollback transaction
141806
+  (0.1ms) begin transaction
141807
+ ---------------------------------------------------
141808
+ FoggedTest: test_should_return_resources_public_url
141809
+ ---------------------------------------------------
141810
+  (0.0ms) rollback transaction
141811
+  (0.0ms) begin transaction
141812
+ ----------------------
141813
+ FoggedTest: test_truth
141814
+ ----------------------
141815
+  (0.0ms) rollback transaction
141816
+  (0.0ms) begin transaction
141817
+ ------------------------------------------------------------------------
141818
+ ResourcesControllerIndexTest: test_should_index_all_resources_for_movies
141819
+ ------------------------------------------------------------------------
141820
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141821
+ Processing by Fogged::ResourcesController#index as HTML
141822
+ Parameters: {"type"=>"movie"}
141823
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
141824
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
141825
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
141826
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
141827
+ Completed 200 OK in 48ms (Views: 1.2ms | ActiveRecord: 0.4ms)
141828
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies"
141829
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
141830
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
141831
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 948421225]]
141832
+  (0.1ms) rollback transaction
141833
+  (0.0ms) begin transaction
141834
+ ---------------------------------------------------------------------
141835
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie
141836
+ ---------------------------------------------------------------------
141837
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141838
+ Processing by Fogged::ResourcesController#index as HTML
141839
+ Parameters: {"type"=>"movie", "type_id"=>"624739301"}
141840
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
141841
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
141842
+ Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 0.2ms)
141843
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
141844
+  (0.1ms) rollback transaction
141845
+  (0.0ms) begin transaction
141846
+ -----------------------------------------------------------------------------------------------
141847
+ ResourcesControllerIndexTest: test_should_index_resources_for_a_movie_with_search_query_on_name
141848
+ -----------------------------------------------------------------------------------------------
141849
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141850
+  (0.1ms) SAVEPOINT active_record_1
141851
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "90949efbb4df4c9088f68f7c6e582d0b"]]
141852
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("name", "extension", "content_type", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "footest barish"], ["extension", "txt"], ["content_type", "text/plain"], ["token", "90949efbb4df4c9088f68f7c6e582d0b"], ["created_at", "2016-09-07 13:03:36.134964"], ["updated_at", "2016-09-07 13:03:36.134964"]]
141853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141854
+  (0.0ms) SAVEPOINT active_record_1
141855
+ SQL (0.5ms) INSERT INTO "movie_fogged_resources" ("movie_id", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["movie_id", 624739301], ["resource_id", 1039265265], ["created_at", "2016-09-07 13:03:36.157892"], ["updated_at", "2016-09-07 13:03:36.157892"]]
141856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141857
+ Processing by Fogged::ResourcesController#index as HTML
141858
+ Parameters: {"type"=>"movie", "type_id"=>"624739301", "query"=>"test"}
141859
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 624739301
141860
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? AND (fogged_resources.name LIKE '%test%') [["movie_id", 624739301]]
141861
+ Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.3ms)
141862
+  (0.8ms) rollback transaction
141863
+  (0.1ms) begin transaction
141864
+ --------------------------------------------------------------------
141865
+ ResourcesControllerIndexTest: test_should_index_resources_for_movies
141866
+ --------------------------------------------------------------------
141867
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141868
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 245026679]]
141869
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
141870
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
141871
+ Processing by Fogged::ResourcesController#index as HTML
141872
+ Parameters: {"type"=>"movie", "type_ids"=>["624739301", "245026679"]}
141873
+ Movie Load (0.2ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" IN (624739301, 245026679)
141874
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 245026679]]
141875
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" INNER JOIN "movie_fogged_resources" ON "fogged_resources"."id" = "movie_fogged_resources"."resource_id" WHERE "movie_fogged_resources"."movie_id" = ? [["movie_id", 624739301]]
141876
+ Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.3ms)
141877
+  (0.1ms) rollback transaction
141878
+  (0.1ms) begin transaction
141879
+ -------------------------------------------------------------------------------
141880
+ ResourcesControllerIndexTest: test_should_index_resources_with_invalid_movie_id
141881
+ -------------------------------------------------------------------------------
141882
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = ? LIMIT 1 [["id", 624739301]]
141883
+ Processing by Fogged::ResourcesController#index as HTML
141884
+ Parameters: {"type"=>"movie", "type_id"=>"1234567890"}
141885
+ Movie Load (0.1ms) SELECT "movies".* FROM "movies" WHERE "movies"."id" = 1234567890
141886
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
141887
+  (0.1ms) rollback transaction
141888
+  (0.0ms) begin transaction
141889
+ ----------------------------------------------------------------------------------
141890
+ Fogged::ResourcesControllerShowTest: test_should_not_show_resource_with_invalid_id
141891
+ ----------------------------------------------------------------------------------
141892
+ Processing by Fogged::ResourcesController#show as HTML
141893
+ Parameters: {"id"=>"1234567890"}
141894
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
141895
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.1ms)
141896
+  (0.1ms) rollback transaction
141897
+  (0.1ms) begin transaction
141898
+ --------------------------------------------------------------------
141899
+ Fogged::ResourcesControllerShowTest: test_should_show_image_resource
141900
+ --------------------------------------------------------------------
141901
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141902
+ Processing by Fogged::ResourcesController#show as HTML
141903
+ Parameters: {"id"=>"785871319"}
141904
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141905
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
141906
+  (0.1ms) rollback transaction
141907
+  (0.0ms) begin transaction
141908
+ --------------------------------------------------------------
141909
+ Fogged::ResourcesControllerShowTest: test_should_show_resource
141910
+ --------------------------------------------------------------
141911
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
141912
+ Processing by Fogged::ResourcesController#show as HTML
141913
+ Parameters: {"id"=>"701625837"}
141914
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
141915
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
141916
+  (0.0ms) rollback transaction
141917
+  (0.0ms) begin transaction
141918
+ --------------------------------------------------------------------
141919
+ Fogged::ResourcesControllerShowTest: test_should_show_video_resource
141920
+ --------------------------------------------------------------------
141921
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141922
+ Processing by Fogged::ResourcesController#show as HTML
141923
+ Parameters: {"id"=>"335514824"}
141924
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
141925
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
141926
+  (0.1ms) rollback transaction
141927
+  (0.0ms) begin transaction
141928
+ ---------------------------------------------------
141929
+ Fogged::ResourceTest: test_resource_should_be_valid
141930
+ ---------------------------------------------------
141931
+  (0.0ms) SAVEPOINT active_record_1
141932
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "6c8a785a065579a836b5a007021cc0a4"]]
141933
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "6c8a785a065579a836b5a007021cc0a4"], ["created_at", "2016-09-07 13:03:36.194781"], ["updated_at", "2016-09-07 13:03:36.194781"]]
141934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141935
+  (0.4ms) rollback transaction
141936
+  (0.1ms) begin transaction
141937
+ ----------------------------------------------------------------------------
141938
+ Fogged::ResourceTest: test_resource_should_destroy_fogged_file_after_destroy
141939
+ ----------------------------------------------------------------------------
141940
+  (0.0ms) SAVEPOINT active_record_1
141941
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "cdc1247ed878bba8ce1be000f83b615b"]]
141942
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "cdc1247ed878bba8ce1be000f83b615b"], ["created_at", "2016-09-07 13:03:36.197727"], ["updated_at", "2016-09-07 13:03:36.197727"]]
141943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141944
+  (0.0ms) SAVEPOINT active_record_1
141945
+ SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 1039265265]]
141946
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141947
+  (0.5ms) rollback transaction
141948
+  (0.1ms) begin transaction
141949
+ -------------------------------------------------------------------------
141950
+ Fogged::ResourceTest: test_resource_should_have_a_token_after_being_saved
141951
+ -------------------------------------------------------------------------
141952
+  (0.1ms) SAVEPOINT active_record_1
141953
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "b2a46696b07c171408c0f5457ebf7746"]]
141954
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "b2a46696b07c171408c0f5457ebf7746"], ["created_at", "2016-09-07 13:03:36.202819"], ["updated_at", "2016-09-07 13:03:36.202819"]]
141955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141956
+  (0.4ms) rollback transaction
141957
+  (0.1ms) begin transaction
141958
+ -------------------------------------------------------------
141959
+ Fogged::ResourceTest: test_resource_should_have_an_upload_url
141960
+ -------------------------------------------------------------
141961
+  (0.1ms) SAVEPOINT active_record_1
141962
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "49fdb583d143f5876892f7c33349602f"]]
141963
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "49fdb583d143f5876892f7c33349602f"], ["created_at", "2016-09-07 13:03:36.205784"], ["updated_at", "2016-09-07 13:03:36.205784"]]
141964
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141965
+  (0.4ms) rollback transaction
141966
+  (0.1ms) begin transaction
141967
+ ------------------------------------------------------
141968
+ Fogged::ResourceTest: test_resource_should_have_an_url
141969
+ ------------------------------------------------------
141970
+  (0.0ms) SAVEPOINT active_record_1
141971
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "138fa18287b96bea95e88588e56cc191"]]
141972
+ SQL (0.2ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["extension", "txt"], ["uploading", "f"], ["content_type", "text/plain"], ["name", "Test"], ["token", "138fa18287b96bea95e88588e56cc191"], ["created_at", "2016-09-07 13:03:36.209728"], ["updated_at", "2016-09-07 13:03:36.209728"]]
141973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141974
+  (0.4ms) rollback transaction
141975
+  (0.1ms) begin transaction
141976
+ ----------------------------------------------------------------------------
141977
+ Fogged::ResourceTest: test_resource_without_content_type_should_not_be_saved
141978
+ ----------------------------------------------------------------------------
141979
+  (0.0ms) SAVEPOINT active_record_1
141980
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
141981
+  (0.0ms) rollback transaction
141982
+  (0.0ms) begin transaction
141983
+ -------------------------------------------------------------------------
141984
+ Fogged::ResourceTest: test_resource_without_extension_should_not_be_saved
141985
+ -------------------------------------------------------------------------
141986
+  (0.0ms) SAVEPOINT active_record_1
141987
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
141988
+  (0.0ms) rollback transaction
141989
+  (0.0ms) begin transaction
141990
+ --------------------------------------------------------
141991
+ Fogged::ResourceTest: test_should_process_resource_image
141992
+ --------------------------------------------------------
141993
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
141994
+  (0.1ms) SAVEPOINT active_record_1
141995
+ SQL (0.2ms) UPDATE "fogged_resources" SET "width" = ?, "height" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["width", 800], ["height", 600], ["updated_at", "2016-09-07 13:03:36.223461"], ["id", 785871319]]
141996
+  (0.0ms) RELEASE SAVEPOINT active_record_1
141997
+  (0.3ms) rollback transaction
141998
+  (0.1ms) begin transaction
141999
+ --------------------------------------------------------
142000
+ Fogged::ResourceTest: test_should_process_resource_video
142001
+ --------------------------------------------------------
142002
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
142003
+  (0.1ms) rollback transaction
142004
+  (0.0ms) begin transaction
142005
+ ------------------------------------------------------------------------------
142006
+ Fogged::ResourceTest: test_should_process_resource_video_with_zencoder_enabled
142007
+ ------------------------------------------------------------------------------
142008
+ spawn> parent PID = 20013
142009
+ spawn> child PID = 20017
142010
+ Fogged::Resource Load (0.8ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
142011
+  (0.2ms) begin transaction
142012
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-09-07 13:03:36.319199"], ["id", 335514824]]
142013
+  (0.8ms) commit transaction
142014
+ spawn> child[20017] took 0.080507 sec
142015
+  (0.5ms) begin transaction
142016
+ Fixture Delete (0.3ms) DELETE FROM "fogged_resources"
142017
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 517391740)
142018
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 701625837)
142019
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 819504217)
142020
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 132093124)
142021
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 431685987)
142022
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 620280917)
142023
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 335514824)
142024
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 183950720)
142025
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 1039265257)
142026
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 596998220)
142027
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 433078596)
142028
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 785871319)
142029
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 937304175)
142030
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 14225656)
142031
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 515736925)
142032
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-09-07 13:03:36', '2016-09-07 13:03:36', 538821867)
142033
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-09-07 13:03:36', '2016-09-07 13:03:36', 731805050)
142034
+ Fixture Delete (0.1ms) DELETE FROM "images"
142035
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 579229346)
142036
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 153115190)
142037
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
142038
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 419883833, 624739301, 701625837)
142039
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 849405871, 624739301, 819504217)
142040
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 98413728, 245026679, 784085492)
142041
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:36', '2016-09-07 13:03:36', 779853880, 245026679, 431685987)
142042
+ Fixture Delete (0.1ms) DELETE FROM "movies"
142043
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 624739301)
142044
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 245026679)
142045
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:03:36', '2016-09-07 13:03:36', 948421225)
142046
+  (1.1ms) commit transaction
142047
+  (0.1ms) begin transaction
142048
+ --------------------------------------------------------------------
142049
+ Fogged::ResourcesControllerDestroyTest: test_should_destroy_resource
142050
+ --------------------------------------------------------------------
142051
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
142052
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142053
+ Processing by Fogged::ResourcesController#destroy as HTML
142054
+ Parameters: {"id"=>"785871319"}
142055
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
142056
+  (0.0ms) SAVEPOINT active_record_1
142057
+ SQL (0.2ms) DELETE FROM "fogged_resources" WHERE "fogged_resources"."id" = ? [["id", 785871319]]
142058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142059
+ Completed 204 No Content in 2ms (ActiveRecord: 0.3ms)
142060
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142061
+  (0.5ms) rollback transaction
142062
+  (0.1ms) begin transaction
142063
+ ----------------------------------------------------------------------------------------
142064
+ Fogged::ResourcesControllerDestroyTest: test_should_not_destroy_resource_with_invalid_id
142065
+ ----------------------------------------------------------------------------------------
142066
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
142067
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142068
+ Processing by Fogged::ResourcesController#destroy as HTML
142069
+ Parameters: {"id"=>"123456"}
142070
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 123456]]
142071
+ Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms)
142072
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142073
+  (0.1ms) rollback transaction
142074
+  (0.1ms) begin transaction
142075
+ -------------------------------------------------------
142076
+ Fogged::Resources::EncoderTest: test_should_aws_encoder
142077
+ -------------------------------------------------------
142078
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
142079
+  (0.1ms) rollback transaction
142080
+  (0.0ms) begin transaction
142081
+ ------------------------------------------------------------------
142082
+ Fogged::ResourcesControllerCreateTest: test_should_create_resource
142083
+ ------------------------------------------------------------------
142084
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142085
+ Processing by Fogged::ResourcesController#create as HTML
142086
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>"image/png"}}
142087
+  (0.1ms) SAVEPOINT active_record_1
142088
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."token" = ? LIMIT 1 [["token", "8eed7ec3f355df1b43ea45e397a76121"]]
142089
+ SQL (0.3ms) INSERT INTO "fogged_resources" ("name", "content_type", "extension", "uploading", "token", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Dummy"], ["content_type", "image/png"], ["extension", "png"], ["uploading", "t"], ["token", "8eed7ec3f355df1b43ea45e397a76121"], ["created_at", "2016-09-07 13:03:36.368317"], ["updated_at", "2016-09-07 13:03:36.368317"]]
142090
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142091
+ Completed 200 OK in 5ms (Views: 1.4ms | ActiveRecord: 0.5ms)
142092
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142093
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
142094
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" ORDER BY "fogged_resources"."id" DESC LIMIT 1
142095
+  (0.4ms) rollback transaction
142096
+  (0.1ms) begin transaction
142097
+ --------------------------------------------------------------------------------------------
142098
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_with_invalid_filename
142099
+ --------------------------------------------------------------------------------------------
142100
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142101
+ Processing by Fogged::ResourcesController#create as HTML
142102
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"bar", "content_type"=>"image/png"}}
142103
+  (0.0ms) SAVEPOINT active_record_1
142104
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
142105
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
142106
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142107
+  (0.1ms) rollback transaction
142108
+  (0.2ms) begin transaction
142109
+ -------------------------------------------------------------------------------------------
142110
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_content_type
142111
+ -------------------------------------------------------------------------------------------
142112
+  (0.2ms) SELECT COUNT(*) FROM "fogged_resources"
142113
+ Processing by Fogged::ResourcesController#create as HTML
142114
+ Parameters: {"resource"=>{"name"=>"Dummy", "filename"=>"dummy.png", "content_type"=>""}}
142115
+  (0.1ms) SAVEPOINT active_record_1
142116
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
142117
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
142118
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142119
+  (0.1ms) rollback transaction
142120
+  (0.1ms) begin transaction
142121
+ ---------------------------------------------------------------------------------------
142122
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_filename
142123
+ ---------------------------------------------------------------------------------------
142124
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142125
+ Processing by Fogged::ResourcesController#create as HTML
142126
+ Parameters: {"resource"=>{"name"=>"Dummy", "content_type"=>"image/png"}}
142127
+ Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms)
142128
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142129
+  (0.1ms) rollback transaction
142130
+  (0.1ms) begin transaction
142131
+ -----------------------------------------------------------------------------------
142132
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_name
142133
+ -----------------------------------------------------------------------------------
142134
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142135
+ Processing by Fogged::ResourcesController#create as HTML
142136
+ Parameters: {"resource"=>{"name"=>"", "filename"=>"dummy.png", "content_type"=>"image/png"}}
142137
+  (0.1ms) SAVEPOINT active_record_1
142138
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
142139
+ Completed 422 Unprocessable Entity in 2ms (ActiveRecord: 0.1ms)
142140
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142141
+  (0.1ms) rollback transaction
142142
+  (0.1ms) begin transaction
142143
+ -------------------------------------------------------------------------------------------------
142144
+ Fogged::ResourcesControllerCreateTest: test_should_not_create_resource_without_resource_parameter
142145
+ -------------------------------------------------------------------------------------------------
142146
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142147
+ Processing by Fogged::ResourcesController#create as HTML
142148
+ Completed 400 Bad Request in 0ms (ActiveRecord: 0.0ms)
142149
+  (0.1ms) SELECT COUNT(*) FROM "fogged_resources"
142150
+  (0.1ms) rollback transaction
142151
+  (0.0ms) begin transaction
142152
+ --------------------------------------------------------------------------------------
142153
+ Fogged::ResourcesControllerUpdateTest: test_should_not_update_resource_with_invalid_id
142154
+ --------------------------------------------------------------------------------------
142155
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
142156
+ Processing by Fogged::ResourcesController#update as HTML
142157
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"1234567890"}
142158
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1234567890]]
142159
+ Completed 404 Not Found in 0ms (ActiveRecord: 0.0ms)
142160
+  (0.1ms) rollback transaction
142161
+  (0.0ms) begin transaction
142162
+ ------------------------------------------------------------------
142163
+ Fogged::ResourcesControllerUpdateTest: test_should_update_resource
142164
+ ------------------------------------------------------------------
142165
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
142166
+ Processing by Fogged::ResourcesController#update as HTML
142167
+ Parameters: {"resource"=>{"name"=>"Update"}, "id"=>"785871319"}
142168
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
142169
+  (0.0ms) SAVEPOINT active_record_1
142170
+ SQL (0.2ms) UPDATE "fogged_resources" SET "name" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["name", "Update"], ["updated_at", "2016-09-07 13:03:36.403441"], ["id", 785871319]]
142171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142172
+ Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.4ms)
142173
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
142174
+  (0.5ms) rollback transaction
142175
+  (0.1ms) begin transaction
142176
+ ----------------------------------------------------------------
142177
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file
142178
+ ----------------------------------------------------------------
142179
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
142180
+ spawn> parent PID = 20013
142181
+ spawn> child PID = 20018
142182
+  (1.5ms) SELECT COUNT(*) FROM "delayed_jobs"
142183
+ [ActiveJob] Enqueued Fogged::Resources::AWSThumbnailJob (Job ID: 98e8bc31-f4ed-42b4-b5f1-3e17ef125c70) to Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
142184
+  (0.1ms) begin transaction
142185
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 0], ["updated_at", "2016-09-07 13:03:36.501548"], ["id", 14225656]]
142186
+  (1.0ms) commit transaction
142187
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
142188
+ spawn> child[20018] took 0.081977 sec
142189
+  (0.6ms) begin transaction
142190
+ -----------------------------------------------------------------------
142191
+ Fogged::Resources::AWSEncoderTest: test_should_encode_image_file_inline
142192
+ -----------------------------------------------------------------------
142193
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 14225656]]
142194
+ spawn> parent PID = 20013
142195
+ spawn> child PID = 20019
142196
+  (0.4ms) SELECT COUNT(*) FROM "delayed_jobs"
142197
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [eda8cab1-d991-4692-a559-d4c4447b1f27] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/14225656
142198
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [eda8cab1-d991-4692-a559-d4c4447b1f27] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 1558.01ms
142199
+ spawn> Exception in child[20019] - OpenURI::HTTPError: 403 Forbidden
142200
+ spawn> /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:358:in `open_http'
142201
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
142202
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
142203
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
142204
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
142205
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
142206
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:716:in `open'
142207
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/open-uri.rb:34:in `open'
142208
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:13:in `block (3 levels) in perform'
142209
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
142210
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:12:in `block (2 levels) in perform'
142211
+ /Users/david/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tempfile.rb:319:in `open'
142212
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:11:in `block in perform'
142213
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each'
142214
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `each_with_index'
142215
+ /Users/david/projects/fogged/app/jobs/fogged/resources/aws_thumbnail_job.rb:10:in `perform'
142216
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:32:in `block in perform_now'
142217
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
142218
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
142219
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
142220
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
142221
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
142222
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
142223
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `call'
142224
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
142225
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `call'
142226
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
142227
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
142228
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
142229
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
142230
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
142231
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `block in tag_logger'
142232
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
142233
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
142234
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
142235
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:43:in `tag_logger'
142236
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
142237
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `instance_exec'
142238
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:441:in `block in make_lambda'
142239
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `call'
142240
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:342:in `block in simple'
142241
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `call'
142242
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:497:in `block in around'
142243
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
142244
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
142245
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
142246
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_perform_callbacks'
142247
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
142248
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:31:in `perform_now'
142249
+ /Users/david/.gem/ruby/2.2.2/gems/activejob-4.2.1/lib/active_job/execution.rb:16:in `perform_now'
142250
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:19:in `encode_image'
142251
+ /Users/david/projects/fogged/app/models/fogged/resources/aws_encoder.rb:10:in `encode!'
142252
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:115:in `block (3 levels) in <class:AWSEncoderTest>'
142253
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:71:in `assert_difference'
142254
+ /Users/david/.gem/ruby/2.2.2/gems/activesupport-4.2.1/lib/active_support/testing/assertions.rb:93:in `assert_no_difference'
142255
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:114:in `block (2 levels) in <class:AWSEncoderTest>'
142256
+ /Users/david/projects/fogged/test/test_helper.rb:43:in `block in in_a_fork'
142257
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `block in run'
142258
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:184:in `block in fork_it'
142259
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork'
142260
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:160:in `fork_it'
142261
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:122:in `run'
142262
+ /Users/david/.gem/ruby/2.2.2/gems/spawnling-2.1.6/lib/spawnling.rb:102:in `initialize'
142263
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `new'
142264
+ /Users/david/projects/fogged/test/test_helper.rb:40:in `in_a_fork'
142265
+ /Users/david/projects/fogged/test/models/fogged/resources/aws_encoder_test.rb:107:in `block in <class:AWSEncoderTest>'
142266
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:108:in `block (3 levels) in run'
142267
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:206:in `capture_exceptions'
142268
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:105:in `block (2 levels) in run'
142269
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:258:in `time_it'
142270
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:104:in `block in run'
142271
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
142272
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:278:in `with_info_handler'
142273
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest/test.rb:103:in `run'
142274
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-reporters-1.0.11/lib/minitest/reporters.rb:43:in `run_with_hooks'
142275
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:774:in `run_one_method'
142276
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:301:in `run_one_method'
142277
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:289:in `block (2 levels) in run'
142278
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `each'
142279
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:288:in `block in run'
142280
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:327:in `on_signal'
142281
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:314:in `with_info_handler'
142282
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:287:in `run'
142283
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `block in __run'
142284
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `map'
142285
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:150:in `__run'
142286
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:127:in `run'
142287
+ /Users/david/.gem/ruby/2.2.2/gems/minitest-5.5.1/lib/minitest.rb:56:in `block in autorun'
142288
+ spawn> child[20019] took 1.635457 sec
142289
+  (0.6ms) begin transaction
142290
+ ----------------------------------------------------------------
142291
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_file
142292
+ ----------------------------------------------------------------
142293
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142294
+ spawn> parent PID = 20013
142295
+ spawn> child PID = 20021
142296
+  (0.8ms) begin transaction
142297
+ SQL (0.5ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234567890"], ["encoding_progress", 0], ["updated_at", "2016-09-07 13:03:38.261185"], ["id", 1039265257]]
142298
+  (0.8ms) commit transaction
142299
+ spawn> child[20021] took 0.075071 sec
142300
+  (0.7ms) begin transaction
142301
+ -----------------------------------------------------------------------------------
142302
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_additional_outputs
142303
+ -----------------------------------------------------------------------------------
142304
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142305
+ spawn> parent PID = 20013
142306
+ spawn> child PID = 20022
142307
+  (0.4ms) begin transaction
142308
+  (0.1ms) commit transaction
142309
+ spawn> child[20022] took 0.061461 sec
142310
+  (0.5ms) begin transaction
142311
+ ------------------------------------------------------------------------------------------
142312
+ Fogged::Resources::AWSEncoderTest: test_should_encode_video_with_zencoder_notification_url
142313
+ ------------------------------------------------------------------------------------------
142314
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142315
+ spawn> parent PID = 20013
142316
+ spawn> child PID = 20023
142317
+  (0.7ms) begin transaction
142318
+  (0.1ms) commit transaction
142319
+ spawn> child[20023] took 0.064587 sec
142320
+  (0.5ms) begin transaction
142321
+ ----------------------------------------------------------------------------------------
142322
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_delayed_job
142323
+ ----------------------------------------------------------------------------------------
142324
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
142325
+ spawn> parent PID = 20013
142326
+ spawn> child PID = 20024
142327
+ spawn> child[20024] took 0.003673 sec
142328
+  (0.6ms) begin transaction
142329
+ ---------------------------------------------------------------------------------------
142330
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_image_file_without_minimagick
142331
+ ---------------------------------------------------------------------------------------
142332
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 937304175]]
142333
+ spawn> parent PID = 20013
142334
+ spawn> child PID = 20025
142335
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
142336
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
142337
+ spawn> child[20025] took 0.048709 sec
142338
+  (0.6ms) begin transaction
142339
+ ----------------------------------------------------------------------------------------
142340
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_delayed_job
142341
+ ----------------------------------------------------------------------------------------
142342
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 335514824]]
142343
+ spawn> parent PID = 20013
142344
+ spawn> child PID = 20026
142345
+ spawn> child[20026] took 0.003816 sec
142346
+  (0.4ms) begin transaction
142347
+ -------------------------------------------------------------------------------------
142348
+ Fogged::Resources::AWSEncoderTest: test_should_not_encode_video_file_without_zencoder
142349
+ -------------------------------------------------------------------------------------
142350
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 183950720]]
142351
+ spawn> parent PID = 20013
142352
+ spawn> child PID = 20027
142353
+  (0.2ms) SELECT COUNT(*) FROM "delayed_jobs"
142354
+  (0.1ms) SELECT COUNT(*) FROM "delayed_jobs"
142355
+ spawn> child[20027] took 0.05724 sec
142356
+  (0.5ms) begin transaction
142357
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
142358
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 517391740)
142359
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 701625837)
142360
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 819504217)
142361
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 132093124)
142362
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 431685987)
142363
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 620280917)
142364
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 335514824)
142365
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 183950720)
142366
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 1039265257)
142367
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 596998220)
142368
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 433078596)
142369
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 785871319)
142370
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 937304175)
142371
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 14225656)
142372
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 515736925)
142373
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-09-07 13:03:38', '2016-09-07 13:03:38', 538821867)
142374
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-09-07 13:03:38', '2016-09-07 13:03:38', 731805050)
142375
+ Fixture Delete (0.1ms) DELETE FROM "images"
142376
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 579229346)
142377
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 153115190)
142378
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
142379
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:38', '2016-09-07 13:03:38', 419883833, 624739301, 701625837)
142380
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:38', '2016-09-07 13:03:38', 849405871, 624739301, 819504217)
142381
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:38', '2016-09-07 13:03:38', 98413728, 245026679, 784085492)
142382
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:03:38', '2016-09-07 13:03:38', 779853880, 245026679, 431685987)
142383
+ Fixture Delete (0.1ms) DELETE FROM "movies"
142384
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 624739301)
142385
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 245026679)
142386
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:03:38', '2016-09-07 13:03:38', 948421225)
142387
+  (1.7ms) commit transaction
142388
+  (0.1ms) begin transaction
142389
+ ---------------------------------------------------
142390
+ ImageTest: test_image_url_changing_the_storage_name
142391
+ ---------------------------------------------------
142392
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 785871319]]
142393
+  (0.1ms) SAVEPOINT active_record_1
142394
+ SQL (0.3ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 785871319], ["created_at", "2016-09-07 13:03:38.679357"], ["updated_at", "2016-09-07 13:03:38.679357"]]
142395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142396
+  (0.4ms) rollback transaction
142397
+  (0.1ms) begin transaction
142398
+ -------------------------------------------------------------
142399
+ ImageTest: test_should_not_save_image_with_uploading_resource
142400
+ -------------------------------------------------------------
142401
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
142402
+  (0.0ms) SAVEPOINT active_record_1
142403
+ SQL (0.2ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-09-07 13:03:38.683937"], ["id", 701625837]]
142404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142405
+  (0.0ms) SAVEPOINT active_record_1
142406
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
142407
+  (0.4ms) rollback transaction
142408
+  (0.1ms) begin transaction
142409
+ --------------------------------------------------------
142410
+ ImageTest: test_should_save_image_with_uploaded_resource
142411
+ --------------------------------------------------------
142412
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
142413
+  (0.0ms) SAVEPOINT active_record_1
142414
+ SQL (0.2ms) INSERT INTO "images" ("name", "resource_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test"], ["resource_id", 701625837], ["created_at", "2016-09-07 13:03:38.687755"], ["updated_at", "2016-09-07 13:03:38.687755"]]
142415
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142416
+  (0.9ms) rollback transaction
142417
+  (0.0ms) begin transaction
142418
+ --------------------------------------------------
142419
+ ImageTest: test_should_save_image_without_resource
142420
+ --------------------------------------------------
142421
+  (0.0ms) SAVEPOINT active_record_1
142422
+ SQL (0.3ms) INSERT INTO "images" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-09-07 13:03:38.690670"], ["updated_at", "2016-09-07 13:03:38.690670"]]
142423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142424
+  (2.4ms) rollback transaction
142425
+  (0.1ms) begin transaction
142426
+ ------------------------------------------------------------------------------------
142427
+ Fogged::Resources::AWSThumbnailJobTest: test_should_not_thumbnail_with_unknown_image
142428
+ ------------------------------------------------------------------------------------
142429
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
142430
+ spawn> parent PID = 20013
142431
+ spawn> child PID = 20028
142432
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c081ba35-2cb1-4685-a3a1-88a99fa1f7c7] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
142433
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [c081ba35-2cb1-4685-a3a1-88a99fa1f7c7] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 2.96ms
142434
+ spawn> child[20028] took 0.032392 sec
142435
+  (0.6ms) begin transaction
142436
+ -----------------------------------------------------------------------
142437
+ Fogged::Resources::AWSThumbnailJobTest: test_should_thumbnail_the_image
142438
+ -----------------------------------------------------------------------
142439
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
142440
+ spawn> parent PID = 20013
142441
+ spawn> child PID = 20029
142442
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] Performing Fogged::Resources::AWSThumbnailJob from Test(default) with arguments: gid://dummy/Fogged::Resource/731805050
142443
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7]  (0.7ms) begin transaction
142444
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] SQL (0.4ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 50], ["updated_at", "2016-09-07 13:03:54.181201"], ["id", 731805050]]
142445
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7]  (0.7ms) commit transaction
142446
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7]  (0.1ms) begin transaction
142447
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["updated_at", "2016-09-07 13:06:02.004395"], ["id", 731805050]]
142448
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7]  (0.7ms) commit transaction
142449
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7]  (0.0ms) begin transaction
142450
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7]  (0.0ms) commit transaction
142451
+ [ActiveJob] [Fogged::Resources::AWSThumbnailJob] [87bde3fd-2a11-426b-b9de-60004716d9b7] Performed Fogged::Resources::AWSThumbnailJob from Test(default) in 143208.66ms
142452
+ Fogged::Resource Load (0.3ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 731805050]]
142453
+ spawn> child[20029] took 143.246525 sec
142454
+  (0.5ms) begin transaction
142455
+ Fixture Delete (0.2ms) DELETE FROM "fogged_resources"
142456
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 0', 'qwertzuiop0', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 517391740)
142457
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 1', 'qwertzuiop1', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 701625837)
142458
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 2', 'qwertzuiop2', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 819504217)
142459
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 3', 'qwertzuiop3', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 132093124)
142460
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('txt', 'f', 'text/plain', 'resource text 4', 'qwertzuiop4', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 431685987)
142461
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 0', 'mov0', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 620280917)
142462
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', 'mov1', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 335514824)
142463
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 2', 'mov2', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 183950720)
142464
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 3', 'mov3', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 1039265257)
142465
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 4', 'mov4', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 596998220)
142466
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 0', 'png0', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 433078596)
142467
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 1', 'png1', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 785871319)
142468
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 2', 'png2', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 937304175)
142469
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 3', 'png3', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 14225656)
142470
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png 4', 'png4', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 515736925)
142471
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_job_id", "encoding_progress", "created_at", "updated_at", "id") VALUES ('mov', 'f', 'video/quicktime', 'resource mov 1', '1234567890mov', '1234567890', 10, '2016-09-07 13:06:02', '2016-09-07 13:06:02', 538821867)
142472
+ Fixture Insert (0.1ms) INSERT INTO "fogged_resources" ("extension", "uploading", "content_type", "name", "token", "encoding_progress", "created_at", "updated_at", "id") VALUES ('png', 'f', 'image/png', 'resource png thumbnail', 'pngthumbnail', 0, '2016-09-07 13:06:02', '2016-09-07 13:06:02', 731805050)
142473
+ Fixture Delete (0.1ms) DELETE FROM "images"
142474
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image one', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 579229346)
142475
+ Fixture Insert (0.1ms) INSERT INTO "images" ("name", "created_at", "updated_at", "id") VALUES ('image two', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 153115190)
142476
+ Fixture Delete (0.1ms) DELETE FROM "movie_fogged_resources"
142477
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:06:02', '2016-09-07 13:06:02', 419883833, 624739301, 701625837)
142478
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:06:02', '2016-09-07 13:06:02', 849405871, 624739301, 819504217)
142479
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:06:02', '2016-09-07 13:06:02', 98413728, 245026679, 784085492)
142480
+ Fixture Insert (0.1ms) INSERT INTO "movie_fogged_resources" ("created_at", "updated_at", "id", "movie_id", "resource_id") VALUES ('2016-09-07 13:06:02', '2016-09-07 13:06:02', 779853880, 245026679, 431685987)
142481
+ Fixture Delete (0.1ms) DELETE FROM "movies"
142482
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie one', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 624739301)
142483
+ Fixture Insert (0.1ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie two', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 245026679)
142484
+ Fixture Insert (0.0ms) INSERT INTO "movies" ("name", "created_at", "updated_at", "id") VALUES ('Movie three', '2016-09-07 13:06:02', '2016-09-07 13:06:02', 948421225)
142485
+  (0.9ms) commit transaction
142486
+  (0.1ms) begin transaction
142487
+ ----------------------------------------------------------------------------------------------
142488
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification
142489
+ ----------------------------------------------------------------------------------------------
142490
+ Fogged::Resource Load (0.2ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142491
+  (0.0ms) SAVEPOINT active_record_1
142492
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-09-07 13:06:02.044931"], ["id", 1039265257]]
142493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142494
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
142495
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
142496
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
142497
+  (0.0ms) SAVEPOINT active_record_1
142498
+ SQL (0.3ms) UPDATE "fogged_resources" SET "encoding_progress" = ?, "width" = ?, "height" = ?, "duration" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_progress", 100], ["width", 640], ["height", 480], ["duration", 85], ["updated_at", "2016-09-07 13:06:02.050845"], ["id", 1039265257]]
142499
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142500
+ Completed 200 OK in 3ms (ActiveRecord: 0.5ms)
142501
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142502
+  (0.8ms) rollback transaction
142503
+  (0.0ms) begin transaction
142504
+ --------------------------------------------------------------------------------------------------------------
142505
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_failed_job
142506
+ --------------------------------------------------------------------------------------------------------------
142507
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142508
+  (0.0ms) SAVEPOINT active_record_1
142509
+ SQL (0.1ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-09-07 13:06:02.055333"], ["id", 1039265257]]
142510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142511
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
142512
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"failed"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
142513
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
142514
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
142515
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142516
+  (0.4ms) rollback transaction
142517
+  (0.1ms) begin transaction
142518
+ --------------------------------------------------------------------------------------------------------------
142519
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_id
142520
+ --------------------------------------------------------------------------------------------------------------
142521
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142522
+  (0.1ms) SAVEPOINT active_record_1
142523
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-09-07 13:06:02.062258"], ["id", 1039265257]]
142524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142525
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
142526
+ Parameters: {"job"=>{"id"=>"foobar!", "state"=>"finished"}, "outputs"=>[{"duration_in_ms"=>"85600", "height"=>"480", "width"=>"640"}]}
142527
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "foobar!"]]
142528
+ Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
142529
+  (0.4ms) rollback transaction
142530
+  (0.1ms) begin transaction
142531
+ -------------------------------------------------------------------------------------------------------------------
142532
+ Fogged::ResourcesControllerZencoderNotificationTest: test_should_receive_zencoder_notification_with_invalid_payload
142533
+ -------------------------------------------------------------------------------------------------------------------
142534
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142535
+  (0.1ms) SAVEPOINT active_record_1
142536
+ SQL (0.2ms) UPDATE "fogged_resources" SET "encoding_job_id" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["encoding_job_id", "1234565434567890"], ["updated_at", "2016-09-07 13:06:02.068200"], ["id", 1039265257]]
142537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142538
+ Processing by Fogged::ResourcesController#zencoder_notification as HTML
142539
+ Parameters: {"job"=>{"id"=>"1234565434567890", "state"=>"finished"}}
142540
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."encoding_job_id" = ? LIMIT 1 [["encoding_job_id", "1234565434567890"]]
142541
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
142542
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 1039265257]]
142543
+  (0.5ms) rollback transaction
142544
+  (0.1ms) begin transaction
142545
+ -------------------------------------------------------------
142546
+ MovieTest: test_should_not_save_movie_with_uploading_resource
142547
+ -------------------------------------------------------------
142548
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
142549
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
142550
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 431685987]]
142551
+  (0.1ms) SAVEPOINT active_record_1
142552
+ SQL (0.3ms) UPDATE "fogged_resources" SET "uploading" = ?, "updated_at" = ? WHERE "fogged_resources"."id" = ? [["uploading", "t"], ["updated_at", "2016-09-07 13:06:02.081798"], ["id", 431685987]]
142553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142554
+  (0.1ms) SAVEPOINT active_record_1
142555
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
142556
+  (0.4ms) rollback transaction
142557
+  (0.0ms) begin transaction
142558
+ ---------------------------------------------------
142559
+ MovieTest: test_should_save_movie_with_no_resources
142560
+ ---------------------------------------------------
142561
+  (0.0ms) SAVEPOINT active_record_1
142562
+ SQL (0.2ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-09-07 13:06:02.088049"], ["updated_at", "2016-09-07 13:06:02.088049"]]
142563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142564
+  (0.4ms) rollback transaction
142565
+  (0.1ms) begin transaction
142566
+ --------------------------------------------------------
142567
+ MovieTest: test_should_save_movie_with_several_resources
142568
+ --------------------------------------------------------
142569
+ Fogged::Resource Load (0.1ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 701625837]]
142570
+ Fogged::Resource Load (0.0ms) SELECT "fogged_resources".* FROM "fogged_resources" WHERE "fogged_resources"."id" = ? LIMIT 1 [["id", 819504217]]
142571
+  (0.1ms) SAVEPOINT active_record_1
142572
+ SQL (0.3ms) INSERT INTO "movies" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "test"], ["created_at", "2016-09-07 13:06:02.094288"], ["updated_at", "2016-09-07 13:06:02.094288"]]
142573
+ SQL (0.2ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 701625837], ["movie_id", 948421228], ["created_at", "2016-09-07 13:06:02.095880"], ["updated_at", "2016-09-07 13:06:02.095880"]]
142574
+ SQL (0.0ms) INSERT INTO "movie_fogged_resources" ("resource_id", "movie_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["resource_id", 819504217], ["movie_id", 948421228], ["created_at", "2016-09-07 13:06:02.097166"], ["updated_at", "2016-09-07 13:06:02.097166"]]
142575
+  (0.1ms) RELEASE SAVEPOINT active_record_1
142576
+  (0.5ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fogged
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Fernandez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-15 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails