rally_api 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -42,7 +42,8 @@ module RallyAPI
42
42
  end
43
43
 
44
44
  def set_client_user(base_url, user, password)
45
- @rally_http_client.set_basic_auth(base_url, user, password)
45
+ @rally_http_client.set_auth(base_url, user, password)
46
+ @rally_http_client.www_auth.basic_auth.challenge(base_url) #force httpclient to put basic on first req to rally
46
47
  end
47
48
 
48
49
  def set_ssl_verify_mode(mode = OpenSSL::SSL::VERIFY_NONE)
@@ -116,7 +117,7 @@ module RallyAPI
116
117
  if (args[:method] == :post) || (args[:method] == :put)
117
118
  req_headers["Content-Type"] = "application/json"
118
119
  req_headers["Accept"] = "application/json"
119
- text_json =args[:payload].to_json
120
+ text_json = args[:payload].to_json
120
121
  req_args[:body] = text_json
121
122
  end
122
123
  req_args[:header] = req_headers
@@ -196,5 +197,4 @@ module RallyAPI
196
197
 
197
198
  end
198
199
 
199
-
200
200
  end
@@ -233,7 +233,7 @@ module RallyAPI
233
233
 
234
234
  query_url = make_query_url(@rally_url, @wsapi_version, check_type(query_obj.type.to_s))
235
235
  query_params = query_obj.make_query_params
236
- args = {:user => @rally_user, :password => @rally_password}
236
+ args = {:method => :get}
237
237
  json_response = @rally_connection.get_all_json_results(query_url, args, query_params, query_obj.limit)
238
238
  RallyQueryResult.new(self, json_response, warnings(json_response))
239
239
  end
@@ -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.9.7"
7
+ VERSION = "0.9.8"
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.9.7
4
+ version: 0.9.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,19 +9,19 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-16 00:00:00.000000000Z
12
+ date: 2013-04-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpclient
16
- requirement: &70292743604960 !ruby/object:Gem::Requirement
16
+ requirement: &70195100039720 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: 2.2.4
21
+ version: 2.3.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70292743604960
24
+ version_requirements: *70195100039720
25
25
  description: API wrapper for Rally's JSON REST web services api
26
26
  email:
27
27
  - dsmith@rallydev.com