rally_api 0.8.2 → 0.8.3
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/lib/rally_api/rally_json_connection.rb +7 -2
- data/lib/rally_api/version.rb +1 -1
- metadata +4 -4
@@ -10,7 +10,6 @@ require 'json'
|
|
10
10
|
|
11
11
|
module RallyAPI
|
12
12
|
|
13
|
-
|
14
13
|
class RallyJsonConnection
|
15
14
|
|
16
15
|
DEFAULT_PAGE_SIZE = 200
|
@@ -107,12 +106,18 @@ module RallyAPI
|
|
107
106
|
log_info("Rally API calling #{method} - #{url} with #{req_args}")
|
108
107
|
response = @rally_http_client.request(method, url, req_args)
|
109
108
|
rescue Exception => ex
|
110
|
-
msg = "
|
109
|
+
msg = "RallyAPI: - rescued exception - #{ex.message} on request to #{url} with params #{url_params}"
|
111
110
|
log_info(msg)
|
112
111
|
raise StandardError, msg
|
113
112
|
end
|
114
113
|
|
115
114
|
log_info("RallyAPI response was - #{response.inspect}")
|
115
|
+
if response.status_code != 200
|
116
|
+
msg = "RallyAPI - An issue occurred (HTTP-#{response.status_code}) on request - #{url}."
|
117
|
+
msg << "\nResponse was: #{response.body}"
|
118
|
+
raise StandardError, msg
|
119
|
+
end
|
120
|
+
|
116
121
|
json_obj = JSON.parse(response.body) #todo handle null post error
|
117
122
|
errs = check_for_errors(json_obj)
|
118
123
|
raise StandardError, "\nError on request - #{url} - \n#{errs}" if errs[:errors].length > 0
|
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.8.
|
4
|
+
version: 0.8.3
|
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: 2013-01-
|
12
|
+
date: 2013-01-03 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httpclient
|
16
|
-
requirement: &
|
16
|
+
requirement: &70159398715460 !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: *70159398715460
|
25
25
|
description: API wrapper for Rally's JSON REST web services api
|
26
26
|
email:
|
27
27
|
- dsmith@rallydev.com
|