rally_api 0.9.2 → 0.9.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.
@@ -183,14 +183,13 @@ module RallyAPI
183
183
  json_response[rally_type]
184
184
  end
185
185
 
186
- def update(type, obj_id, fields)
186
+ def update(type, obj_id, fields, params = nil)
187
187
  type = check_type(type)
188
188
  ref = check_id(type.to_s, obj_id)
189
189
  fields = RallyAPI::RallyRestJson.fix_case(fields) if @rally_rest_api_compat
190
- json_update = { type.to_s => make_ref_fields(fields) }
191
- args = { :method => :post, :payload => json_update }
192
- #json_response = @rally_connection.update_object(ref, args, json_update)
193
- json_response = @rally_connection.send_request(ref, args)
190
+ json_update = {type.to_s => make_ref_fields(fields)}
191
+ args = {:method => :post, :payload => json_update}
192
+ json_response = @rally_connection.send_request(ref, args, params)
194
193
  #todo check for warnings on json_response["OperationResult"]
195
194
  RallyObject.new(self, reread({"_ref" => ref}))
196
195
  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.2"
7
+ VERSION = "0.9.3"
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.2
4
+ version: 0.9.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-02-22 00:00:00.000000000Z
12
+ date: 2013-03-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpclient
16
- requirement: &70170605570460 !ruby/object:Gem::Requirement
16
+ requirement: &70133499714200 !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: *70170605570460
24
+ version_requirements: *70133499714200
25
25
  description: API wrapper for Rally's JSON REST web services api
26
26
  email:
27
27
  - dsmith@rallydev.com