rally_api 0.5.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,7 +44,7 @@ module RallyAPI
44
44
 
45
45
  #Main Class to instantiate when using the tool
46
46
  class RallyRestJson
47
- DEFAULT_WSAPI_VERSION = "1.30"
47
+ DEFAULT_WSAPI_VERSION = "1.37"
48
48
 
49
49
  attr_accessor :rally_url, :rally_user, :rally_password, :rally_workspace_name, :rally_project_name, :wsapi_version
50
50
  attr_accessor :rally_headers, :rally_default_workspace, :rally_default_project, :low_debug, :proxy_info, :retries
@@ -351,17 +351,22 @@ module RallyAPI
351
351
  def cache_rally_objects()
352
352
  type_defs_query = RallyQuery.new()
353
353
  type_defs_query.type = :typedefinition
354
- type_defs_query.fetch = "Name"
354
+ type_defs_query.fetch = "Name,Parent,TypePath"
355
355
 
356
356
  type_defs = find(type_defs_query)
357
357
  type_defs.each do |td|
358
358
  type_sym = td.Name.downcase.gsub(" ", "").to_sym
359
- @rally_objects[type_sym] = td.Name
359
+ url_path = td.TypePath.nil? ? td.Name : td.TypePath
360
+ @rally_objects[type_sym] = url_path
361
+
362
+ parent_type = td.Parent
363
+ if !parent_type.nil? && (@rally_objects[parent_type.Name].nil?)
364
+ url_path = parent_type.TypePath.nil? ? parent_type.Name : parent_type.TypePath
365
+ @rally_objects[parent_type.Name.downcase.gsub(" ", "").to_sym] = url_path
366
+ end
360
367
  end
361
368
 
362
369
  #some convenience keys to help people - someday we'll fix the api and make HR called story
363
- @rally_objects[:artifact] = "Artifact"
364
- @rally_objects[:persistableobject] = "Persistable Object"
365
370
  @rally_objects[:useriterationcapacity] = "User Iteration Capacity"
366
371
  @rally_objects[:userpermission] = "User Permission"
367
372
  @rally_objects[:story] = "Hierarchical Requirement"
@@ -4,5 +4,5 @@
4
4
  #of the applicable Subscription Agreement between your company and
5
5
  #Rally Software Development Corp.
6
6
  module RallyAPI
7
- VERSION = "0.5.2"
7
+ VERSION = "0.6.0"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rally_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-31 00:00:00.000000000Z
12
+ date: 2012-09-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &70364805912900 !ruby/object:Gem::Requirement
16
+ requirement: &70337979348020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.6.7
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70364805912900
24
+ version_requirements: *70337979348020
25
25
  description: API wrapper for Rally's JSON REST web services api
26
26
  email:
27
27
  - dsmith@rallydev.com