ruby_odata 0.1.0 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +7 -2
- data/.simplecov +10 -0
- data/.travis.yml +10 -4
- data/.yardopts +6 -0
- data/CHANGELOG.md +157 -0
- data/Guardfile +14 -0
- data/LICENSE +20 -22
- data/README.md +289 -0
- data/Rakefile +19 -9
- data/features/basic_auth.feature +3 -2
- data/features/batch_request.feature +7 -6
- data/features/cassettes/basic_auth_protected_resource.yml +57 -0
- data/features/cassettes/batch_request_additions.yml +69 -0
- data/features/cassettes/batch_request_deletes.yml +69 -0
- data/features/cassettes/batch_request_updates.yml +69 -0
- data/features/cassettes/clean_database_for_testing.yml +46 -0
- data/features/cassettes/cucumber_tags/basic_auth.yml +297 -0
- data/features/cassettes/cucumber_tags/batch_request.yml +1459 -0
- data/features/cassettes/cucumber_tags/complex_types.yml +326 -0
- data/features/cassettes/cucumber_tags/error_handling.yml +64 -0
- data/features/cassettes/cucumber_tags/query_builder.yml +2025 -0
- data/features/cassettes/cucumber_tags/service.yml +234 -0
- data/features/cassettes/cucumber_tags/service_manage.yml +937 -0
- data/features/cassettes/cucumber_tags/service_methods.yml +647 -0
- data/features/cassettes/cucumber_tags/ssl.yml +203 -0
- data/features/cassettes/cucumber_tags/type_conversion.yml +337 -0
- data/features/cassettes/service_manage_additions.yml +65 -0
- data/features/cassettes/service_manage_deletions.yml +58 -0
- data/features/cassettes/service_manage_deletions_2.yml +58 -0
- data/features/cassettes/unsecured_metadata.yml +89 -0
- data/features/complex_types.feature +4 -3
- data/features/error_handling.feature +13 -0
- data/features/query_builder.feature +30 -9
- data/features/service.feature +4 -3
- data/features/service_manage.feature +6 -5
- data/features/service_methods.feature +3 -2
- data/features/ssl.feature +8 -8
- data/features/step_definitions/service_steps.rb +32 -74
- data/features/support/env.rb +6 -3
- data/features/support/hooks.rb +3 -2
- data/features/support/pickle.rb +29 -18
- data/features/support/vcr.rb +24 -0
- data/features/type_conversion.feature +16 -17
- data/gemfiles/Gemfile.ruby187 +6 -0
- data/lib/ruby_odata.rb +20 -18
- data/lib/ruby_odata/association.rb +7 -6
- data/lib/ruby_odata/class_builder.rb +31 -14
- data/lib/ruby_odata/exceptions.rb +11 -0
- data/lib/ruby_odata/helpers.rb +17 -0
- data/lib/ruby_odata/operation.rb +5 -6
- data/lib/ruby_odata/property_metadata.rb +9 -7
- data/lib/ruby_odata/query_builder.rb +127 -63
- data/lib/ruby_odata/service.rb +265 -147
- data/lib/ruby_odata/version.rb +3 -1
- data/ruby_odata.gemspec +22 -13
- data/spec/fixtures/error_without_message.xml +5 -0
- data/spec/fixtures/int64_ids/edmx_boat_service.xml +19 -0
- data/spec/fixtures/int64_ids/edmx_car_service.xml +21 -0
- data/spec/fixtures/int64_ids/result_boats.xml +26 -0
- data/spec/fixtures/int64_ids/result_cars.xml +28 -0
- data/spec/fixtures/ms_system_center/edmx_ms_system_center.xml +1645 -0
- data/spec/fixtures/ms_system_center/edmx_ms_system_center_v2.xml +2120 -0
- data/spec/fixtures/ms_system_center/hardware_profiles.xml +61 -0
- data/spec/fixtures/ms_system_center/virtual_machines.xml +175 -0
- data/spec/fixtures/ms_system_center/vm_templates.xml +1193 -0
- data/spec/fixtures/nested_expands/edmx_northwind.xml +557 -0
- data/spec/fixtures/nested_expands/northwind_products_category_expands.xml +774 -0
- data/spec/fixtures/sample_service/result_select_categories_expand.xml +268 -0
- data/spec/fixtures/sample_service/result_select_categories_no_property.xml +6 -0
- data/spec/fixtures/sample_service/result_select_categories_travsing_no_expand.xml +6 -0
- data/spec/fixtures/sample_service/result_select_products_name_price.xml +92 -0
- data/spec/property_metadata_spec.rb +10 -10
- data/spec/query_builder_spec.rb +153 -14
- data/spec/revised_service_spec.rb +111 -6
- data/spec/service_spec.rb +389 -85
- data/spec/spec_helper.rb +3 -0
- data/spec/support/sample_service_matcher.rb +15 -0
- data/test/RubyODataService/RubyODataService/App_Data/.gitkeep +0 -0
- data/test/blueprints.rb +15 -9
- data/test/usage_samples/querying.rb +5 -1
- data/test/usage_samples/sample_data.rb +1 -3
- metadata +276 -76
- data/CHANGELOG.rdoc +0 -88
- data/README.rdoc +0 -259
data/spec/spec_helper.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'uri'
|
2
|
+
|
3
|
+
module OData
|
4
|
+
module Support
|
5
|
+
class SampleServiceMatcher
|
6
|
+
def self.call(req1, req2)
|
7
|
+
regexp = /^(https?:\/\/(?:[^@]*@)?)[^:]*(:\d+\/.*$)/i
|
8
|
+
request1 = req1.uri.match(regexp)
|
9
|
+
request2 = req2.uri.match(regexp)
|
10
|
+
|
11
|
+
(request1[1] == request2[1]) && (request1[2] == request2[2])
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
File without changes
|
data/test/blueprints.rb
CHANGED
@@ -1,22 +1,28 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
class AuditFields
|
2
|
+
extend Machinist::Machinable
|
3
|
+
end
|
4
|
+
|
5
|
+
class Product
|
6
|
+
extend Machinist::Machinable
|
7
|
+
end
|
8
|
+
|
9
|
+
class Category
|
10
|
+
extend Machinist::Machinable
|
5
11
|
end
|
6
12
|
|
7
13
|
AuditFields.blueprint do
|
8
|
-
CreatedBy "Machinist"
|
14
|
+
CreatedBy { "Machinist" }
|
9
15
|
end
|
10
16
|
|
11
17
|
Product.blueprint do
|
12
|
-
Name {
|
13
|
-
Description "Test Widget"
|
14
|
-
Price {
|
18
|
+
Name { "Widget #{sn}" }
|
19
|
+
Description { "Test Widget" }
|
20
|
+
Price { ["10.25", "25.00", "50.00", "75.50", "100.00"].sample }
|
15
21
|
Category { Category.make }
|
16
22
|
AuditFields { AuditFields.make }
|
17
23
|
end
|
18
24
|
|
19
25
|
Category.blueprint do
|
20
|
-
Name {
|
26
|
+
Name { "Category #{sn}" }
|
21
27
|
AuditFields { AuditFields.make }
|
22
28
|
end
|
@@ -8,7 +8,11 @@ ns_svc = OData::Service.new "http://#{WEBSERVER}:#{HTTP_PORT_NUMBER}/SampleServi
|
|
8
8
|
puts "Querying for a list of data"
|
9
9
|
svc.Categories
|
10
10
|
categories = svc.execute
|
11
|
-
puts categories.to_json
|
11
|
+
puts categories.to_json
|
12
|
+
|
13
|
+
puts "Querying for a simple count"
|
14
|
+
svc.Categories.count
|
15
|
+
puts svc.execute
|
12
16
|
|
13
17
|
puts "\n\nQuerying for a single result #execute"
|
14
18
|
svc.Categories(1)
|
@@ -1,8 +1,6 @@
|
|
1
1
|
require File.expand_path('../../../lib/ruby_odata', __FILE__)
|
2
2
|
require File.expand_path('../../../features/support/constants', __FILE__)
|
3
|
-
require
|
4
|
-
require 'sham'
|
5
|
-
require 'faker'
|
3
|
+
require "machinist"
|
6
4
|
|
7
5
|
svc = OData::Service.new "http://#{WEBSERVER}:#{HTTP_PORT_NUMBER}/SampleService/RubyOData.svc"
|
8
6
|
svc.CleanDatabaseForTesting #=> Comment this line out if you don't want to clear your test database
|
metadata
CHANGED
@@ -1,137 +1,253 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_odata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Damien White
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-03-26 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: addressable
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.3.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.3.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: i18n
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.6.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.6.0
|
14
41
|
- !ruby/object:Gem::Dependency
|
15
42
|
name: activesupport
|
16
|
-
requirement:
|
17
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
18
44
|
requirements:
|
19
|
-
- -
|
45
|
+
- - ">="
|
20
46
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
47
|
+
version: 3.0.0
|
22
48
|
type: :runtime
|
23
49
|
prerelease: false
|
24
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.0.0
|
25
55
|
- !ruby/object:Gem::Dependency
|
26
56
|
name: rest-client
|
27
|
-
requirement:
|
28
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
29
58
|
requirements:
|
30
|
-
- -
|
59
|
+
- - ">="
|
31
60
|
- !ruby/object:Gem::Version
|
32
61
|
version: 1.5.1
|
33
62
|
type: :runtime
|
34
63
|
prerelease: false
|
35
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.5.1
|
36
69
|
- !ruby/object:Gem::Dependency
|
37
70
|
name: nokogiri
|
38
|
-
requirement:
|
39
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
40
72
|
requirements:
|
41
|
-
- -
|
73
|
+
- - ">="
|
42
74
|
- !ruby/object:Gem::Version
|
43
75
|
version: 1.4.2
|
44
76
|
type: :runtime
|
45
77
|
prerelease: false
|
46
|
-
version_requirements:
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: backports
|
49
|
-
requirement: &70223407770580 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
|
-
- -
|
80
|
+
- - ">="
|
53
81
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
55
|
-
type: :runtime
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *70223407770580
|
82
|
+
version: 1.4.2
|
58
83
|
- !ruby/object:Gem::Dependency
|
59
84
|
name: rake
|
60
|
-
requirement:
|
61
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
62
86
|
requirements:
|
63
|
-
- -
|
87
|
+
- - '='
|
64
88
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0.
|
89
|
+
version: 0.9.2
|
66
90
|
type: :development
|
67
91
|
prerelease: false
|
68
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.9.2
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: rspec
|
71
|
-
requirement:
|
72
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
73
100
|
requirements:
|
74
|
-
- - ~>
|
101
|
+
- - "~>"
|
75
102
|
- !ruby/object:Gem::Version
|
76
|
-
version: 2.
|
103
|
+
version: 2.11.0
|
77
104
|
type: :development
|
78
105
|
prerelease: false
|
79
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.11.0
|
80
111
|
- !ruby/object:Gem::Dependency
|
81
112
|
name: cucumber
|
82
|
-
requirement:
|
83
|
-
none: false
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
84
114
|
requirements:
|
85
|
-
- - ~>
|
115
|
+
- - "~>"
|
86
116
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
117
|
+
version: 1.2.1
|
88
118
|
type: :development
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 1.2.1
|
91
125
|
- !ruby/object:Gem::Dependency
|
92
126
|
name: pickle
|
93
|
-
requirement:
|
94
|
-
none: false
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
95
128
|
requirements:
|
96
|
-
- - ~>
|
129
|
+
- - "~>"
|
97
130
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.4.
|
131
|
+
version: 0.4.11
|
99
132
|
type: :development
|
100
133
|
prerelease: false
|
101
|
-
version_requirements:
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.4.11
|
102
139
|
- !ruby/object:Gem::Dependency
|
103
|
-
name:
|
104
|
-
requirement:
|
105
|
-
none: false
|
140
|
+
name: machinist
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
106
142
|
requirements:
|
107
|
-
- - ~>
|
143
|
+
- - "~>"
|
108
144
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0
|
145
|
+
version: '2.0'
|
110
146
|
type: :development
|
111
147
|
prerelease: false
|
112
|
-
version_requirements:
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '2.0'
|
113
153
|
- !ruby/object:Gem::Dependency
|
114
|
-
name:
|
115
|
-
requirement:
|
116
|
-
none: false
|
154
|
+
name: webmock
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
117
156
|
requirements:
|
118
|
-
- - ~>
|
157
|
+
- - "~>"
|
119
158
|
- !ruby/object:Gem::Version
|
120
|
-
version: 1.0
|
159
|
+
version: 1.11.0
|
121
160
|
type: :development
|
122
161
|
prerelease: false
|
123
|
-
version_requirements:
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.11.0
|
124
167
|
- !ruby/object:Gem::Dependency
|
125
|
-
name:
|
126
|
-
requirement:
|
127
|
-
none: false
|
168
|
+
name: guard
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
128
170
|
requirements:
|
129
|
-
- - ~>
|
171
|
+
- - "~>"
|
130
172
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.
|
173
|
+
version: 1.3.0
|
132
174
|
type: :development
|
133
175
|
prerelease: false
|
134
|
-
version_requirements:
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 1.3.0
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: guard-rspec
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.2.1
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.2.1
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: guard-cucumber
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 1.2.0
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 1.2.0
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: vcr
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 2.5.0
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 2.5.0
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: simplecov
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 0.7.1
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 0.7.1
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: coveralls
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "~>"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 0.6.7
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 0.6.7
|
135
251
|
description: An OData Client Library for Ruby. Use this to interact with OData services
|
136
252
|
email:
|
137
253
|
- damien.white@visoftinc.com
|
@@ -139,18 +255,42 @@ executables: []
|
|
139
255
|
extensions: []
|
140
256
|
extra_rdoc_files: []
|
141
257
|
files:
|
142
|
-
- .
|
143
|
-
- .
|
144
|
-
- .
|
145
|
-
-
|
258
|
+
- ".coveralls.yml"
|
259
|
+
- ".gitignore"
|
260
|
+
- ".rspec"
|
261
|
+
- ".simplecov"
|
262
|
+
- ".travis.yml"
|
263
|
+
- ".yardopts"
|
264
|
+
- CHANGELOG.md
|
146
265
|
- Gemfile
|
266
|
+
- Guardfile
|
147
267
|
- LICENSE
|
148
|
-
- README.
|
268
|
+
- README.md
|
149
269
|
- Rakefile
|
150
270
|
- config/cucumber.yml
|
151
271
|
- features/basic_auth.feature
|
152
272
|
- features/batch_request.feature
|
273
|
+
- features/cassettes/basic_auth_protected_resource.yml
|
274
|
+
- features/cassettes/batch_request_additions.yml
|
275
|
+
- features/cassettes/batch_request_deletes.yml
|
276
|
+
- features/cassettes/batch_request_updates.yml
|
277
|
+
- features/cassettes/clean_database_for_testing.yml
|
278
|
+
- features/cassettes/cucumber_tags/basic_auth.yml
|
279
|
+
- features/cassettes/cucumber_tags/batch_request.yml
|
280
|
+
- features/cassettes/cucumber_tags/complex_types.yml
|
281
|
+
- features/cassettes/cucumber_tags/error_handling.yml
|
282
|
+
- features/cassettes/cucumber_tags/query_builder.yml
|
283
|
+
- features/cassettes/cucumber_tags/service.yml
|
284
|
+
- features/cassettes/cucumber_tags/service_manage.yml
|
285
|
+
- features/cassettes/cucumber_tags/service_methods.yml
|
286
|
+
- features/cassettes/cucumber_tags/ssl.yml
|
287
|
+
- features/cassettes/cucumber_tags/type_conversion.yml
|
288
|
+
- features/cassettes/service_manage_additions.yml
|
289
|
+
- features/cassettes/service_manage_deletions.yml
|
290
|
+
- features/cassettes/service_manage_deletions_2.yml
|
291
|
+
- features/cassettes/unsecured_metadata.yml
|
153
292
|
- features/complex_types.feature
|
293
|
+
- features/error_handling.feature
|
154
294
|
- features/query_builder.feature
|
155
295
|
- features/service.feature
|
156
296
|
- features/service_manage.feature
|
@@ -163,10 +303,13 @@ files:
|
|
163
303
|
- features/support/env.rb
|
164
304
|
- features/support/hooks.rb
|
165
305
|
- features/support/pickle.rb
|
306
|
+
- features/support/vcr.rb
|
166
307
|
- features/type_conversion.feature
|
308
|
+
- gemfiles/Gemfile.ruby187
|
167
309
|
- lib/ruby_odata.rb
|
168
310
|
- lib/ruby_odata/association.rb
|
169
311
|
- lib/ruby_odata/class_builder.rb
|
312
|
+
- lib/ruby_odata/exceptions.rb
|
170
313
|
- lib/ruby_odata/helpers.rb
|
171
314
|
- lib/ruby_odata/operation.rb
|
172
315
|
- lib/ruby_odata/property_metadata.rb
|
@@ -178,12 +321,24 @@ files:
|
|
178
321
|
- spec/class_builder_spec.rb
|
179
322
|
- spec/fixtures/edmx_empty.xml
|
180
323
|
- spec/fixtures/edmx_lowercase.xml
|
324
|
+
- spec/fixtures/error_without_message.xml
|
181
325
|
- spec/fixtures/feed_customization/edmx_feed_customization.xml
|
182
326
|
- spec/fixtures/feed_customization/result_feed_customization_categories_expand.xml
|
183
327
|
- spec/fixtures/feed_customization/result_feed_customization_products_expand.xml
|
184
328
|
- spec/fixtures/inheritance/edmx_pluralsight.xml
|
185
329
|
- spec/fixtures/inheritance/result_pluralsight_courses.xml
|
330
|
+
- spec/fixtures/int64_ids/edmx_boat_service.xml
|
331
|
+
- spec/fixtures/int64_ids/edmx_car_service.xml
|
332
|
+
- spec/fixtures/int64_ids/result_boats.xml
|
333
|
+
- spec/fixtures/int64_ids/result_cars.xml
|
186
334
|
- spec/fixtures/links/result_links_query.xml
|
335
|
+
- spec/fixtures/ms_system_center/edmx_ms_system_center.xml
|
336
|
+
- spec/fixtures/ms_system_center/edmx_ms_system_center_v2.xml
|
337
|
+
- spec/fixtures/ms_system_center/hardware_profiles.xml
|
338
|
+
- spec/fixtures/ms_system_center/virtual_machines.xml
|
339
|
+
- spec/fixtures/ms_system_center/vm_templates.xml
|
340
|
+
- spec/fixtures/nested_expands/edmx_northwind.xml
|
341
|
+
- spec/fixtures/nested_expands/northwind_products_category_expands.xml
|
187
342
|
- spec/fixtures/partial/partial_feed_metadata.xml
|
188
343
|
- spec/fixtures/partial/partial_feed_part_1.xml
|
189
344
|
- spec/fixtures/partial/partial_feed_part_2.xml
|
@@ -194,6 +349,10 @@ files:
|
|
194
349
|
- spec/fixtures/sample_service/result_entity_single_category_web_get.xml
|
195
350
|
- spec/fixtures/sample_service/result_first_category_id.xml
|
196
351
|
- spec/fixtures/sample_service/result_multiple_category_products.xml
|
352
|
+
- spec/fixtures/sample_service/result_select_categories_expand.xml
|
353
|
+
- spec/fixtures/sample_service/result_select_categories_no_property.xml
|
354
|
+
- spec/fixtures/sample_service/result_select_categories_travsing_no_expand.xml
|
355
|
+
- spec/fixtures/sample_service/result_select_products_name_price.xml
|
197
356
|
- spec/fixtures/sample_service/result_single_category.xml
|
198
357
|
- spec/fixtures/sample_service/result_single_product.xml
|
199
358
|
- spec/fixtures/sample_service/result_single_product_not_found.xml
|
@@ -206,7 +365,9 @@ files:
|
|
206
365
|
- spec/spec_helper.rb
|
207
366
|
- spec/support/describe_private.rb
|
208
367
|
- spec/support/element_helpers.rb
|
368
|
+
- spec/support/sample_service_matcher.rb
|
209
369
|
- test/RubyODataService/RubyODataService.sln
|
370
|
+
- test/RubyODataService/RubyODataService/App_Data/.gitkeep
|
210
371
|
- test/RubyODataService/RubyODataService/App_Start/EntityFramework.SqlServerCompact.cs
|
211
372
|
- test/RubyODataService/RubyODataService/BasicAuth/RubyOData.svc
|
212
373
|
- test/RubyODataService/RubyODataService/BasicAuth/RubyOData.svc.cs
|
@@ -314,33 +475,53 @@ files:
|
|
314
475
|
- test/usage_samples/reflection.rb
|
315
476
|
- test/usage_samples/sample_data.rb
|
316
477
|
homepage: http://github.com/visoft/ruby_odata
|
317
|
-
licenses:
|
478
|
+
licenses:
|
479
|
+
- MIT
|
480
|
+
metadata: {}
|
318
481
|
post_install_message:
|
319
482
|
rdoc_options: []
|
320
483
|
require_paths:
|
321
484
|
- lib
|
322
485
|
required_ruby_version: !ruby/object:Gem::Requirement
|
323
|
-
none: false
|
324
486
|
requirements:
|
325
|
-
- -
|
487
|
+
- - ">="
|
326
488
|
- !ruby/object:Gem::Version
|
327
|
-
version:
|
489
|
+
version: 1.9.3
|
328
490
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
329
|
-
none: false
|
330
491
|
requirements:
|
331
|
-
- -
|
492
|
+
- - ">="
|
332
493
|
- !ruby/object:Gem::Version
|
333
494
|
version: '0'
|
334
495
|
requirements: []
|
335
496
|
rubyforge_project: ruby-odata
|
336
|
-
rubygems_version:
|
497
|
+
rubygems_version: 2.2.2
|
337
498
|
signing_key:
|
338
|
-
specification_version:
|
499
|
+
specification_version: 4
|
339
500
|
summary: Ruby consumer of OData services.
|
340
501
|
test_files:
|
341
502
|
- features/basic_auth.feature
|
342
503
|
- features/batch_request.feature
|
504
|
+
- features/cassettes/basic_auth_protected_resource.yml
|
505
|
+
- features/cassettes/batch_request_additions.yml
|
506
|
+
- features/cassettes/batch_request_deletes.yml
|
507
|
+
- features/cassettes/batch_request_updates.yml
|
508
|
+
- features/cassettes/clean_database_for_testing.yml
|
509
|
+
- features/cassettes/cucumber_tags/basic_auth.yml
|
510
|
+
- features/cassettes/cucumber_tags/batch_request.yml
|
511
|
+
- features/cassettes/cucumber_tags/complex_types.yml
|
512
|
+
- features/cassettes/cucumber_tags/error_handling.yml
|
513
|
+
- features/cassettes/cucumber_tags/query_builder.yml
|
514
|
+
- features/cassettes/cucumber_tags/service.yml
|
515
|
+
- features/cassettes/cucumber_tags/service_manage.yml
|
516
|
+
- features/cassettes/cucumber_tags/service_methods.yml
|
517
|
+
- features/cassettes/cucumber_tags/ssl.yml
|
518
|
+
- features/cassettes/cucumber_tags/type_conversion.yml
|
519
|
+
- features/cassettes/service_manage_additions.yml
|
520
|
+
- features/cassettes/service_manage_deletions.yml
|
521
|
+
- features/cassettes/service_manage_deletions_2.yml
|
522
|
+
- features/cassettes/unsecured_metadata.yml
|
343
523
|
- features/complex_types.feature
|
524
|
+
- features/error_handling.feature
|
344
525
|
- features/query_builder.feature
|
345
526
|
- features/service.feature
|
346
527
|
- features/service_manage.feature
|
@@ -353,17 +534,30 @@ test_files:
|
|
353
534
|
- features/support/env.rb
|
354
535
|
- features/support/hooks.rb
|
355
536
|
- features/support/pickle.rb
|
537
|
+
- features/support/vcr.rb
|
356
538
|
- features/type_conversion.feature
|
357
539
|
- spec/association_spec.rb
|
358
540
|
- spec/class_builder_spec.rb
|
359
541
|
- spec/fixtures/edmx_empty.xml
|
360
542
|
- spec/fixtures/edmx_lowercase.xml
|
543
|
+
- spec/fixtures/error_without_message.xml
|
361
544
|
- spec/fixtures/feed_customization/edmx_feed_customization.xml
|
362
545
|
- spec/fixtures/feed_customization/result_feed_customization_categories_expand.xml
|
363
546
|
- spec/fixtures/feed_customization/result_feed_customization_products_expand.xml
|
364
547
|
- spec/fixtures/inheritance/edmx_pluralsight.xml
|
365
548
|
- spec/fixtures/inheritance/result_pluralsight_courses.xml
|
549
|
+
- spec/fixtures/int64_ids/edmx_boat_service.xml
|
550
|
+
- spec/fixtures/int64_ids/edmx_car_service.xml
|
551
|
+
- spec/fixtures/int64_ids/result_boats.xml
|
552
|
+
- spec/fixtures/int64_ids/result_cars.xml
|
366
553
|
- spec/fixtures/links/result_links_query.xml
|
554
|
+
- spec/fixtures/ms_system_center/edmx_ms_system_center.xml
|
555
|
+
- spec/fixtures/ms_system_center/edmx_ms_system_center_v2.xml
|
556
|
+
- spec/fixtures/ms_system_center/hardware_profiles.xml
|
557
|
+
- spec/fixtures/ms_system_center/virtual_machines.xml
|
558
|
+
- spec/fixtures/ms_system_center/vm_templates.xml
|
559
|
+
- spec/fixtures/nested_expands/edmx_northwind.xml
|
560
|
+
- spec/fixtures/nested_expands/northwind_products_category_expands.xml
|
367
561
|
- spec/fixtures/partial/partial_feed_metadata.xml
|
368
562
|
- spec/fixtures/partial/partial_feed_part_1.xml
|
369
563
|
- spec/fixtures/partial/partial_feed_part_2.xml
|
@@ -374,6 +568,10 @@ test_files:
|
|
374
568
|
- spec/fixtures/sample_service/result_entity_single_category_web_get.xml
|
375
569
|
- spec/fixtures/sample_service/result_first_category_id.xml
|
376
570
|
- spec/fixtures/sample_service/result_multiple_category_products.xml
|
571
|
+
- spec/fixtures/sample_service/result_select_categories_expand.xml
|
572
|
+
- spec/fixtures/sample_service/result_select_categories_no_property.xml
|
573
|
+
- spec/fixtures/sample_service/result_select_categories_travsing_no_expand.xml
|
574
|
+
- spec/fixtures/sample_service/result_select_products_name_price.xml
|
377
575
|
- spec/fixtures/sample_service/result_single_category.xml
|
378
576
|
- spec/fixtures/sample_service/result_single_product.xml
|
379
577
|
- spec/fixtures/sample_service/result_single_product_not_found.xml
|
@@ -386,7 +584,9 @@ test_files:
|
|
386
584
|
- spec/spec_helper.rb
|
387
585
|
- spec/support/describe_private.rb
|
388
586
|
- spec/support/element_helpers.rb
|
587
|
+
- spec/support/sample_service_matcher.rb
|
389
588
|
- test/RubyODataService/RubyODataService.sln
|
589
|
+
- test/RubyODataService/RubyODataService/App_Data/.gitkeep
|
390
590
|
- test/RubyODataService/RubyODataService/App_Start/EntityFramework.SqlServerCompact.cs
|
391
591
|
- test/RubyODataService/RubyODataService/BasicAuth/RubyOData.svc
|
392
592
|
- test/RubyODataService/RubyODataService/BasicAuth/RubyOData.svc.cs
|