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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13c318e42410f72bfbdb32c56c0286047a8c4ffb
4
- data.tar.gz: 829b8aaf44049a72fe928006c4c0d949b029afb4
3
+ metadata.gz: 23e504ceeec705d470f94f71bde3727f0e409b85
4
+ data.tar.gz: b6593c98631bab056b53b68245e142f315e36a5a
5
5
  SHA512:
6
- metadata.gz: ef9462813278a3a683c64f09aebae8a4f95022949d80900bc2cb9869cea8fcaaebde92192b86320f064ee53afa13ccb875c0280086ffc310216f195473fc6341
7
- data.tar.gz: adfd48385615b5b8d17ea713dca6c6c6304792baa3ee765b95837a54e3e37191f088a429ade676a3bd6b35ef502bb1ca44d553c28ea5a2ebba4d14aee568d401
6
+ metadata.gz: 3e0f6b958d1017d7c7d06496f2b1727cc4c71326a5e0c440ae558cd8aef4f669db32c30f318c72db5d4c1989aca392d6e789794ae90e6ffcd9e774808d78cb0a
7
+ data.tar.gz: 69f20f9baee5e21c8f918f6a220c18844741e317554f0f9a830ad98ba6a76fbf31ce13f15599afda8bb348c4f51bab57b41eb90598fba8b283bcdf2a77f8e70f
data/.travis.yml CHANGED
@@ -6,5 +6,7 @@ matrix:
6
6
  gemfile: Gemfile
7
7
  - rvm: 2.0.0
8
8
  gemfile: Gemfile
9
+ - rvm: 2.2.2
10
+ gemfile: Gemfile
9
11
 
10
12
  script: "bundle exec rake test_with_coveralls"
data/CHANGELOG.md CHANGED
@@ -155,3 +155,8 @@
155
155
 
156
156
  * Other
157
157
  * Changed license to MIT and added it to the gemspec
158
+
159
+ ## 0.2.0.beta1
160
+ * New Features
161
+ * Support for Rails 4 (Thanks [@denstepa](https://github.com/denstepa))
162
+ * Move to Faraday instead of RestClient (Thanks [@zzk](https://github.com/zzk)) for more options like NTLM.
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in ruby_odata.gemspec
4
4
  gemspec
5
+
6
+ gem 'faraday_middleware', github: 'lostisland/faraday_middleware'
data/Guardfile CHANGED
@@ -1,7 +1,7 @@
1
1
  # A sample Guardfile
2
2
  # More info at https://github.com/guard/guard#readme
3
3
 
4
- guard 'rspec', :version => 2 do
4
+ guard 'rspec', cmd: "bundle exec rspec" do
5
5
  watch(%r{^spec/.+_spec\.rb$})
6
6
  watch(%r{^lib/ruby_odata/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
7
7
  watch('spec/spec_helper.rb') { "spec" }
@@ -5,19 +5,19 @@ Background:
5
5
  Given a HTTP BasicAuth ODataService exists using username "admin" and password "passwd"
6
6
  And blueprints exist for the service
7
7
 
8
- Scenario: Service should respond to valid collections
9
- Then I should be able to call "Products" on the service
8
+ Scenario: Service should respond to valid collections
9
+ Then I should be able to call "Products" on the service
10
10
 
11
- Scenario: Entity should fill values on protected resource
12
- Given I call "AddToCategories" on the service with a new "Category" object with Name: "Auth Test Category"
13
- And I save changes
14
- And I call "Categories" on the service with args: "1"
15
- When I run the query within a cassette named "basic_auth_protected_resource"
16
- Then the method "Id" on the first result should equal: "1"
17
- And the method "Name" on the first result should equal: "Auth Test Category"
11
+ Scenario: Entity should fill values on protected resource
12
+ Given I call "AddToCategories" on the service with a new "Category" object with Name: "Auth Test Category"
13
+ And I save changes
14
+ And I call "Categories" on the service with args: "1"
15
+ When I run the query within a cassette named "basic_auth_protected_resource"
16
+ Then the method "Id" on the first result should equal: "1"
17
+ And the method "Name" on the first result should equal: "Auth Test Category"
18
18
 
19
- Scenario: Should get 401 if invalid credentials provided to protected URL
20
- Given a HTTP BasicAuth ODataService exists using username "admin" and password "bad_pwd" it should throw an exception with message "401 Unauthorized"
19
+ Scenario: Should get 401 if invalid credentials provided to protected URL
20
+ Given a HTTP BasicAuth ODataService exists using username "admin" and password "bad_pwd" it should throw an exception with message "the server responded with status 401"
21
21
 
22
- Scenario: Should get 401 if no credentials provided to protected URL
23
- Given a HTTP BasicAuth ODataService exists it should throw an exception with message "401 Unauthorized"
22
+ Scenario: Should get 401 if no credentials provided to protected URL
23
+ Given a HTTP BasicAuth ODataService exists it should throw an exception with message "the server responded with status 401"
@@ -2,32 +2,34 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://admin:passwd@win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)
5
+ uri: http://10.10.0.17:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- Accept:
11
- - ! '*/*; q=0.5, application/xml'
12
- Accept-Encoding:
13
- - gzip, deflate
14
10
  User-Agent:
15
11
  - Ruby
12
+ Accept:
13
+ - "*/*; q=0.5, application/xml"
14
+ Authorization:
15
+ - Basic YWRtaW46cGFzc3dk
16
+ Accept-Encoding:
17
+ - gzip,deflate
16
18
  response:
17
19
  status:
18
20
  code: 200
19
- message: OK
21
+ message: ''
20
22
  headers:
21
23
  Cache-Control:
22
- - no-cache
24
+ - private
23
25
  Content-Length:
24
- - '1270'
26
+ - '1274'
25
27
  Content-Type:
26
28
  - application/atom+xml;type=entry;charset=utf-8
27
29
  Server:
28
- - Microsoft-IIS/7.5
30
+ - Microsoft-IIS/8.0
29
31
  Set-Cookie:
30
- - ASP.NET_SessionId=zpifmralioi4qiwd0lg0uqcq; path=/; HttpOnly
32
+ - ASP.NET_SessionId=3jiy4xpsmuspq01b2k3jdbi5; path=/; HttpOnly
31
33
  X-Content-Type-Options:
32
34
  - nosniff
33
35
  Dataserviceversion:
@@ -37,21 +39,21 @@ http_interactions:
37
39
  X-Powered-By:
38
40
  - ASP.NET
39
41
  Date:
40
- - Sat, 11 Aug 2012 21:36:29 GMT
42
+ - Sun, 26 Apr 2015 16:29:23 GMT
41
43
  body:
42
- encoding: US-ASCII
43
- string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/"
44
+ encoding: UTF-8
45
+ string: <?xml version="1.0" encoding="utf-8"?><entry xml:base="http://10.10.0.17:8989/SampleService/BasicAuth/RubyOData.svc/"
44
46
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
45
47
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
46
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)</id><category
48
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/BasicAuth/RubyOData.svc/Categories(1)</id><category
47
49
  term="RubyODataService.Category" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
48
50
  /><link rel="edit" title="Category" href="Categories(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"
49
51
  type="application/atom+xml;type=feed" title="Products" href="Categories(1)/Products"
50
- /><title /><updated>2012-08-11T21:36:30Z</updated><author><name /></author><content
52
+ /><title /><updated>2015-04-26T16:29:24Z</updated><author><name /></author><content
51
53
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Auth
52
54
  Test Category</d:Name><d:AuditFields m:type="RubyODataService.AuditFields"><d:CreateDate
53
- m:type="Edm.DateTime">2012-08-11T21:36:30.453</d:CreateDate><d:ModifiedDate
54
- m:type="Edm.DateTime">2012-08-11T21:36:30.453</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
55
- http_version: !!null
56
- recorded_at: Sat, 11 Aug 2012 21:36:30 GMT
57
- recorded_with: VCR 2.2.4
55
+ m:type="Edm.DateTime">2015-04-26T16:29:24.16</d:CreateDate><d:ModifiedDate
56
+ m:type="Edm.DateTime">2015-04-26T16:29:24.16</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry>
57
+ http_version:
58
+ recorded_at: Sun, 26 Apr 2015 16:29:24 GMT
59
+ recorded_with: VCR 2.5.0
@@ -2,32 +2,32 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name
5
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products?$orderby=Name
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- Accept:
11
- - ! '*/*; q=0.5, application/xml'
12
- Accept-Encoding:
13
- - gzip, deflate
14
10
  User-Agent:
15
11
  - Ruby
12
+ Accept:
13
+ - "*/*; q=0.5, application/xml"
14
+ Accept-Encoding:
15
+ - gzip,deflate
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: OK
19
+ message: ''
20
20
  headers:
21
21
  Cache-Control:
22
- - no-cache
22
+ - private
23
23
  Content-Length:
24
- - '2706'
24
+ - '2714'
25
25
  Content-Type:
26
26
  - application/atom+xml;type=feed;charset=utf-8
27
27
  Server:
28
- - Microsoft-IIS/7.5
28
+ - Microsoft-IIS/8.0
29
29
  Set-Cookie:
30
- - ASP.NET_SessionId=f4m0q12lgd4twvpgowaich4j; path=/; HttpOnly
30
+ - ASP.NET_SessionId=fdxheq5p1ihklukb1qr503qn; path=/; HttpOnly
31
31
  X-Content-Type-Options:
32
32
  - nosniff
33
33
  Dataserviceversion:
@@ -37,33 +37,33 @@ http_interactions:
37
37
  X-Powered-By:
38
38
  - ASP.NET
39
39
  Date:
40
- - Tue, 07 Aug 2012 21:43:14 GMT
40
+ - Sun, 26 Apr 2015 16:29:24 GMT
41
41
  body:
42
- encoding: US-ASCII
43
- string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
42
+ encoding: UTF-8
43
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
44
44
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
45
45
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
46
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
47
- type="text">Products</title><updated>2012-08-07T21:43:15Z</updated><link rel="self"
48
- title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
46
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products</id><title
47
+ type="text">Products</title><updated>2015-04-26T16:29:25Z</updated><link rel="self"
48
+ title="Products" href="Products" /><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
49
49
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
50
50
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
51
51
  type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
52
- /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
52
+ /><title /><updated>2015-04-26T16:29:25Z</updated><author><name /></author><content
53
53
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
54
- 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
54
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
55
55
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
56
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:14.983</d:CreateDate><d:ModifiedDate
57
- m:type="Edm.DateTime">2012-08-07T21:43:14.983</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
56
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:25.05</d:CreateDate><d:ModifiedDate
57
+ m:type="Edm.DateTime">2015-04-26T16:29:25.05</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(2)</id><category
58
58
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
59
59
  /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
60
60
  type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
61
- /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
61
+ /><title /><updated>2015-04-26T16:29:25Z</updated><author><name /></author><content
62
62
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
63
63
  2</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
64
64
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
65
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:14.983</d:CreateDate><d:ModifiedDate
66
- m:type="Edm.DateTime">2012-08-07T21:43:14.983</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
67
- http_version: !!null
68
- recorded_at: Tue, 07 Aug 2012 21:43:14 GMT
69
- recorded_with: VCR 2.2.4
65
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:25.05</d:CreateDate><d:ModifiedDate
66
+ m:type="Edm.DateTime">2015-04-26T16:29:25.05</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
67
+ http_version:
68
+ recorded_at: Sun, 26 Apr 2015 16:29:25 GMT
69
+ recorded_with: VCR 2.5.0
@@ -2,32 +2,32 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name
5
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products?$orderby=Name
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- Accept:
11
- - ! '*/*; q=0.5, application/xml'
12
- Accept-Encoding:
13
- - gzip, deflate
14
10
  User-Agent:
15
11
  - Ruby
12
+ Accept:
13
+ - "*/*; q=0.5, application/xml"
14
+ Accept-Encoding:
15
+ - gzip,deflate
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: OK
19
+ message: ''
20
20
  headers:
21
21
  Cache-Control:
22
- - no-cache
22
+ - private
23
23
  Content-Length:
24
- - '2702'
24
+ - '2714'
25
25
  Content-Type:
26
26
  - application/atom+xml;type=feed;charset=utf-8
27
27
  Server:
28
- - Microsoft-IIS/7.5
28
+ - Microsoft-IIS/8.0
29
29
  Set-Cookie:
30
- - ASP.NET_SessionId=qafny5qbazxvbtg3q0znew3e; path=/; HttpOnly
30
+ - ASP.NET_SessionId=qdt3u3osyrmligcxgcyujpa5; path=/; HttpOnly
31
31
  X-Content-Type-Options:
32
32
  - nosniff
33
33
  Dataserviceversion:
@@ -37,33 +37,33 @@ http_interactions:
37
37
  X-Powered-By:
38
38
  - ASP.NET
39
39
  Date:
40
- - Tue, 07 Aug 2012 21:43:15 GMT
40
+ - Sun, 26 Apr 2015 16:29:26 GMT
41
41
  body:
42
- encoding: US-ASCII
43
- string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
42
+ encoding: UTF-8
43
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
44
44
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
45
45
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
46
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
47
- type="text">Products</title><updated>2012-08-07T21:43:16Z</updated><link rel="self"
48
- title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
46
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products</id><title
47
+ type="text">Products</title><updated>2015-04-26T16:29:26Z</updated><link rel="self"
48
+ title="Products" href="Products" /><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
49
49
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
50
50
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
51
51
  type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
52
- /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
52
+ /><title /><updated>2015-04-26T16:29:26Z</updated><author><name /></author><content
53
53
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
54
- 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
54
+ 1</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">10.25</d:Price><d:DiscontinuedDate
55
55
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
56
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:CreateDate><d:ModifiedDate
57
- m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(4)</id><category
56
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:26.38</d:CreateDate><d:ModifiedDate
57
+ m:type="Edm.DateTime">2015-04-26T16:29:26.38</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(4)</id><category
58
58
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
59
59
  /><link rel="edit" title="Product" href="Products(4)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
60
60
  type="application/atom+xml;type=entry" title="Category" href="Products(4)/Category"
61
- /><title /><updated>2012-08-07T21:43:16Z</updated><author><name /></author><content
61
+ /><title /><updated>2015-04-26T16:29:26Z</updated><author><name /></author><content
62
62
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">4</d:Id><d:Name>Product
63
- 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">75.50</d:Price><d:DiscontinuedDate
63
+ 4</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">50.00</d:Price><d:DiscontinuedDate
64
64
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">4</d:CategoryId><d:AuditFields
65
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:CreateDate><d:ModifiedDate
66
- m:type="Edm.DateTime">2012-08-07T21:43:16.11</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
67
- http_version: !!null
68
- recorded_at: Tue, 07 Aug 2012 21:43:16 GMT
69
- recorded_with: VCR 2.2.4
65
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:26.38</d:CreateDate><d:ModifiedDate
66
+ m:type="Edm.DateTime">2015-04-26T16:29:26.38</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
67
+ http_version:
68
+ recorded_at: Sun, 26 Apr 2015 16:29:26 GMT
69
+ recorded_with: VCR 2.5.0
@@ -2,32 +2,32 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://win7dev:8989/SampleService/RubyOData.svc/Products?$orderby=Name
5
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/Products?$orderby=Name
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
- Accept:
11
- - ! '*/*; q=0.5, application/xml'
12
- Accept-Encoding:
13
- - gzip, deflate
14
10
  User-Agent:
15
11
  - Ruby
12
+ Accept:
13
+ - "*/*; q=0.5, application/xml"
14
+ Accept-Encoding:
15
+ - gzip,deflate
16
16
  response:
17
17
  status:
18
18
  code: 200
19
- message: OK
19
+ message: ''
20
20
  headers:
21
21
  Cache-Control:
22
- - no-cache
22
+ - private
23
23
  Content-Length:
24
- - '2728'
24
+ - '2735'
25
25
  Content-Type:
26
26
  - application/atom+xml;type=feed;charset=utf-8
27
27
  Server:
28
- - Microsoft-IIS/7.5
28
+ - Microsoft-IIS/8.0
29
29
  Set-Cookie:
30
- - ASP.NET_SessionId=xbi0rweg5uqzhtmxau31f0my; path=/; HttpOnly
30
+ - ASP.NET_SessionId=oydoxso1ufajqrivi1owc1y3; path=/; HttpOnly
31
31
  X-Content-Type-Options:
32
32
  - nosniff
33
33
  Dataserviceversion:
@@ -37,33 +37,33 @@ http_interactions:
37
37
  X-Powered-By:
38
38
  - ASP.NET
39
39
  Date:
40
- - Tue, 07 Aug 2012 21:43:15 GMT
40
+ - Sun, 26 Apr 2015 16:29:25 GMT
41
41
  body:
42
- encoding: US-ASCII
43
- string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://win7dev:8989/SampleService/RubyOData.svc/"
42
+ encoding: UTF-8
43
+ string: <?xml version="1.0" encoding="utf-8"?><feed xml:base="http://10.10.0.17:8989/SampleService/RubyOData.svc/"
44
44
  xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
45
45
  xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss"
46
- xmlns:gml="http://www.opengis.net/gml"><id>http://win7dev:8989/SampleService/RubyOData.svc/Products</id><title
47
- type="text">Products</title><updated>2012-08-07T21:43:15Z</updated><link rel="self"
48
- title="Products" href="Products" /><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(1)</id><category
46
+ xmlns:gml="http://www.opengis.net/gml"><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products</id><title
47
+ type="text">Products</title><updated>2015-04-26T16:29:26Z</updated><link rel="self"
48
+ title="Products" href="Products" /><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(1)</id><category
49
49
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
50
50
  /><link rel="edit" title="Product" href="Products(1)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
51
51
  type="application/atom+xml;type=entry" title="Category" href="Products(1)/Category"
52
- /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
52
+ /><title /><updated>2015-04-26T16:29:26Z</updated><author><name /></author><content
53
53
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">1</d:Id><d:Name>Product
54
- 1 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
54
+ 1 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">25.00</d:Price><d:DiscontinuedDate
55
55
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">1</d:CategoryId><d:AuditFields
56
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:15.453</d:CreateDate><d:ModifiedDate
57
- m:type="Edm.DateTime">2012-08-07T21:43:15.453</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://win7dev:8989/SampleService/RubyOData.svc/Products(2)</id><category
56
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:25.66</d:CreateDate><d:ModifiedDate
57
+ m:type="Edm.DateTime">2015-04-26T16:29:25.66</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry><entry><id>http://10.10.0.17:8989/SampleService/RubyOData.svc/Products(2)</id><category
58
58
  term="RubyODataService.Product" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
59
59
  /><link rel="edit" title="Product" href="Products(2)" /><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"
60
60
  type="application/atom+xml;type=entry" title="Category" href="Products(2)/Category"
61
- /><title /><updated>2012-08-07T21:43:15Z</updated><author><name /></author><content
61
+ /><title /><updated>2015-04-26T16:29:26Z</updated><author><name /></author><content
62
62
  type="application/xml"><m:properties><d:Id m:type="Edm.Int32">2</d:Id><d:Name>Product
63
63
  2 - Updated</d:Name><d:Description>Test Widget</d:Description><d:Price m:type="Edm.Decimal">100.00</d:Price><d:DiscontinuedDate
64
64
  m:type="Edm.DateTime" m:null="true" /><d:CategoryId m:type="Edm.Int32">2</d:CategoryId><d:AuditFields
65
- m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2012-08-07T21:43:15.453</d:CreateDate><d:ModifiedDate
66
- m:type="Edm.DateTime">2012-08-07T21:43:15.453</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
67
- http_version: !!null
68
- recorded_at: Tue, 07 Aug 2012 21:43:15 GMT
69
- recorded_with: VCR 2.2.4
65
+ m:type="RubyODataService.AuditFields"><d:CreateDate m:type="Edm.DateTime">2015-04-26T16:29:25.66</d:CreateDate><d:ModifiedDate
66
+ m:type="Edm.DateTime">2015-04-26T16:29:25.66</d:ModifiedDate><d:CreatedBy>Machinist</d:CreatedBy></d:AuditFields></m:properties></content></entry></feed>
67
+ http_version:
68
+ recorded_at: Sun, 26 Apr 2015 16:29:26 GMT
69
+ recorded_with: VCR 2.5.0
@@ -2,13 +2,13 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://win7dev:8989/SampleService/RubyOData.svc/CleanDatabaseForTesting
5
+ uri: http://10.10.0.17:8989/SampleService/RubyOData.svc/CleanDatabaseForTesting
6
6
  body:
7
7
  encoding: ASCII-8BIT
8
8
  string: ''
9
9
  headers:
10
10
  Accept:
11
- - ! '*/*; q=0.5, application/xml'
11
+ - "*/*; q=0.5, application/xml"
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
14
  Content-Length:
@@ -23,11 +23,11 @@ http_interactions:
23
23
  message: No Content
24
24
  headers:
25
25
  Cache-Control:
26
- - no-cache
26
+ - private
27
27
  Server:
28
- - Microsoft-IIS/7.5
28
+ - Microsoft-IIS/8.0
29
29
  Set-Cookie:
30
- - ASP.NET_SessionId=o4ege2gplbuvzbgrt4ij0bku; path=/; HttpOnly
30
+ - ASP.NET_SessionId=lnczwpi1jb4qmzrinl510zak; path=/; HttpOnly
31
31
  X-Content-Type-Options:
32
32
  - nosniff
33
33
  Dataserviceversion:
@@ -37,10 +37,10 @@ http_interactions:
37
37
  X-Powered-By:
38
38
  - ASP.NET
39
39
  Date:
40
- - Tue, 07 Aug 2012 21:47:39 GMT
40
+ - Sun, 26 Apr 2015 16:30:01 GMT
41
41
  body:
42
- encoding: US-ASCII
42
+ encoding: UTF-8
43
43
  string: ''
44
- http_version: !!null
45
- recorded_at: Tue, 07 Aug 2012 21:47:40 GMT
46
- recorded_with: VCR 2.2.4
44
+ http_version:
45
+ recorded_at: Sun, 26 Apr 2015 16:30:02 GMT
46
+ recorded_with: VCR 2.5.0