backlog 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,12 @@
1
+ == 0.10.2 2007-09-24
2
+
3
+ === Features
4
+
5
+ === Fixes
6
+
7
+ * Removed version from name of released WAR file to enable easier replacement in Tomcat.
8
+ * Fixed bug when starting work on a task.
9
+
1
10
  == 0.10.1 2007-09-23
2
11
 
3
12
  === Features
data/Rakefile CHANGED
@@ -44,13 +44,14 @@ end
44
44
 
45
45
  task :release_war do
46
46
  Rake::Task['war:standalone:create'].invoke
47
+ war_pkg_file = "pkg/backlog.war"
47
48
  if File.exists? 'backlog.war'
48
49
  File.makedirs 'pkg'
49
- File.move 'backlog.war', "pkg/backlog-#{APP::VERSION}.war"
50
+ File.move 'backlog.war', war_pkg_file
50
51
  end
51
- if File.exists? "pkg/backlog-#{APP::VERSION}.war"
52
+ if File.exists? war_pkg_file
52
53
  rf = RubyForge.new
53
54
  rf.login
54
- rf.add_file 'backlog', 'backlog', APP::VERSION, "pkg/backlog-#{APP::VERSION}.war"
55
+ rf.add_file 'backlog', 'backlog', APP::VERSION, war_pkg_file
55
56
  end
56
- end
57
+ end
data/app/models/task.rb CHANGED
@@ -315,6 +315,7 @@ class Task < ActiveRecord::Base
315
315
  return if work_started?
316
316
  open
317
317
  new_work = works.new
318
+ new_work.task = self
318
319
  new_work.started_at = Time.previous_quarter
319
320
  if works.size > 0
320
321
  if current_user
@@ -305,4 +305,13 @@ class TasksControllerTest < Test::Unit::TestCase
305
305
  assert_equal Task::ABORTED, after.resolution
306
306
  end
307
307
 
308
+ def test_start_work
309
+ task_id = tasks(:first).id
310
+
311
+ post :start_work, :id => task_id
312
+
313
+ after = Task.find(task_id)
314
+ assert after.work_started?
315
+ end
316
+
308
317
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: backlog
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.10.1
6
+ version: 0.10.2
7
7
  date: 2007-09-23 00:00:00 +02:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths: