backlog 0.3.4 → 0.3.5

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 (4) hide show
  1. data/History.txt +5 -0
  2. data/Rakefile +3 -1
  3. data/app/models/task.rb +5 -2
  4. metadata +1 -1
@@ -1,3 +1,8 @@
1
+ == 0.3.5 2007-08-03
2
+
3
+ * Fixed bugs around task positioning and validation
4
+ * Made atomic gem publishing with version only written in History.txt
5
+
1
6
  == 0.3.4 2007-08-03
2
7
 
3
8
  * Fixed bugs around task positioning and validation
data/Rakefile CHANGED
@@ -27,7 +27,9 @@ Hoe.new("backlog", version) do |p|
27
27
  p.need_zip = true
28
28
  end
29
29
 
30
- task :rel do
30
+ task :release_and_publish do
31
31
  ENV['VERSION'] = version
32
32
  Rake::Task[:release].invoke
33
+ Rake::Task[:publish_docs].invoke
34
+ Rake::Task[:post_news].invoke
33
35
  end
@@ -13,13 +13,16 @@ class Task < ActiveRecord::Base
13
13
  has_many :works, :order => 'completed_at', :dependent => :destroy
14
14
  acts_as_tree :order => 'position'
15
15
 
16
- validates_size_of :description, :maximum => 80
17
- validates_size_of :customer, :maximum => 64, :if => :customer
18
16
  validates_presence_of :backlog_id, :if => Proc.new { |task| task.parent_id.nil? }
19
17
  validates_presence_of :parent_id, :if => Proc.new { |task| task.backlog_id.nil? }
20
18
  #validates_absence_of :position, :if => :finished_at
21
19
  #validates_absence_of :finished_at, :if => :position
22
20
  validates_presence_of :resolution, :if => :finished_at
21
+ validates_presence_of :description
22
+
23
+ validates_size_of :description, :maximum => 80, :if => :description
24
+ validates_size_of :customer, :maximum => 64, :if => :customer
25
+
23
26
  validates_uniqueness_of :description, :scope => :backlog_id, :if => Proc.new {|task| task.backlog_id && task.previous_task_id.nil?}
24
27
  validates_uniqueness_of :description, :scope => :period_id, :if => :period_id
25
28
  validates_uniqueness_of :position, :scope => :period_id, :if => :period_id, :allow_nil => true
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.3.4
6
+ version: 0.3.5
7
7
  date: 2007-08-03 00:00:00 +02:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths: