rally_api 0.7.5 → 0.7.6
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.
@@ -102,7 +102,7 @@ module RallyAPI
|
|
102
102
|
req_args[:header] = req_headers
|
103
103
|
|
104
104
|
begin
|
105
|
-
log_info("Rally API calling #{method} - #{url} with #{req_args}")
|
105
|
+
log_info("Rally API calling #{method} - #{url} with #{req_args}")
|
106
106
|
response = @rally_http_client.request(method, url, req_args)
|
107
107
|
rescue Exception => ex
|
108
108
|
msg = "Rally Rest Json: - rescued exception - #{ex.message} on request to #{url} with params #{url_params}"
|
@@ -110,7 +110,7 @@ module RallyAPI
|
|
110
110
|
raise StandardError, msg
|
111
111
|
end
|
112
112
|
|
113
|
-
log_info("RallyAPI response was - #{response.inspect}")
|
113
|
+
log_info("RallyAPI response was - #{response.inspect}")
|
114
114
|
json_obj = JSON.parse(response.body) #todo handle null post error
|
115
115
|
errs = check_for_errors(json_obj)
|
116
116
|
raise StandardError, "\nError on request - #{url} - \n#{errs}" if errs[:errors].length > 0
|
@@ -147,6 +147,7 @@ module RallyAPI
|
|
147
147
|
end
|
148
148
|
|
149
149
|
def log_info(message)
|
150
|
+
return unless @low_debug
|
150
151
|
puts message if @logger.nil?
|
151
152
|
@logger.debug(message) unless @logger.nil?
|
152
153
|
end
|
@@ -164,7 +165,6 @@ module RallyAPI
|
|
164
165
|
errors = result["CreateResult"]["Errors"]
|
165
166
|
warnings = result["CreateResult"]["Warnings"]
|
166
167
|
end
|
167
|
-
|
168
168
|
{:errors => errors, :warnings => warnings}
|
169
169
|
end
|
170
170
|
|
@@ -148,7 +148,7 @@ module RallyAPI
|
|
148
148
|
object2create = { rally_type => make_ref_fields(fields) }
|
149
149
|
args = { :method => :post, :payload => object2create }
|
150
150
|
#json_response = @rally_connection.create_object(make_create_url(rally_type), args, object2create)
|
151
|
-
json_response = @rally_connection.send_request(make_create_url(rally_type), args
|
151
|
+
json_response = @rally_connection.send_request(make_create_url(rally_type), args)
|
152
152
|
#todo - check for warnings
|
153
153
|
RallyObject.new(self, json_response["CreateResult"]["Object"]).read()
|
154
154
|
end
|
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.7.
|
4
|
+
version: 0.7.6
|
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-
|
12
|
+
date: 2012-10-24 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httpclient
|
16
|
-
requirement: &
|
16
|
+
requirement: &70210007040980 !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: *
|
24
|
+
version_requirements: *70210007040980
|
25
25
|
description: API wrapper for Rally's JSON REST web services api
|
26
26
|
email:
|
27
27
|
- dsmith@rallydev.com
|