rally_api 0.4.0 → 0.4.1
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/README.rdoc
CHANGED
@@ -25,7 +25,7 @@ headers.vendor = "MyCompany"
|
|
25
25
|
headers.version = "1.0"
|
26
26
|
|
27
27
|
#==================== Making a connection to Rally ====================
|
28
|
-
config = {:base_url => "https://rally1.rallydev.com"}
|
28
|
+
config = {:base_url => "https://rally1.rallydev.com/slm"}
|
29
29
|
config[:username] = "user@company.com"
|
30
30
|
config[:password] = "password"
|
31
31
|
config[:workspace] = "Workspace Name"
|
@@ -30,9 +30,9 @@ module RallyAPI
|
|
30
30
|
|
31
31
|
end
|
32
32
|
|
33
|
-
def read_object(url, args)
|
33
|
+
def read_object(url, args, params = nil)
|
34
34
|
args[:method] = :get
|
35
|
-
result = send_json_request(url, args)
|
35
|
+
result = send_json_request(url, args, params)
|
36
36
|
puts result if @low_debug
|
37
37
|
rally_type = result.keys[0]
|
38
38
|
result[rally_type]
|
@@ -65,11 +65,11 @@ module RallyAPI
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def find_workspace(workspace_name)
|
68
|
-
sub = self.user
|
68
|
+
sub = self.user["Subscription"].read({:fetch => "Workspaces,Name,State"})
|
69
69
|
workspace = nil
|
70
70
|
sub.Workspaces.each do |ws|
|
71
|
-
ws.read
|
72
|
-
if (ws
|
71
|
+
#ws.read
|
72
|
+
if (ws["Name"] == workspace_name) && (ws["State"] == "Open")
|
73
73
|
workspace = ws
|
74
74
|
break #doing a break for performance some customers have 100+ workspaces - no need to do the others
|
75
75
|
end
|
@@ -116,11 +116,11 @@ module RallyAPI
|
|
116
116
|
end
|
117
117
|
|
118
118
|
|
119
|
-
def read(type, obj_id)
|
119
|
+
def read(type, obj_id, params = nil)
|
120
120
|
rally_type = check_type(type)
|
121
121
|
ref = check_id(rally_type, obj_id)
|
122
122
|
args = {:user => @rally_user, :password => @rally_password}
|
123
|
-
json_response = @rally_connection.read_object(ref, args)
|
123
|
+
json_response = @rally_connection.read_object(ref, args, params)
|
124
124
|
RallyObject.new(self, json_response)
|
125
125
|
end
|
126
126
|
|
@@ -129,9 +129,9 @@ module RallyAPI
|
|
129
129
|
@rally_connection.delete_object(ref_to_delete, args)
|
130
130
|
end
|
131
131
|
|
132
|
-
def reread(json_object)
|
132
|
+
def reread(json_object, params = nil)
|
133
133
|
args = {:user => @rally_user, :password => @rally_password}
|
134
|
-
@rally_connection.read_object(json_object["_ref"], args)
|
134
|
+
@rally_connection.read_object(json_object["_ref"], args, params)
|
135
135
|
end
|
136
136
|
|
137
137
|
|
data/lib/rally_api/version.rb
CHANGED
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.4.
|
4
|
+
version: 0.4.1
|
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-
|
12
|
+
date: 2012-03-01 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
16
|
-
requirement: &
|
16
|
+
requirement: &70105132306080 !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: *
|
24
|
+
version_requirements: *70105132306080
|
25
25
|
description: API wrapper for Rally's JSON REST web services api
|
26
26
|
email:
|
27
27
|
- dsmith@rallydev.com
|