rally_api 0.7.1 → 0.7.2

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.
@@ -71,14 +71,16 @@ module RallyAPI
71
71
  @rally_connection.set_client_user(@rally_url, @rally_user, @rally_password)
72
72
  @rally_connection.logger = @logger unless @logger.nil?
73
73
 
74
- @rally_objects = { :typedefinition => "TypeDefinition" }
75
- cache_rally_objects()
74
+ @rally_objects = { :typedefinition => "TypeDefinition", :user => "User", :subscription => "Subscription",
75
+ :workspace => "Workspace", :project => "Project" }
76
76
 
77
77
  if !@rally_workspace_name.nil?
78
78
  @rally_default_workspace = find_workspace(@rally_workspace_name)
79
79
  raise StandardError, "unable to find default workspace #{@rally_workspace_name}" if @rally_default_workspace.nil?
80
80
  end
81
81
 
82
+ cache_rally_objects()
83
+
82
84
  if !@rally_project_name.nil?
83
85
  @rally_default_project = find_project(@rally_default_workspace, @rally_project_name)
84
86
  raise StandardError, "unable to find default project #{@rally_project_name}" if @rally_default_project.nil?
@@ -283,7 +285,7 @@ module RallyAPI
283
285
  type_defs_query = RallyQuery.new()
284
286
  type_defs_query.type = :typedefinition
285
287
  type_defs_query.fetch = true
286
- type_defs_query.query_string= "(Name = \"#{query_type}\")"
288
+ type_defs_query.query_string= "(ElementName = \"#{query_type}\")"
287
289
  type_defs = find(type_defs_query)
288
290
 
289
291
  allowed_vals = {}
@@ -381,6 +383,7 @@ module RallyAPI
381
383
  type_defs_query = RallyQuery.new()
382
384
  type_defs_query.type = :typedefinition
383
385
  type_defs_query.fetch = "Name,Parent,TypePath"
386
+ type_defs_query.workspace = @rally_default_workspace unless @rally_default_workspace.nil?
384
387
 
385
388
  type_defs = find(type_defs_query)
386
389
  type_defs.each do |td|
@@ -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.7.1"
7
+ VERSION = "0.7.2"
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.7.1
4
+ version: 0.7.2
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-10-14 00:00:00.000000000Z
12
+ date: 2012-10-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpclient
16
- requirement: &70242928975180 !ruby/object:Gem::Requirement
16
+ requirement: &70183353654620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 2.2.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70242928975180
24
+ version_requirements: *70183353654620
25
25
  description: API wrapper for Rally's JSON REST web services api
26
26
  email:
27
27
  - dsmith@rallydev.com