rally_api 0.9.12 → 0.9.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rally_api/rally_rest_json.rb +6 -3
- data/lib/rally_api/version.rb +1 -1
- metadata +10 -10
@@ -147,7 +147,7 @@ module RallyAPI
|
|
147
147
|
params[:workspace] = ws_ref
|
148
148
|
|
149
149
|
fields = RallyAPI::RallyRestJson.fix_case(fields) if @rally_rest_api_compat
|
150
|
-
object2create = { type =>
|
150
|
+
object2create = { type => check_fields(fields) }
|
151
151
|
args = { :method => :post, :payload => object2create }
|
152
152
|
#json_response = @rally_connection.create_object(make_create_url(rally_type), args, object2create)
|
153
153
|
json_response = @rally_connection.send_request(make_create_url(type), args, params)
|
@@ -188,7 +188,7 @@ module RallyAPI
|
|
188
188
|
type = check_type(type)
|
189
189
|
ref = check_id(type.to_s, obj_id)
|
190
190
|
fields = RallyAPI::RallyRestJson.fix_case(fields) if @rally_rest_api_compat
|
191
|
-
json_update = {type.to_s =>
|
191
|
+
json_update = {type.to_s => check_fields(fields)}
|
192
192
|
args = {:method => :post, :payload => json_update}
|
193
193
|
json_response = @rally_connection.send_request(ref, args, params)
|
194
194
|
#todo check for warnings on json_response["OperationResult"]
|
@@ -396,9 +396,12 @@ module RallyAPI
|
|
396
396
|
ref.split("/")[-2]
|
397
397
|
end
|
398
398
|
|
399
|
-
def
|
399
|
+
def check_fields(fields)
|
400
400
|
fields.each do |key, val|
|
401
401
|
fields[key] = make_ref_field(val)
|
402
|
+
if val.class == Time
|
403
|
+
fields[key] = val.iso8601
|
404
|
+
end
|
402
405
|
end
|
403
406
|
fields
|
404
407
|
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.9.
|
4
|
+
version: 0.9.13
|
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-05-
|
12
|
+
date: 2013-05-09 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httpclient
|
16
|
-
requirement: &
|
16
|
+
requirement: &70095841985220 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.3.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70095841985220
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: simplecov
|
27
|
-
requirement: &
|
27
|
+
requirement: &70095841983400 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70095841983400
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &70095841981640 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70095841981640
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
|
-
requirement: &
|
49
|
+
requirement: &70095841977380 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70095841977380
|
58
58
|
description: API wrapper for Rally's JSON REST web services api
|
59
59
|
email:
|
60
60
|
- dsmith@rallydev.com
|