rallytastic 1.2.7 → 1.2.8

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.7
1
+ 1.2.8
data/lib/project.rb CHANGED
@@ -35,10 +35,12 @@ class Project
35
35
 
36
36
  #must be called after refresh, or with has_values passed in
37
37
  def associate hash_values=nil
38
- @rally_hash = hash_values if hash_values
38
+ @rally_hash = hash_values || RallyAPI.get(self)
39
39
  #TODO: associate with user when users are supported
40
40
  if @rally_hash["Parent"]
41
41
  parent = Project.find_or_create_by(:rally_uri => @rally_hash["Parent"]["_ref"])
42
+ parent.children << self
43
+ parent.save
42
44
  self.parent = parent
43
45
  end
44
46
  self.save
data/lib/rallytastic.rb CHANGED
@@ -26,4 +26,4 @@ require File.join(lib, 'rally/rally_api.rb')
26
26
 
27
27
 
28
28
  #temp for rally and mongoid setup
29
- require '~/rally_config'
29
+ #require '~/rally_config'
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.2.7"
8
+ s.version = "1.2.8"
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-08-12}
12
+ s.date = %q{2010-08-16}
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
  - 2
8
- - 7
9
- version: 1.2.7
8
+ - 8
9
+ version: 1.2.8
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-08-12 00:00:00 -05:00
17
+ date: 2010-08-16 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -160,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
161
  - - ">="
162
162
  - !ruby/object:Gem::Version
163
- hash: 4105331568869874590
163
+ hash: 898372091665900069
164
164
  segments:
165
165
  - 0
166
166
  version: "0"