ruby_odata 0.1.6 → 0.2.0.beta1

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -0
  3. data/CHANGELOG.md +5 -0
  4. data/Gemfile +2 -0
  5. data/Guardfile +1 -1
  6. data/features/basic_auth.feature +13 -13
  7. data/features/cassettes/basic_auth_protected_resource.yml +22 -20
  8. data/features/cassettes/batch_request_additions.yml +26 -26
  9. data/features/cassettes/batch_request_deletes.yml +27 -27
  10. data/features/cassettes/batch_request_updates.yml +26 -26
  11. data/features/cassettes/clean_database_for_testing.yml +10 -10
  12. data/features/cassettes/cucumber_tags/basic_auth.yml +54 -163
  13. data/features/cassettes/cucumber_tags/batch_request.yml +229 -1118
  14. data/features/cassettes/cucumber_tags/complex_types.yml +81 -191
  15. data/features/cassettes/cucumber_tags/error_handling.yml +45 -33
  16. data/features/cassettes/cucumber_tags/query_builder.yml +555 -1248
  17. data/features/cassettes/cucumber_tags/service_manage.yml +216 -591
  18. data/features/cassettes/cucumber_tags/service_methods.yml +137 -412
  19. data/features/cassettes/cucumber_tags/ssl.yml +121 -117
  20. data/features/cassettes/cucumber_tags/type_conversion.yml +104 -170
  21. data/features/cassettes/service_manage_additions.yml +26 -28
  22. data/features/cassettes/service_manage_deletions.yml +21 -21
  23. data/features/cassettes/service_manage_deletions_2.yml +21 -21
  24. data/features/cassettes/unsecured_metadata.yml +14 -14
  25. data/features/service.feature +37 -37
  26. data/features/service_methods.feature +38 -38
  27. data/features/step_definitions/pickle_steps.rb +5 -5
  28. data/features/step_definitions/service_steps.rb +26 -26
  29. data/features/support/hooks.rb +3 -2
  30. data/features/support/vcr.rb +13 -13
  31. data/lib/ruby_odata.rb +4 -1
  32. data/lib/ruby_odata/association.rb +15 -8
  33. data/lib/ruby_odata/class_builder.rb +5 -1
  34. data/lib/ruby_odata/query_builder.rb +171 -173
  35. data/lib/ruby_odata/resource.rb +153 -0
  36. data/lib/ruby_odata/service.rb +30 -30
  37. data/lib/ruby_odata/version.rb +1 -1
  38. data/ruby_odata.gemspec +48 -43
  39. data/spec/association_spec.rb +15 -11
  40. data/spec/fixtures/decimal/metadata.xml +1 -0
  41. data/spec/fixtures/v4/edmx_metadata.xml +145 -0
  42. data/spec/fixtures/v4/result_categories.xml +0 -0
  43. data/spec/revised_service_spec.rb +16 -11
  44. data/spec/service_spec.rb +149 -114
  45. data/spec/service_v4_spec.rb +102 -0
  46. data/spec/spec_helper.rb +6 -1
  47. metadata +109 -32
  48. data/features/cassettes/cucumber_tags/service.yml +0 -234
@@ -1,146 +1,38 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: put
5
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
6
- body:
7
- encoding: ASCII-8BIT
8
- string: ! '{"Name":"Widget 0016","Description":"Test Widget","Price":"75.5","AuditFields":{"CreatedBy":"This
9
- Test","CreateDate":"2012-08-07T20:02:58.983","ModifiedDate":"2012-08-07T20:02:58.983"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}'
10
- headers:
11
- Accept:
12
- - ! '*/*; q=0.5, application/xml'
13
- Accept-Encoding:
14
- - gzip, deflate
15
- Content-Type:
16
- - application/json
17
- Content-Length:
18
- - '314'
19
- User-Agent:
20
- - Ruby
21
- response:
22
- status:
23
- code: 204
24
- message: No Content
25
- headers:
26
- Cache-Control:
27
- - no-cache
28
- Server:
29
- - Microsoft-IIS/7.5
30
- Set-Cookie:
31
- - ASP.NET_SessionId=msq4rvz1zd3a0mxrxxka1es1; path=/; HttpOnly
32
- X-Content-Type-Options:
33
- - nosniff
34
- Dataserviceversion:
35
- - 1.0;
36
- X-Aspnet-Version:
37
- - 4.0.30319
38
- X-Powered-By:
39
- - ASP.NET
40
- Date:
41
- - Tue, 07 Aug 2012 20:02:59 GMT
42
- body:
43
- encoding: US-ASCII
44
- string: ''
45
- http_version: !!null
46
- recorded_at: Tue, 07 Aug 2012 20:03:00 GMT
47
3
  - request:
48
4
  method: post
49
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
5
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products
50
6
  body:
51
- encoding: ASCII-8BIT
52
- string: ! '{"Name":"Widget 0015","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
53
- 0016","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
7
+ encoding: UTF-8
8
+ string: '{"Name":"Widget 0016","Description":"Test Widget","Price":"100.00","Category":{"Name":"Category
9
+ 0017","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
54
10
  headers:
55
- Accept:
56
- - ! '*/*; q=0.5, application/xml'
57
- Accept-Encoding:
58
- - gzip, deflate
59
- Content-Type:
60
- - application/json
61
- Content-Length:
62
- - '182'
63
11
  User-Agent:
64
12
  - Ruby
65
- response:
66
- status:
67
- code: 201
68
- message: Created
69
- headers:
70
- Cache-Control:
71
- - no-cache
72
- Content-Length:
73
- - '1438'
74
- Content-Type:
75
- - application/atom+xml;type=entry;charset=utf-8
76
- Location:
77
- - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
78
- Server:
79
- - Microsoft-IIS/7.5
80
- Set-Cookie:
81
- - ASP.NET_SessionId=hhsyabbmbtx03fr133q13szz; path=/; HttpOnly
82
- X-Content-Type-Options:
83
- - nosniff
84
- Dataserviceversion:
85
- - 1.0;
86
- X-Aspnet-Version:
87
- - 4.0.30319
88
- X-Powered-By:
89
- - ASP.NET
90
- Date:
91
- - Tue, 07 Aug 2012 21:21:29 GMT
92
- body:
93
- encoding: US-ASCII
94
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
95
- xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
96
- xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
97
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
98
- term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
99
- /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
100
- type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
101
- /><title /><updated>2012-08-07T21:21:29Z</updated><author><name /></author><content
102
- type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
103
- 0015</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
104
- m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
105
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:29.703125Z</d:CreateDate><d:ModifiedDate
106
- m:type="Edm.DateTime">2012-08-07T21:21:29.703125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
107
- http_version: !!null
108
- recorded_at: Tue, 07 Aug 2012 21:21:29 GMT
109
- - request:
110
- method: post
111
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
112
- body:
113
- encoding: ASCII-8BIT
114
- string: ! '{"Name":"Widget 0016","Description":"Test Widget","Price":"50.00","Category":{"Name":"Category
115
- 0017","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
116
- headers:
117
13
  Accept:
118
- - ! '*/*; q=0.5, application/xml'
119
- Accept-Encoding:
120
- - gzip, deflate
14
+ - "*/*; q=0.5, application/xml"
121
15
  Content-Type:
122
16
  - application/json
123
- Content-Length:
124
- - '182'
125
- User-Agent:
126
- - Ruby
17
+ Accept-Encoding:
18
+ - gzip,deflate
127
19
  response:
128
20
  status:
129
21
  code: 201
130
- message: Created
22
+ message: ''
131
23
  headers:
132
24
  Cache-Control:
133
- - no-cache
25
+ - private
134
26
  Content-Length:
135
- - '1438'
27
+ - '1445'
136
28
  Content-Type:
137
29
  - application/atom+xml;type=entry;charset=utf-8
138
30
  Location:
139
- - http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
31
+ - http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)
140
32
  Server:
141
- - Microsoft-IIS/7.5
33
+ - Microsoft-IIS/8.0
142
34
  Set-Cookie:
143
- - ASP.NET_SessionId=ffup2xitk1zqkpf1ac2zxl1g; path=/; HttpOnly
35
+ - ASP.NET_SessionId=1zb4pubcrrha5ws3pr3y2aub; path=/; HttpOnly
144
36
  X-Content-Type-Options:
145
37
  - nosniff
146
38
  Dataserviceversion:
@@ -150,52 +42,52 @@ http_interactions:
150
42
  X-Powered-By:
151
43
  - ASP.NET
152
44
  Date:
153
- - Tue, 07 Aug 2012 21:21:29 GMT
45
+ - Sun, 26 Apr 2015 16:29:29 GMT
154
46
  body:
155
- encoding: US-ASCII
156
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
47
+ encoding: UTF-8
48
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
157
49
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
158
50
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
159
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
51
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
160
52
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
161
53
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
162
54
  type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
163
- /><title /><updated>2012-08-07T21:21:30Z</updated><author><name /></author><content
55
+ /><title /><updated>2015-04-26T16:29:30Z</updated><author><name /></author><content
164
56
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
165
- 0016</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
57
+ 0016</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
166
58
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
167
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:30.203125Z</d:CreateDate><d:ModifiedDate
168
- m:type="Edm.DateTime">2012-08-07T21:21:30.203125Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
169
- http_version: !!null
170
- recorded_at: Tue, 07 Aug 2012 21:21:30 GMT
59
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:30.348657Z</d:CreateDate><d:ModifiedDate
60
+ m:type="Edm.DateTime">2015-04-26T16:29:30.348657Z</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
61
+ http_version:
62
+ recorded_at: Sun, 26 Apr 2015 16:29:30 GMT
171
63
  - request:
172
64
  method: get
173
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
65
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)
174
66
  body:
175
67
  encoding: US-ASCII
176
68
  string: ''
177
69
  headers:
178
- Accept:
179
- - ! '*/*; q=0.5, application/xml'
180
- Accept-Encoding:
181
- - gzip, deflate
182
70
  User-Agent:
183
71
  - Ruby
72
+ Accept:
73
+ - "*/*; q=0.5, application/xml"
74
+ Accept-Encoding:
75
+ - gzip,deflate
184
76
  response:
185
77
  status:
186
78
  code: 200
187
- message: OK
79
+ message: ''
188
80
  headers:
189
81
  Cache-Control:
190
- - no-cache
82
+ - private
191
83
  Content-Length:
192
- - '1430'
84
+ - '1437'
193
85
  Content-Type:
194
86
  - application/atom+xml;type=entry;charset=utf-8
195
87
  Server:
196
- - Microsoft-IIS/7.5
88
+ - Microsoft-IIS/8.0
197
89
  Set-Cookie:
198
- - ASP.NET_SessionId=q331g3vrlmziuoor4lgo3wii; path=/; HttpOnly
90
+ - ASP.NET_SessionId=pu0kyyxio300higxrtosfum5; path=/; HttpOnly
199
91
  X-Content-Type-Options:
200
92
  - nosniff
201
93
  Dataserviceversion:
@@ -205,53 +97,51 @@ http_interactions:
205
97
  X-Powered-By:
206
98
  - ASP.NET
207
99
  Date:
208
- - Tue, 07 Aug 2012 21:21:29 GMT
100
+ - Sun, 26 Apr 2015 16:29:29 GMT
209
101
  body:
210
- encoding: US-ASCII
211
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
102
+ encoding: UTF-8
103
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
212
104
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
213
105
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
214
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
106
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
215
107
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
216
108
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
217
109
  type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
218
- /><title /><updated>2012-08-07T21:21:30Z</updated><author><name /></author><content
110
+ /><title /><updated>2015-04-26T16:29:30Z</updated><author><name /></author><content
219
111
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
220
- 0016</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
112
+ 0016</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
221
113
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
222
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:30.203</d:CreateDate><d:ModifiedDate
223
- m:type="Edm.DateTime">2012-08-07T21:21:30.203</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
224
- http_version: !!null
225
- recorded_at: Tue, 07 Aug 2012 21:21:30 GMT
114
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:30.347</d:CreateDate><d:ModifiedDate
115
+ m:type="Edm.DateTime">2015-04-26T16:29:30.347</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
116
+ http_version:
117
+ recorded_at: Sun, 26 Apr 2015 16:29:30 GMT
226
118
  - request:
227
119
  method: put
228
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
120
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)
229
121
  body:
230
- encoding: ASCII-8BIT
231
- string: ! '{"Name":"Widget 0016","Description":"Test Widget","Price":"50.0","AuditFields":{"CreatedBy":"This
232
- Test","CreateDate":"2012-08-07T21:21:30.203","ModifiedDate":"2012-08-07T21:21:30.203"},"__metadata":{"uri":"http://win7dev:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}'
122
+ encoding: UTF-8
123
+ string: '{"Name":"Widget 0016","Description":"Test Widget","Price":"100.0","AuditFields":{"CreatedBy":"This
124
+ Test","CreateDate":"2015-04-26T16:29:30.347","ModifiedDate":"2015-04-26T16:29:30.347"},"__metadata":{"uri":"http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)"},"Id":1,"DiscontinuedDate":null,"CategoryId":1}'
233
125
  headers:
126
+ User-Agent:
127
+ - Ruby
234
128
  Accept:
235
- - ! '*/*; q=0.5, application/xml'
236
- Accept-Encoding:
237
- - gzip, deflate
129
+ - "*/*; q=0.5, application/xml"
238
130
  Content-Type:
239
131
  - application/json
240
- Content-Length:
241
- - '314'
242
- User-Agent:
243
- - Ruby
132
+ Accept-Encoding:
133
+ - gzip,deflate
244
134
  response:
245
135
  status:
246
136
  code: 204
247
- message: No Content
137
+ message: ''
248
138
  headers:
249
139
  Cache-Control:
250
- - no-cache
140
+ - private
251
141
  Server:
252
- - Microsoft-IIS/7.5
142
+ - Microsoft-IIS/8.0
253
143
  Set-Cookie:
254
- - ASP.NET_SessionId=xnc5st3ouic4cqvhtjuxknps; path=/; HttpOnly
144
+ - ASP.NET_SessionId=cq3wm4gelyulurb4zpbzscuc; path=/; HttpOnly
255
145
  X-Content-Type-Options:
256
146
  - nosniff
257
147
  Dataserviceversion:
@@ -261,40 +151,40 @@ http_interactions:
261
151
  X-Powered-By:
262
152
  - ASP.NET
263
153
  Date:
264
- - Tue, 07 Aug 2012 21:21:30 GMT
154
+ - Sun, 26 Apr 2015 16:29:29 GMT
265
155
  body:
266
- encoding: US-ASCII
156
+ encoding: UTF-8
267
157
  string: ''
268
- http_version: !!null
269
- recorded_at: Tue, 07 Aug 2012 21:21:30 GMT
158
+ http_version:
159
+ recorded_at: Sun, 26 Apr 2015 16:29:30 GMT
270
160
  - request:
271
161
  method: get
272
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products(1)
162
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)
273
163
  body:
274
164
  encoding: US-ASCII
275
165
  string: ''
276
166
  headers:
277
- Accept:
278
- - ! '*/*; q=0.5, application/xml'
279
- Accept-Encoding:
280
- - gzip, deflate
281
167
  User-Agent:
282
168
  - Ruby
169
+ Accept:
170
+ - "*/*; q=0.5, application/xml"
171
+ Accept-Encoding:
172
+ - gzip,deflate
283
173
  response:
284
174
  status:
285
175
  code: 200
286
- message: OK
176
+ message: ''
287
177
  headers:
288
178
  Cache-Control:
289
- - no-cache
179
+ - private
290
180
  Content-Length:
291
- - '1430'
181
+ - '1437'
292
182
  Content-Type:
293
183
  - application/atom+xml;type=entry;charset=utf-8
294
184
  Server:
295
- - Microsoft-IIS/7.5
185
+ - Microsoft-IIS/8.0
296
186
  Set-Cookie:
297
- - ASP.NET_SessionId=3m0mzj44claxcnmtdr3yokrn; path=/; HttpOnly
187
+ - ASP.NET_SessionId=3arpcg51mjdacbybdaw0t1n4; path=/; HttpOnly
298
188
  X-Content-Type-Options:
299
189
  - nosniff
300
190
  Dataserviceversion:
@@ -304,23 +194,23 @@ http_interactions:
304
194
  X-Powered-By:
305
195
  - ASP.NET
306
196
  Date:
307
- - Tue, 07 Aug 2012 21:21:30 GMT
197
+ - Sun, 26 Apr 2015 16:29:29 GMT
308
198
  body:
309
- encoding: US-ASCII
310
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
199
+ encoding: UTF-8
200
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
311
201
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
312
202
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
313
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
203
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
314
204
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
315
205
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
316
206
  type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
317
- /><title /><updated>2012-08-07T21:21:30Z</updated><author><name /></author><content
207
+ /><title /><updated>2015-04-26T16:29:30Z</updated><author><name /></author><content
318
208
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Widget
319
- 0016</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
209
+ 0016</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
320
210
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
321
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:21:30.203</d:CreateDate><d:ModifiedDate
322
- m:type="Edm.DateTime">2012-08-07T21:21:30.203</d:ModifiedDate><d:CreatedBy>This
211
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:30.347</d:CreateDate><d:ModifiedDate
212
+ m:type="Edm.DateTime">2015-04-26T16:29:30.347</d:ModifiedDate><d:CreatedBy>This
323
213
  Test</d:CreatedBy></d:AuditFields></m:properties></content></entry>
324
- http_version: !!null
325
- recorded_at: Tue, 07 Aug 2012 21:21:30 GMT
326
- recorded_with: VCR 2.2.4
214
+ http_version:
215
+ recorded_at: Sun, 26 Apr 2015 16:29:30 GMT
216
+ recorded_with: VCR 2.5.0
@@ -2,37 +2,35 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products
5
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products
6
6
  body:
7
- encoding: ASCII-8BIT
8
- string: ! '{"Name":"Widget 0017","Description":"Test Widget","Price":"","Category":{"Name":"Category
7
+ encoding: UTF-8
8
+ string: '{"Name":"Widget 0017","Description":"Test Widget","Price":"","Category":{"Name":"Category
9
9
  0018","AuditFields":{"CreatedBy":"Machinist"}},"AuditFields":{"CreatedBy":"Machinist"}}'
10
10
  headers:
11
+ User-Agent:
12
+ - Ruby
11
13
  Accept:
12
- - ! '*/*; q=0.5, application/xml'
13
- Accept-Encoding:
14
- - gzip, deflate
14
+ - "*/*; q=0.5, application/xml"
15
15
  Content-Type:
16
16
  - application/json
17
- Content-Length:
18
- - '177'
19
- User-Agent:
20
- - Ruby
17
+ Accept-Encoding:
18
+ - gzip,deflate
21
19
  response:
22
20
  status:
23
21
  code: 400
24
- message: Bad Request
22
+ message: ''
25
23
  headers:
26
24
  Cache-Control:
27
25
  - private
28
26
  Content-Length:
29
- - '1210'
27
+ - '1205'
30
28
  Content-Type:
31
29
  - application/xml
32
30
  Server:
33
- - Microsoft-IIS/7.5
31
+ - Microsoft-IIS/8.0
34
32
  Set-Cookie:
35
- - ASP.NET_SessionId=kw41qeekwnltvdgzfqkfsptr; path=/; HttpOnly
33
+ - ASP.NET_SessionId=ovdkiqkijkte14faqnyqcfll; path=/; HttpOnly
36
34
  X-Content-Type-Options:
37
35
  - nosniff
38
36
  Dataserviceversion:
@@ -42,23 +40,37 @@ http_interactions:
42
40
  X-Powered-By:
43
41
  - ASP.NET
44
42
  Date:
45
- - Tue, 07 Aug 2012 21:21:30 GMT
43
+ - Sun, 26 Apr 2015 16:29:31 GMT
46
44
  body:
47
- encoding: US-ASCII
48
- string: ! "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?><error
49
- xmlns=\"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata\"><code></code><message
50
- xml:lang=\"en-US\">Error processing request stream. Error encountered in converting
51
- the value from request payload for property 'Price' to type 'Decimal', which
52
- is the property's expected type. See inner exception for more detail.</message><innererror><message>Input
53
- string was not in a correct format.</message><type>System.FormatException</type><stacktrace>
54
- \ at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer&amp;
55
- number, NumberFormatInfo info, Boolean parseDecimal)&#xD;\n at System.Number.ParseDecimal(String
56
- value, NumberStyles options, NumberFormatInfo numfmt)&#xD;\n at System.Convert.ToDecimal(String
57
- value, IFormatProvider provider)&#xD;\n at System.String.System.IConvertible.ToDecimal(IFormatProvider
58
- provider)&#xD;\n at System.Convert.ChangeType(Object value, Type conversionType,
59
- IFormatProvider provider)&#xD;\n at System.Data.Services.Serializers.JsonDeserializer.ConvertValues(Object
60
- value, String propertyName, Type typeToBeConverted, DataServiceProviderWrapper
61
- provider)</stacktrace></innererror></error>"
62
- http_version: !!null
63
- recorded_at: Tue, 07 Aug 2012 21:21:31 GMT
64
- recorded_with: VCR 2.2.4
45
+ encoding: ASCII-8BIT
46
+ string: !binary |-
47
+ PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxv
48
+ bmU9InllcyI/PjxlcnJvciB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9z
49
+ b2Z0LmNvbS9hZG8vMjAwNy8wOC9kYXRhc2VydmljZXMvbWV0YWRhdGEiPjxj
50
+ b2RlPjwvY29kZT48bWVzc2FnZSB4bWw6bGFuZz0icGwtUEwiPkVycm9yIHBy
51
+ b2Nlc3NpbmcgcmVxdWVzdCBzdHJlYW0uIEVycm9yIGVuY291bnRlcmVkIGlu
52
+ IGNvbnZlcnRpbmcgdGhlIHZhbHVlIGZyb20gcmVxdWVzdCBwYXlsb2FkIGZv
53
+ ciBwcm9wZXJ0eSAnUHJpY2UnIHRvIHR5cGUgJ0RlY2ltYWwnLCB3aGljaCBp
54
+ cyB0aGUgcHJvcGVydHkncyBleHBlY3RlZCB0eXBlLiBTZWUgaW5uZXIgZXhj
55
+ ZXB0aW9uIGZvciBtb3JlIGRldGFpbC48L21lc3NhZ2U+PGlubmVyZXJyb3I+
56
+ PG1lc3NhZ2U+TmllcHJhd2lkxYJvd3kgZm9ybWF0IGNpxIVndSB3ZWrFm2Np
57
+ b3dlZ28uPC9tZXNzYWdlPjx0eXBlPlN5c3RlbS5Gb3JtYXRFeGNlcHRpb248
58
+ L3R5cGU+PHN0YWNrdHJhY2U+ICAgdyBTeXN0ZW0uTnVtYmVyLlN0cmluZ1Rv
59
+ TnVtYmVyKFN0cmluZyBzdHIsIE51bWJlclN0eWxlcyBvcHRpb25zLCBOdW1i
60
+ ZXJCdWZmZXImYW1wOyBudW1iZXIsIE51bWJlckZvcm1hdEluZm8gaW5mbywg
61
+ Qm9vbGVhbiBwYXJzZURlY2ltYWwpJiN4RDsKICAgdyBTeXN0ZW0uTnVtYmVy
62
+ LlBhcnNlRGVjaW1hbChTdHJpbmcgdmFsdWUsIE51bWJlclN0eWxlcyBvcHRp
63
+ b25zLCBOdW1iZXJGb3JtYXRJbmZvIG51bWZtdCkmI3hEOwogICB3IFN5c3Rl
64
+ bS5Db252ZXJ0LlRvRGVjaW1hbChTdHJpbmcgdmFsdWUsIElGb3JtYXRQcm92
65
+ aWRlciBwcm92aWRlcikmI3hEOwogICB3IFN5c3RlbS5TdHJpbmcuU3lzdGVt
66
+ LklDb252ZXJ0aWJsZS5Ub0RlY2ltYWwoSUZvcm1hdFByb3ZpZGVyIHByb3Zp
67
+ ZGVyKSYjeEQ7CiAgIHcgU3lzdGVtLkNvbnZlcnQuQ2hhbmdlVHlwZShPYmpl
68
+ Y3QgdmFsdWUsIFR5cGUgY29udmVyc2lvblR5cGUsIElGb3JtYXRQcm92aWRl
69
+ ciBwcm92aWRlcikmI3hEOwogICB3IFN5c3RlbS5EYXRhLlNlcnZpY2VzLlNl
70
+ cmlhbGl6ZXJzLkpzb25EZXNlcmlhbGl6ZXIuQ29udmVydFZhbHVlcyhPYmpl
71
+ Y3QgdmFsdWUsIFN0cmluZyBwcm9wZXJ0eU5hbWUsIFR5cGUgdHlwZVRvQmVD
72
+ b252ZXJ0ZWQsIERhdGFTZXJ2aWNlUHJvdmlkZXJXcmFwcGVyIHByb3ZpZGVy
73
+ KTwvc3RhY2t0cmFjZT48L2lubmVyZXJyb3I+PC9lcnJvcj4=
74
+ http_version:
75
+ recorded_at: Sun, 26 Apr 2015 16:29:31 GMT
76
+ recorded_with: VCR 2.5.0