rallytastic 1.4.8 → 1.4.9

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/VERSION +1 -1
  2. data/lib/project.rb +12 -2
  3. data/rallytastic.gemspec +2 -2
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.8
1
+ 1.4.9
data/lib/project.rb CHANGED
@@ -16,11 +16,21 @@ class Project
16
16
  field :notes
17
17
  field :state
18
18
 
19
- referenced_in :parent, :class_name => "Project"
20
- references_many :children, :class_name => "Project"
19
+ referenced_in :parent, :class_name => "Project", :inverse_of => :children
20
+ references_many :children, :class_name => "Project", :inverse_of => :parent
21
21
  references_many :iterations
22
22
  references_many :stories
23
23
  embeds_one :revision_parser
24
+
25
+ def ancestors
26
+ if parent
27
+ a = parent.ancestors << self
28
+ return a
29
+ else
30
+ return [self]
31
+ end
32
+ end
33
+
24
34
 
25
35
  def refresh hash_values=nil
26
36
  @rally_hash = hash_values if hash_values
data/rallytastic.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rallytastic}
8
- s.version = "1.4.8"
8
+ s.version = "1.4.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Clark"]
12
- s.date = %q{2010-09-23}
12
+ s.date = %q{2010-10-07}
13
13
  s.description = %q{longer description of your gem}
14
14
  s.email = %q{winescout@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 4
8
- - 8
9
- version: 1.4.8
8
+ - 9
9
+ version: 1.4.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Clark
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-23 00:00:00 -05:00
17
+ date: 2010-10-07 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency