bumbleworks-rails 0.0.6 → 0.0.7

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: 11c30dff9a4c4f588095ee4bf5b38434f7df4249
4
- data.tar.gz: 8835cec1767225bc1866254721c74c94cc0e0f4b
3
+ metadata.gz: 014256edf5483bc722a2ea9cedc4ea447d40ac87
4
+ data.tar.gz: 27260735f2349d2932b4730b8a44b0127e395e76
5
5
  SHA512:
6
- metadata.gz: ac1e24c6ca6933b22a4aeaab1abbaa72be5b18685ad2afafddadb404c484208bdc8202b665860d952dc2f80a676fc84afbd8cf0f44fe09ab55b6af1abacce741
7
- data.tar.gz: c3699a6f15fec605df87c1bbf4a22f401d12f710a286772d18ee6e6130a70e6c94a9bf4d09038743852429855ec151c6c72c9d1f068f421c3cc24fa962521760
6
+ metadata.gz: 174275dc484a8305f409e34aa3a4c12287977796590517726e0177629951f29af8da963ff85f404cf234d0723b0349b9e97208bd8b88181fcf9a47fe6e6a889b
7
+ data.tar.gz: cbcb0d7b8bb7e21125e56b7734e4f06da5b44a0d1f02d00f7be7f74bddecf291424f174d07bc8e89af565135dfd938e093d5dbf35d59d8f2cab6b8c20cb60913
@@ -19,7 +19,7 @@ class Bumbleworks::Rails::TasksController < BumbleworksController
19
19
  if @task.claimant == current_user.claim_token
20
20
  @task.complete(params[:task] || {})
21
21
  flash[:notice] = I18n.t('bumbleworks.tasks.completed')
22
- redirect_to tasks_path
22
+ redirect_to entity_tasks_path @entity
23
23
  else
24
24
  flash[:error] = I18n.t('bumbleworks.tasks.unclaimed_complete_attempt')
25
25
  redirect_to entity_task_path @task
@@ -59,7 +59,7 @@ protected
59
59
  @entity = @task.entity if @task.has_entity?
60
60
  elsif params[:entity_type].present? && params[:entity_id].present?
61
61
  klass = params[:entity_type].classify.constantize
62
- render_404 unless Bumbleworks.entity_classes.include?(klass)
62
+ render_404 and return unless Bumbleworks.entity_classes.include?(klass)
63
63
  @entity = klass.first_by_identifier(params[:entity_id])
64
64
  render_404 and return unless @entity
65
65
  end
@@ -27,6 +27,18 @@ module Bumbleworks
27
27
  def entity_task_path(task, options = {})
28
28
  entity_task_url(task, options.merge(:only_path => true))
29
29
  end
30
+
31
+ def entity_tasks_url(entity, options = {})
32
+ if entity
33
+ options[:entity_type] = entity.class.entity_type.pluralize
34
+ options[:entity_id] = entity.identifier
35
+ end
36
+ main_app.tasks_url(options)
37
+ end
38
+
39
+ def entity_tasks_path(entity, options = {})
40
+ entity_tasks_url(entity, options.merge(:only_path => true))
41
+ end
30
42
  end
31
43
  end
32
44
  end
@@ -1,4 +1,4 @@
1
- <table class="tasks">
1
+ <table class="tasks <%= type %>-tasks">
2
2
  <% unless tasks.empty? %>
3
3
  <thead>
4
4
  <th>Task</th>
@@ -7,7 +7,7 @@
7
7
  </thead>
8
8
  <tbody>
9
9
  <% tasks.sort_by {|x| x['dispatched_at']}.each do |task| %>
10
- <tr class="task">
10
+ <tr class="task" id="<%= task.nickname %>">
11
11
  <td class="task-name">
12
12
  <%= task_name(task) %>
13
13
  </td>
@@ -4,8 +4,8 @@
4
4
  </header>
5
5
  <h3>Available</h3>
6
6
  <%= render :partial => 'bumbleworks/rails/tasks/table',
7
- :locals => { :tasks => @available_tasks } %>
7
+ :locals => { :tasks => @available_tasks, :type => 'available' } %>
8
8
  <h3>Claimed</h3>
9
9
  <%= render :partial => 'bumbleworks/rails/tasks/table',
10
- :locals => { :tasks => @claimed_tasks } %>
10
+ :locals => { :tasks => @claimed_tasks, :type => 'claimed' } %>
11
11
  </div>
@@ -1,5 +1,5 @@
1
1
  module Bumbleworks
2
2
  module Rails
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
@@ -59,7 +59,7 @@ describe Bumbleworks::Rails::TasksController do
59
59
  expect(task).to receive(:complete).with('foo' => 'bar')
60
60
  post :complete, :id => 152, :task => { :foo => :bar }
61
61
  expect(flash[:notice]).to eq(I18n.t('bumbleworks.tasks.completed'))
62
- expect(response).to redirect_to(tasks_path)
62
+ expect(response).to redirect_to(controller.entity_tasks_path(task.entity))
63
63
  end
64
64
 
65
65
  it 'does not complete the task if not claimed by current_user' do
@@ -67,8 +67,7 @@ describe Bumbleworks::Rails::TasksController do
67
67
  expect(task).not_to receive(:complete)
68
68
  post :complete, :id => 152, :task => { :foo => :bar }
69
69
  expect(flash[:error]).to eq(I18n.t('bumbleworks.tasks.unclaimed_complete_attempt'))
70
- # TODO: Figure out why the route is not being recognized
71
- # expect(response).to redirect_to(:action => :show, :entity_type => 'fridgets', :entity_id => 5)
70
+ expect(response).to redirect_to(controller.entity_task_path(task))
72
71
  end
73
72
 
74
73
  it 'does not complete the task if not completable' do
@@ -77,22 +76,17 @@ describe Bumbleworks::Rails::TasksController do
77
76
  and_raise(Bumbleworks::Task::NotCompletable, "no way")
78
77
  post :complete, :id => 152, :task => { :foo => :bar }
79
78
  expect(flash[:error]).to eq("no way")
80
- # TODO: Figure out why the route is not being recognized
81
- # expect(response).to redirect_to(:action => :show, :entity_type => 'fridgets', :entity_id => 5)
79
+ expect(response).to redirect_to(controller.entity_task_path(task))
82
80
  end
83
81
  end
84
82
 
85
83
  describe '#claim' do
86
84
  it_behaves_like 'a task action', :post, :claim
87
85
 
88
- after(:each) do
89
- # TODO: Figure out why the route is not being recognized
90
- # expect(response).to redirect_to(:action => :show, :entity_type => 'fridgets', :entity_id => 5)
91
- end
92
-
93
86
  it 'claims the task if authorized and unclaimed' do
94
87
  expect(subject.current_user).to receive(:claim).with(task)
95
88
  post :claim, :id => 152
89
+ expect(response).to redirect_to(controller.entity_task_path(task))
96
90
  end
97
91
 
98
92
  it 'does not claim the task if unauthorized' do
@@ -100,6 +94,7 @@ describe Bumbleworks::Rails::TasksController do
100
94
  and_raise(Bumbleworks::User::UnauthorizedClaimAttempt, "you can't")
101
95
  post :claim, :id => 152
102
96
  expect(flash[:error]).to eq("you can't")
97
+ expect(response).to redirect_to(controller.entity_task_path(task))
103
98
  end
104
99
 
105
100
  it 'does not claim the task if already claimed' do
@@ -107,20 +102,17 @@ describe Bumbleworks::Rails::TasksController do
107
102
  and_raise(Bumbleworks::Task::AlreadyClaimed, "someone has it")
108
103
  post :claim, :id => 152
109
104
  expect(flash[:error]).to eq("someone has it")
105
+ expect(response).to redirect_to(controller.entity_task_path(task))
110
106
  end
111
107
  end
112
108
 
113
109
  describe '#release' do
114
110
  it_behaves_like 'a task action', :post, :release
115
111
 
116
- after(:each) do
117
- # TODO: Figure out why the route is not being recognized
118
- # expect(response).to redirect_to(:action => :show, :entity_type => 'fridgets', :entity_id => 5)
119
- end
120
-
121
112
  it 'releases the task if current claimant' do
122
113
  expect(subject.current_user).to receive(:release).with(task)
123
114
  post :release, :id => 152
115
+ expect(response).to redirect_to(controller.entity_task_path(task))
124
116
  end
125
117
 
126
118
  it 'does not release the task if not claimant' do
@@ -128,6 +120,7 @@ describe Bumbleworks::Rails::TasksController do
128
120
  and_raise(Bumbleworks::User::UnauthorizedReleaseAttempt)
129
121
  post :release, :id => 152
130
122
  expect(flash[:error]).to eq(I18n.t('bumbleworks.tasks.unauthorized_release_attempt'))
123
+ expect(response).to redirect_to(controller.entity_task_path(task))
131
124
  end
132
125
  end
133
126
 
@@ -166,6 +159,12 @@ describe Bumbleworks::Rails::TasksController do
166
159
  expect(response).to have_http_status(:not_found)
167
160
  end
168
161
 
162
+ it 'renders 404 if entity class not registered with Bumbleworks' do
163
+ Smoo = Class.new
164
+ get :index, :entity_type => 'smoo', :entity_id => 2
165
+ expect(response).to have_http_status(:not_found)
166
+ end
167
+
169
168
  it 'renders generic index template if no entity' do
170
169
  get :index
171
170
  expect(response).to render_template('bumbleworks/rails/tasks/index')
@@ -179,8 +178,6 @@ describe Bumbleworks::Rails::TasksController do
179
178
 
180
179
  it 'renders generic index template if entity has no specific one' do
181
180
  Fridget.new(6)
182
- # allow(Fridget).to receive(:first_by_identifier).with('6').
183
- # and_return(:an_entity)
184
181
  get :index, :entity_type => 'fridgets', :entity_id => '6'
185
182
  expect(response).to render_template('bumbleworks/rails/tasks/index')
186
183
  end
@@ -22010,3 +22010,290 @@ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-06-26 13:20:1
22010
22010
 
22011
22011
 
22012
22012
  Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-06-26 13:20:13 -0700
22013
+
22014
+
22015
+ Started GET "/" for 127.0.0.1 at 2014-07-08 16:21:23 -0700
22016
+ Processing by Bumbleworks::Rails::TasksController#index as HTML
22017
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (48.0ms)
22018
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (0.8ms)
22019
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/index.html.erb within layouts/application (55.3ms)
22020
+ Completed 200 OK in 78ms (Views: 76.4ms | ActiveRecord: 0.0ms)
22021
+
22022
+
22023
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-08 16:21:24 -0700
22024
+
22025
+
22026
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-08 16:21:24 -0700
22027
+
22028
+
22029
+ Started POST "/tasks/0_0_2!c4fe42f72cc1ceab602f343c891ad833!20140708-2321-nurujopo-kujoyure/claim" for 127.0.0.1 at 2014-07-08 16:21:28 -0700
22030
+ Processing by Bumbleworks::Rails::TasksController#claim as HTML
22031
+ Parameters: {"authenticity_token"=>"ctCz4BpwAxmV0iM2a4A5S5C3xSw7ISSSsllowGrFGgI=", "id"=>"0_0_2!c4fe42f72cc1ceab602f343c891ad833!20140708-2321-nurujopo-kujoyure"}
22032
+ Redirected to http://localhost:3001/fridgets/1/tasks/0_0_2!c4fe42f72cc1ceab602f343c891ad833!20140708-2321-nurujopo-kujoyure
22033
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
22034
+
22035
+
22036
+ Started GET "/fridgets/1/tasks/0_0_2!c4fe42f72cc1ceab602f343c891ad833!20140708-2321-nurujopo-kujoyure" for 127.0.0.1 at 2014-07-08 16:21:28 -0700
22037
+ Processing by Bumbleworks::Rails::TasksController#show as HTML
22038
+ Parameters: {"entity_type"=>"fridgets", "entity_id"=>"1", "id"=>"0_0_2!c4fe42f72cc1ceab602f343c891ad833!20140708-2321-nurujopo-kujoyure"}
22039
+ Rendered fridgets/tasks/show.html.erb within layouts/application (1.4ms)
22040
+ Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms)
22041
+
22042
+
22043
+ Started POST "/tasks/0_0_1!856bf0b1092e38c0945fd5c321f9d4ef!20140708-2321-mojajoka-zehobi/claim" for 127.0.0.1 at 2014-07-08 16:21:57 -0700
22044
+ Processing by Bumbleworks::Rails::TasksController#claim as HTML
22045
+ Parameters: {"authenticity_token"=>"ctCz4BpwAxmV0iM2a4A5S5C3xSw7ISSSsllowGrFGgI=", "id"=>"0_0_1!856bf0b1092e38c0945fd5c321f9d4ef!20140708-2321-mojajoka-zehobi"}
22046
+ Redirected to http://localhost:3001/silvo_blooms/1/tasks/0_0_1!856bf0b1092e38c0945fd5c321f9d4ef!20140708-2321-mojajoka-zehobi
22047
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
22048
+
22049
+
22050
+ Started GET "/silvo_blooms/1/tasks/0_0_1!856bf0b1092e38c0945fd5c321f9d4ef!20140708-2321-mojajoka-zehobi" for 127.0.0.1 at 2014-07-08 16:21:57 -0700
22051
+ Processing by Bumbleworks::Rails::TasksController#show as HTML
22052
+ Parameters: {"entity_type"=>"silvo_blooms", "entity_id"=>"1", "id"=>"0_0_1!856bf0b1092e38c0945fd5c321f9d4ef!20140708-2321-mojajoka-zehobi"}
22053
+ Rendered bumbleworks/tasks/custom/_chew_on_quandary.html.erb (0.3ms)
22054
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/show.html.erb within layouts/application (5.4ms)
22055
+ Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.0ms)
22056
+
22057
+
22058
+ Started POST "/silvo_blooms/1/tasks/0_0_1!856bf0b1092e38c0945fd5c321f9d4ef!20140708-2321-mojajoka-zehobi/complete" for 127.0.0.1 at 2014-07-08 16:21:58 -0700
22059
+ Processing by Bumbleworks::Rails::TasksController#complete as HTML
22060
+ Parameters: {"authenticity_token"=>"ctCz4BpwAxmV0iM2a4A5S5C3xSw7ISSSsllowGrFGgI=", "entity_type"=>"silvo_blooms", "entity_id"=>"1", "id"=>"0_0_1!856bf0b1092e38c0945fd5c321f9d4ef!20140708-2321-mojajoka-zehobi"}
22061
+ Redirected to http://localhost:3001/tasks
22062
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
22063
+
22064
+
22065
+ Started GET "/tasks" for 127.0.0.1 at 2014-07-08 16:21:58 -0700
22066
+ Processing by Bumbleworks::Rails::TasksController#index as HTML
22067
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (10.7ms)
22068
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (1.6ms)
22069
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/index.html.erb within layouts/application (13.6ms)
22070
+ Completed 200 OK in 19ms (Views: 18.2ms | ActiveRecord: 0.0ms)
22071
+
22072
+
22073
+ Started POST "/tasks/0_0_2!6cb5315b1626153e6534c41a8a40de74!20140708-2321-morachini-mikukebe/claim" for 127.0.0.1 at 2014-07-08 16:22:47 -0700
22074
+ Processing by Bumbleworks::Rails::TasksController#claim as HTML
22075
+ Parameters: {"authenticity_token"=>"ctCz4BpwAxmV0iM2a4A5S5C3xSw7ISSSsllowGrFGgI=", "id"=>"0_0_2!6cb5315b1626153e6534c41a8a40de74!20140708-2321-morachini-mikukebe"}
22076
+ Redirected to http://localhost:3001/silvo_blooms/2/tasks/0_0_2!6cb5315b1626153e6534c41a8a40de74!20140708-2321-morachini-mikukebe
22077
+ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
22078
+
22079
+
22080
+ Started GET "/silvo_blooms/2/tasks/0_0_2!6cb5315b1626153e6534c41a8a40de74!20140708-2321-morachini-mikukebe" for 127.0.0.1 at 2014-07-08 16:22:47 -0700
22081
+ Processing by Bumbleworks::Rails::TasksController#show as HTML
22082
+ Parameters: {"entity_type"=>"silvo_blooms", "entity_id"=>"2", "id"=>"0_0_2!6cb5315b1626153e6534c41a8a40de74!20140708-2321-morachini-mikukebe"}
22083
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/show.html.erb within layouts/application (2.0ms)
22084
+ Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)
22085
+
22086
+
22087
+ Started POST "/silvo_blooms/2/tasks/0_0_2!6cb5315b1626153e6534c41a8a40de74!20140708-2321-morachini-mikukebe/complete" for 127.0.0.1 at 2014-07-08 16:22:48 -0700
22088
+ Processing by Bumbleworks::Rails::TasksController#complete as HTML
22089
+ Parameters: {"authenticity_token"=>"ctCz4BpwAxmV0iM2a4A5S5C3xSw7ISSSsllowGrFGgI=", "entity_type"=>"silvo_blooms", "entity_id"=>"2", "id"=>"0_0_2!6cb5315b1626153e6534c41a8a40de74!20140708-2321-morachini-mikukebe"}
22090
+ Redirected to http://localhost:3001/tasks
22091
+ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
22092
+
22093
+
22094
+ Started GET "/tasks" for 127.0.0.1 at 2014-07-08 16:22:48 -0700
22095
+ Processing by Bumbleworks::Rails::TasksController#index as HTML
22096
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (20.1ms)
22097
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (2.0ms)
22098
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/index.html.erb within layouts/application (23.7ms)
22099
+ Completed 200 OK in 36ms (Views: 36.2ms | ActiveRecord: 0.0ms)
22100
+
22101
+
22102
+ Started GET "/tasks" for 127.0.0.1 at 2014-07-08 16:23:44 -0700
22103
+ Processing by Bumbleworks::Rails::TasksController#index as HTML
22104
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (11.0ms)
22105
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (1.9ms)
22106
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/index.html.erb within layouts/application (14.3ms)
22107
+ Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.0ms)
22108
+
22109
+
22110
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-08 16:23:44 -0700
22111
+
22112
+
22113
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-08 16:23:44 -0700
22114
+
22115
+
22116
+ Started POST "/tasks/0_0_2!f0de52f67e95e0edd73ea59b36309715!20140708-2321-mojajoka-zehobi/claim" for 127.0.0.1 at 2014-07-08 16:23:48 -0700
22117
+ Processing by Bumbleworks::Rails::TasksController#claim as HTML
22118
+ Parameters: {"authenticity_token"=>"ctCz4BpwAxmV0iM2a4A5S5C3xSw7ISSSsllowGrFGgI=", "id"=>"0_0_2!f0de52f67e95e0edd73ea59b36309715!20140708-2321-mojajoka-zehobi"}
22119
+ Redirected to http://localhost:3001/silvo_blooms/1/tasks/0_0_2!f0de52f67e95e0edd73ea59b36309715!20140708-2321-mojajoka-zehobi
22120
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
22121
+
22122
+
22123
+ Started GET "/silvo_blooms/1/tasks/0_0_2!f0de52f67e95e0edd73ea59b36309715!20140708-2321-mojajoka-zehobi" for 127.0.0.1 at 2014-07-08 16:23:48 -0700
22124
+ Processing by Bumbleworks::Rails::TasksController#show as HTML
22125
+ Parameters: {"entity_type"=>"silvo_blooms", "entity_id"=>"1", "id"=>"0_0_2!f0de52f67e95e0edd73ea59b36309715!20140708-2321-mojajoka-zehobi"}
22126
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/show.html.erb within layouts/application (2.1ms)
22127
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.0ms)
22128
+
22129
+
22130
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-08 16:23:48 -0700
22131
+
22132
+
22133
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-08 16:23:48 -0700
22134
+
22135
+
22136
+ Started POST "/silvo_blooms/1/tasks/0_0_2!f0de52f67e95e0edd73ea59b36309715!20140708-2321-mojajoka-zehobi/complete" for 127.0.0.1 at 2014-07-08 16:23:49 -0700
22137
+ Processing by Bumbleworks::Rails::TasksController#complete as HTML
22138
+ Parameters: {"authenticity_token"=>"ctCz4BpwAxmV0iM2a4A5S5C3xSw7ISSSsllowGrFGgI=", "entity_type"=>"silvo_blooms", "entity_id"=>"1", "id"=>"0_0_2!f0de52f67e95e0edd73ea59b36309715!20140708-2321-mojajoka-zehobi"}
22139
+ Redirected to http://localhost:3001/tasks
22140
+ Completed 302 Found in 2ms (ActiveRecord: 0.0ms)
22141
+
22142
+
22143
+ Started GET "/tasks" for 127.0.0.1 at 2014-07-08 16:23:49 -0700
22144
+ Processing by Bumbleworks::Rails::TasksController#index as HTML
22145
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (9.2ms)
22146
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (3.4ms)
22147
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/index.html.erb within layouts/application (14.4ms)
22148
+ Completed 200 OK in 18ms (Views: 17.9ms | ActiveRecord: 0.0ms)
22149
+
22150
+
22151
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-08 16:23:49 -0700
22152
+
22153
+
22154
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-08 16:23:49 -0700
22155
+
22156
+
22157
+ Started GET "/" for 127.0.0.1 at 2014-07-08 16:23:59 -0700
22158
+ Processing by Bumbleworks::Rails::TasksController#index as HTML
22159
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (30.5ms)
22160
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (0.2ms)
22161
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/index.html.erb within layouts/application (34.2ms)
22162
+ Completed 200 OK in 46ms (Views: 45.5ms | ActiveRecord: 0.0ms)
22163
+
22164
+
22165
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-08 16:23:59 -0700
22166
+
22167
+
22168
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-08 16:23:59 -0700
22169
+
22170
+
22171
+ Started POST "/tasks/0_0_1!6d586e450d15ac12bbd1f00be01fc21b!20140708-2323-kagumara-damanewa/claim" for 127.0.0.1 at 2014-07-08 16:24:01 -0700
22172
+ Processing by Bumbleworks::Rails::TasksController#claim as HTML
22173
+ Parameters: {"authenticity_token"=>"ctCz4BpwAxmV0iM2a4A5S5C3xSw7ISSSsllowGrFGgI=", "id"=>"0_0_1!6d586e450d15ac12bbd1f00be01fc21b!20140708-2323-kagumara-damanewa"}
22174
+ Redirected to http://localhost:3001/silvo_blooms/1/tasks/0_0_1!6d586e450d15ac12bbd1f00be01fc21b!20140708-2323-kagumara-damanewa
22175
+ Completed 302 Found in 3ms (ActiveRecord: 0.0ms)
22176
+
22177
+
22178
+ Started GET "/silvo_blooms/1/tasks/0_0_1!6d586e450d15ac12bbd1f00be01fc21b!20140708-2323-kagumara-damanewa" for 127.0.0.1 at 2014-07-08 16:24:01 -0700
22179
+ Processing by Bumbleworks::Rails::TasksController#show as HTML
22180
+ Parameters: {"entity_type"=>"silvo_blooms", "entity_id"=>"1", "id"=>"0_0_1!6d586e450d15ac12bbd1f00be01fc21b!20140708-2323-kagumara-damanewa"}
22181
+ Rendered bumbleworks/tasks/custom/_chew_on_quandary.html.erb (0.2ms)
22182
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/show.html.erb within layouts/application (4.5ms)
22183
+ Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.0ms)
22184
+
22185
+
22186
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-08 16:24:01 -0700
22187
+
22188
+
22189
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-08 16:24:01 -0700
22190
+
22191
+
22192
+ Started POST "/silvo_blooms/1/tasks/0_0_1!6d586e450d15ac12bbd1f00be01fc21b!20140708-2323-kagumara-damanewa/complete" for 127.0.0.1 at 2014-07-08 16:24:02 -0700
22193
+ Processing by Bumbleworks::Rails::TasksController#complete as HTML
22194
+ Parameters: {"authenticity_token"=>"ctCz4BpwAxmV0iM2a4A5S5C3xSw7ISSSsllowGrFGgI=", "entity_type"=>"silvo_blooms", "entity_id"=>"1", "id"=>"0_0_1!6d586e450d15ac12bbd1f00be01fc21b!20140708-2323-kagumara-damanewa"}
22195
+ Redirected to http://localhost:3001/tasks
22196
+ Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
22197
+
22198
+
22199
+ Started GET "/tasks" for 127.0.0.1 at 2014-07-08 16:24:02 -0700
22200
+ Processing by Bumbleworks::Rails::TasksController#index as HTML
22201
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (11.5ms)
22202
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (0.1ms)
22203
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/index.html.erb within layouts/application (12.9ms)
22204
+ Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms)
22205
+
22206
+
22207
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-08 16:24:02 -0700
22208
+
22209
+
22210
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-08 16:24:02 -0700
22211
+
22212
+
22213
+ Started GET "/tasks" for 127.0.0.1 at 2014-07-08 16:24:34 -0700
22214
+
22215
+ ActionController::RoutingError (uninitialized constant NopeController):
22216
+ activesupport (4.0.2) lib/active_support/inflector/methods.rb:226:in `const_get'
22217
+ activesupport (4.0.2) lib/active_support/inflector/methods.rb:226:in `block in constantize'
22218
+ activesupport (4.0.2) lib/active_support/inflector/methods.rb:224:in `each'
22219
+ activesupport (4.0.2) lib/active_support/inflector/methods.rb:224:in `inject'
22220
+ activesupport (4.0.2) lib/active_support/inflector/methods.rb:224:in `constantize'
22221
+ actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:76:in `controller_reference'
22222
+ actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:66:in `controller'
22223
+ actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:44:in `call'
22224
+ actionpack (4.0.2) lib/action_dispatch/journey/router.rb:71:in `block in call'
22225
+ actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `each'
22226
+ actionpack (4.0.2) lib/action_dispatch/journey/router.rb:59:in `call'
22227
+ actionpack (4.0.2) lib/action_dispatch/routing/route_set.rb:680:in `call'
22228
+ rack (1.5.2) lib/rack/etag.rb:23:in `call'
22229
+ rack (1.5.2) lib/rack/conditionalget.rb:25:in `call'
22230
+ rack (1.5.2) lib/rack/head.rb:11:in `call'
22231
+ actionpack (4.0.2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
22232
+ actionpack (4.0.2) lib/action_dispatch/middleware/flash.rb:241:in `call'
22233
+ rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context'
22234
+ rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call'
22235
+ actionpack (4.0.2) lib/action_dispatch/middleware/cookies.rb:486:in `call'
22236
+ activerecord (4.0.2) lib/active_record/query_cache.rb:36:in `call'
22237
+ activerecord (4.0.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
22238
+ activerecord (4.0.2) lib/active_record/migration.rb:369:in `call'
22239
+ actionpack (4.0.2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
22240
+ activesupport (4.0.2) lib/active_support/callbacks.rb:373:in `_run__554808144244953485__call__callbacks'
22241
+ activesupport (4.0.2) lib/active_support/callbacks.rb:80:in `run_callbacks'
22242
+ actionpack (4.0.2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
22243
+ actionpack (4.0.2) lib/action_dispatch/middleware/reloader.rb:64:in `call'
22244
+ actionpack (4.0.2) lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
22245
+ actionpack (4.0.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
22246
+ actionpack (4.0.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
22247
+ railties (4.0.2) lib/rails/rack/logger.rb:38:in `call_app'
22248
+ railties (4.0.2) lib/rails/rack/logger.rb:20:in `block in call'
22249
+ activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `block in tagged'
22250
+ activesupport (4.0.2) lib/active_support/tagged_logging.rb:25:in `tagged'
22251
+ activesupport (4.0.2) lib/active_support/tagged_logging.rb:67:in `tagged'
22252
+ railties (4.0.2) lib/rails/rack/logger.rb:20:in `call'
22253
+ actionpack (4.0.2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
22254
+ rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
22255
+ rack (1.5.2) lib/rack/runtime.rb:17:in `call'
22256
+ activesupport (4.0.2) lib/active_support/cache/strategy/local_cache.rb:83:in `call'
22257
+ rack (1.5.2) lib/rack/lock.rb:17:in `call'
22258
+ actionpack (4.0.2) lib/action_dispatch/middleware/static.rb:64:in `call'
22259
+ rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
22260
+ railties (4.0.2) lib/rails/engine.rb:511:in `call'
22261
+ railties (4.0.2) lib/rails/application.rb:97:in `call'
22262
+ rack (1.5.2) lib/rack/content_length.rb:14:in `call'
22263
+ thin (1.6.2) lib/thin/connection.rb:86:in `block in pre_process'
22264
+ thin (1.6.2) lib/thin/connection.rb:84:in `catch'
22265
+ thin (1.6.2) lib/thin/connection.rb:84:in `pre_process'
22266
+ thin (1.6.2) lib/thin/connection.rb:53:in `process'
22267
+ thin (1.6.2) lib/thin/connection.rb:39:in `receive_data'
22268
+ eventmachine (1.0.3) lib/eventmachine.rb:187:in `run_machine'
22269
+ eventmachine (1.0.3) lib/eventmachine.rb:187:in `run'
22270
+ thin (1.6.2) lib/thin/backends/base.rb:73:in `start'
22271
+ thin (1.6.2) lib/thin/server.rb:162:in `start'
22272
+ rack (1.5.2) lib/rack/handler/thin.rb:16:in `run'
22273
+ rack (1.5.2) lib/rack/server.rb:264:in `start'
22274
+ railties (4.0.2) lib/rails/commands/server.rb:84:in `start'
22275
+ railties (4.0.2) lib/rails/commands.rb:76:in `block in <top (required)>'
22276
+ railties (4.0.2) lib/rails/commands.rb:71:in `tap'
22277
+ railties (4.0.2) lib/rails/commands.rb:71:in `<top (required)>'
22278
+ bin/rails:4:in `require'
22279
+ bin/rails:4:in `<main>'
22280
+
22281
+
22282
+ Rendered /Users/ravi/.gem/ruby/2.1.1/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
22283
+ Rendered /Users/ravi/.gem/ruby/2.1.1/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.9ms)
22284
+ Rendered /Users/ravi/.gem/ruby/2.1.1/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.2ms)
22285
+ Rendered /Users/ravi/.gem/ruby/2.1.1/gems/actionpack-4.0.2/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (35.8ms)
22286
+
22287
+
22288
+ Started GET "/tasks" for 127.0.0.1 at 2014-07-08 16:24:52 -0700
22289
+ Processing by Bumbleworks::Rails::TasksController#index as HTML
22290
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (19.6ms)
22291
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/_table.html.erb (0.2ms)
22292
+ Rendered /Users/ravi/bumbleworks/bumbleworks-rails/app/views/bumbleworks/rails/tasks/index.html.erb within layouts/application (21.1ms)
22293
+ Completed 200 OK in 26ms (Views: 24.6ms | ActiveRecord: 0.0ms)
22294
+
22295
+
22296
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-07-08 16:24:52 -0700
22297
+
22298
+
22299
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-07-08 16:24:52 -0700