active_waiter 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/app/controllers/active_waiter/jobs_controller.rb +3 -3
- data/lib/active_waiter/job.rb +2 -3
- data/lib/active_waiter/version.rb +1 -1
- data/test/active_waiter/job_test.rb +1 -1
- data/test/controllers/active_waiter/jobs_controller_test.rb +4 -10
- data/test/dummy/log/test.log +578 -0
- data/test/dummy/tmp/cache/815/000/active_waiter%3Ahello +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2138dec9e6b1103870dce7977e124f591ac9c855
|
4
|
+
data.tar.gz: 9906aea015c76e429b6007dae5852be369ba30f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fe8a22f3610940d96ad140b047889429b646e0e74076958a0b36cde50d43f03ab7264aac012e778d4c7cd4ca1e7ffece408002340e86fa0c2411d0bf5b95fd5
|
7
|
+
data.tar.gz: b5c7c89389383180a964e147dd4274d67584ed2e5ae24d2a89148d346646a02cfc7eb6fb99806c0bcc3e130caf32dc7c653b9df09e6d43832059d50187a00ebd
|
data/README.md
CHANGED
@@ -35,8 +35,8 @@ def index
|
|
35
35
|
respond_to do |format|
|
36
36
|
format.html
|
37
37
|
format.pdf {
|
38
|
-
|
39
|
-
redirect_to active_waiter_path(
|
38
|
+
uid = ActiveWaiter.enqueue(ExportPdfJob, @things, current_user)
|
39
|
+
redirect_to active_waiter_path(uid)
|
40
40
|
}
|
41
41
|
end
|
42
42
|
end
|
@@ -47,6 +47,12 @@ end
|
|
47
47
|
mount ActiveWaiter::Engine => "/active_waiter(/:id)"
|
48
48
|
```
|
49
49
|
|
50
|
+
When the job completes, the user will be redirected to the `url` returned by the job. However, if you want the user to be presented with a download link, add `download: 1` params instead
|
51
|
+
|
52
|
+
``` ruby
|
53
|
+
redirect_to active_waiter_path(uid, download: 1)
|
54
|
+
```
|
55
|
+
|
50
56
|
![active_waiter mov](https://cloud.githubusercontent.com/assets/473/7785141/c4667734-01b4-11e5-8974-3a3b00b3a4b6.gif)
|
51
57
|
|
52
58
|
And we need to add a bit of code into your `ActiveJob` class
|
@@ -78,11 +84,6 @@ class ExportPdfJob < ActiveJob::Base
|
|
78
84
|
# (b)
|
79
85
|
update_active_waiter error: e.to_s
|
80
86
|
end
|
81
|
-
|
82
|
-
# (c)
|
83
|
-
def self.download?
|
84
|
-
true
|
85
|
-
end
|
86
87
|
end
|
87
88
|
```
|
88
89
|
|
@@ -90,4 +91,3 @@ Optionally, you can also
|
|
90
91
|
|
91
92
|
- a) report progress while your job runs, using `update_active_waiter(percentage:)`
|
92
93
|
- b) report if there were any errors, using `update_active_waiter(error:)`
|
93
|
-
- c) indicate if you want the user to "download" the url manually or be redirected there automatically (default: redirect)
|
@@ -6,8 +6,8 @@ module ActiveWaiter
|
|
6
6
|
data = ActiveWaiter.read(params[:id])
|
7
7
|
return on_not_found(data) unless data.respond_to?(:[])
|
8
8
|
return on_error(data) if data[:error]
|
9
|
-
return
|
10
|
-
return
|
9
|
+
return on_link_to(data) if data[:link_to] && params[:download]
|
10
|
+
return on_redirect(data) if data[:link_to]
|
11
11
|
return on_progress(data) if data[:percentage]
|
12
12
|
end
|
13
13
|
|
@@ -22,7 +22,7 @@ module ActiveWaiter
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def on_redirect(data)
|
25
|
-
redirect_to data[:
|
25
|
+
redirect_to data[:link_to]
|
26
26
|
end
|
27
27
|
|
28
28
|
def on_link_to(data)
|
data/lib/active_waiter/job.rb
CHANGED
@@ -5,10 +5,9 @@ module ActiveWaiter::Job
|
|
5
5
|
around_perform do |job, block|
|
6
6
|
@active_waiter_options = job.arguments.shift
|
7
7
|
begin
|
8
|
-
key = (self.class.try(:download?) ? :link_to : :redirect_to)
|
9
8
|
::ActiveWaiter.write(@active_waiter_options[:uid], {
|
10
9
|
percentage: 100,
|
11
|
-
|
10
|
+
link_to: block.call,
|
12
11
|
})
|
13
12
|
rescue Exception
|
14
13
|
::ActiveWaiter.write(@active_waiter_options[:uid], {
|
@@ -23,6 +22,6 @@ module ActiveWaiter::Job
|
|
23
22
|
::ActiveWaiter.write(@active_waiter_options[:uid], {
|
24
23
|
percentage: percentage && [percentage, 99].min,
|
25
24
|
error: error,
|
26
|
-
})
|
25
|
+
}) if @active_waiter_options.try(:[], :uid)
|
27
26
|
end
|
28
27
|
end
|
@@ -23,7 +23,7 @@ class ActiveWaiter::JobTest < Minitest::Test
|
|
23
23
|
ActiveWaiter.stub :next_uuid, uid = "hello" do
|
24
24
|
perform_enqueued_jobs do
|
25
25
|
assert_equal uid, ActiveWaiter.enqueue(DummyJob, *arguments)
|
26
|
-
assert_equal Hash(percentage: 100,
|
26
|
+
assert_equal Hash(percentage: 100, link_to: expected_return_value), ActiveWaiter.read(uid)
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -9,12 +9,6 @@ class RedirectJob < ActiveJob::Base
|
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
12
|
-
class DownloadJob < RedirectJob
|
13
|
-
def self.download?
|
14
|
-
true
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
12
|
class ActiveWaiter::JobsControllerTest < ActionDispatch::IntegrationTest
|
19
13
|
include ActiveJob::TestHelper
|
20
14
|
|
@@ -34,7 +28,7 @@ class ActiveWaiter::JobsControllerTest < ActionDispatch::IntegrationTest
|
|
34
28
|
|
35
29
|
def test_show_started
|
36
30
|
ActiveWaiter.stub :next_uuid, uid do
|
37
|
-
assert_equal uid, ActiveWaiter.enqueue(
|
31
|
+
assert_equal uid, ActiveWaiter.enqueue(RedirectJob)
|
38
32
|
get '/active_waiter', id: uid
|
39
33
|
assert_equal 200, status
|
40
34
|
assert_match "Please wait", document_root_element.to_s
|
@@ -55,11 +49,11 @@ class ActiveWaiter::JobsControllerTest < ActionDispatch::IntegrationTest
|
|
55
49
|
assert_match "42%", document_root_element.to_s
|
56
50
|
end
|
57
51
|
|
58
|
-
def
|
52
|
+
def test_show_completed_download
|
59
53
|
ActiveWaiter.stub :next_uuid, uid do
|
60
54
|
perform_enqueued_jobs do
|
61
|
-
assert_equal uid, ActiveWaiter.enqueue(
|
62
|
-
get '/active_waiter', id: uid
|
55
|
+
assert_equal uid, ActiveWaiter.enqueue(RedirectJob)
|
56
|
+
get '/active_waiter', id: uid, download: 1
|
63
57
|
assert_equal 200, status
|
64
58
|
link = document_root_element.css("a[href='http://other.com/12345']").first
|
65
59
|
assert link, "missing hyperlink to returned value"
|
data/test/dummy/log/test.log
CHANGED
@@ -6845,3 +6845,581 @@ Processing by ActiveWaiter::JobsController#show as HTML
|
|
6845
6845
|
Parameters: {"id"=>"hello"}
|
6846
6846
|
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (1.0ms)
|
6847
6847
|
Completed 500 Internal Server Error in 7ms (Views: 7.0ms)
|
6848
|
+
[ActiveJob] Enqueued DummyJob (Job ID: 8841822b-2daf-40d2-bab8-86d708e70d86) to Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
6849
|
+
[ActiveJob] [DummyJob] [8841822b-2daf-40d2-bab8-86d708e70d86] Performing DummyJob from Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
6850
|
+
[ActiveJob] [DummyJob] [8841822b-2daf-40d2-bab8-86d708e70d86] Performed DummyJob from Test(default) in 0.89ms
|
6851
|
+
-----------------------------------------------------
|
6852
|
+
ActiveWaiter::JobsControllerTest: test_show_completed
|
6853
|
+
-----------------------------------------------------
|
6854
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 08d47360-f19d-43f5-bf02-95a60ac40fe6) to Test(default) with arguments: {:uid=>"hello"}
|
6855
|
+
[ActiveJob] [DownloadJob] [08d47360-f19d-43f5-bf02-95a60ac40fe6] Performing DownloadJob from Test(default) with arguments: {:uid=>"hello"}
|
6856
|
+
[ActiveJob] [DownloadJob] [08d47360-f19d-43f5-bf02-95a60ac40fe6] Performed DownloadJob from Test(default) in 0.65ms
|
6857
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:51:32 +0800
|
6858
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6859
|
+
Parameters: {"id"=>"hello"}
|
6860
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/link_to.html.erb within layouts/active_waiter/application (1.8ms)
|
6861
|
+
Completed 200 OK in 202ms (Views: 193.3ms)
|
6862
|
+
--------------------------------------------------------------
|
6863
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
6864
|
+
--------------------------------------------------------------
|
6865
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: 696e3fd6-3193-4add-94aa-64fbe88aa2f1) to Test(default) with arguments: {:uid=>"hello"}
|
6866
|
+
[ActiveJob] [RedirectJob] [696e3fd6-3193-4add-94aa-64fbe88aa2f1] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
6867
|
+
[ActiveJob] [RedirectJob] [696e3fd6-3193-4add-94aa-64fbe88aa2f1] Performed RedirectJob from Test(default) in 0.58ms
|
6868
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:51:32 +0800
|
6869
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6870
|
+
Parameters: {"id"=>"hello"}
|
6871
|
+
Redirected to http://other.com/12345
|
6872
|
+
Completed 302 Found in 1ms
|
6873
|
+
--------------------------------------------------------
|
6874
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
6875
|
+
--------------------------------------------------------
|
6876
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 14:51:32 +0800
|
6877
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6878
|
+
Parameters: {"id"=>"nosuchjob"}
|
6879
|
+
Completed 404 Not Found in 0ms
|
6880
|
+
---------------------------------------------------
|
6881
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
6882
|
+
---------------------------------------------------
|
6883
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 75060d20-7bb4-4db0-af66-720f87661010) to Test(default) with arguments: {:uid=>"hello"}
|
6884
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:51:32 +0800
|
6885
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6886
|
+
Parameters: {"id"=>"hello"}
|
6887
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.4ms)
|
6888
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (5.2ms)
|
6889
|
+
Completed 200 OK in 9ms (Views: 8.3ms)
|
6890
|
+
----------------------------------------------------
|
6891
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
6892
|
+
----------------------------------------------------
|
6893
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:51:32 +0800
|
6894
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6895
|
+
Parameters: {"id"=>"hello"}
|
6896
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.1ms)
|
6897
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (11.3ms)
|
6898
|
+
Completed 200 OK in 15ms (Views: 14.8ms)
|
6899
|
+
-------------------------------------------------
|
6900
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
6901
|
+
-------------------------------------------------
|
6902
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:51:32 +0800
|
6903
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6904
|
+
Parameters: {"id"=>"hello"}
|
6905
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (0.7ms)
|
6906
|
+
Completed 500 Internal Server Error in 6ms (Views: 5.3ms)
|
6907
|
+
[ActiveJob] Enqueued DummyJob (Job ID: 3cc02700-6f40-48a1-bef2-4697eae6123d) to Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
6908
|
+
[ActiveJob] [DummyJob] [3cc02700-6f40-48a1-bef2-4697eae6123d] Performing DummyJob from Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
6909
|
+
[ActiveJob] [DummyJob] [3cc02700-6f40-48a1-bef2-4697eae6123d] Performed DummyJob from Test(default) in 0.93ms
|
6910
|
+
[ActiveJob] Enqueued DummyJob (Job ID: c1446cd7-2889-4537-bef6-c2d8a74cecd8) to Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
6911
|
+
[ActiveJob] [DummyJob] [c1446cd7-2889-4537-bef6-c2d8a74cecd8] Performing DummyJob from Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
6912
|
+
[ActiveJob] [DummyJob] [c1446cd7-2889-4537-bef6-c2d8a74cecd8] Performed DummyJob from Test(default) in 3.92ms
|
6913
|
+
----------------------------------------------------
|
6914
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
6915
|
+
----------------------------------------------------
|
6916
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:15 +0800
|
6917
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6918
|
+
Parameters: {"id"=>"hello"}
|
6919
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.3ms)
|
6920
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (9.8ms)
|
6921
|
+
Completed 200 OK in 173ms (Views: 163.4ms)
|
6922
|
+
-------------------------------------------------
|
6923
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
6924
|
+
-------------------------------------------------
|
6925
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:15 +0800
|
6926
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6927
|
+
Parameters: {"id"=>"hello"}
|
6928
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (0.4ms)
|
6929
|
+
Completed 500 Internal Server Error in 9ms (Views: 3.3ms)
|
6930
|
+
--------------------------------------------------------------
|
6931
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
6932
|
+
--------------------------------------------------------------
|
6933
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: 7415dc3c-3bb2-4a5c-be69-dec3a3c037d9) to Test(default) with arguments: {:uid=>"hello"}
|
6934
|
+
[ActiveJob] [RedirectJob] [7415dc3c-3bb2-4a5c-be69-dec3a3c037d9] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
6935
|
+
[ActiveJob] [RedirectJob] [7415dc3c-3bb2-4a5c-be69-dec3a3c037d9] Performed RedirectJob from Test(default) in 0.61ms
|
6936
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:15 +0800
|
6937
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6938
|
+
Parameters: {"id"=>"hello"}
|
6939
|
+
Redirected to
|
6940
|
+
Completed 500 Internal Server Error in 1ms
|
6941
|
+
--------------------------------------------------------
|
6942
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
6943
|
+
--------------------------------------------------------
|
6944
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 14:54:15 +0800
|
6945
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6946
|
+
Parameters: {"id"=>"nosuchjob"}
|
6947
|
+
Completed 404 Not Found in 0ms
|
6948
|
+
-----------------------------------------------------
|
6949
|
+
ActiveWaiter::JobsControllerTest: test_show_completed
|
6950
|
+
-----------------------------------------------------
|
6951
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 02f0d51c-3edc-4c83-9996-e5149aef1755) to Test(default) with arguments: {:uid=>"hello"}
|
6952
|
+
[ActiveJob] [DownloadJob] [02f0d51c-3edc-4c83-9996-e5149aef1755] Performing DownloadJob from Test(default) with arguments: {:uid=>"hello"}
|
6953
|
+
[ActiveJob] [DownloadJob] [02f0d51c-3edc-4c83-9996-e5149aef1755] Performed DownloadJob from Test(default) in 0.86ms
|
6954
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:15 +0800
|
6955
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6956
|
+
Parameters: {"id"=>"hello"}
|
6957
|
+
Redirected to
|
6958
|
+
Completed 500 Internal Server Error in 1ms
|
6959
|
+
---------------------------------------------------
|
6960
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
6961
|
+
---------------------------------------------------
|
6962
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 527f4ccc-3348-4228-8d68-74499abbda11) to Test(default) with arguments: {:uid=>"hello"}
|
6963
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:15 +0800
|
6964
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6965
|
+
Parameters: {"id"=>"hello"}
|
6966
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.1ms)
|
6967
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (0.7ms)
|
6968
|
+
Completed 200 OK in 4ms (Views: 3.8ms)
|
6969
|
+
[ActiveJob] Enqueued DummyJob (Job ID: 58e25263-f07c-436d-8400-0d661baec944) to Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
6970
|
+
[ActiveJob] [DummyJob] [58e25263-f07c-436d-8400-0d661baec944] Performing DummyJob from Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
6971
|
+
[ActiveJob] [DummyJob] [58e25263-f07c-436d-8400-0d661baec944] Performed DummyJob from Test(default) in 3.34ms
|
6972
|
+
--------------------------------------------------------
|
6973
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
6974
|
+
--------------------------------------------------------
|
6975
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 14:54:33 +0800
|
6976
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6977
|
+
Parameters: {"id"=>"nosuchjob"}
|
6978
|
+
Completed 404 Not Found in 8ms
|
6979
|
+
----------------------------------------------------
|
6980
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
6981
|
+
----------------------------------------------------
|
6982
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:33 +0800
|
6983
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6984
|
+
Parameters: {"id"=>"hello"}
|
6985
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.3ms)
|
6986
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (12.3ms)
|
6987
|
+
Completed 200 OK in 172ms (Views: 164.6ms)
|
6988
|
+
-----------------------------------------------------
|
6989
|
+
ActiveWaiter::JobsControllerTest: test_show_completed
|
6990
|
+
-----------------------------------------------------
|
6991
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: d56b5d67-5f9d-419c-9900-68a5475a19fe) to Test(default) with arguments: {:uid=>"hello"}
|
6992
|
+
[ActiveJob] [DownloadJob] [d56b5d67-5f9d-419c-9900-68a5475a19fe] Performing DownloadJob from Test(default) with arguments: {:uid=>"hello"}
|
6993
|
+
[ActiveJob] [DownloadJob] [d56b5d67-5f9d-419c-9900-68a5475a19fe] Performed DownloadJob from Test(default) in 4.95ms
|
6994
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:33 +0800
|
6995
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
6996
|
+
Parameters: {"id"=>"hello"}
|
6997
|
+
Redirected to
|
6998
|
+
Completed 500 Internal Server Error in 1ms
|
6999
|
+
-------------------------------------------------
|
7000
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
7001
|
+
-------------------------------------------------
|
7002
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:33 +0800
|
7003
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7004
|
+
Parameters: {"id"=>"hello"}
|
7005
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (0.4ms)
|
7006
|
+
Completed 500 Internal Server Error in 4ms (Views: 3.2ms)
|
7007
|
+
--------------------------------------------------------------
|
7008
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
7009
|
+
--------------------------------------------------------------
|
7010
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: 80f914ea-2010-421d-979d-ad307105b286) to Test(default) with arguments: {:uid=>"hello"}
|
7011
|
+
[ActiveJob] [RedirectJob] [80f914ea-2010-421d-979d-ad307105b286] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
7012
|
+
[ActiveJob] [RedirectJob] [80f914ea-2010-421d-979d-ad307105b286] Performed RedirectJob from Test(default) in 0.73ms
|
7013
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:33 +0800
|
7014
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7015
|
+
Parameters: {"id"=>"hello"}
|
7016
|
+
Redirected to
|
7017
|
+
Completed 500 Internal Server Error in 1ms
|
7018
|
+
---------------------------------------------------
|
7019
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
7020
|
+
---------------------------------------------------
|
7021
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 3c4a8033-b21a-41bc-b130-fbfd58fa82be) to Test(default) with arguments: {:uid=>"hello"}
|
7022
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:54:33 +0800
|
7023
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7024
|
+
Parameters: {"id"=>"hello"}
|
7025
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.1ms)
|
7026
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (0.7ms)
|
7027
|
+
Completed 200 OK in 4ms (Views: 3.7ms)
|
7028
|
+
----------------------------------------------------
|
7029
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
7030
|
+
----------------------------------------------------
|
7031
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:19 +0800
|
7032
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7033
|
+
Parameters: {"id"=>"hello"}
|
7034
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.3ms)
|
7035
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (11.0ms)
|
7036
|
+
Completed 200 OK in 179ms (Views: 171.1ms)
|
7037
|
+
--------------------------------------------------------------
|
7038
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
7039
|
+
--------------------------------------------------------------
|
7040
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 5fcc724e-8ed1-471b-a7b4-7e151253673b) to Test(default) with arguments: {:uid=>"hello"}
|
7041
|
+
[ActiveJob] [DownloadJob] [5fcc724e-8ed1-471b-a7b4-7e151253673b] Performing DownloadJob from Test(default) with arguments: {:uid=>"hello"}
|
7042
|
+
[ActiveJob] [DownloadJob] [5fcc724e-8ed1-471b-a7b4-7e151253673b] Performed DownloadJob from Test(default) in 4.64ms
|
7043
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:20 +0800
|
7044
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7045
|
+
Parameters: {"id"=>"hello"}
|
7046
|
+
Redirected to
|
7047
|
+
Completed 500 Internal Server Error in 1ms
|
7048
|
+
-------------------------------------------------
|
7049
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
7050
|
+
-------------------------------------------------
|
7051
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:20 +0800
|
7052
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7053
|
+
Parameters: {"id"=>"hello"}
|
7054
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (0.7ms)
|
7055
|
+
Completed 500 Internal Server Error in 5ms (Views: 4.4ms)
|
7056
|
+
--------------------------------------------------------
|
7057
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
7058
|
+
--------------------------------------------------------
|
7059
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 14:56:20 +0800
|
7060
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7061
|
+
Parameters: {"id"=>"nosuchjob"}
|
7062
|
+
Completed 404 Not Found in 0ms
|
7063
|
+
---------------------------------------------------
|
7064
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
7065
|
+
---------------------------------------------------
|
7066
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: d12dd543-1e40-4645-a53b-09ed14dd6c97) to Test(default) with arguments: {:uid=>"hello"}
|
7067
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:20 +0800
|
7068
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7069
|
+
Parameters: {"id"=>"hello"}
|
7070
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.0ms)
|
7071
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (0.7ms)
|
7072
|
+
Completed 200 OK in 4ms (Views: 3.2ms)
|
7073
|
+
-----------------------------------------------------
|
7074
|
+
ActiveWaiter::JobsControllerTest: test_show_completed
|
7075
|
+
-----------------------------------------------------
|
7076
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 0fceccd5-1131-4af6-b148-a629ef2abfb0) to Test(default) with arguments: {:uid=>"hello"}
|
7077
|
+
[ActiveJob] [DownloadJob] [0fceccd5-1131-4af6-b148-a629ef2abfb0] Performing DownloadJob from Test(default) with arguments: {:uid=>"hello"}
|
7078
|
+
[ActiveJob] [DownloadJob] [0fceccd5-1131-4af6-b148-a629ef2abfb0] Performed DownloadJob from Test(default) in 0.9ms
|
7079
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:20 +0800
|
7080
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7081
|
+
Parameters: {"id"=>"hello"}
|
7082
|
+
Redirected to
|
7083
|
+
Completed 500 Internal Server Error in 1ms
|
7084
|
+
--------------------------------------------------------
|
7085
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
7086
|
+
--------------------------------------------------------
|
7087
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 14:56:56 +0800
|
7088
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7089
|
+
Parameters: {"id"=>"nosuchjob"}
|
7090
|
+
Completed 404 Not Found in 7ms
|
7091
|
+
-------------------------------------------------
|
7092
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
7093
|
+
-------------------------------------------------
|
7094
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:56 +0800
|
7095
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7096
|
+
Parameters: {"id"=>"hello"}
|
7097
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (1.2ms)
|
7098
|
+
Completed 500 Internal Server Error in 145ms (Views: 138.3ms)
|
7099
|
+
-----------------------------------------------------
|
7100
|
+
ActiveWaiter::JobsControllerTest: test_show_completed
|
7101
|
+
-----------------------------------------------------
|
7102
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 2d064d26-a44c-4553-abeb-12707e3c3b32) to Test(default) with arguments: {:uid=>"hello"}
|
7103
|
+
[ActiveJob] [DownloadJob] [2d064d26-a44c-4553-abeb-12707e3c3b32] Performing DownloadJob from Test(default) with arguments: {:uid=>"hello"}
|
7104
|
+
[ActiveJob] [DownloadJob] [2d064d26-a44c-4553-abeb-12707e3c3b32] Performed DownloadJob from Test(default) in 4.39ms
|
7105
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:56 +0800
|
7106
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7107
|
+
Parameters: {"id"=>"hello"}
|
7108
|
+
Redirected to http://other.com/12345
|
7109
|
+
Completed 302 Found in 1ms
|
7110
|
+
--------------------------------------------------------------
|
7111
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
7112
|
+
--------------------------------------------------------------
|
7113
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 5412b9b0-5958-42cd-97f0-bcd550c00f8b) to Test(default) with arguments: {:uid=>"hello"}
|
7114
|
+
[ActiveJob] [DownloadJob] [5412b9b0-5958-42cd-97f0-bcd550c00f8b] Performing DownloadJob from Test(default) with arguments: {:uid=>"hello"}
|
7115
|
+
[ActiveJob] [DownloadJob] [5412b9b0-5958-42cd-97f0-bcd550c00f8b] Performed DownloadJob from Test(default) in 0.56ms
|
7116
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:56 +0800
|
7117
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7118
|
+
Parameters: {"id"=>"hello"}
|
7119
|
+
Redirected to http://other.com/12345
|
7120
|
+
Completed 302 Found in 0ms
|
7121
|
+
----------------------------------------------------
|
7122
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
7123
|
+
----------------------------------------------------
|
7124
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:56 +0800
|
7125
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7126
|
+
Parameters: {"id"=>"hello"}
|
7127
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.5ms)
|
7128
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (9.9ms)
|
7129
|
+
Completed 200 OK in 13ms (Views: 12.8ms)
|
7130
|
+
---------------------------------------------------
|
7131
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
7132
|
+
---------------------------------------------------
|
7133
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 94496f2b-d35c-402f-bf59-ca5591009313) to Test(default) with arguments: {:uid=>"hello"}
|
7134
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:56:56 +0800
|
7135
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7136
|
+
Parameters: {"id"=>"hello"}
|
7137
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.0ms)
|
7138
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (0.5ms)
|
7139
|
+
Completed 200 OK in 4ms (Views: 3.3ms)
|
7140
|
+
--------------------------------------------------------
|
7141
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
7142
|
+
--------------------------------------------------------
|
7143
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 14:57:21 +0800
|
7144
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7145
|
+
Parameters: {"id"=>"nosuchjob"}
|
7146
|
+
Completed 404 Not Found in 9ms
|
7147
|
+
-----------------------------------------------------
|
7148
|
+
ActiveWaiter::JobsControllerTest: test_show_completed
|
7149
|
+
-----------------------------------------------------
|
7150
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: 97b566bb-2014-479d-aa1e-259f8dce615f) to Test(default) with arguments: {:uid=>"hello"}
|
7151
|
+
[ActiveJob] [DownloadJob] [97b566bb-2014-479d-aa1e-259f8dce615f] Performing DownloadJob from Test(default) with arguments: {:uid=>"hello"}
|
7152
|
+
[ActiveJob] [DownloadJob] [97b566bb-2014-479d-aa1e-259f8dce615f] Performed DownloadJob from Test(default) in 4.97ms
|
7153
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:57:21 +0800
|
7154
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7155
|
+
Parameters: {"id"=>"hello"}
|
7156
|
+
Redirected to http://other.com/12345
|
7157
|
+
Completed 302 Found in 1ms
|
7158
|
+
---------------------------------------------------
|
7159
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
7160
|
+
---------------------------------------------------
|
7161
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: a493b01d-d4db-4a6e-a6b2-f105d39d9230) to Test(default) with arguments: {:uid=>"hello"}
|
7162
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:57:21 +0800
|
7163
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7164
|
+
Parameters: {"id"=>"hello"}
|
7165
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.4ms)
|
7166
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (5.8ms)
|
7167
|
+
Completed 200 OK in 147ms (Views: 147.1ms)
|
7168
|
+
--------------------------------------------------------------
|
7169
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
7170
|
+
--------------------------------------------------------------
|
7171
|
+
[ActiveJob] Enqueued DownloadJob (Job ID: ad255a83-5d33-4ad7-ad96-fd1e7d9c51c4) to Test(default) with arguments: {:uid=>"hello"}
|
7172
|
+
[ActiveJob] [DownloadJob] [ad255a83-5d33-4ad7-ad96-fd1e7d9c51c4] Performing DownloadJob from Test(default) with arguments: {:uid=>"hello"}
|
7173
|
+
[ActiveJob] [DownloadJob] [ad255a83-5d33-4ad7-ad96-fd1e7d9c51c4] Performed DownloadJob from Test(default) in 5.8ms
|
7174
|
+
Started GET "/active_waiter?id=hello&download=1" for 127.0.0.1 at 2015-05-24 14:57:22 +0800
|
7175
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7176
|
+
Parameters: {"id"=>"hello", "download"=>"1"}
|
7177
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/link_to.html.erb within layouts/active_waiter/application (0.3ms)
|
7178
|
+
Completed 200 OK in 3ms (Views: 2.9ms)
|
7179
|
+
----------------------------------------------------
|
7180
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
7181
|
+
----------------------------------------------------
|
7182
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:57:22 +0800
|
7183
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7184
|
+
Parameters: {"id"=>"hello"}
|
7185
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.1ms)
|
7186
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (7.3ms)
|
7187
|
+
Completed 200 OK in 10ms (Views: 9.9ms)
|
7188
|
+
-------------------------------------------------
|
7189
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
7190
|
+
-------------------------------------------------
|
7191
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:57:22 +0800
|
7192
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7193
|
+
Parameters: {"id"=>"hello"}
|
7194
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (0.4ms)
|
7195
|
+
Completed 500 Internal Server Error in 4ms (Views: 3.2ms)
|
7196
|
+
-----------------------------------------------------
|
7197
|
+
ActiveWaiter::JobsControllerTest: test_show_completed
|
7198
|
+
-----------------------------------------------------
|
7199
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: 1a58e4ea-a460-4a81-8705-34d9c4246fbf) to Test(default) with arguments: {:uid=>"hello"}
|
7200
|
+
[ActiveJob] [RedirectJob] [1a58e4ea-a460-4a81-8705-34d9c4246fbf] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
7201
|
+
[ActiveJob] [RedirectJob] [1a58e4ea-a460-4a81-8705-34d9c4246fbf] Performed RedirectJob from Test(default) in 4.72ms
|
7202
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:27 +0800
|
7203
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7204
|
+
Parameters: {"id"=>"hello"}
|
7205
|
+
Redirected to http://other.com/12345
|
7206
|
+
Completed 302 Found in 9ms
|
7207
|
+
----------------------------------------------------
|
7208
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
7209
|
+
----------------------------------------------------
|
7210
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:27 +0800
|
7211
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7212
|
+
Parameters: {"id"=>"hello"}
|
7213
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.3ms)
|
7214
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (13.9ms)
|
7215
|
+
Completed 200 OK in 178ms (Views: 177.5ms)
|
7216
|
+
--------------------------------------------------------
|
7217
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
7218
|
+
--------------------------------------------------------
|
7219
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 14:59:27 +0800
|
7220
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7221
|
+
Parameters: {"id"=>"nosuchjob"}
|
7222
|
+
Completed 404 Not Found in 1ms
|
7223
|
+
---------------------------------------------------
|
7224
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
7225
|
+
---------------------------------------------------
|
7226
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: a36d7785-bc80-4316-9dc7-d1b5b1daf648) to Test(default) with arguments: {:uid=>"hello"}
|
7227
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:27 +0800
|
7228
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7229
|
+
Parameters: {"id"=>"hello"}
|
7230
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.1ms)
|
7231
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (0.8ms)
|
7232
|
+
Completed 200 OK in 10ms (Views: 4.9ms)
|
7233
|
+
-------------------------------------------------
|
7234
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
7235
|
+
-------------------------------------------------
|
7236
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:27 +0800
|
7237
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7238
|
+
Parameters: {"id"=>"hello"}
|
7239
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (0.4ms)
|
7240
|
+
Completed 500 Internal Server Error in 4ms (Views: 3.7ms)
|
7241
|
+
--------------------------------------------------------------
|
7242
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
7243
|
+
--------------------------------------------------------------
|
7244
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: ed0fc6e3-25ed-4a67-92d7-e3d7df921abc) to Test(default) with arguments: {:uid=>"hello"}
|
7245
|
+
[ActiveJob] [RedirectJob] [ed0fc6e3-25ed-4a67-92d7-e3d7df921abc] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
7246
|
+
[ActiveJob] [RedirectJob] [ed0fc6e3-25ed-4a67-92d7-e3d7df921abc] Performed RedirectJob from Test(default) in 0.89ms
|
7247
|
+
Started GET "/active_waiter?id=hello&download=1" for 127.0.0.1 at 2015-05-24 14:59:27 +0800
|
7248
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7249
|
+
Parameters: {"id"=>"hello", "download"=>"1"}
|
7250
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/link_to.html.erb within layouts/active_waiter/application (0.6ms)
|
7251
|
+
Completed 200 OK in 5ms (Views: 4.6ms)
|
7252
|
+
-------------------------------------------------
|
7253
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
7254
|
+
-------------------------------------------------
|
7255
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:45 +0800
|
7256
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7257
|
+
Parameters: {"id"=>"hello"}
|
7258
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (1.1ms)
|
7259
|
+
Completed 500 Internal Server Error in 139ms (Views: 130.3ms)
|
7260
|
+
--------------------------------------------------------------
|
7261
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
7262
|
+
--------------------------------------------------------------
|
7263
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: c7f9b5ef-8fec-4179-ab42-68321f49fd55) to Test(default) with arguments: {:uid=>"hello"}
|
7264
|
+
[ActiveJob] [RedirectJob] [c7f9b5ef-8fec-4179-ab42-68321f49fd55] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
7265
|
+
[ActiveJob] [RedirectJob] [c7f9b5ef-8fec-4179-ab42-68321f49fd55] Performed RedirectJob from Test(default) in 4.26ms
|
7266
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:46 +0800
|
7267
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7268
|
+
Parameters: {"id"=>"hello"}
|
7269
|
+
Redirected to http://other.com/12345
|
7270
|
+
Completed 302 Found in 1ms
|
7271
|
+
----------------------------------------------------
|
7272
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
7273
|
+
----------------------------------------------------
|
7274
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:46 +0800
|
7275
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7276
|
+
Parameters: {"id"=>"hello"}
|
7277
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.4ms)
|
7278
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (13.4ms)
|
7279
|
+
Completed 200 OK in 18ms (Views: 17.5ms)
|
7280
|
+
---------------------------------------------------
|
7281
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
7282
|
+
---------------------------------------------------
|
7283
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: 792b3abc-9e3c-4817-b41d-a5ff5511ab53) to Test(default) with arguments: {:uid=>"hello"}
|
7284
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:46 +0800
|
7285
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7286
|
+
Parameters: {"id"=>"hello"}
|
7287
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.2ms)
|
7288
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (1.3ms)
|
7289
|
+
Completed 200 OK in 5ms (Views: 4.9ms)
|
7290
|
+
--------------------------------------------------------
|
7291
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
7292
|
+
--------------------------------------------------------
|
7293
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 14:59:46 +0800
|
7294
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7295
|
+
Parameters: {"id"=>"nosuchjob"}
|
7296
|
+
Completed 404 Not Found in 1ms
|
7297
|
+
--------------------------------------------------------------
|
7298
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_download
|
7299
|
+
--------------------------------------------------------------
|
7300
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: fc796b75-5c9b-4db1-828d-0b9fff967d91) to Test(default) with arguments: {:uid=>"hello"}
|
7301
|
+
[ActiveJob] [RedirectJob] [fc796b75-5c9b-4db1-828d-0b9fff967d91] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
7302
|
+
[ActiveJob] [RedirectJob] [fc796b75-5c9b-4db1-828d-0b9fff967d91] Performed RedirectJob from Test(default) in 0.6ms
|
7303
|
+
Started GET "/active_waiter?id=hello&download=1" for 127.0.0.1 at 2015-05-24 14:59:46 +0800
|
7304
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7305
|
+
Parameters: {"id"=>"hello", "download"=>"1"}
|
7306
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/link_to.html.erb within layouts/active_waiter/application (0.3ms)
|
7307
|
+
Completed 200 OK in 3ms (Views: 2.8ms)
|
7308
|
+
[ActiveJob] Enqueued DummyJob (Job ID: 0f3d04f2-0c6a-48c0-83b5-73030f3ec789) to Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
7309
|
+
[ActiveJob] [DummyJob] [0f3d04f2-0c6a-48c0-83b5-73030f3ec789] Performing DummyJob from Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
7310
|
+
[ActiveJob] [DummyJob] [0f3d04f2-0c6a-48c0-83b5-73030f3ec789] Performed DummyJob from Test(default) in 3.86ms
|
7311
|
+
---------------------------------------------------
|
7312
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
7313
|
+
---------------------------------------------------
|
7314
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: 9bce8a40-4629-4fbf-9191-9a2c737be2bf) to Test(default) with arguments: {:uid=>"hello"}
|
7315
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:53 +0800
|
7316
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7317
|
+
Parameters: {"id"=>"hello"}
|
7318
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.3ms)
|
7319
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (6.6ms)
|
7320
|
+
Completed 200 OK in 178ms (Views: 166.9ms)
|
7321
|
+
--------------------------------------------------------
|
7322
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
7323
|
+
--------------------------------------------------------
|
7324
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 14:59:53 +0800
|
7325
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7326
|
+
Parameters: {"id"=>"nosuchjob"}
|
7327
|
+
Completed 404 Not Found in 1ms
|
7328
|
+
----------------------------------------------------
|
7329
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
7330
|
+
----------------------------------------------------
|
7331
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:53 +0800
|
7332
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7333
|
+
Parameters: {"id"=>"hello"}
|
7334
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.1ms)
|
7335
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (7.4ms)
|
7336
|
+
Completed 200 OK in 16ms (Views: 10.5ms)
|
7337
|
+
-------------------------------------------------
|
7338
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
7339
|
+
-------------------------------------------------
|
7340
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:53 +0800
|
7341
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7342
|
+
Parameters: {"id"=>"hello"}
|
7343
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (0.4ms)
|
7344
|
+
Completed 500 Internal Server Error in 4ms (Views: 3.6ms)
|
7345
|
+
--------------------------------------------------------------
|
7346
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
7347
|
+
--------------------------------------------------------------
|
7348
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: 1c76c1be-cbde-4d11-a8fb-69c3570a6a95) to Test(default) with arguments: {:uid=>"hello"}
|
7349
|
+
[ActiveJob] [RedirectJob] [1c76c1be-cbde-4d11-a8fb-69c3570a6a95] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
7350
|
+
[ActiveJob] [RedirectJob] [1c76c1be-cbde-4d11-a8fb-69c3570a6a95] Performed RedirectJob from Test(default) in 0.65ms
|
7351
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 14:59:53 +0800
|
7352
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7353
|
+
Parameters: {"id"=>"hello"}
|
7354
|
+
Redirected to http://other.com/12345
|
7355
|
+
Completed 302 Found in 1ms
|
7356
|
+
--------------------------------------------------------------
|
7357
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_download
|
7358
|
+
--------------------------------------------------------------
|
7359
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: 023c6b70-4e4f-40d6-afb7-e99b1e8414f9) to Test(default) with arguments: {:uid=>"hello"}
|
7360
|
+
[ActiveJob] [RedirectJob] [023c6b70-4e4f-40d6-afb7-e99b1e8414f9] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
7361
|
+
[ActiveJob] [RedirectJob] [023c6b70-4e4f-40d6-afb7-e99b1e8414f9] Performed RedirectJob from Test(default) in 0.88ms
|
7362
|
+
Started GET "/active_waiter?id=hello&download=1" for 127.0.0.1 at 2015-05-24 14:59:53 +0800
|
7363
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7364
|
+
Parameters: {"id"=>"hello", "download"=>"1"}
|
7365
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/link_to.html.erb within layouts/active_waiter/application (0.4ms)
|
7366
|
+
Completed 200 OK in 4ms (Views: 3.6ms)
|
7367
|
+
[ActiveJob] Enqueued DummyJob (Job ID: c08d49b3-7f6f-4f9b-9fe8-744a6de81235) to Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
7368
|
+
[ActiveJob] [DummyJob] [c08d49b3-7f6f-4f9b-9fe8-744a6de81235] Performing DummyJob from Test(default) with arguments: {:uid=>"hello"}, "a", "b", {:four=>["a", "b", "c"]}
|
7369
|
+
[ActiveJob] [DummyJob] [c08d49b3-7f6f-4f9b-9fe8-744a6de81235] Performed DummyJob from Test(default) in 0.64ms
|
7370
|
+
--------------------------------------------------------------
|
7371
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_download
|
7372
|
+
--------------------------------------------------------------
|
7373
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: bc6056ea-f62c-4234-a6f6-5e93134c5934) to Test(default) with arguments: {:uid=>"hello"}
|
7374
|
+
[ActiveJob] [RedirectJob] [bc6056ea-f62c-4234-a6f6-5e93134c5934] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
7375
|
+
[ActiveJob] [RedirectJob] [bc6056ea-f62c-4234-a6f6-5e93134c5934] Performed RedirectJob from Test(default) in 0.72ms
|
7376
|
+
Started GET "/active_waiter?id=hello&download=1" for 127.0.0.1 at 2015-05-24 15:05:39 +0800
|
7377
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7378
|
+
Parameters: {"id"=>"hello", "download"=>"1"}
|
7379
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/link_to.html.erb within layouts/active_waiter/application (1.5ms)
|
7380
|
+
Completed 200 OK in 211ms (Views: 201.0ms)
|
7381
|
+
----------------------------------------------------
|
7382
|
+
ActiveWaiter::JobsControllerTest: test_show_progress
|
7383
|
+
----------------------------------------------------
|
7384
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 15:05:39 +0800
|
7385
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7386
|
+
Parameters: {"id"=>"hello"}
|
7387
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.4ms)
|
7388
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/progress.html.erb within layouts/active_waiter/application (18.7ms)
|
7389
|
+
Completed 200 OK in 24ms (Views: 23.1ms)
|
7390
|
+
--------------------------------------------------------
|
7391
|
+
ActiveWaiter::JobsControllerTest: test_show_non_existent
|
7392
|
+
--------------------------------------------------------
|
7393
|
+
Started GET "/active_waiter?id=nosuchjob" for 127.0.0.1 at 2015-05-24 15:05:39 +0800
|
7394
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7395
|
+
Parameters: {"id"=>"nosuchjob"}
|
7396
|
+
Completed 404 Not Found in 1ms
|
7397
|
+
---------------------------------------------------
|
7398
|
+
ActiveWaiter::JobsControllerTest: test_show_started
|
7399
|
+
---------------------------------------------------
|
7400
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: c89ccd18-932f-4cb8-b69f-2e5bcd86cd7e) to Test(default) with arguments: {:uid=>"hello"}
|
7401
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 15:05:39 +0800
|
7402
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7403
|
+
Parameters: {"id"=>"hello"}
|
7404
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/_reload.html.erb (0.1ms)
|
7405
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/show.html.erb within layouts/active_waiter/application (0.9ms)
|
7406
|
+
Completed 200 OK in 6ms (Views: 5.5ms)
|
7407
|
+
--------------------------------------------------------------
|
7408
|
+
ActiveWaiter::JobsControllerTest: test_show_completed_redirect
|
7409
|
+
--------------------------------------------------------------
|
7410
|
+
[ActiveJob] Enqueued RedirectJob (Job ID: 0a37b063-a138-4623-819d-2fa366a96358) to Test(default) with arguments: {:uid=>"hello"}
|
7411
|
+
[ActiveJob] [RedirectJob] [0a37b063-a138-4623-819d-2fa366a96358] Performing RedirectJob from Test(default) with arguments: {:uid=>"hello"}
|
7412
|
+
[ActiveJob] [RedirectJob] [0a37b063-a138-4623-819d-2fa366a96358] Performed RedirectJob from Test(default) in 0.8ms
|
7413
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 15:05:39 +0800
|
7414
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7415
|
+
Parameters: {"id"=>"hello"}
|
7416
|
+
Redirected to http://other.com/12345
|
7417
|
+
Completed 302 Found in 1ms
|
7418
|
+
-------------------------------------------------
|
7419
|
+
ActiveWaiter::JobsControllerTest: test_show_error
|
7420
|
+
-------------------------------------------------
|
7421
|
+
Started GET "/active_waiter?id=hello" for 127.0.0.1 at 2015-05-24 15:05:39 +0800
|
7422
|
+
Processing by ActiveWaiter::JobsController#show as HTML
|
7423
|
+
Parameters: {"id"=>"hello"}
|
7424
|
+
Rendered /Users/choonkeat/git/active_waiter/app/views/active_waiter/jobs/error.html.erb within layouts/active_waiter/application (0.6ms)
|
7425
|
+
Completed 500 Internal Server Error in 6ms (Views: 5.4ms)
|
@@ -1,2 +1,2 @@
|
|
1
1
|
o: ActiveSupport::Cache::Entry:@value{:
|
2
|
-
errorI" oops:ET:@created_atf
|
2
|
+
errorI" oops:ET:@created_atf1432451139.3614268:@expires_in0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_waiter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- choonkeat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|