ruby_odata 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/.rspec +1 -0
- data/CHANGELOG.rdoc +12 -1
- data/README.rdoc +26 -14
- data/Rakefile +15 -0
- data/features/ssl.feature +21 -0
- data/features/step_definitions/service_steps.rb +8 -0
- data/lib/ruby_odata.rb +0 -1
- data/lib/ruby_odata/class_builder.rb +1 -1
- data/lib/ruby_odata/service.rb +28 -31
- data/lib/ruby_odata/version.rb +1 -1
- data/ruby_odata.gemspec +5 -5
- data/spec/class_builder_spec.rb +13 -0
- data/spec/fixtures/edmx_empty.xml +7 -0
- data/spec/fixtures/edmx_lowercase.xml +20 -0
- data/spec/service_spec.rb +43 -0
- data/spec/spec_helper.rb +2 -0
- data/test/applicationhost.config.template +957 -0
- data/test/iisExpress x64.bat +7 -1
- data/test/iisExpress x86.bat +7 -1
- data/test/setpath.rb +3 -0
- metadata +42 -23
data/test/iisExpress x64.bat
CHANGED
@@ -1 +1,7 @@
|
|
1
|
-
|
1
|
+
echo off
|
2
|
+
rem IIS applicationhost.config doesn't seem to process enviroment variables, so we cant use one
|
3
|
+
rem for our service path. A hack, but bust out ruby and manually replace the %SAMPLE_SERVICE_DIR%
|
4
|
+
rem marker in the virtual directory path.
|
5
|
+
ruby setpath.rb
|
6
|
+
"%ProgramFiles(x86)%\iis express\iisexpress" /config:".\applicationhost.config"
|
7
|
+
|
data/test/iisExpress x86.bat
CHANGED
@@ -1 +1,7 @@
|
|
1
|
-
|
1
|
+
echo off
|
2
|
+
rem IIS applicationhost.config doesn't seem to process enviroment variables, so we cant use one
|
3
|
+
rem for our service path. A hack, but bust out ruby and manually replace the %SAMPLE_SERVICE_DIR%
|
4
|
+
rem marker in the virtual directory path.
|
5
|
+
ruby setpath.rb
|
6
|
+
"%ProgramFiles%\iis express\iisexpress" /config:".\applicationhost.config"
|
7
|
+
|
data/test/setpath.rb
ADDED
@@ -0,0 +1,3 @@
|
|
1
|
+
# Open template config file and write in current directory to virtual path
|
2
|
+
puts "Replacing %SAMPLE_SERVICE_DIR% with #{Dir.pwd}\\SampleService"
|
3
|
+
File.open("applicationhost.config", "w") {|file| file.puts File.read("applicationhost.config.template").gsub("%SAMPLE_SERVICE_DIR%", "#{Dir.pwd.gsub("\/", "\\")}\\SampleService" ) }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_odata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 9
|
10
|
+
version: 0.0.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Damien White
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-08-25 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -72,12 +72,14 @@ dependencies:
|
|
72
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
hash:
|
77
|
+
hash: 27
|
78
78
|
segments:
|
79
|
+
- 2
|
80
|
+
- 5
|
79
81
|
- 0
|
80
|
-
version:
|
82
|
+
version: 2.5.0
|
81
83
|
type: :development
|
82
84
|
version_requirements: *id004
|
83
85
|
- !ruby/object:Gem::Dependency
|
@@ -86,54 +88,62 @@ dependencies:
|
|
86
88
|
requirement: &id005 !ruby/object:Gem::Requirement
|
87
89
|
none: false
|
88
90
|
requirements:
|
89
|
-
- -
|
91
|
+
- - ~>
|
90
92
|
- !ruby/object:Gem::Version
|
91
|
-
hash:
|
93
|
+
hash: 51
|
92
94
|
segments:
|
93
95
|
- 0
|
94
|
-
|
96
|
+
- 10
|
97
|
+
- 2
|
98
|
+
version: 0.10.2
|
95
99
|
type: :development
|
96
100
|
version_requirements: *id005
|
97
101
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
102
|
+
name: faker
|
99
103
|
prerelease: false
|
100
104
|
requirement: &id006 !ruby/object:Gem::Requirement
|
101
105
|
none: false
|
102
106
|
requirements:
|
103
|
-
- -
|
107
|
+
- - ~>
|
104
108
|
- !ruby/object:Gem::Version
|
105
|
-
hash:
|
109
|
+
hash: 49
|
106
110
|
segments:
|
107
111
|
- 0
|
108
|
-
|
112
|
+
- 9
|
113
|
+
- 5
|
114
|
+
version: 0.9.5
|
109
115
|
type: :development
|
110
116
|
version_requirements: *id006
|
111
117
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
118
|
+
name: machinist
|
113
119
|
prerelease: false
|
114
120
|
requirement: &id007 !ruby/object:Gem::Requirement
|
115
121
|
none: false
|
116
122
|
requirements:
|
117
|
-
- -
|
123
|
+
- - ~>
|
118
124
|
- !ruby/object:Gem::Version
|
119
|
-
hash:
|
125
|
+
hash: 27
|
120
126
|
segments:
|
127
|
+
- 1
|
121
128
|
- 0
|
122
|
-
|
129
|
+
- 6
|
130
|
+
version: 1.0.6
|
123
131
|
type: :development
|
124
132
|
version_requirements: *id007
|
125
133
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
134
|
+
name: webmock
|
127
135
|
prerelease: false
|
128
136
|
requirement: &id008 !ruby/object:Gem::Requirement
|
129
137
|
none: false
|
130
138
|
requirements:
|
131
|
-
- -
|
139
|
+
- - ~>
|
132
140
|
- !ruby/object:Gem::Version
|
133
|
-
hash:
|
141
|
+
hash: 11
|
134
142
|
segments:
|
135
|
-
-
|
136
|
-
|
143
|
+
- 1
|
144
|
+
- 6
|
145
|
+
- 2
|
146
|
+
version: 1.6.2
|
137
147
|
type: :development
|
138
148
|
version_requirements: *id008
|
139
149
|
description: An OData Client Library for Ruby. Use this to interact with OData services
|
@@ -147,6 +157,7 @@ extra_rdoc_files: []
|
|
147
157
|
|
148
158
|
files:
|
149
159
|
- .gitignore
|
160
|
+
- .rspec
|
150
161
|
- CHANGELOG.rdoc
|
151
162
|
- Gemfile
|
152
163
|
- LICENSE
|
@@ -159,6 +170,7 @@ files:
|
|
159
170
|
- features/query_builder.feature
|
160
171
|
- features/service.feature
|
161
172
|
- features/service_manage.feature
|
173
|
+
- features/ssl.feature
|
162
174
|
- features/step_definitions/service_steps.rb
|
163
175
|
- features/support/env.rb
|
164
176
|
- features/support/hooks.rb
|
@@ -170,6 +182,11 @@ files:
|
|
170
182
|
- lib/ruby_odata/service.rb
|
171
183
|
- lib/ruby_odata/version.rb
|
172
184
|
- ruby_odata.gemspec
|
185
|
+
- spec/class_builder_spec.rb
|
186
|
+
- spec/fixtures/edmx_empty.xml
|
187
|
+
- spec/fixtures/edmx_lowercase.xml
|
188
|
+
- spec/service_spec.rb
|
189
|
+
- spec/spec_helper.rb
|
173
190
|
- test/Cassini x64.bat
|
174
191
|
- test/Cassini x86.bat
|
175
192
|
- test/SampleService/App_Code/AuditFields.cs
|
@@ -182,9 +199,11 @@ files:
|
|
182
199
|
- test/SampleService/BasicAuth/Entities.svc
|
183
200
|
- test/SampleService/Entities.svc
|
184
201
|
- test/SampleService/web.config
|
202
|
+
- test/applicationhost.config.template
|
185
203
|
- test/blueprints.rb
|
186
204
|
- test/iisExpress x64.bat
|
187
205
|
- test/iisExpress x86.bat
|
206
|
+
- test/setpath.rb
|
188
207
|
has_rdoc: true
|
189
208
|
homepage: http://github.com/visoft/ruby_odata
|
190
209
|
licenses: []
|