rally_api 0.9.3 → 0.9.4

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.
@@ -134,7 +134,7 @@ module RallyAPI
134
134
  end
135
135
 
136
136
 
137
- def create(type, fields)
137
+ def create(type, fields, params = {})
138
138
  type = check_type(type)
139
139
  if (fields["Workspace"].nil? && fields["Project"].nil?)
140
140
  fields["Workspace"] = @rally_default_workspace._ref unless @rally_default_workspace.nil?
@@ -143,7 +143,7 @@ module RallyAPI
143
143
 
144
144
  ws_ref = fields["Workspace"]
145
145
  ws_ref = ws_ref["_ref"] unless ws_ref.class == String || ws_ref.nil?
146
- params = { :workspace => ws_ref }
146
+ params[:workspace] = ws_ref
147
147
 
148
148
  fields = RallyAPI::RallyRestJson.fix_case(fields) if @rally_rest_api_compat
149
149
  object2create = { type => make_ref_fields(fields) }
@@ -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.3"
7
+ VERSION = "0.9.4"
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.3
4
+ version: 0.9.4
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-03-20 00:00:00.000000000Z
12
+ date: 2013-03-22 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httpclient
16
- requirement: &70133499714200 !ruby/object:Gem::Requirement
16
+ requirement: &70310939122360 !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: *70133499714200
24
+ version_requirements: *70310939122360
25
25
  description: API wrapper for Rally's JSON REST web services api
26
26
  email:
27
27
  - dsmith@rallydev.com