rallytastic 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/story.rb +9 -0
  3. data/rallytastic.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.5
1
+ 1.4.6
data/lib/story.rb CHANGED
@@ -65,6 +65,15 @@ class Story
65
65
  def has_children?
66
66
  self.children.count > 0
67
67
  end
68
+
69
+ def ancestors
70
+ if parent
71
+ a = parent.ancestors << self
72
+ return a
73
+ else
74
+ return [self]
75
+ end
76
+ end
68
77
 
69
78
  def actionable_children
70
79
  children = self.children
data/rallytastic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rallytastic}
8
- s.version = "1.4.5"
8
+ s.version = "1.4.6"
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"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 4
8
- - 5
9
- version: 1.4.5
8
+ - 6
9
+ version: 1.4.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Clark