branston 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/lib/branston/Gemfile +25 -0
- data/lib/branston/Gemfile.lock +76 -0
- data/lib/branston/app/controllers/application_controller.rb +1 -1
- data/lib/branston/app/controllers/outcomes_controller.rb +2 -0
- data/lib/branston/app/controllers/stories_controller.rb +82 -86
- data/lib/branston/app/controllers/users_controller.rb +69 -11
- data/lib/branston/app/helpers/iterations_helper.rb +13 -13
- data/lib/branston/app/models/iteration.rb +3 -1
- data/lib/branston/app/models/release.rb +0 -1
- data/lib/branston/app/models/story.rb +30 -28
- data/lib/branston/app/models/user.rb +46 -1
- data/lib/branston/app/views/layouts/_header.html.erb +8 -3
- data/lib/branston/app/views/layouts/user_roles.html.erb +5 -5
- data/lib/branston/app/views/sessions/new.html.erb +8 -14
- data/lib/branston/app/views/users/_admin_controls.html.erb +14 -0
- data/lib/branston/app/views/users/_form.html.erb +27 -0
- data/lib/branston/app/views/users/edit.html.erb +9 -0
- data/lib/branston/app/views/users/index.html.erb +14 -0
- data/lib/branston/app/views/users/new.html.erb +3 -22
- data/lib/branston/config/boot.rb +20 -0
- data/lib/branston/config/environment.rb +2 -7
- data/lib/branston/config/environments/test.rb +0 -8
- data/lib/branston/config/preinitializer.rb +21 -0
- data/lib/branston/config/routes.rb +15 -10
- data/lib/branston/db/development.sqlite3 +0 -0
- data/lib/branston/db/development_structure.sql +21 -8
- data/lib/branston/db/migrate/20100723161424_add_state_to_user.rb +12 -0
- data/lib/branston/db/migrate/20100726150322_add_activation_fields_to_user.rb +12 -0
- data/lib/branston/db/migrate/20100729125551_set_default_user_state_to_pending.rb +10 -0
- data/lib/branston/db/migrate/20100812133837_add_is_admin_property_to_user.rb +10 -0
- data/lib/branston/db/migrate/20100812140532_set_default_user_state_to_active.rb +10 -0
- data/lib/branston/db/migrate/20100812143455_add_default_admin_user.rb +17 -0
- data/lib/branston/db/migrate/20110408162438_remove_is_admin_property_and_add_role_instead.rb +12 -0
- data/lib/branston/db/pristine.sqlite3 +0 -0
- data/lib/branston/db/schema.rb +6 -8
- data/lib/branston/db/test.sqlite3 +0 -0
- data/lib/branston/log/development.log +1181 -433
- data/lib/branston/log/test.log +145306 -52026
- data/lib/branston/test/blueprints.rb +22 -28
- data/lib/branston/test/functional/iterations_controller_test.rb +149 -113
- data/lib/branston/test/functional/outcomes_controller_test.rb +94 -60
- data/lib/branston/test/functional/preconditions_controller_test.rb +101 -67
- data/lib/branston/test/functional/releases_controller_test.rb +85 -49
- data/lib/branston/test/functional/scenarios_controller_test.rb +104 -70
- data/lib/branston/test/functional/stories_controller_test.rb +41 -12
- data/lib/branston/test/functional/users_controller_test.rb +364 -43
- data/lib/branston/test/unit/iteration_test.rb +37 -6
- data/lib/branston/test/unit/outcome_test.rb +2 -2
- data/lib/branston/test/unit/participation_test.rb +2 -2
- data/lib/branston/test/unit/precondition_test.rb +3 -3
- data/lib/branston/test/unit/release_test.rb +4 -0
- data/lib/branston/test/unit/scenario_test.rb +4 -4
- data/lib/branston/test/unit/story_test.rb +62 -40
- data/lib/branston/test/unit/user_test.rb +195 -5
- metadata +136 -156
- data/lib/branston/app/controllers/user_roles_controller.rb +0 -105
- data/lib/branston/app/helpers/user_roles_helper.rb +0 -2
- data/lib/branston/app/models/user_role.rb +0 -21
- data/lib/branston/app/views/layouts/outcomes.html.erb +0 -17
- data/lib/branston/app/views/layouts/preconditions.html.erb +0 -17
- data/lib/branston/app/views/layouts/releases.html.erb +0 -17
- data/lib/branston/app/views/user_roles/edit.html.erb +0 -16
- data/lib/branston/app/views/user_roles/index.html.erb +0 -20
- data/lib/branston/app/views/user_roles/new.html.erb +0 -15
- data/lib/branston/app/views/user_roles/show.html.erb +0 -8
- data/lib/branston/coverage/app-controllers-application_controller_rb.html +0 -231
- data/lib/branston/coverage/app-controllers-iterations_controller_rb.html +0 -801
- data/lib/branston/coverage/app-controllers-outcomes_controller_rb.html +0 -759
- data/lib/branston/coverage/app-controllers-preconditions_controller_rb.html +0 -783
- data/lib/branston/coverage/app-controllers-releases_controller_rb.html +0 -705
- data/lib/branston/coverage/app-controllers-scenarios_controller_rb.html +0 -777
- data/lib/branston/coverage/app-controllers-sessions_controller_rb.html +0 -411
- data/lib/branston/coverage/app-controllers-stories_controller_rb.html +0 -1071
- data/lib/branston/coverage/app-controllers-user_roles_controller_rb.html +0 -693
- data/lib/branston/coverage/app-controllers-users_controller_rb.html +0 -315
- data/lib/branston/coverage/app-helpers-application_helper_rb.html +0 -327
- data/lib/branston/coverage/app-helpers-iterations_helper_rb.html +0 -363
- data/lib/branston/coverage/app-helpers-outcomes_helper_rb.html +0 -75
- data/lib/branston/coverage/app-helpers-preconditions_helper_rb.html +0 -75
- data/lib/branston/coverage/app-helpers-releases_helper_rb.html +0 -75
- data/lib/branston/coverage/app-helpers-sessions_helper_rb.html +0 -75
- data/lib/branston/coverage/app-helpers-stories_helper_rb.html +0 -75
- data/lib/branston/coverage/app-helpers-user_roles_helper_rb.html +0 -75
- data/lib/branston/coverage/app-models-iteration_rb.html +0 -321
- data/lib/branston/coverage/app-models-outcome_rb.html +0 -243
- data/lib/branston/coverage/app-models-participation_rb.html +0 -189
- data/lib/branston/coverage/app-models-precondition_rb.html +0 -243
- data/lib/branston/coverage/app-models-release_rb.html +0 -195
- data/lib/branston/coverage/app-models-scenario_rb.html +0 -231
- data/lib/branston/coverage/app-models-story_rb.html +0 -621
- data/lib/branston/coverage/app-models-user_rb.html +0 -513
- data/lib/branston/coverage/app-models-user_role_rb.html +0 -189
- data/lib/branston/coverage/index.html +0 -570
- data/lib/branston/coverage/jquery-1.3.2.min.js +0 -19
- data/lib/branston/coverage/jquery.tablesorter.min.js +0 -15
- data/lib/branston/coverage/lib-client_rb.html +0 -537
- data/lib/branston/coverage/lib-faker_extras_rb.html +0 -207
- data/lib/branston/coverage/lib-story_generator_rb.html +0 -873
- data/lib/branston/coverage/print.css +0 -12
- data/lib/branston/coverage/rcov.js +0 -42
- data/lib/branston/coverage/screen.css +0 -270
- data/lib/branston/db/migrate/20091127131037_create_user_roles.rb +0 -13
- data/lib/branston/db/migrate/20091127172950_add_story_id_to_user_role.rb +0 -10
- data/lib/branston/test/functional/user_roles_controller_test.rb +0 -71
- data/lib/branston/test/unit/helpers/user_roles_helper_test.rb +0 -4
- data/lib/branston/test/unit/user_role_test.rb +0 -9
- data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_flat.txt +0 -8
- data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_graph.html +0 -6718
- data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_tree.txt +0 -9942
- data/lib/branston/vendor/plugins/state_machine/CHANGELOG.rdoc +0 -298
- data/lib/branston/vendor/plugins/state_machine/LICENSE +0 -20
- data/lib/branston/vendor/plugins/state_machine/README.rdoc +0 -466
- data/lib/branston/vendor/plugins/state_machine/Rakefile +0 -98
- data/lib/branston/vendor/plugins/state_machine/examples/AutoShop_state.png +0 -0
- data/lib/branston/vendor/plugins/state_machine/examples/Car_state.png +0 -0
- data/lib/branston/vendor/plugins/state_machine/examples/TrafficLight_state.png +0 -0
- data/lib/branston/vendor/plugins/state_machine/examples/Vehicle_state.png +0 -0
- data/lib/branston/vendor/plugins/state_machine/examples/auto_shop.rb +0 -11
- data/lib/branston/vendor/plugins/state_machine/examples/car.rb +0 -19
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/controller.rb +0 -51
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/model.rb +0 -28
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_edit.html.erb +0 -24
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_index.html.erb +0 -23
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_new.html.erb +0 -13
- data/lib/branston/vendor/plugins/state_machine/examples/merb-rest/view_show.html.erb +0 -17
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/controller.rb +0 -43
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/migration.rb +0 -11
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/model.rb +0 -23
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_edit.html.erb +0 -25
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_index.html.erb +0 -23
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_new.html.erb +0 -14
- data/lib/branston/vendor/plugins/state_machine/examples/rails-rest/view_show.html.erb +0 -17
- data/lib/branston/vendor/plugins/state_machine/examples/traffic_light.rb +0 -7
- data/lib/branston/vendor/plugins/state_machine/examples/vehicle.rb +0 -31
- data/lib/branston/vendor/plugins/state_machine/init.rb +0 -1
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine.rb +0 -388
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/assertions.rb +0 -36
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/callback.rb +0 -189
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/condition_proxy.rb +0 -94
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/eval_helpers.rb +0 -67
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/event.rb +0 -252
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/event_collection.rb +0 -122
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/extensions.rb +0 -149
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/guard.rb +0 -230
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations.rb +0 -68
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/active_record.rb +0 -492
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/active_record/locale.rb +0 -11
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/active_record/observer.rb +0 -41
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/data_mapper.rb +0 -351
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/data_mapper/observer.rb +0 -139
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/integrations/sequel.rb +0 -322
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/machine.rb +0 -1467
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/machine_collection.rb +0 -155
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/matcher.rb +0 -123
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/matcher_helpers.rb +0 -54
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/node_collection.rb +0 -152
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/state.rb +0 -249
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/state_collection.rb +0 -112
- data/lib/branston/vendor/plugins/state_machine/lib/state_machine/transition.rb +0 -394
- data/lib/branston/vendor/plugins/state_machine/state_machine.gemspec +0 -30
- data/lib/branston/vendor/plugins/state_machine/tasks/state_machine.rake +0 -1
- data/lib/branston/vendor/plugins/state_machine/tasks/state_machine.rb +0 -30
- data/lib/branston/vendor/plugins/state_machine/test/classes/switch.rb +0 -11
- data/lib/branston/vendor/plugins/state_machine/test/functional/state_machine_test.rb +0 -941
- data/lib/branston/vendor/plugins/state_machine/test/test_helper.rb +0 -4
- data/lib/branston/vendor/plugins/state_machine/test/unit/assertions_test.rb +0 -40
- data/lib/branston/vendor/plugins/state_machine/test/unit/callback_test.rb +0 -455
- data/lib/branston/vendor/plugins/state_machine/test/unit/condition_proxy_test.rb +0 -328
- data/lib/branston/vendor/plugins/state_machine/test/unit/eval_helpers_test.rb +0 -120
- data/lib/branston/vendor/plugins/state_machine/test/unit/event_collection_test.rb +0 -326
- data/lib/branston/vendor/plugins/state_machine/test/unit/event_test.rb +0 -743
- data/lib/branston/vendor/plugins/state_machine/test/unit/guard_test.rb +0 -908
- data/lib/branston/vendor/plugins/state_machine/test/unit/integrations/active_record_test.rb +0 -1367
- data/lib/branston/vendor/plugins/state_machine/test/unit/integrations/data_mapper_test.rb +0 -962
- data/lib/branston/vendor/plugins/state_machine/test/unit/integrations/sequel_test.rb +0 -859
- data/lib/branston/vendor/plugins/state_machine/test/unit/integrations_test.rb +0 -42
- data/lib/branston/vendor/plugins/state_machine/test/unit/invalid_event_test.rb +0 -7
- data/lib/branston/vendor/plugins/state_machine/test/unit/invalid_transition_test.rb +0 -7
- data/lib/branston/vendor/plugins/state_machine/test/unit/machine_collection_test.rb +0 -938
- data/lib/branston/vendor/plugins/state_machine/test/unit/machine_test.rb +0 -2004
- data/lib/branston/vendor/plugins/state_machine/test/unit/matcher_helpers_test.rb +0 -37
- data/lib/branston/vendor/plugins/state_machine/test/unit/matcher_test.rb +0 -155
- data/lib/branston/vendor/plugins/state_machine/test/unit/node_collection_test.rb +0 -207
- data/lib/branston/vendor/plugins/state_machine/test/unit/state_collection_test.rb +0 -280
- data/lib/branston/vendor/plugins/state_machine/test/unit/state_machine_test.rb +0 -31
- data/lib/branston/vendor/plugins/state_machine/test/unit/state_test.rb +0 -795
- data/lib/branston/vendor/plugins/state_machine/test/unit/transition_test.rb +0 -1212
@@ -1,105 +0,0 @@
|
|
1
|
-
# This file is part of Branston.
|
2
|
-
#
|
3
|
-
# Branston is free software: you can redistribute it and/or modify
|
4
|
-
# it under the terms of the GNU Affero General Public License as published by
|
5
|
-
# the Free Software Foundation.
|
6
|
-
#
|
7
|
-
# Branston is distributed in the hope that it will be useful,
|
8
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
9
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
10
|
-
# GNU Affero General Public License for more details.
|
11
|
-
#
|
12
|
-
# You should have received a copy of the GNU Affero General Public License
|
13
|
-
# along with Branston. If not, see <http://www.gnu.org/licenses/>.
|
14
|
-
|
15
|
-
class UserRolesController < ApplicationController
|
16
|
-
|
17
|
-
layout 'main'
|
18
|
-
|
19
|
-
before_filter :login_required
|
20
|
-
|
21
|
-
# GET /user_roles
|
22
|
-
# GET /user_roles.xml
|
23
|
-
def index
|
24
|
-
@user_roles = UserRole.all
|
25
|
-
|
26
|
-
respond_to do |format|
|
27
|
-
format.html # index.html.erb
|
28
|
-
format.xml { render :xml => @user_roles }
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
# GET /user_roles/1
|
33
|
-
# GET /user_roles/1.xml
|
34
|
-
def show
|
35
|
-
@user_role = UserRole.find(params[:id])
|
36
|
-
|
37
|
-
respond_to do |format|
|
38
|
-
format.html # show.html.erb
|
39
|
-
format.xml { render :xml => @user_role }
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
# GET /user_roles/new
|
44
|
-
# GET /user_roles/new.xml
|
45
|
-
def new
|
46
|
-
@user_role = UserRole.new
|
47
|
-
|
48
|
-
respond_to do |format|
|
49
|
-
format.html # new.html.erb
|
50
|
-
format.xml { render :xml => @user_role }
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
# GET /user_roles/1/edit
|
55
|
-
def edit
|
56
|
-
@user_role = UserRole.find(params[:id])
|
57
|
-
end
|
58
|
-
|
59
|
-
# POST /user_roles
|
60
|
-
# POST /user_roles.xml
|
61
|
-
def create
|
62
|
-
@user_role = UserRole.new(params[:user_role])
|
63
|
-
|
64
|
-
respond_to do |format|
|
65
|
-
if @user_role.save
|
66
|
-
flash[:notice] = 'UserRole was successfully created.'
|
67
|
-
format.html { redirect_to(@user_role) }
|
68
|
-
format.xml { render :xml => @user_role, :status => :created, :location => @user_role }
|
69
|
-
else
|
70
|
-
format.html { render :action => "new" }
|
71
|
-
format.xml { render :xml => @user_role.errors, :status => :unprocessable_entity }
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
# PUT /user_roles/1
|
77
|
-
# PUT /user_roles/1.xml
|
78
|
-
def update
|
79
|
-
@user_role = UserRole.find(params[:id])
|
80
|
-
|
81
|
-
respond_to do |format|
|
82
|
-
if @user_role.update_attributes(params[:user_role])
|
83
|
-
flash[:notice] = 'UserRole was successfully updated.'
|
84
|
-
format.html { redirect_to(@user_role) }
|
85
|
-
format.xml { head :ok }
|
86
|
-
else
|
87
|
-
format.html { render :action => "edit" }
|
88
|
-
format.xml { render :xml => @user_role.errors, :status => :unprocessable_entity }
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
# DELETE /user_roles/1
|
94
|
-
# DELETE /user_roles/1.xml
|
95
|
-
def destroy
|
96
|
-
@user_role = UserRole.find(params[:id])
|
97
|
-
@user_role.destroy
|
98
|
-
|
99
|
-
respond_to do |format|
|
100
|
-
format.html { redirect_to(user_roles_url) }
|
101
|
-
format.xml { head :ok }
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# This file is part of Branston.
|
2
|
-
#
|
3
|
-
# Branston is free software: you can redistribute it and/or modify
|
4
|
-
# it under the terms of the GNU Affero General Public License as published by
|
5
|
-
# the Free Software Foundation.
|
6
|
-
#
|
7
|
-
# Branston is distributed in the hope that it will be useful,
|
8
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
9
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
10
|
-
# GNU Affero General Public License for more details.
|
11
|
-
#
|
12
|
-
# You should have received a copy of the GNU Affero General Public License
|
13
|
-
# along with Branston. If not, see <http://www.gnu.org/licenses/>.
|
14
|
-
|
15
|
-
class UserRole < ActiveRecord::Base
|
16
|
-
|
17
|
-
validates_presence_of :name
|
18
|
-
belongs_to :story
|
19
|
-
|
20
|
-
end
|
21
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
7
|
-
<title>Outcomes: <%= controller.action_name %></title>
|
8
|
-
<%= stylesheet_link_tag 'scaffold' %>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
|
12
|
-
<p style="color: green"><%= flash[:notice] %></p>
|
13
|
-
|
14
|
-
<%= yield %>
|
15
|
-
|
16
|
-
</body>
|
17
|
-
</html>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
7
|
-
<title>Preconditions: <%= controller.action_name %></title>
|
8
|
-
<%= stylesheet_link_tag 'scaffold' %>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
|
12
|
-
<p style="color: green"><%= flash[:notice] %></p>
|
13
|
-
|
14
|
-
<%= yield %>
|
15
|
-
|
16
|
-
</body>
|
17
|
-
</html>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
7
|
-
<title>Releases: <%= controller.action_name %></title>
|
8
|
-
<%= stylesheet_link_tag 'scaffold' %>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
|
12
|
-
<p style="color: green"><%= flash[:notice] %></p>
|
13
|
-
|
14
|
-
<%= yield %>
|
15
|
-
|
16
|
-
</body>
|
17
|
-
</html>
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<h1>Editing user_role</h1>
|
2
|
-
|
3
|
-
<% form_for(@user_role) do |f| %>
|
4
|
-
<%= f.error_messages %>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<%= f.label :name %><br />
|
8
|
-
<%= f.text_field :name %>
|
9
|
-
</p>
|
10
|
-
<p>
|
11
|
-
<%= f.submit 'Update' %>
|
12
|
-
</p>
|
13
|
-
<% end %>
|
14
|
-
|
15
|
-
<%= link_to 'Show', @user_role %> |
|
16
|
-
<%= link_to 'Back', user_roles_path %>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<h1>Listing user_roles</h1>
|
2
|
-
|
3
|
-
<table>
|
4
|
-
<tr>
|
5
|
-
<th>Name</th>
|
6
|
-
</tr>
|
7
|
-
|
8
|
-
<% @user_roles.each do |user_role| %>
|
9
|
-
<tr>
|
10
|
-
<td><%=h user_role.name %></td>
|
11
|
-
<td><%= link_to 'Show', user_role %></td>
|
12
|
-
<td><%= link_to 'Edit', edit_user_role_path(user_role) %></td>
|
13
|
-
<td><%= link_to 'Destroy', user_role, :confirm => 'Are you sure?', :method => :delete %></td>
|
14
|
-
</tr>
|
15
|
-
<% end %>
|
16
|
-
</table>
|
17
|
-
|
18
|
-
<br />
|
19
|
-
|
20
|
-
<%= link_to 'New user_role', new_user_role_path %>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<h1>New user_role</h1>
|
2
|
-
|
3
|
-
<% form_for(@user_role) do |f| %>
|
4
|
-
<%= f.error_messages %>
|
5
|
-
|
6
|
-
<p>
|
7
|
-
<%= f.label :name %><br />
|
8
|
-
<%= f.text_field :name %>
|
9
|
-
</p>
|
10
|
-
<p>
|
11
|
-
<%= f.submit 'Create' %>
|
12
|
-
</p>
|
13
|
-
<% end %>
|
14
|
-
|
15
|
-
<%= link_to 'Back', user_roles_path %>
|
@@ -1,231 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
-
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
|
3
|
-
<head>
|
4
|
-
<title>app/controllers/application_controller.rb</title>
|
5
|
-
<link href="screen.css" media="all" rel="stylesheet" type="text/css" />
|
6
|
-
<link href="print.css" media="print" rel="stylesheet" type="text/css" />
|
7
|
-
|
8
|
-
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
|
9
|
-
<script type="text/javascript" src="rcov.js"></script>
|
10
|
-
</head>
|
11
|
-
<body>
|
12
|
-
<h1>Branston C0 Coverage Information - RCov</h1>
|
13
|
-
<h2>app/controllers/application_controller.rb</h2>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
<div class="report_table_wrapper">
|
18
|
-
<table class='report' id='report_table'>
|
19
|
-
<thead>
|
20
|
-
<tr>
|
21
|
-
<th class="left_align">Name</th>
|
22
|
-
<th class="right_align">Total Lines</th>
|
23
|
-
<th class="right_align">Lines of Code</th>
|
24
|
-
<th class="left_align">Total Coverage</th>
|
25
|
-
<th class="left_align">Code Coverage</th>
|
26
|
-
</tr>
|
27
|
-
</thead>
|
28
|
-
<tbody>
|
29
|
-
<tr>
|
30
|
-
<td class="left_align"><a href="app-controllers-application_controller_rb.html">app/controllers/application_controller.rb</a></td>
|
31
|
-
<td class='right_align'><tt>28</tt></td>
|
32
|
-
<td class='right_align'><tt>5</tt></td>
|
33
|
-
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
|
34
|
-
<div class="percent_graph">
|
35
|
-
<div class="covered" style="width:100px"></div>
|
36
|
-
<div class="uncovered" style="width:0px"></div>
|
37
|
-
</div></td>
|
38
|
-
<td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
|
39
|
-
<div class="percent_graph">
|
40
|
-
<div class="covered" style="width:100px"></div>
|
41
|
-
<div class="uncovered" style="width:0px"></div>
|
42
|
-
</div></td>
|
43
|
-
</tr>
|
44
|
-
</tbody>
|
45
|
-
</table>
|
46
|
-
</div>
|
47
|
-
|
48
|
-
<h3>Key</h3>
|
49
|
-
|
50
|
-
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
|
51
|
-
|
52
|
-
<h3>Coverage Details</h3>
|
53
|
-
|
54
|
-
<table class="details">
|
55
|
-
<tbody>
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
<tr class="inferred">
|
60
|
-
<td><pre><a name="line1">1</a> # This file is part of Branston.</pre></td>
|
61
|
-
</tr>
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
<tr class="inferred">
|
66
|
-
<td><pre><a name="line2">2</a> #</pre></td>
|
67
|
-
</tr>
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
<tr class="inferred">
|
72
|
-
<td><pre><a name="line3">3</a> # Branston is free software: you can redistribute it and/or modify</pre></td>
|
73
|
-
</tr>
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
<tr class="inferred">
|
78
|
-
<td><pre><a name="line4">4</a> # it under the terms of the GNU Affero General Public License as published by</pre></td>
|
79
|
-
</tr>
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
<tr class="inferred">
|
84
|
-
<td><pre><a name="line5">5</a> # the Free Software Foundation.</pre></td>
|
85
|
-
</tr>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
<tr class="inferred">
|
90
|
-
<td><pre><a name="line6">6</a> #</pre></td>
|
91
|
-
</tr>
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
<tr class="inferred">
|
96
|
-
<td><pre><a name="line7">7</a> # Branston is distributed in the hope that it will be useful,</pre></td>
|
97
|
-
</tr>
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
<tr class="inferred">
|
102
|
-
<td><pre><a name="line8">8</a> # but WITHOUT ANY WARRANTY; without even the implied warranty of</pre></td>
|
103
|
-
</tr>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
<tr class="inferred">
|
108
|
-
<td><pre><a name="line9">9</a> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</pre></td>
|
109
|
-
</tr>
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
<tr class="inferred">
|
114
|
-
<td><pre><a name="line10">10</a> # GNU Affero General Public License for more details.</pre></td>
|
115
|
-
</tr>
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
<tr class="inferred">
|
120
|
-
<td><pre><a name="line11">11</a> #</pre></td>
|
121
|
-
</tr>
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
<tr class="inferred">
|
126
|
-
<td><pre><a name="line12">12</a> # You should have received a copy of the GNU Affero General Public License</pre></td>
|
127
|
-
</tr>
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
<tr class="inferred">
|
132
|
-
<td><pre><a name="line13">13</a> # along with Branston. If not, see <http://www.gnu.org/licenses/>.</pre></td>
|
133
|
-
</tr>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<tr class="inferred">
|
138
|
-
<td><pre><a name="line14">14</a> </pre></td>
|
139
|
-
</tr>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
<tr class="inferred">
|
144
|
-
<td><pre><a name="line15">15</a> # Filters added to this controller apply to all controllers in the application.</pre></td>
|
145
|
-
</tr>
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
<tr class="inferred">
|
150
|
-
<td><pre><a name="line16">16</a> # Likewise, all the methods added will be available for all controllers.</pre></td>
|
151
|
-
</tr>
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
<tr class="inferred">
|
156
|
-
<td><pre><a name="line17">17</a> #</pre></td>
|
157
|
-
</tr>
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
<tr class="marked">
|
162
|
-
<td><pre><a name="line18">18</a> class ApplicationController < ActionController::Base</pre></td>
|
163
|
-
</tr>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<tr class="marked">
|
168
|
-
<td><pre><a name="line19">19</a> helper :all # include all helpers, all the time</pre></td>
|
169
|
-
</tr>
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
<tr class="marked">
|
174
|
-
<td><pre><a name="line20">20</a> protect_from_forgery # See ActionController::RequestForgeryProtection for details</pre></td>
|
175
|
-
</tr>
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
<tr class="inferred">
|
180
|
-
<td><pre><a name="line21">21</a> </pre></td>
|
181
|
-
</tr>
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
<tr class="inferred">
|
186
|
-
<td><pre><a name="line22">22</a> # Scrub sensitive parameters from your log</pre></td>
|
187
|
-
</tr>
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
<tr class="inferred">
|
192
|
-
<td><pre><a name="line23">23</a> # filter_parameter_logging :password</pre></td>
|
193
|
-
</tr>
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
<tr class="inferred">
|
198
|
-
<td><pre><a name="line24">24</a> </pre></td>
|
199
|
-
</tr>
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
<tr class="inferred">
|
204
|
-
<td><pre><a name="line25">25</a> # RESTful authentication system</pre></td>
|
205
|
-
</tr>
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
<tr class="marked">
|
210
|
-
<td><pre><a name="line26">26</a> include AuthenticatedSystem</pre></td>
|
211
|
-
</tr>
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
<tr class="inferred">
|
216
|
-
<td><pre><a name="line27">27</a> end</pre></td>
|
217
|
-
</tr>
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
<tr class="inferred">
|
222
|
-
<td><pre><a name="line28">28</a> </pre></td>
|
223
|
-
</tr>
|
224
|
-
|
225
|
-
</tbody>
|
226
|
-
</table>
|
227
|
-
|
228
|
-
<p>Generated on Thu Jul 22 17:42:36 +0100 2010 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
|
229
|
-
|
230
|
-
</body>
|
231
|
-
</html>
|