modulate 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module Modulate
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -4805,3 +4805,327 @@ Processing by Modulate::DocumentsController#show as HTML
4805
4805
  Rendered text template (0.0ms)
4806
4806
  Sent data (5.6ms)
4807
4807
  Completed 200 OK in 13ms (Views: 5.4ms | ActiveRecord: 0.7ms)
4808
+ Connecting to database specified by database.yml
4809
+  (0.2ms) BEGIN
4810
+ SQL (2.2ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-05-30 18:19:39', 'test_account', '2013-05-30 18:19:39')
4811
+  (0.5ms) COMMIT
4812
+ Started GET "/accounts/164" for 127.0.0.1 at 2013-05-30 14:19:39 -0400
4813
+ Processing by AccountsController#show as HTML
4814
+ Parameters: {"id"=>"164"}
4815
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 164 LIMIT 1
4816
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 164 AND `modulate_documents`.`attachable_type` = 'Account'
4817
+ Rendered accounts/_modulate_account_documents.html.haml (109.7ms)
4818
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 164 AND `modulate_documents`.`attachable_type` = 'Account'
4819
+ Rendered accounts/_modulate_attachments.html.haml (313.2ms)
4820
+ Rendered accounts/show.html.erb within layouts/application (323.2ms)
4821
+ Completed 200 OK in 351ms (Views: 340.6ms | ActiveRecord: 3.7ms)
4822
+ Started PUT "/accounts/164" for 127.0.0.1 at 2013-05-30 14:19:40 -0400
4823
+ Processing by AccountsController#update as HTML
4824
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_uploads_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007f873a872b20 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_uploads_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130530-24297-1uox9p3>>}]}, "button"=>"", "id"=>"164"}
4825
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 164 LIMIT 1
4826
+ Modulate::Document Load (0.6ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 164 AND `modulate_documents`.`attachable_type` = 'Account'
4827
+  (0.1ms) BEGIN
4828
+ Modulate::Document Exists (0.4ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '164-1369937980-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
4829
+ SQL (0.4ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (164, 'Account', NULL, '164-1369937980-test.txt', 'Dummy::Account', 'text/plain', '2013-05-30 18:19:40', 'test.txt', '164-1369937980-test.txt', 'Test', 0, '2013-05-30 18:19:40')
4830
+  (0.4ms) COMMIT
4831
+ Redirected to http://www.example.com/accounts
4832
+ Completed 302 Found in 187ms (ActiveRecord: 2.4ms)
4833
+ Started GET "/accounts" for 127.0.0.1 at 2013-05-30 14:19:40 -0400
4834
+ Processing by AccountsController#index as HTML
4835
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` 
4836
+ Rendered accounts/index.html.haml within layouts/application (1.2ms)
4837
+ Completed 200 OK in 26ms (Views: 4.9ms | ActiveRecord: 0.4ms)
4838
+  (0.1ms) BEGIN
4839
+ SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-05-30 18:19:40', 'test_account', '2013-05-30 18:19:40')
4840
+  (0.4ms) COMMIT
4841
+ Started GET "/accounts/165" for 127.0.0.1 at 2013-05-30 14:19:40 -0400
4842
+ Processing by AccountsController#show as HTML
4843
+ Parameters: {"id"=>"165"}
4844
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 165 LIMIT 1
4845
+  (0.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 165 AND `modulate_documents`.`attachable_type` = 'Account'
4846
+ Rendered accounts/_modulate_account_documents.html.haml (2.8ms)
4847
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 165 AND `modulate_documents`.`attachable_type` = 'Account'
4848
+ Rendered accounts/_modulate_attachments.html.haml (38.7ms)
4849
+ Rendered accounts/show.html.erb within layouts/application (39.1ms)
4850
+ Completed 200 OK in 44ms (Views: 41.1ms | ActiveRecord: 1.0ms)
4851
+ Started PUT "/accounts/165" for 127.0.0.1 at 2013-05-30 14:19:40 -0400
4852
+ Processing by AccountsController#update as HTML
4853
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_uploads_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007f8739b91f78 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_uploads_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130530-24297-58ymo1>>}]}, "button"=>"", "id"=>"165"}
4854
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 165 LIMIT 1
4855
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 165 AND `modulate_documents`.`attachable_type` = 'Account'
4856
+  (0.1ms) BEGIN
4857
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '165-1369937980-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
4858
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (165, 'Account', NULL, '165-1369937980-test.txt', 'Dummy::Account', 'text/plain', '2013-05-30 18:19:40', 'test.txt', '165-1369937980-test.txt', 'Test', 0, '2013-05-30 18:19:40')
4859
+  (0.4ms) COMMIT
4860
+ Redirected to http://www.example.com/accounts
4861
+ Completed 302 Found in 87ms (ActiveRecord: 1.8ms)
4862
+ Started GET "/accounts" for 127.0.0.1 at 2013-05-30 14:19:40 -0400
4863
+ Processing by AccountsController#index as HTML
4864
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts`
4865
+ Rendered accounts/index.html.haml within layouts/application (0.1ms)
4866
+ Completed 200 OK in 23ms (Views: 2.9ms | ActiveRecord: 0.4ms)
4867
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` ORDER BY `modulate_documents`.`id` DESC LIMIT 1
4868
+  (0.1ms) BEGIN
4869
+ SQL (0.2ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-05-30 18:19:40', 'test_account', '2013-05-30 18:19:40')
4870
+  (0.4ms) COMMIT
4871
+ Started GET "/accounts/166" for 127.0.0.1 at 2013-05-30 14:19:40 -0400
4872
+ Processing by AccountsController#show as HTML
4873
+ Parameters: {"id"=>"166"}
4874
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1
4875
+  (0.4ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 166 AND `modulate_documents`.`attachable_type` = 'Account'
4876
+ Rendered accounts/_modulate_account_documents.html.haml (2.6ms)
4877
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 166 AND `modulate_documents`.`attachable_type` = 'Account'
4878
+ Rendered accounts/_modulate_attachments.html.haml (37.7ms)
4879
+ Rendered accounts/show.html.erb within layouts/application (38.2ms)
4880
+ Completed 200 OK in 43ms (Views: 40.0ms | ActiveRecord: 1.0ms)
4881
+ Started PUT "/accounts/166" for 127.0.0.1 at 2013-05-30 14:19:40 -0400
4882
+ Processing by AccountsController#update as HTML
4883
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_uploads_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007f873a9f8e18 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_uploads_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130530-24297-1rkjbrx>>}]}, "button"=>"", "id"=>"166"}
4884
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1
4885
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 166 AND `modulate_documents`.`attachable_type` = 'Account'
4886
+  (0.1ms) BEGIN
4887
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '166-1369937980-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
4888
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (166, 'Account', NULL, '166-1369937980-test.txt', 'Dummy::Account', 'text/plain', '2013-05-30 18:19:40', 'test.txt', '166-1369937980-test.txt', 'Test', 0, '2013-05-30 18:19:40')
4889
+  (0.4ms) COMMIT
4890
+ Redirected to http://www.example.com/accounts
4891
+ Completed 302 Found in 32ms (ActiveRecord: 1.8ms)
4892
+ Started GET "/accounts" for 127.0.0.1 at 2013-05-30 14:19:40 -0400
4893
+ Processing by AccountsController#index as HTML
4894
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts`
4895
+ Rendered accounts/index.html.haml within layouts/application (0.1ms)
4896
+ Completed 200 OK in 24ms (Views: 3.0ms | ActiveRecord: 0.4ms)
4897
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` ORDER BY `modulate_documents`.`id` DESC LIMIT 1
4898
+ Started GET "/accounts/166" for 127.0.0.1 at 2013-05-30 14:19:40 -0400
4899
+ Processing by AccountsController#show as HTML
4900
+ Parameters: {"id"=>"166"}
4901
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 166 LIMIT 1
4902
+  (0.4ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 166 AND `modulate_documents`.`attachable_type` = 'Account'
4903
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 166 AND `modulate_documents`.`attachable_type` = 'Account'
4904
+ Rendered accounts/_modulate_account_documents.html.haml (8.6ms)
4905
+ CACHE (0.0ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 166 AND `modulate_documents`.`attachable_type` = 'Account'
4906
+ Rendered accounts/_modulate_attachments.html.haml (43.7ms)
4907
+ Rendered accounts/show.html.erb within layouts/application (44.2ms)
4908
+ Completed 200 OK in 49ms (Views: 46.0ms | ActiveRecord: 1.0ms)
4909
+ Started GET "/modulate/documents/132" for 127.0.0.1 at 2013-05-30 14:19:41 -0400
4910
+ Processing by Modulate::DocumentsController#show as HTML
4911
+ Parameters: {"id"=>"132"}
4912
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`id` = 132 LIMIT 1
4913
+ Rendered text template (0.0ms)
4914
+ Sent data test.txt (4.7ms)
4915
+ Completed 200 OK in 18ms (Views: 4.5ms | ActiveRecord: 0.3ms)
4916
+ Connecting to database specified by database.yml
4917
+  (0.1ms) BEGIN
4918
+ SQL (2.5ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-05-30 18:20:41', 'test_account', '2013-05-30 18:20:41')
4919
+  (0.4ms) COMMIT
4920
+ Started GET "/accounts/167" for 127.0.0.1 at 2013-05-30 14:20:41 -0400
4921
+ Processing by AccountsController#show as HTML
4922
+ Parameters: {"id"=>"167"}
4923
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1
4924
+  (0.4ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 167 AND `modulate_documents`.`attachable_type` = 'Account'
4925
+ Rendered accounts/_modulate_account_documents.html.haml (107.6ms)
4926
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 167 AND `modulate_documents`.`attachable_type` = 'Account'
4927
+ Rendered accounts/_modulate_attachments.html.haml (312.6ms)
4928
+ Rendered accounts/show.html.erb within layouts/application (328.6ms)
4929
+ Completed 200 OK in 359ms (Views: 347.6ms | ActiveRecord: 3.6ms)
4930
+ Started PUT "/accounts/167" for 127.0.0.1 at 2013-05-30 14:20:42 -0400
4931
+ Processing by AccountsController#update as HTML
4932
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_uploads_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007f80c8e23e48 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_uploads_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130530-24587-1rc1lm4>>}]}, "button"=>"", "id"=>"167"}
4933
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1
4934
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 167 AND `modulate_documents`.`attachable_type` = 'Account'
4935
+  (0.1ms) BEGIN
4936
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '167-1369938042-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
4937
+ SQL (3.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (167, 'Account', NULL, '167-1369938042-test.txt', 'Dummy::Account', 'text/plain', '2013-05-30 18:20:42', 'test.txt', '167-1369938042-test.txt', 'Test', 0, '2013-05-30 18:20:42')
4938
+  (0.7ms) COMMIT
4939
+ Redirected to http://www.example.com/accounts
4940
+ Completed 302 Found in 295ms (ActiveRecord: 5.1ms)
4941
+ Started GET "/accounts" for 127.0.0.1 at 2013-05-30 14:20:42 -0400
4942
+ Processing by AccountsController#index as HTML
4943
+ Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` 
4944
+ Rendered accounts/index.html.haml within layouts/application (1.4ms)
4945
+ Completed 200 OK in 32ms (Views: 5.3ms | ActiveRecord: 0.7ms)
4946
+ Modulate::Document Load (1.5ms) SELECT `modulate_documents`.* FROM `modulate_documents` ORDER BY `modulate_documents`.`id` DESC LIMIT 1
4947
+ Started GET "/accounts/167" for 127.0.0.1 at 2013-05-30 14:20:42 -0400
4948
+ Processing by AccountsController#show as HTML
4949
+ Parameters: {"id"=>"167"}
4950
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 167 LIMIT 1
4951
+  (0.4ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 167 AND `modulate_documents`.`attachable_type` = 'Account'
4952
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 167 AND `modulate_documents`.`attachable_type` = 'Account'
4953
+ Rendered accounts/_modulate_account_documents.html.haml (13.9ms)
4954
+ CACHE (0.0ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 167 AND `modulate_documents`.`attachable_type` = 'Account'
4955
+ Rendered accounts/_modulate_attachments.html.haml (68.4ms)
4956
+ Rendered accounts/show.html.erb within layouts/application (69.0ms)
4957
+ Completed 200 OK in 75ms (Views: 71.7ms | ActiveRecord: 1.1ms)
4958
+ Started GET "/modulate/documents/133" for 127.0.0.1 at 2013-05-30 14:20:43 -0400
4959
+ Processing by Modulate::DocumentsController#show as HTML
4960
+ Parameters: {"id"=>"133"}
4961
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`id` = 133 LIMIT 1
4962
+ Rendered text template (0.0ms)
4963
+ Sent data test.txt (106.3ms)
4964
+ Completed 200 OK in 155ms (Views: 106.1ms | ActiveRecord: 0.3ms)
4965
+  (0.3ms) BEGIN
4966
+ SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-05-30 18:20:43', 'test_account', '2013-05-30 18:20:43')
4967
+  (1.6ms) COMMIT
4968
+ Started GET "/accounts/168" for 127.0.0.1 at 2013-05-30 14:20:43 -0400
4969
+ Processing by AccountsController#show as HTML
4970
+ Parameters: {"id"=>"168"}
4971
+ Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 168 LIMIT 1
4972
+  (2.3ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 168 AND `modulate_documents`.`attachable_type` = 'Account'
4973
+ Rendered accounts/_modulate_account_documents.html.haml (7.0ms)
4974
+ Modulate::Document Load (0.6ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 168 AND `modulate_documents`.`attachable_type` = 'Account'
4975
+ Rendered accounts/_modulate_attachments.html.haml (211.6ms)
4976
+ Rendered accounts/show.html.erb within layouts/application (212.2ms)
4977
+ Completed 200 OK in 224ms (Views: 214.9ms | ActiveRecord: 3.6ms)
4978
+ Started PUT "/accounts/168" for 127.0.0.1 at 2013-05-30 14:20:43 -0400
4979
+ Processing by AccountsController#update as HTML
4980
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_uploads_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007f80c94f4380 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_uploads_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130530-24587-bc58ne>>}]}, "button"=>"", "id"=>"168"}
4981
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 168 LIMIT 1
4982
+ Modulate::Document Load (11.5ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 168 AND `modulate_documents`.`attachable_type` = 'Account'
4983
+  (38.4ms) BEGIN
4984
+ Modulate::Document Exists (0.5ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '168-1369938043-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
4985
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (168, 'Account', NULL, '168-1369938043-test.txt', 'Dummy::Account', 'text/plain', '2013-05-30 18:20:43', 'test.txt', '168-1369938043-test.txt', 'Test', 0, '2013-05-30 18:20:43')
4986
+  (0.5ms) COMMIT
4987
+ Redirected to http://www.example.com/accounts
4988
+ Completed 302 Found in 114ms (ActiveRecord: 51.5ms)
4989
+ Started GET "/accounts" for 127.0.0.1 at 2013-05-30 14:20:43 -0400
4990
+ Processing by AccountsController#index as HTML
4991
+ Account Load (0.7ms) SELECT `accounts`.* FROM `accounts`
4992
+ Rendered accounts/index.html.haml within layouts/application (0.1ms)
4993
+ Completed 200 OK in 29ms (Views: 4.6ms | ActiveRecord: 0.7ms)
4994
+ Modulate::Document Load (0.5ms) SELECT `modulate_documents`.* FROM `modulate_documents` ORDER BY `modulate_documents`.`id` DESC LIMIT 1
4995
+  (0.4ms) BEGIN
4996
+ SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-05-30 18:20:43', 'test_account', '2013-05-30 18:20:43')
4997
+  (0.4ms) COMMIT
4998
+ Started GET "/accounts/169" for 127.0.0.1 at 2013-05-30 14:20:43 -0400
4999
+ Processing by AccountsController#show as HTML
5000
+ Parameters: {"id"=>"169"}
5001
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 169 LIMIT 1
5002
+  (0.4ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 169 AND `modulate_documents`.`attachable_type` = 'Account'
5003
+ Rendered accounts/_modulate_account_documents.html.haml (3.6ms)
5004
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 169 AND `modulate_documents`.`attachable_type` = 'Account'
5005
+ Rendered accounts/_modulate_attachments.html.haml (43.9ms)
5006
+ Rendered accounts/show.html.erb within layouts/application (44.4ms)
5007
+ Completed 200 OK in 49ms (Views: 46.3ms | ActiveRecord: 1.1ms)
5008
+ Started PUT "/accounts/169" for 127.0.0.1 at 2013-05-30 14:20:43 -0400
5009
+ Processing by AccountsController#update as HTML
5010
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_uploads_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007f80cb3fc598 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_uploads_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130530-24587-fsirsm>>}]}, "button"=>"", "id"=>"169"}
5011
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 169 LIMIT 1
5012
+ Modulate::Document Load (2.0ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 169 AND `modulate_documents`.`attachable_type` = 'Account'
5013
+  (1.8ms) BEGIN
5014
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '169-1369938043-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
5015
+ SQL (0.4ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (169, 'Account', NULL, '169-1369938043-test.txt', 'Dummy::Account', 'text/plain', '2013-05-30 18:20:43', 'test.txt', '169-1369938043-test.txt', 'Test', 0, '2013-05-30 18:20:43')
5016
+  (0.4ms) COMMIT
5017
+ Redirected to http://www.example.com/accounts
5018
+ Completed 302 Found in 44ms (ActiveRecord: 5.3ms)
5019
+ Started GET "/accounts" for 127.0.0.1 at 2013-05-30 14:20:43 -0400
5020
+ Processing by AccountsController#index as HTML
5021
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts`
5022
+ Rendered accounts/index.html.haml within layouts/application (0.1ms)
5023
+ Completed 200 OK in 25ms (Views: 3.0ms | ActiveRecord: 0.5ms)
5024
+ Connecting to database specified by database.yml
5025
+  (0.2ms) BEGIN
5026
+ SQL (3.7ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-05-30 18:21:59', 'test_account', '2013-05-30 18:21:59')
5027
+  (0.4ms) COMMIT
5028
+ Started GET "/accounts/170" for 127.0.0.1 at 2013-05-30 14:21:59 -0400
5029
+ Processing by AccountsController#show as HTML
5030
+ Parameters: {"id"=>"170"}
5031
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1
5032
+  (0.4ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 170 AND `modulate_documents`.`attachable_type` = 'Account'
5033
+ Rendered accounts/_modulate_account_documents.html.haml (65.7ms)
5034
+ Modulate::Document Load (0.5ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 170 AND `modulate_documents`.`attachable_type` = 'Account'
5035
+ Rendered accounts/_modulate_attachments.html.haml (374.1ms)
5036
+ Rendered accounts/show.html.erb within layouts/application (442.9ms)
5037
+ Completed 200 OK in 475ms (Views: 460.8ms | ActiveRecord: 5.2ms)
5038
+ Started PUT "/accounts/170" for 127.0.0.1 at 2013-05-30 14:22:00 -0400
5039
+ Processing by AccountsController#update as HTML
5040
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_uploads_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fedf35f5440 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_uploads_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130530-25315-b1t1no>>}]}, "button"=>"", "id"=>"170"}
5041
+ Account Load (0.4ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 170 LIMIT 1
5042
+ Modulate::Document Load (0.5ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 170 AND `modulate_documents`.`attachable_type` = 'Account'
5043
+  (0.1ms) BEGIN
5044
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '170-1369938120-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
5045
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (170, 'Account', NULL, '170-1369938120-test.txt', 'Dummy::Account', 'text/plain', '2013-05-30 18:22:00', 'test.txt', '170-1369938120-test.txt', 'Test', 0, '2013-05-30 18:22:00')
5046
+  (0.4ms) COMMIT
5047
+ Redirected to http://www.example.com/accounts
5048
+ Completed 302 Found in 198ms (ActiveRecord: 2.0ms)
5049
+ Started GET "/accounts" for 127.0.0.1 at 2013-05-30 14:22:00 -0400
5050
+ Processing by AccountsController#index as HTML
5051
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` 
5052
+ Rendered accounts/index.html.haml within layouts/application (1.2ms)
5053
+ Completed 200 OK in 29ms (Views: 5.8ms | ActiveRecord: 0.5ms)
5054
+  (0.1ms) BEGIN
5055
+ SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-05-30 18:22:00', 'test_account', '2013-05-30 18:22:00')
5056
+  (0.4ms) COMMIT
5057
+ Started GET "/accounts/171" for 127.0.0.1 at 2013-05-30 14:22:00 -0400
5058
+ Processing by AccountsController#show as HTML
5059
+ Parameters: {"id"=>"171"}
5060
+ Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 171 LIMIT 1
5061
+  (0.6ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 171 AND `modulate_documents`.`attachable_type` = 'Account'
5062
+ Rendered accounts/_modulate_account_documents.html.haml (3.1ms)
5063
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 171 AND `modulate_documents`.`attachable_type` = 'Account'
5064
+ Rendered accounts/_modulate_attachments.html.haml (41.6ms)
5065
+ Rendered accounts/show.html.erb within layouts/application (42.1ms)
5066
+ Completed 200 OK in 48ms (Views: 44.2ms | ActiveRecord: 1.7ms)
5067
+ Started PUT "/accounts/171" for 127.0.0.1 at 2013-05-30 14:22:00 -0400
5068
+ Processing by AccountsController#update as HTML
5069
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_uploads_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fedf37e63f8 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_uploads_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130530-25315-1tnxb2z>>}]}, "button"=>"", "id"=>"171"}
5070
+ Account Load (0.7ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 171 LIMIT 1
5071
+ Modulate::Document Load (0.5ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 171 AND `modulate_documents`.`attachable_type` = 'Account'
5072
+  (0.1ms) BEGIN
5073
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '171-1369938120-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
5074
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (171, 'Account', NULL, '171-1369938120-test.txt', 'Dummy::Account', 'text/plain', '2013-05-30 18:22:00', 'test.txt', '171-1369938120-test.txt', 'Test', 0, '2013-05-30 18:22:00')
5075
+  (0.5ms) COMMIT
5076
+ Redirected to http://www.example.com/accounts
5077
+ Completed 302 Found in 39ms (ActiveRecord: 2.4ms)
5078
+ Started GET "/accounts" for 127.0.0.1 at 2013-05-30 14:22:00 -0400
5079
+ Processing by AccountsController#index as HTML
5080
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts`
5081
+ Rendered accounts/index.html.haml within layouts/application (0.1ms)
5082
+ Completed 200 OK in 25ms (Views: 3.1ms | ActiveRecord: 0.5ms)
5083
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` ORDER BY `modulate_documents`.`id` DESC LIMIT 1
5084
+  (0.1ms) BEGIN
5085
+ SQL (0.3ms) INSERT INTO `accounts` (`created_at`, `name`, `updated_at`) VALUES ('2013-05-30 18:22:01', 'test_account', '2013-05-30 18:22:01')
5086
+  (0.4ms) COMMIT
5087
+ Started GET "/accounts/172" for 127.0.0.1 at 2013-05-30 14:22:01 -0400
5088
+ Processing by AccountsController#show as HTML
5089
+ Parameters: {"id"=>"172"}
5090
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 172 LIMIT 1
5091
+  (0.4ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 172 AND `modulate_documents`.`attachable_type` = 'Account'
5092
+ Rendered accounts/_modulate_account_documents.html.haml (3.0ms)
5093
+ Modulate::Document Load (0.5ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 172 AND `modulate_documents`.`attachable_type` = 'Account'
5094
+ Rendered accounts/_modulate_attachments.html.haml (45.6ms)
5095
+ Rendered accounts/show.html.erb within layouts/application (46.0ms)
5096
+ Completed 200 OK in 51ms (Views: 47.9ms | ActiveRecord: 1.2ms)
5097
+ Started PUT "/accounts/172" for 127.0.0.1 at 2013-05-30 14:22:01 -0400
5098
+ Processing by AccountsController#update as HTML
5099
+ Parameters: {"utf8"=>"✓", "account"=>{"modulate_uploads_attributes"=>[{"attachment"=>#<ActionDispatch::Http::UploadedFile:0x007fedf6c5d578 @original_filename="test.txt", @content_type="text/plain", @headers="Content-Disposition: form-data; name=\"account[modulate_uploads_attributes][][attachment]\"; filename=\"test.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 25\r\n", @tempfile=#<File:/var/folders/lb/j1c12jc524zfb75l84v94qr40000gn/T/RackMultipart20130530-25315-a84obj>>}]}, "button"=>"", "id"=>"172"}
5100
+ Account Load (0.3ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 172 LIMIT 1
5101
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 172 AND `modulate_documents`.`attachable_type` = 'Account'
5102
+  (0.1ms) BEGIN
5103
+ Modulate::Document Exists (0.3ms) SELECT 1 AS one FROM `modulate_documents` WHERE (`modulate_documents`.`key` = BINARY '172-1369938121-test.txt' AND `modulate_documents`.`bucket` = 'Dummy::Account') LIMIT 1
5104
+ SQL (0.3ms) INSERT INTO `modulate_documents` (`attachable_id`, `attachable_type`, `attached_by_id`, `attachment`, `bucket`, `content_type`, `created_at`, `filename`, `key`, `label`, `public`, `updated_at`) VALUES (172, 'Account', NULL, '172-1369938121-test.txt', 'Dummy::Account', 'text/plain', '2013-05-30 18:22:01', 'test.txt', '172-1369938121-test.txt', 'Test', 0, '2013-05-30 18:22:01')
5105
+  (0.4ms) COMMIT
5106
+ Redirected to http://www.example.com/accounts
5107
+ Completed 302 Found in 39ms (ActiveRecord: 1.8ms)
5108
+ Started GET "/accounts" for 127.0.0.1 at 2013-05-30 14:22:01 -0400
5109
+ Processing by AccountsController#index as HTML
5110
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts`
5111
+ Rendered accounts/index.html.haml within layouts/application (0.1ms)
5112
+ Completed 200 OK in 25ms (Views: 3.2ms | ActiveRecord: 0.5ms)
5113
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` ORDER BY `modulate_documents`.`id` DESC LIMIT 1
5114
+ Started GET "/accounts/172" for 127.0.0.1 at 2013-05-30 14:22:01 -0400
5115
+ Processing by AccountsController#show as HTML
5116
+ Parameters: {"id"=>"172"}
5117
+ Account Load (0.5ms) SELECT `accounts`.* FROM `accounts` WHERE `accounts`.`id` = 172 LIMIT 1
5118
+  (0.4ms) SELECT COUNT(*) FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 172 AND `modulate_documents`.`attachable_type` = 'Account'
5119
+ Modulate::Document Load (0.4ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 172 AND `modulate_documents`.`attachable_type` = 'Account'
5120
+ Rendered accounts/_modulate_account_documents.html.haml (9.4ms)
5121
+ CACHE (0.0ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`attachable_id` = 172 AND `modulate_documents`.`attachable_type` = 'Account'
5122
+ Rendered accounts/_modulate_attachments.html.haml (48.1ms)
5123
+ Rendered accounts/show.html.erb within layouts/application (48.7ms)
5124
+ Completed 200 OK in 55ms (Views: 51.1ms | ActiveRecord: 1.3ms)
5125
+ Started GET "/modulate/documents/138" for 127.0.0.1 at 2013-05-30 14:22:01 -0400
5126
+ Processing by Modulate::DocumentsController#show as HTML
5127
+ Parameters: {"id"=>"138"}
5128
+ Modulate::Document Load (0.3ms) SELECT `modulate_documents`.* FROM `modulate_documents` WHERE `modulate_documents`.`id` = 138 LIMIT 1
5129
+ Rendered text template (0.0ms)
5130
+ Sent data test.txt (5.0ms)
5131
+ Completed 200 OK in 20ms (Views: 4.7ms | ActiveRecord: 0.3ms)
@@ -0,0 +1 @@
1
+ This is a test document.
@@ -0,0 +1 @@
1
+ This is a test document.
@@ -0,0 +1 @@
1
+ This is a test document.
@@ -38,7 +38,7 @@ describe "document handling" do
38
38
  require 'launchy'
39
39
  puts "hello"
40
40
  save_and_open_page
41
- expect(page.response_headers['Content-Type']).to eq("application/octet-stream")
41
+ expect(page.response_headers['Content-Type']).to eq("text/plain")
42
42
  end
43
43
 
44
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modulate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -296,6 +296,9 @@ files:
296
296
  - spec/dummy/tmp/capybara/capybara-201305301336478327145176.html
297
297
  - spec/dummy/tmp/capybara/capybara-20130530133716805682676.html
298
298
  - spec/dummy/tmp/capybara/capybara-201305301408065641681440.html
299
+ - spec/dummy/tmp/capybara/capybara-201305301419413880546675.html
300
+ - spec/dummy/tmp/capybara/capybara-20130530142043241476832.html
301
+ - spec/dummy/tmp/capybara/capybara-20130530142201565262825.html
299
302
  - spec/dummy/tmp/restart.txt
300
303
  - spec/factories/account_factory.rb
301
304
  - spec/features/modulate_spec.rb
@@ -319,7 +322,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
319
322
  version: '0'
320
323
  segments:
321
324
  - 0
322
- hash: -1688955795783442156
325
+ hash: 3633509213480597540
323
326
  required_rubygems_version: !ruby/object:Gem::Requirement
324
327
  none: false
325
328
  requirements:
@@ -328,7 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
331
  version: '0'
329
332
  segments:
330
333
  - 0
331
- hash: -1688955795783442156
334
+ hash: 3633509213480597540
332
335
  requirements: []
333
336
  rubyforge_project:
334
337
  rubygems_version: 1.8.24
@@ -452,6 +455,9 @@ test_files:
452
455
  - spec/dummy/tmp/capybara/capybara-201305301336478327145176.html
453
456
  - spec/dummy/tmp/capybara/capybara-20130530133716805682676.html
454
457
  - spec/dummy/tmp/capybara/capybara-201305301408065641681440.html
458
+ - spec/dummy/tmp/capybara/capybara-201305301419413880546675.html
459
+ - spec/dummy/tmp/capybara/capybara-20130530142043241476832.html
460
+ - spec/dummy/tmp/capybara/capybara-20130530142201565262825.html
455
461
  - spec/dummy/tmp/restart.txt
456
462
  - spec/factories/account_factory.rb
457
463
  - spec/features/modulate_spec.rb