branston 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. data/lib/branston/app/controllers/iterations_controller.rb +2 -0
  2. data/lib/branston/app/controllers/stories_controller.rb +93 -53
  3. data/lib/branston/app/helpers/iterations_helper.rb +38 -0
  4. data/lib/branston/app/models/iteration.rb +12 -0
  5. data/lib/branston/app/views/iterations/index.html.erb +1 -0
  6. data/lib/branston/app/views/iterations/show.html.erb +6 -1
  7. data/lib/branston/app/views/stories/index.html.erb +0 -6
  8. data/lib/branston/config/environment.rb +2 -2
  9. data/lib/branston/config/routes.rb +1 -1
  10. data/lib/branston/coverage/app-controllers-application_controller_rb.html +1 -1
  11. data/lib/branston/coverage/app-controllers-iterations_controller_rb.html +101 -107
  12. data/lib/branston/coverage/app-controllers-outcomes_controller_rb.html +102 -114
  13. data/lib/branston/coverage/app-controllers-preconditions_controller_rb.html +90 -54
  14. data/lib/branston/coverage/app-controllers-releases_controller_rb.html +89 -101
  15. data/lib/branston/coverage/app-controllers-scenarios_controller_rb.html +77 -101
  16. data/lib/branston/coverage/app-controllers-sessions_controller_rb.html +42 -60
  17. data/lib/branston/coverage/app-controllers-stories_controller_rb.html +110 -260
  18. data/lib/branston/coverage/app-controllers-user_roles_controller_rb.html +87 -123
  19. data/lib/branston/coverage/app-controllers-users_controller_rb.html +27 -39
  20. data/lib/branston/coverage/app-helpers-application_helper_rb.html +7 -25
  21. data/lib/branston/coverage/app-helpers-iterations_helper_rb.html +1 -1
  22. data/lib/branston/coverage/app-helpers-outcomes_helper_rb.html +1 -1
  23. data/lib/branston/coverage/app-helpers-preconditions_helper_rb.html +1 -1
  24. data/lib/branston/coverage/app-helpers-releases_helper_rb.html +1 -1
  25. data/lib/branston/coverage/app-helpers-sessions_helper_rb.html +1 -1
  26. data/lib/branston/coverage/app-helpers-stories_helper_rb.html +1 -1
  27. data/lib/branston/coverage/app-helpers-user_roles_helper_rb.html +1 -1
  28. data/lib/branston/coverage/app-models-iteration_rb.html +1 -1
  29. data/lib/branston/coverage/app-models-outcome_rb.html +1 -1
  30. data/lib/branston/coverage/app-models-participation_rb.html +1 -1
  31. data/lib/branston/coverage/app-models-precondition_rb.html +3 -9
  32. data/lib/branston/coverage/app-models-release_rb.html +1 -1
  33. data/lib/branston/coverage/app-models-scenario_rb.html +3 -3
  34. data/lib/branston/coverage/app-models-story_rb.html +8 -254
  35. data/lib/branston/coverage/app-models-user_rb.html +9 -33
  36. data/lib/branston/coverage/app-models-user_role_rb.html +1 -1
  37. data/lib/branston/coverage/index.html +90 -106
  38. data/lib/branston/coverage/lib-faker_extras_rb.html +1 -1
  39. data/lib/branston/coverage/lib-story_generator_rb.html +49 -43
  40. data/lib/branston/db/development.sqlite3 +0 -0
  41. data/lib/branston/db/production.sqlite3 +0 -0
  42. data/lib/branston/db/test.sqlite3 +0 -0
  43. data/lib/branston/log/development.log +1111 -5708
  44. data/lib/branston/log/test.log +23047 -87379
  45. metadata +13 -6
  46. data/lib/branston/coverage/lib-client_rb.html +0 -537
  47. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_flat.txt +0 -8
  48. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_graph.html +0 -6039
  49. data/lib/branston/tmp/performance/BrowsingTest#test_homepage_process_time_tree.txt +0 -9858
@@ -24,6 +24,8 @@ class IterationsController < ApplicationController
24
24
  def show
25
25
  @iteration = Iteration.find(params[:id])
26
26
 
27
+ @iteration_data = @iteration.burndown_data
28
+
27
29
  respond_to do |format|
28
30
  format.html # show.html.erb
29
31
  format.xml { render :xml => @iteration }
@@ -1,42 +1,42 @@
1
1
  class StoriesController < ApplicationController
2
-
2
+
3
3
  layout 'main'
4
4
  before_filter :login_required, :except => [:show, :generate_feature]
5
- before_filter :retrieve_iterations, :except => [:generate_feature, :show]
6
- before_filter :load_iteration, :except => [:generate_feature, :show]
7
-
5
+ before_filter :retrieve_iterations, :except => [:generate_feature]
6
+ before_filter :load_iteration
7
+
8
8
  in_place_edit_for :story, :title
9
9
  in_place_edit_for :story, :description
10
10
  in_place_edit_for :story, :points
11
-
11
+
12
12
  def generate_feature
13
13
  @story = Story.find_by_slug(params[:id])
14
14
  if @story.nil?
15
- @story = Story.find(:first, :include => :scenarios,
15
+ @story = Story.find(:first, :include => :scenarios,
16
16
  :conditions => ['slug LIKE ?', "%#{id}%"] )
17
17
  end
18
18
  @story.generate(@story)
19
19
  render :text => 'done'
20
20
  end
21
-
21
+
22
22
  # GET /stories
23
23
  # GET /stories.xml
24
24
  def index
25
25
  @current_stories = Story.for_iteration(@iteration.id).in_progress
26
26
  @backlog_stories = Story.for_iteration(@iteration.id).unassigned
27
27
  @completed_stories = Story.for_iteration(@iteration.id).completed
28
-
28
+
29
29
  respond_to do |format|
30
30
  format.html # index.html.erb
31
31
  format.xml { render :xml => @stories }
32
32
  end
33
33
  end
34
-
34
+
35
35
  # GET /stories/1
36
36
  # GET /stories/1.xml
37
37
  def show
38
38
  @story = Story.find_by_slug(params[:id])
39
-
39
+
40
40
  respond_to do |format|
41
41
  if @story
42
42
  format.html {
@@ -46,38 +46,43 @@ class StoriesController < ApplicationController
46
46
  render :xml => (@story.to_xml :include => { :scenarios => {
47
47
  :include => [:preconditions, :outcomes] } } ) }
48
48
  format.js { @active = true }
49
+ <<<<<<< HEAD:lib/branston/app/controllers/stories_controller.rb
49
50
  else
50
51
  format.html {
51
52
  @iteration = load_iteration
52
- render_optional_error_file 404
53
- }
53
+ render_optional_error_file 404
54
+ }
55
+ =======
56
+ else
57
+ format.html { render_optional_error_file 404 }
58
+ >>>>>>> steventux/master:lib/branston/app/controllers/stories_controller.rb
54
59
  format.all { render :nothing => true, :status => 404 }
55
- end
56
60
  end
57
61
  end
58
-
62
+ <<<<<<< HEAD:lib/branston/app/controllers/stories_controller.rb
63
+
59
64
  # GET /stories/new
60
65
  # GET /stories/new.xml
61
66
  def new
62
67
  @story = Story.new(:iteration => @iteration)
63
-
68
+
64
69
  respond_to do |format|
65
70
  format.html # new.html.erb
66
71
  format.xml { render :xml => @story }
67
72
  end
68
73
  end
69
-
74
+
70
75
  # GET /stories/1/edit
71
76
  def edit
72
77
  @story = Story.find_by_slug(params[:id])
73
78
  end
74
-
79
+
75
80
  # POST /stories
76
81
  # POST /stories.xml
77
82
  def create
78
83
  @story = Story.new(params[:story])
79
84
  @story.author = current_user
80
-
85
+
81
86
  respond_to do |format|
82
87
  if @story.save
83
88
  flash[:notice] = 'Story was successfully created.'
@@ -88,47 +93,82 @@ class StoriesController < ApplicationController
88
93
  format.xml { render :xml => @story.errors, :status => :unprocessable_entity }
89
94
  end
90
95
  end
96
+ =======
97
+ end
98
+
99
+ # GET /stories/new
100
+ # GET /stories/new.xml
101
+ def new
102
+ @story = Story.new
103
+
104
+ respond_to do |format|
105
+ format.html # new.html.erb
106
+ format.xml { render :xml => @story }
107
+ >>>>>>> steventux/master:lib/branston/app/controllers/stories_controller.rb
91
108
  end
92
-
93
- # PUT /stories/1
94
- # PUT /stories/1.xml
95
- def update
96
- @story = Story.find_by_slug(params[:id])
97
- respond_to do |format|
98
- if @story.update_attributes(params[:story])
99
- flash[:notice] = 'Story was successfully updated.'
100
- format.html { redirect_to iteration_story_path(@iteration, @story) }
101
- format.xml { head :ok }
102
- format.js { redirect_to iteration_stories_path(@iteration) }
103
- else
104
- format.html { render :action => "edit" }
105
- format.xml { render :xml => @story.errors, :status => :unprocessable_entity }
106
- end
109
+ end
110
+
111
+ # GET /stories/1/edit
112
+ def edit
113
+ @story = Story.find_by_slug(params[:id])
114
+ end
115
+
116
+ # POST /stories
117
+ # POST /stories.xml
118
+ def create
119
+ @story = Story.new(params[:story])
120
+ @story.author = current_user
121
+
122
+ respond_to do |format|
123
+ if @story.save
124
+ flash[:notice] = 'Story was successfully created.'
125
+ format.html { redirect_to iteration_stories_url(@iteration) }
126
+ format.xml { render :xml => @story, :status => :created, :location => @story }
127
+ else
128
+ format.html { render :action => "new" }
129
+ format.xml { render :xml => @story.errors, :status => :unprocessable_entity }
107
130
  end
108
131
  end
109
-
110
- # DELETE /stories/1
111
- # DELETE /stories/1.xml
112
- def destroy
113
- @story = Story.find_by_slug(params[:id])
114
- @story.destroy
115
-
116
- respond_to do |format|
117
- format.html { redirect_to iteration_stories_path(@iteration) }
132
+ end
133
+
134
+ # PUT /stories/1
135
+ # PUT /stories/1.xml
136
+ def update
137
+ @story = Story.find_by_slug(params[:id])
138
+ respond_to do |format|
139
+ if @story.update_attributes(params[:story])
140
+ flash[:notice] = 'Story was successfully updated.'
141
+ format.html { redirect_to iteration_story_path(@iteration, @story) }
118
142
  format.xml { head :ok }
143
+ format.js { redirect_to iteration_stories_path(@iteration) }
144
+ else
145
+ format.html { render :action => "edit" }
146
+ format.xml { render :xml => @story.errors, :status => :unprocessable_entity }
119
147
  end
120
148
  end
121
-
122
-
123
- private
124
-
125
- def retrieve_iterations
126
- @iterations = Iteration.all
149
+ end
150
+
151
+ # DELETE /stories/1
152
+ # DELETE /stories/1.xml
153
+ def destroy
154
+ @story = Story.find_by_slug(params[:id])
155
+ @story.destroy
156
+
157
+ respond_to do |format|
158
+ format.html { redirect_to iteration_stories_path(@iteration) }
159
+ format.xml { head :ok }
127
160
  end
128
-
129
- def load_iteration
130
- @iteration = Iteration.find(params[:iteration_id])
131
- end
132
161
  end
133
-
162
+
163
+
164
+ private
165
+
166
+ def retrieve_iterations
167
+ @iterations = Iteration.all
168
+ end
169
+
170
+ def load_iteration
171
+ @iteration = Iteration.find(params[:iteration_id])
172
+ end
173
+ end
134
174
 
@@ -1,2 +1,40 @@
1
1
  module IterationsHelper
2
+
3
+ # TODO: Untested!
4
+ #
5
+ def burndown_chart(iteration, data)
6
+
7
+ total_points = 0
8
+ points_data = []
9
+
10
+ unless data.nil? or data.empty?
11
+ total_points = data[0].total_points.to_i
12
+ points_data = data.collect{|d| d.points.to_i}
13
+ end
14
+
15
+ work_days = []
16
+ (iteration.start_date.to_date..iteration.end_date.to_date).to_a.each do |date|
17
+ work_days.push date.strftime('%d/%m') unless date.wday == 0 or date.wday == 6
18
+ end
19
+
20
+ # Keep adding the last value to flatline the chart
21
+ while work_days.length > data.length
22
+ data.push data[data.length - 1]
23
+ end
24
+
25
+ # Make some gradations for the y axis labels
26
+ y_scale = [0]
27
+ [4, 2, 1.5, 1.25, 1].each do |n|
28
+ unit = (total_points / n).floor
29
+ y_scale.push unit if unit > 0
30
+ end
31
+
32
+ image_tag Gchart.line(:size => '500x300',
33
+ :title => "#{iteration.name} burndown",
34
+ :data => points_data, :axis_with_labels => 'x,y',
35
+ :axis_labels => [work_days, y_scale])
36
+
37
+ end
38
+
2
39
  end
40
+
@@ -11,5 +11,17 @@ class Iteration < ActiveRecord::Base
11
11
  has_many :geeks, :through => :participations, :class_name => "User"
12
12
  belongs_to :release
13
13
 
14
+ def burndown_data
15
+ Iteration.find_by_sql [
16
+ "SELECT SUM(points) AS total_points,
17
+ COUNT(points) AS points,
18
+ completed_date
19
+ FROM stories
20
+ WHERE iteration_id = ?
21
+ AND status = 'completed'
22
+ GROUP BY completed_date", id
23
+ ]
24
+ end
25
+
14
26
  end
15
27
 
@@ -19,6 +19,7 @@
19
19
  <td><%=h iteration.start_date.strftime('%d/%m/%Y') unless iteration.start_date.nil? %></td>
20
20
  <td><%=h iteration.end_date.strftime('%d/%m/%Y') unless iteration.end_date.nil? %></td>
21
21
  <td>
22
+ <%=link_to 'Show', iteration_path(iteration) %>&nbsp;&nbsp;&bull;
22
23
  <%=link_to 'Stories', iteration_stories_path(iteration) %>&nbsp;&nbsp;&bull;
23
24
  <%= link_to 'Edit', edit_iteration_path(iteration) %>&nbsp;&nbsp;&bull;
24
25
  <%= link_to 'Destroy', iteration, :confirm => 'Are you sure you want to delete this iteration?', :method => :delete %>
@@ -1,3 +1,4 @@
1
+ <div style="width:38%;float:left">
1
2
  <p>
2
3
  <b>Velocity:</b>
3
4
  <%=h @iteration.velocity %>
@@ -33,7 +34,11 @@
33
34
  <% end %>
34
35
  </ul>
35
36
  <% end %>
36
-
37
37
  <%= link_to 'Edit', edit_iteration_path(@iteration) %> |
38
38
  <%= link_to 'Back', iterations_path %>
39
+ </div>
40
+
41
+ <div style="width:58%;float:right">
42
+ <%= burndown_chart @iteration, @iteration_data %>
43
+ </div>
39
44
 
@@ -14,12 +14,6 @@ document.observe("dom:loaded", function() {
14
14
  new Effect.Scale(scenarios[0], 100, {scaleY:true,scaleX:false,scaleMode:'contents'});
15
15
  }
16
16
  });
17
- <% @current_stories.each do |story| -%>
18
- //new Draggable('<%= element_id(story) %>');
19
- <% end -%>
20
- <% @backlog_stories.each do |story| -%>
21
- //new Draggable('<%= element_id(story) %>');
22
- <% end -%>
23
17
  <% unless @current_stories.nil? or @current_stories.empty? -%>
24
18
  var currentStories = new Accordion("current_stories", 1);
25
19
  //$('accordion-toggle').each(function(e) {e.observe('click', currentStories.forceExpand);});
@@ -39,8 +39,8 @@ Rails::Initializer.run do |config|
39
39
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
40
40
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
41
41
  # config.i18n.default_locale = :de
42
-
43
- end
44
42
 
43
+ end
45
44
 
45
+ require 'gchart'
46
46
 
@@ -4,7 +4,7 @@ ActionController::Routing::Routes.draw do |map|
4
4
  map.resources :preconditions
5
5
 
6
6
  map.resources :releases
7
- map.resources :iterations, :except => 'show' do |i|
7
+ map.resources :iterations do |i|
8
8
  i.resources :stories, :member => { :generate_feature => :get } do |r|
9
9
  r.resources :scenarios
10
10
  end
@@ -135,7 +135,7 @@
135
135
  </tbody>
136
136
  </table>
137
137
 
138
- <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
138
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
139
139
 
140
140
  </body>
141
141
  </html>
@@ -28,8 +28,8 @@
28
28
  <tbody>
29
29
  <tr>
30
30
  <td class="left_align"><a href="app-controllers-iterations_controller_rb.html">app/controllers/iterations_controller.rb</a></td>
31
- <td class='right_align'><tt>106</tt></td>
32
- <td class='right_align'><tt>73</tt></td>
31
+ <td class='right_align'><tt>105</tt></td>
32
+ <td class='right_align'><tt>72</tt></td>
33
33
  <td class="left_align"><div class="percent_graph_legend"><tt class=''>100.00%</tt></div>
34
34
  <div class="percent_graph">
35
35
  <div class="covered" style="width:100px"></div>
@@ -99,601 +99,595 @@
99
99
 
100
100
 
101
101
  <tr class="marked">
102
- <td><pre><a name="line8">8</a> before_filter :login_required</pre></td>
103
- </tr>
104
-
105
-
106
-
107
- <tr class="marked">
108
- <td><pre><a name="line9">9</a> before_filter :find_all_releases, :only =&gt; [:new, :edit]</pre></td>
102
+ <td><pre><a name="line8">8</a> before_filter :find_all_releases, :only =&gt; [:new, :edit]</pre></td>
109
103
  </tr>
110
104
 
111
105
 
112
106
 
113
107
  <tr class="inferred">
114
- <td><pre><a name="line10">10</a> </pre></td>
108
+ <td><pre><a name="line9">9</a> </pre></td>
115
109
  </tr>
116
110
 
117
111
 
118
112
 
119
113
  <tr class="inferred">
120
- <td><pre><a name="line11">11</a> # GET /iterations</pre></td>
114
+ <td><pre><a name="line10">10</a> # GET /iterations</pre></td>
121
115
  </tr>
122
116
 
123
117
 
124
118
 
125
119
  <tr class="inferred">
126
- <td><pre><a name="line12">12</a> # GET /iterations.xml</pre></td>
120
+ <td><pre><a name="line11">11</a> # GET /iterations.xml</pre></td>
127
121
  </tr>
128
122
 
129
123
 
130
124
 
131
125
  <tr class="marked">
132
- <td><pre><a name="line13">13</a> def index</pre></td>
126
+ <td><pre><a name="line12">12</a> def index</pre></td>
133
127
  </tr>
134
128
 
135
129
 
136
130
 
137
131
  <tr class="marked">
138
- <td><pre><a name="line14">14</a> @iterations = Iteration.all</pre></td>
132
+ <td><pre><a name="line13">13</a> @iterations = Iteration.all</pre></td>
139
133
  </tr>
140
134
 
141
135
 
142
136
 
143
137
  <tr class="inferred">
144
- <td><pre><a name="line15">15</a> </pre></td>
138
+ <td><pre><a name="line14">14</a> </pre></td>
145
139
  </tr>
146
140
 
147
141
 
148
142
 
149
143
  <tr class="marked">
150
- <td><pre><a name="line16">16</a> respond_to do |format|</pre></td>
144
+ <td><pre><a name="line15">15</a> respond_to do |format|</pre></td>
151
145
  </tr>
152
146
 
153
147
 
154
148
 
155
149
  <tr class="marked">
156
- <td><pre><a name="line17">17</a> format.html # index.html.erb</pre></td>
150
+ <td><pre><a name="line16">16</a> format.html # index.html.erb</pre></td>
157
151
  </tr>
158
152
 
159
153
 
160
154
 
161
155
  <tr class="marked">
162
- <td><pre><a name="line18">18</a> format.xml { render :xml =&gt; @iterations }</pre></td>
156
+ <td><pre><a name="line17">17</a> format.xml { render :xml =&gt; @iterations }</pre></td>
163
157
  </tr>
164
158
 
165
159
 
166
160
 
167
161
  <tr class="inferred">
168
- <td><pre><a name="line19">19</a> end</pre></td>
162
+ <td><pre><a name="line18">18</a> end</pre></td>
169
163
  </tr>
170
164
 
171
165
 
172
166
 
173
167
  <tr class="inferred">
174
- <td><pre><a name="line20">20</a> end</pre></td>
168
+ <td><pre><a name="line19">19</a> end</pre></td>
175
169
  </tr>
176
170
 
177
171
 
178
172
 
179
173
  <tr class="inferred">
180
- <td><pre><a name="line21">21</a> </pre></td>
174
+ <td><pre><a name="line20">20</a> </pre></td>
181
175
  </tr>
182
176
 
183
177
 
184
178
 
185
179
  <tr class="inferred">
186
- <td><pre><a name="line22">22</a> # GET /iterations/1</pre></td>
180
+ <td><pre><a name="line21">21</a> # GET /iterations/1</pre></td>
187
181
  </tr>
188
182
 
189
183
 
190
184
 
191
185
  <tr class="inferred">
192
- <td><pre><a name="line23">23</a> # GET /iterations/1.xml</pre></td>
186
+ <td><pre><a name="line22">22</a> # GET /iterations/1.xml</pre></td>
193
187
  </tr>
194
188
 
195
189
 
196
190
 
197
191
  <tr class="marked">
198
- <td><pre><a name="line24">24</a> def show</pre></td>
192
+ <td><pre><a name="line23">23</a> def show</pre></td>
199
193
  </tr>
200
194
 
201
195
 
202
196
 
203
197
  <tr class="marked">
204
- <td><pre><a name="line25">25</a> @iteration = Iteration.find(params[:id])</pre></td>
198
+ <td><pre><a name="line24">24</a> @iteration = Iteration.find(params[:id])</pre></td>
205
199
  </tr>
206
200
 
207
201
 
208
202
 
209
203
  <tr class="inferred">
210
- <td><pre><a name="line26">26</a> </pre></td>
204
+ <td><pre><a name="line25">25</a> </pre></td>
211
205
  </tr>
212
206
 
213
207
 
214
208
 
215
209
  <tr class="marked">
216
- <td><pre><a name="line27">27</a> respond_to do |format|</pre></td>
210
+ <td><pre><a name="line26">26</a> respond_to do |format|</pre></td>
217
211
  </tr>
218
212
 
219
213
 
220
214
 
221
215
  <tr class="marked">
222
- <td><pre><a name="line28">28</a> format.html # show.html.erb</pre></td>
216
+ <td><pre><a name="line27">27</a> format.html # show.html.erb</pre></td>
223
217
  </tr>
224
218
 
225
219
 
226
220
 
227
221
  <tr class="marked">
228
- <td><pre><a name="line29">29</a> format.xml { render :xml =&gt; @iteration }</pre></td>
222
+ <td><pre><a name="line28">28</a> format.xml { render :xml =&gt; @iteration }</pre></td>
229
223
  </tr>
230
224
 
231
225
 
232
226
 
233
227
  <tr class="inferred">
234
- <td><pre><a name="line30">30</a> end</pre></td>
228
+ <td><pre><a name="line29">29</a> end</pre></td>
235
229
  </tr>
236
230
 
237
231
 
238
232
 
239
233
  <tr class="inferred">
240
- <td><pre><a name="line31">31</a> end</pre></td>
234
+ <td><pre><a name="line30">30</a> end</pre></td>
241
235
  </tr>
242
236
 
243
237
 
244
238
 
245
239
  <tr class="inferred">
246
- <td><pre><a name="line32">32</a> </pre></td>
240
+ <td><pre><a name="line31">31</a> </pre></td>
247
241
  </tr>
248
242
 
249
243
 
250
244
 
251
245
  <tr class="inferred">
252
- <td><pre><a name="line33">33</a> # GET /iterations/new</pre></td>
246
+ <td><pre><a name="line32">32</a> # GET /iterations/new</pre></td>
253
247
  </tr>
254
248
 
255
249
 
256
250
 
257
251
  <tr class="inferred">
258
- <td><pre><a name="line34">34</a> # GET /iterations/new.xml</pre></td>
252
+ <td><pre><a name="line33">33</a> # GET /iterations/new.xml</pre></td>
259
253
  </tr>
260
254
 
261
255
 
262
256
 
263
257
  <tr class="marked">
264
- <td><pre><a name="line35">35</a> def new</pre></td>
258
+ <td><pre><a name="line34">34</a> def new</pre></td>
265
259
  </tr>
266
260
 
267
261
 
268
262
 
269
263
  <tr class="marked">
270
- <td><pre><a name="line36">36</a> @releases = Release.all</pre></td>
264
+ <td><pre><a name="line35">35</a> @releases = Release.all</pre></td>
271
265
  </tr>
272
266
 
273
267
 
274
268
 
275
269
  <tr class="marked">
276
- <td><pre><a name="line37">37</a> @iteration = Iteration.new</pre></td>
270
+ <td><pre><a name="line36">36</a> @iteration = Iteration.new</pre></td>
277
271
  </tr>
278
272
 
279
273
 
280
274
 
281
275
  <tr class="inferred">
282
- <td><pre><a name="line38">38</a> </pre></td>
276
+ <td><pre><a name="line37">37</a> </pre></td>
283
277
  </tr>
284
278
 
285
279
 
286
280
 
287
281
  <tr class="marked">
288
- <td><pre><a name="line39">39</a> respond_to do |format|</pre></td>
282
+ <td><pre><a name="line38">38</a> respond_to do |format|</pre></td>
289
283
  </tr>
290
284
 
291
285
 
292
286
 
293
287
  <tr class="marked">
294
- <td><pre><a name="line40">40</a> format.html # new.html.erb</pre></td>
288
+ <td><pre><a name="line39">39</a> format.html # new.html.erb</pre></td>
295
289
  </tr>
296
290
 
297
291
 
298
292
 
299
293
  <tr class="marked">
300
- <td><pre><a name="line41">41</a> format.xml { render :xml =&gt; @iteration }</pre></td>
294
+ <td><pre><a name="line40">40</a> format.xml { render :xml =&gt; @iteration }</pre></td>
301
295
  </tr>
302
296
 
303
297
 
304
298
 
305
299
  <tr class="inferred">
306
- <td><pre><a name="line42">42</a> end</pre></td>
300
+ <td><pre><a name="line41">41</a> end</pre></td>
307
301
  </tr>
308
302
 
309
303
 
310
304
 
311
305
  <tr class="inferred">
312
- <td><pre><a name="line43">43</a> end</pre></td>
306
+ <td><pre><a name="line42">42</a> end</pre></td>
313
307
  </tr>
314
308
 
315
309
 
316
310
 
317
311
  <tr class="inferred">
318
- <td><pre><a name="line44">44</a> </pre></td>
312
+ <td><pre><a name="line43">43</a> </pre></td>
319
313
  </tr>
320
314
 
321
315
 
322
316
 
323
317
  <tr class="inferred">
324
- <td><pre><a name="line45">45</a> # GET /iterations/1/edit</pre></td>
318
+ <td><pre><a name="line44">44</a> # GET /iterations/1/edit</pre></td>
325
319
  </tr>
326
320
 
327
321
 
328
322
 
329
323
  <tr class="marked">
330
- <td><pre><a name="line46">46</a> def edit</pre></td>
324
+ <td><pre><a name="line45">45</a> def edit</pre></td>
331
325
  </tr>
332
326
 
333
327
 
334
328
 
335
329
  <tr class="marked">
336
- <td><pre><a name="line47">47</a> @releases = Release.all</pre></td>
330
+ <td><pre><a name="line46">46</a> @releases = Release.all</pre></td>
337
331
  </tr>
338
332
 
339
333
 
340
334
 
341
335
  <tr class="marked">
342
- <td><pre><a name="line48">48</a> @iteration = Iteration.find(params[:id])</pre></td>
336
+ <td><pre><a name="line47">47</a> @iteration = Iteration.find(params[:id])</pre></td>
343
337
  </tr>
344
338
 
345
339
 
346
340
 
347
341
  <tr class="inferred">
348
- <td><pre><a name="line49">49</a> end</pre></td>
342
+ <td><pre><a name="line48">48</a> end</pre></td>
349
343
  </tr>
350
344
 
351
345
 
352
346
 
353
347
  <tr class="inferred">
354
- <td><pre><a name="line50">50</a> </pre></td>
348
+ <td><pre><a name="line49">49</a> </pre></td>
355
349
  </tr>
356
350
 
357
351
 
358
352
 
359
353
  <tr class="inferred">
360
- <td><pre><a name="line51">51</a> # POST /iterations</pre></td>
354
+ <td><pre><a name="line50">50</a> # POST /iterations</pre></td>
361
355
  </tr>
362
356
 
363
357
 
364
358
 
365
359
  <tr class="inferred">
366
- <td><pre><a name="line52">52</a> # POST /iterations.xml</pre></td>
360
+ <td><pre><a name="line51">51</a> # POST /iterations.xml</pre></td>
367
361
  </tr>
368
362
 
369
363
 
370
364
 
371
365
  <tr class="marked">
372
- <td><pre><a name="line53">53</a> def create</pre></td>
366
+ <td><pre><a name="line52">52</a> def create</pre></td>
373
367
  </tr>
374
368
 
375
369
 
376
370
 
377
371
  <tr class="marked">
378
- <td><pre><a name="line54">54</a> @iteration = Iteration.new(params[:iteration])</pre></td>
372
+ <td><pre><a name="line53">53</a> @iteration = Iteration.new(params[:iteration])</pre></td>
379
373
  </tr>
380
374
 
381
375
 
382
376
 
383
377
  <tr class="inferred">
384
- <td><pre><a name="line55">55</a> </pre></td>
378
+ <td><pre><a name="line54">54</a> </pre></td>
385
379
  </tr>
386
380
 
387
381
 
388
382
 
389
383
  <tr class="marked">
390
- <td><pre><a name="line56">56</a> respond_to do |format|</pre></td>
384
+ <td><pre><a name="line55">55</a> respond_to do |format|</pre></td>
391
385
  </tr>
392
386
 
393
387
 
394
388
 
395
389
  <tr class="marked">
396
- <td><pre><a name="line57">57</a> if @iteration.save</pre></td>
390
+ <td><pre><a name="line56">56</a> if @iteration.save</pre></td>
397
391
  </tr>
398
392
 
399
393
 
400
394
 
401
395
  <tr class="marked">
402
- <td><pre><a name="line58">58</a> flash[:notice] = 'Iteration was successfully created.'</pre></td>
396
+ <td><pre><a name="line57">57</a> flash[:notice] = 'Iteration was successfully created.'</pre></td>
403
397
  </tr>
404
398
 
405
399
 
406
400
 
407
401
  <tr class="marked">
408
- <td><pre><a name="line59">59</a> format.html { redirect_to iterations_path }</pre></td>
402
+ <td><pre><a name="line58">58</a> format.html { redirect_to iterations_path }</pre></td>
409
403
  </tr>
410
404
 
411
405
 
412
406
 
413
407
  <tr class="marked">
414
- <td><pre><a name="line60">60</a> format.xml { render :xml =&gt; @iteration, :status =&gt; :created, :location =&gt; @iteration }</pre></td>
408
+ <td><pre><a name="line59">59</a> format.xml { render :xml =&gt; @iteration, :status =&gt; :created, :location =&gt; @iteration }</pre></td>
415
409
  </tr>
416
410
 
417
411
 
418
412
 
419
413
  <tr class="inferred">
420
- <td><pre><a name="line61">61</a> else</pre></td>
414
+ <td><pre><a name="line60">60</a> else</pre></td>
421
415
  </tr>
422
416
 
423
417
 
424
418
 
425
419
  <tr class="marked">
426
- <td><pre><a name="line62">62</a> @releases = Release.all</pre></td>
420
+ <td><pre><a name="line61">61</a> @releases = Release.all</pre></td>
427
421
  </tr>
428
422
 
429
423
 
430
424
 
431
425
  <tr class="marked">
432
- <td><pre><a name="line63">63</a> format.html { render :action =&gt; &quot;new&quot; }</pre></td>
426
+ <td><pre><a name="line62">62</a> format.html { render :action =&gt; &quot;new&quot; }</pre></td>
433
427
  </tr>
434
428
 
435
429
 
436
430
 
437
431
  <tr class="marked">
438
- <td><pre><a name="line64">64</a> format.xml { render :xml =&gt; @iteration.errors, :status =&gt; :unprocessable_entity }</pre></td>
432
+ <td><pre><a name="line63">63</a> format.xml { render :xml =&gt; @iteration.errors, :status =&gt; :unprocessable_entity }</pre></td>
439
433
  </tr>
440
434
 
441
435
 
442
436
 
443
437
  <tr class="inferred">
444
- <td><pre><a name="line65">65</a> end</pre></td>
438
+ <td><pre><a name="line64">64</a> end</pre></td>
445
439
  </tr>
446
440
 
447
441
 
448
442
 
449
443
  <tr class="inferred">
450
- <td><pre><a name="line66">66</a> end</pre></td>
444
+ <td><pre><a name="line65">65</a> end</pre></td>
451
445
  </tr>
452
446
 
453
447
 
454
448
 
455
449
  <tr class="inferred">
456
- <td><pre><a name="line67">67</a> end</pre></td>
450
+ <td><pre><a name="line66">66</a> end</pre></td>
457
451
  </tr>
458
452
 
459
453
 
460
454
 
461
455
  <tr class="inferred">
462
- <td><pre><a name="line68">68</a> </pre></td>
456
+ <td><pre><a name="line67">67</a> </pre></td>
463
457
  </tr>
464
458
 
465
459
 
466
460
 
467
461
  <tr class="inferred">
468
- <td><pre><a name="line69">69</a> # PUT /iterations/1</pre></td>
462
+ <td><pre><a name="line68">68</a> # PUT /iterations/1</pre></td>
469
463
  </tr>
470
464
 
471
465
 
472
466
 
473
467
  <tr class="inferred">
474
- <td><pre><a name="line70">70</a> # PUT /iterations/1.xml</pre></td>
468
+ <td><pre><a name="line69">69</a> # PUT /iterations/1.xml</pre></td>
475
469
  </tr>
476
470
 
477
471
 
478
472
 
479
473
  <tr class="marked">
480
- <td><pre><a name="line71">71</a> def update</pre></td>
474
+ <td><pre><a name="line70">70</a> def update</pre></td>
481
475
  </tr>
482
476
 
483
477
 
484
478
 
485
479
  <tr class="marked">
486
- <td><pre><a name="line72">72</a> @iteration = Iteration.find(params[:id])</pre></td>
480
+ <td><pre><a name="line71">71</a> @iteration = Iteration.find(params[:id])</pre></td>
487
481
  </tr>
488
482
 
489
483
 
490
484
 
491
485
  <tr class="inferred">
492
- <td><pre><a name="line73">73</a> </pre></td>
486
+ <td><pre><a name="line72">72</a> </pre></td>
493
487
  </tr>
494
488
 
495
489
 
496
490
 
497
491
  <tr class="marked">
498
- <td><pre><a name="line74">74</a> respond_to do |format|</pre></td>
492
+ <td><pre><a name="line73">73</a> respond_to do |format|</pre></td>
499
493
  </tr>
500
494
 
501
495
 
502
496
 
503
497
  <tr class="marked">
504
- <td><pre><a name="line75">75</a> if @iteration.update_attributes(params[:iteration])</pre></td>
498
+ <td><pre><a name="line74">74</a> if @iteration.update_attributes(params[:iteration])</pre></td>
505
499
  </tr>
506
500
 
507
501
 
508
502
 
509
503
  <tr class="marked">
510
- <td><pre><a name="line76">76</a> flash[:notice] = 'Iteration was successfully updated.'</pre></td>
504
+ <td><pre><a name="line75">75</a> flash[:notice] = 'Iteration was successfully updated.'</pre></td>
511
505
  </tr>
512
506
 
513
507
 
514
508
 
515
509
  <tr class="marked">
516
- <td><pre><a name="line77">77</a> format.html { redirect_to iterations_path }</pre></td>
510
+ <td><pre><a name="line76">76</a> format.html { redirect_to iterations_path }</pre></td>
517
511
  </tr>
518
512
 
519
513
 
520
514
 
521
515
  <tr class="marked">
522
- <td><pre><a name="line78">78</a> format.xml { head :ok }</pre></td>
516
+ <td><pre><a name="line77">77</a> format.xml { head :ok }</pre></td>
523
517
  </tr>
524
518
 
525
519
 
526
520
 
527
521
  <tr class="inferred">
528
- <td><pre><a name="line79">79</a> else</pre></td>
522
+ <td><pre><a name="line78">78</a> else</pre></td>
529
523
  </tr>
530
524
 
531
525
 
532
526
 
533
527
  <tr class="marked">
534
- <td><pre><a name="line80">80</a> @releases = Release.all</pre></td>
528
+ <td><pre><a name="line79">79</a> @releases = Release.all</pre></td>
535
529
  </tr>
536
530
 
537
531
 
538
532
 
539
533
  <tr class="marked">
540
- <td><pre><a name="line81">81</a> format.html { render :action =&gt; &quot;edit&quot; }</pre></td>
534
+ <td><pre><a name="line80">80</a> format.html { render :action =&gt; &quot;edit&quot; }</pre></td>
541
535
  </tr>
542
536
 
543
537
 
544
538
 
545
539
  <tr class="marked">
546
- <td><pre><a name="line82">82</a> format.xml { render :xml =&gt; @iteration.errors, :status =&gt; :unprocessable_entity }</pre></td>
540
+ <td><pre><a name="line81">81</a> format.xml { render :xml =&gt; @iteration.errors, :status =&gt; :unprocessable_entity }</pre></td>
547
541
  </tr>
548
542
 
549
543
 
550
544
 
551
545
  <tr class="inferred">
552
- <td><pre><a name="line83">83</a> end</pre></td>
546
+ <td><pre><a name="line82">82</a> end</pre></td>
553
547
  </tr>
554
548
 
555
549
 
556
550
 
557
551
  <tr class="inferred">
558
- <td><pre><a name="line84">84</a> end</pre></td>
552
+ <td><pre><a name="line83">83</a> end</pre></td>
559
553
  </tr>
560
554
 
561
555
 
562
556
 
563
557
  <tr class="inferred">
564
- <td><pre><a name="line85">85</a> end</pre></td>
558
+ <td><pre><a name="line84">84</a> end</pre></td>
565
559
  </tr>
566
560
 
567
561
 
568
562
 
569
563
  <tr class="inferred">
570
- <td><pre><a name="line86">86</a> </pre></td>
564
+ <td><pre><a name="line85">85</a> </pre></td>
571
565
  </tr>
572
566
 
573
567
 
574
568
 
575
569
  <tr class="inferred">
576
- <td><pre><a name="line87">87</a> # DELETE /iterations/1</pre></td>
570
+ <td><pre><a name="line86">86</a> # DELETE /iterations/1</pre></td>
577
571
  </tr>
578
572
 
579
573
 
580
574
 
581
575
  <tr class="inferred">
582
- <td><pre><a name="line88">88</a> # DELETE /iterations/1.xml</pre></td>
576
+ <td><pre><a name="line87">87</a> # DELETE /iterations/1.xml</pre></td>
583
577
  </tr>
584
578
 
585
579
 
586
580
 
587
581
  <tr class="marked">
588
- <td><pre><a name="line89">89</a> def destroy</pre></td>
582
+ <td><pre><a name="line88">88</a> def destroy</pre></td>
589
583
  </tr>
590
584
 
591
585
 
592
586
 
593
587
  <tr class="marked">
594
- <td><pre><a name="line90">90</a> @iteration = Iteration.find(params[:id])</pre></td>
588
+ <td><pre><a name="line89">89</a> @iteration = Iteration.find(params[:id])</pre></td>
595
589
  </tr>
596
590
 
597
591
 
598
592
 
599
593
  <tr class="marked">
600
- <td><pre><a name="line91">91</a> @iteration.destroy</pre></td>
594
+ <td><pre><a name="line90">90</a> @iteration.destroy</pre></td>
601
595
  </tr>
602
596
 
603
597
 
604
598
 
605
599
  <tr class="inferred">
606
- <td><pre><a name="line92">92</a> </pre></td>
600
+ <td><pre><a name="line91">91</a> </pre></td>
607
601
  </tr>
608
602
 
609
603
 
610
604
 
611
605
  <tr class="marked">
612
- <td><pre><a name="line93">93</a> respond_to do |format|</pre></td>
606
+ <td><pre><a name="line92">92</a> respond_to do |format|</pre></td>
613
607
  </tr>
614
608
 
615
609
 
616
610
 
617
611
  <tr class="marked">
618
- <td><pre><a name="line94">94</a> format.html { redirect_to(iterations_url) }</pre></td>
612
+ <td><pre><a name="line93">93</a> format.html { redirect_to(iterations_url) }</pre></td>
619
613
  </tr>
620
614
 
621
615
 
622
616
 
623
617
  <tr class="marked">
624
- <td><pre><a name="line95">95</a> format.xml { head :ok }</pre></td>
618
+ <td><pre><a name="line94">94</a> format.xml { head :ok }</pre></td>
625
619
  </tr>
626
620
 
627
621
 
628
622
 
629
623
  <tr class="inferred">
630
- <td><pre><a name="line96">96</a> end</pre></td>
624
+ <td><pre><a name="line95">95</a> end</pre></td>
631
625
  </tr>
632
626
 
633
627
 
634
628
 
635
629
  <tr class="inferred">
636
- <td><pre><a name="line97">97</a> end</pre></td>
630
+ <td><pre><a name="line96">96</a> end</pre></td>
637
631
  </tr>
638
632
 
639
633
 
640
634
 
641
635
  <tr class="inferred">
642
- <td><pre><a name="line98">98</a> </pre></td>
636
+ <td><pre><a name="line97">97</a> </pre></td>
643
637
  </tr>
644
638
 
645
639
 
646
640
 
647
641
  <tr class="marked">
648
- <td><pre><a name="line99">99</a> private</pre></td>
642
+ <td><pre><a name="line98">98</a> private</pre></td>
649
643
  </tr>
650
644
 
651
645
 
652
646
 
653
647
  <tr class="inferred">
654
- <td><pre><a name="line100">100</a> </pre></td>
648
+ <td><pre><a name="line99">99</a> </pre></td>
655
649
  </tr>
656
650
 
657
651
 
658
652
 
659
653
  <tr class="marked">
660
- <td><pre><a name="line101">101</a> def find_all_releases</pre></td>
654
+ <td><pre><a name="line100">100</a> def find_all_releases</pre></td>
661
655
  </tr>
662
656
 
663
657
 
664
658
 
665
659
  <tr class="marked">
666
- <td><pre><a name="line102">102</a> @releases = Release.all</pre></td>
660
+ <td><pre><a name="line101">101</a> @releases = Release.all</pre></td>
667
661
  </tr>
668
662
 
669
663
 
670
664
 
671
665
  <tr class="inferred">
672
- <td><pre><a name="line103">103</a> end</pre></td>
666
+ <td><pre><a name="line102">102</a> end</pre></td>
673
667
  </tr>
674
668
 
675
669
 
676
670
 
677
671
  <tr class="inferred">
678
- <td><pre><a name="line104">104</a> </pre></td>
672
+ <td><pre><a name="line103">103</a> </pre></td>
679
673
  </tr>
680
674
 
681
675
 
682
676
 
683
677
  <tr class="inferred">
684
- <td><pre><a name="line105">105</a> end</pre></td>
678
+ <td><pre><a name="line104">104</a> end</pre></td>
685
679
  </tr>
686
680
 
687
681
 
688
682
 
689
683
  <tr class="inferred">
690
- <td><pre><a name="line106">106</a> </pre></td>
684
+ <td><pre><a name="line105">105</a> </pre></td>
691
685
  </tr>
692
686
 
693
687
  </tbody>
694
688
  </table>
695
689
 
696
- <p>Generated on Wed Dec 23 14:36:07 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.2.1</a></p>
690
+ <p>Generated on Thu Dec 03 16:49:25 +0000 2009 with <a href="http://github.com/relevance/rcov">rcov 0.9.6</a></p>
697
691
 
698
692
  </body>
699
693
  </html>