wrest 1.0.0.beta2-universal-java-1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +59 -0
- data/LICENCE +7 -0
- data/README.rdoc +127 -0
- data/bin/wrest +3 -0
- data/bin/wrest_shell.rb +21 -0
- data/lib/wrest.rb +101 -0
- data/lib/wrest.rbc +1900 -0
- data/lib/wrest/components.rb +20 -0
- data/lib/wrest/components.rbc +217 -0
- data/lib/wrest/components/container.rb +185 -0
- data/lib/wrest/components/container.rbc +2466 -0
- data/lib/wrest/components/container/alias_accessors.rb +66 -0
- data/lib/wrest/components/container/alias_accessors.rbc +905 -0
- data/lib/wrest/components/container/typecaster.rb +127 -0
- data/lib/wrest/components/container/typecaster.rbc +1985 -0
- data/lib/wrest/components/mutators.rb +39 -0
- data/lib/wrest/components/mutators.rbc +650 -0
- data/lib/wrest/components/mutators/base.rb +56 -0
- data/lib/wrest/components/mutators/base.rbc +702 -0
- data/lib/wrest/components/mutators/camel_to_snake_case.rb +22 -0
- data/lib/wrest/components/mutators/camel_to_snake_case.rbc +360 -0
- data/lib/wrest/components/mutators/xml_mini_type_caster.rb +43 -0
- data/lib/wrest/components/mutators/xml_mini_type_caster.rbc +679 -0
- data/lib/wrest/components/mutators/xml_simple_type_caster.rb +37 -0
- data/lib/wrest/components/mutators/xml_simple_type_caster.rbc +559 -0
- data/lib/wrest/components/translators.rb +28 -0
- data/lib/wrest/components/translators.rbc +517 -0
- data/lib/wrest/components/translators/content_types.rb +20 -0
- data/lib/wrest/components/translators/content_types.rbc +339 -0
- data/lib/wrest/components/translators/json.rb +25 -0
- data/lib/wrest/components/translators/json.rbc +462 -0
- data/lib/wrest/components/translators/xml.rb +24 -0
- data/lib/wrest/components/translators/xml.rbc +457 -0
- data/lib/wrest/core_ext/hash.rb +5 -0
- data/lib/wrest/core_ext/hash.rbc +182 -0
- data/lib/wrest/core_ext/hash/conversions.rb +44 -0
- data/lib/wrest/core_ext/hash/conversions.rbc +501 -0
- data/lib/wrest/core_ext/string.rb +5 -0
- data/lib/wrest/core_ext/string.rbc +182 -0
- data/lib/wrest/core_ext/string/conversions.rb +23 -0
- data/lib/wrest/core_ext/string/conversions.rbc +471 -0
- data/lib/wrest/curl.rb +49 -0
- data/lib/wrest/curl.rbc +704 -0
- data/lib/wrest/curl/delete.rb +23 -0
- data/lib/wrest/curl/get.rb +23 -0
- data/lib/wrest/curl/options.rb +16 -0
- data/lib/wrest/curl/post.rb +23 -0
- data/lib/wrest/curl/put.rb +23 -0
- data/lib/wrest/curl/request.rb +97 -0
- data/lib/wrest/curl/response.rb +71 -0
- data/lib/wrest/curl/session.rb +57 -0
- data/lib/wrest/exceptions.rb +33 -0
- data/lib/wrest/exceptions.rbc +312 -0
- data/lib/wrest/http_shared.rb +23 -0
- data/lib/wrest/http_shared.rbc +279 -0
- data/lib/wrest/http_shared/headers.rb +343 -0
- data/lib/wrest/http_shared/headers.rbc +353 -0
- data/lib/wrest/http_shared/standard_headers.rb +21 -0
- data/lib/wrest/http_shared/standard_headers.rbc +336 -0
- data/lib/wrest/http_shared/standard_tokens.rb +18 -0
- data/lib/wrest/http_shared/standard_tokens.rbc +316 -0
- data/lib/wrest/multipart.rb +52 -0
- data/lib/wrest/native.rb +33 -0
- data/lib/wrest/native.rbc +513 -0
- data/lib/wrest/native/connection_factory.rb +23 -0
- data/lib/wrest/native/connection_factory.rbc +445 -0
- data/lib/wrest/native/delete.rb +23 -0
- data/lib/wrest/native/delete.rbc +371 -0
- data/lib/wrest/native/get.rb +51 -0
- data/lib/wrest/native/get.rbc +855 -0
- data/lib/wrest/native/options.rb +23 -0
- data/lib/wrest/native/options.rbc +347 -0
- data/lib/wrest/native/post.rb +23 -0
- data/lib/wrest/native/post.rbc +388 -0
- data/lib/wrest/native/post_multipart.rb +32 -0
- data/lib/wrest/native/put.rb +23 -0
- data/lib/wrest/native/put.rbc +388 -0
- data/lib/wrest/native/put_multipart.rb +32 -0
- data/lib/wrest/native/redirection.rb +38 -0
- data/lib/wrest/native/redirection.rbc +520 -0
- data/lib/wrest/native/request.rb +94 -0
- data/lib/wrest/native/request.rbc +1675 -0
- data/lib/wrest/native/response.rb +120 -0
- data/lib/wrest/native/response.rbc +2150 -0
- data/lib/wrest/native/session.rb +57 -0
- data/lib/wrest/native/session.rbc +1372 -0
- data/lib/wrest/resource.rb +18 -0
- data/lib/wrest/resource.rbc +163 -0
- data/lib/wrest/resource/base.rb +99 -0
- data/lib/wrest/resource/base.rbc +2115 -0
- data/lib/wrest/resource/collection.rb +12 -0
- data/lib/wrest/resource/state.rb +6 -0
- data/lib/wrest/test.rb +1 -0
- data/lib/wrest/test/request_patches.rb +5 -0
- data/lib/wrest/uri.rb +160 -0
- data/lib/wrest/uri.rbc +2599 -0
- data/lib/wrest/uri_template.rb +49 -0
- data/lib/wrest/uri_template.rbc +505 -0
- data/lib/wrest/version.rb +23 -0
- data/lib/wrest/version.rbc +372 -0
- metadata +231 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
# Copyright 2009 Sidu Ponnappa
|
2
|
+
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at Http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
# Unless required by applicable law or agreed to in writing, software distributed under the License
|
7
|
+
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
8
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
9
|
+
|
10
|
+
module Wrest
|
11
|
+
module HttpShared
|
12
|
+
module StandardTokens
|
13
|
+
Close = 'close'
|
14
|
+
KeepAlive = 'keep-alive'
|
15
|
+
FormEncoded = 'application/x-www-form-urlencoded'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,316 @@
|
|
1
|
+
!RBIX
|
2
|
+
0
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
28
|
13
|
+
99
|
14
|
+
7
|
15
|
+
0
|
16
|
+
65
|
17
|
+
49
|
18
|
+
1
|
19
|
+
2
|
20
|
+
13
|
21
|
+
99
|
22
|
+
12
|
23
|
+
7
|
24
|
+
2
|
25
|
+
12
|
26
|
+
7
|
27
|
+
3
|
28
|
+
12
|
29
|
+
65
|
30
|
+
12
|
31
|
+
49
|
32
|
+
4
|
33
|
+
4
|
34
|
+
15
|
35
|
+
49
|
36
|
+
2
|
37
|
+
0
|
38
|
+
15
|
39
|
+
2
|
40
|
+
11
|
41
|
+
I
|
42
|
+
6
|
43
|
+
I
|
44
|
+
0
|
45
|
+
I
|
46
|
+
0
|
47
|
+
I
|
48
|
+
0
|
49
|
+
n
|
50
|
+
p
|
51
|
+
5
|
52
|
+
x
|
53
|
+
5
|
54
|
+
Wrest
|
55
|
+
x
|
56
|
+
11
|
57
|
+
open_module
|
58
|
+
x
|
59
|
+
15
|
60
|
+
__module_init__
|
61
|
+
M
|
62
|
+
1
|
63
|
+
n
|
64
|
+
n
|
65
|
+
x
|
66
|
+
5
|
67
|
+
Wrest
|
68
|
+
i
|
69
|
+
28
|
70
|
+
5
|
71
|
+
66
|
72
|
+
99
|
73
|
+
7
|
74
|
+
0
|
75
|
+
65
|
76
|
+
49
|
77
|
+
1
|
78
|
+
2
|
79
|
+
13
|
80
|
+
99
|
81
|
+
12
|
82
|
+
7
|
83
|
+
2
|
84
|
+
12
|
85
|
+
7
|
86
|
+
3
|
87
|
+
12
|
88
|
+
65
|
89
|
+
12
|
90
|
+
49
|
91
|
+
4
|
92
|
+
4
|
93
|
+
15
|
94
|
+
49
|
95
|
+
2
|
96
|
+
0
|
97
|
+
11
|
98
|
+
I
|
99
|
+
6
|
100
|
+
I
|
101
|
+
0
|
102
|
+
I
|
103
|
+
0
|
104
|
+
I
|
105
|
+
0
|
106
|
+
n
|
107
|
+
p
|
108
|
+
5
|
109
|
+
x
|
110
|
+
10
|
111
|
+
HttpShared
|
112
|
+
x
|
113
|
+
11
|
114
|
+
open_module
|
115
|
+
x
|
116
|
+
15
|
117
|
+
__module_init__
|
118
|
+
M
|
119
|
+
1
|
120
|
+
n
|
121
|
+
n
|
122
|
+
x
|
123
|
+
10
|
124
|
+
HttpShared
|
125
|
+
i
|
126
|
+
28
|
127
|
+
5
|
128
|
+
66
|
129
|
+
99
|
130
|
+
7
|
131
|
+
0
|
132
|
+
65
|
133
|
+
49
|
134
|
+
1
|
135
|
+
2
|
136
|
+
13
|
137
|
+
99
|
138
|
+
12
|
139
|
+
7
|
140
|
+
2
|
141
|
+
12
|
142
|
+
7
|
143
|
+
3
|
144
|
+
12
|
145
|
+
65
|
146
|
+
12
|
147
|
+
49
|
148
|
+
4
|
149
|
+
4
|
150
|
+
15
|
151
|
+
49
|
152
|
+
2
|
153
|
+
0
|
154
|
+
11
|
155
|
+
I
|
156
|
+
6
|
157
|
+
I
|
158
|
+
0
|
159
|
+
I
|
160
|
+
0
|
161
|
+
I
|
162
|
+
0
|
163
|
+
n
|
164
|
+
p
|
165
|
+
5
|
166
|
+
x
|
167
|
+
14
|
168
|
+
StandardTokens
|
169
|
+
x
|
170
|
+
11
|
171
|
+
open_module
|
172
|
+
x
|
173
|
+
15
|
174
|
+
__module_init__
|
175
|
+
M
|
176
|
+
1
|
177
|
+
n
|
178
|
+
n
|
179
|
+
x
|
180
|
+
14
|
181
|
+
StandardTokens
|
182
|
+
i
|
183
|
+
32
|
184
|
+
5
|
185
|
+
66
|
186
|
+
65
|
187
|
+
7
|
188
|
+
0
|
189
|
+
7
|
190
|
+
1
|
191
|
+
64
|
192
|
+
49
|
193
|
+
2
|
194
|
+
2
|
195
|
+
15
|
196
|
+
65
|
197
|
+
7
|
198
|
+
3
|
199
|
+
7
|
200
|
+
4
|
201
|
+
64
|
202
|
+
49
|
203
|
+
2
|
204
|
+
2
|
205
|
+
15
|
206
|
+
65
|
207
|
+
7
|
208
|
+
5
|
209
|
+
7
|
210
|
+
6
|
211
|
+
64
|
212
|
+
49
|
213
|
+
2
|
214
|
+
2
|
215
|
+
11
|
216
|
+
I
|
217
|
+
3
|
218
|
+
I
|
219
|
+
0
|
220
|
+
I
|
221
|
+
0
|
222
|
+
I
|
223
|
+
0
|
224
|
+
n
|
225
|
+
p
|
226
|
+
7
|
227
|
+
x
|
228
|
+
5
|
229
|
+
Close
|
230
|
+
s
|
231
|
+
5
|
232
|
+
close
|
233
|
+
x
|
234
|
+
9
|
235
|
+
const_set
|
236
|
+
x
|
237
|
+
9
|
238
|
+
KeepAlive
|
239
|
+
s
|
240
|
+
10
|
241
|
+
keep-alive
|
242
|
+
x
|
243
|
+
11
|
244
|
+
FormEncoded
|
245
|
+
s
|
246
|
+
33
|
247
|
+
application/x-www-form-urlencoded
|
248
|
+
p
|
249
|
+
7
|
250
|
+
I
|
251
|
+
2
|
252
|
+
I
|
253
|
+
d
|
254
|
+
I
|
255
|
+
c
|
256
|
+
I
|
257
|
+
e
|
258
|
+
I
|
259
|
+
16
|
260
|
+
I
|
261
|
+
f
|
262
|
+
I
|
263
|
+
20
|
264
|
+
x
|
265
|
+
63
|
266
|
+
/Users/sidu/Work/wrest/lib/wrest/http_shared/standard_tokens.rb
|
267
|
+
p
|
268
|
+
0
|
269
|
+
x
|
270
|
+
13
|
271
|
+
attach_method
|
272
|
+
p
|
273
|
+
3
|
274
|
+
I
|
275
|
+
2
|
276
|
+
I
|
277
|
+
c
|
278
|
+
I
|
279
|
+
1c
|
280
|
+
x
|
281
|
+
63
|
282
|
+
/Users/sidu/Work/wrest/lib/wrest/http_shared/standard_tokens.rb
|
283
|
+
p
|
284
|
+
0
|
285
|
+
x
|
286
|
+
13
|
287
|
+
attach_method
|
288
|
+
p
|
289
|
+
3
|
290
|
+
I
|
291
|
+
2
|
292
|
+
I
|
293
|
+
b
|
294
|
+
I
|
295
|
+
1c
|
296
|
+
x
|
297
|
+
63
|
298
|
+
/Users/sidu/Work/wrest/lib/wrest/http_shared/standard_tokens.rb
|
299
|
+
p
|
300
|
+
0
|
301
|
+
x
|
302
|
+
13
|
303
|
+
attach_method
|
304
|
+
p
|
305
|
+
3
|
306
|
+
I
|
307
|
+
0
|
308
|
+
I
|
309
|
+
a
|
310
|
+
I
|
311
|
+
1c
|
312
|
+
x
|
313
|
+
63
|
314
|
+
/Users/sidu/Work/wrest/lib/wrest/http_shared/standard_tokens.rb
|
315
|
+
p
|
316
|
+
0
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Copyright 2009 - 2010 Sidu Ponnappa
|
2
|
+
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
# Unless required by applicable law or agreed to in writing, software distributed under the License
|
7
|
+
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
8
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
9
|
+
|
10
|
+
begin
|
11
|
+
gem 'multipart-post', '>= 1.0'
|
12
|
+
rescue Gem::LoadError => e
|
13
|
+
Wrest.logger.debug "Multipart Post >= 1.0 not found. Multipart Post is necessary to be able to post multipart. To install Multipart Post run 'sudo gem install multipart-post'"
|
14
|
+
raise e
|
15
|
+
end
|
16
|
+
|
17
|
+
require "wrest/native/post_multipart"
|
18
|
+
require "wrest/native/put_multipart"
|
19
|
+
|
20
|
+
module Wrest
|
21
|
+
# To enable Multipart support, use
|
22
|
+
# require 'wrest/multipart'
|
23
|
+
#
|
24
|
+
# Multipart support is currently only available on Net::Http and not when using libcurl.
|
25
|
+
# It depends on the multipart-post gem being available. To install multipart-post
|
26
|
+
# (sudo) gem install multipart-post
|
27
|
+
#
|
28
|
+
# The methods in this module are mixed into Wrest::Uri.
|
29
|
+
module Multipart
|
30
|
+
# Makes a multipart/form-data encoded POST request to this URI. This is a convenience API
|
31
|
+
# that mimics a multipart form being posted; some allegly RESTful APIs like FCBK require
|
32
|
+
# this for file uploads.
|
33
|
+
#
|
34
|
+
# File.open('/path/to/image.jpg') do |file|
|
35
|
+
# 'http://localhost:3000/uploads'.to_uri.post_multipart('file' => UploadIO.new(file, "image/jpg", '/path/to/image.jpg'))
|
36
|
+
# end
|
37
|
+
def post_multipart(parameters = {}, headers = {})
|
38
|
+
Http::PostMultipart.new(self, parameters, headers, @options).invoke
|
39
|
+
end
|
40
|
+
|
41
|
+
# Makes a multipart/form-data encoded PUT request to this URI. This is a convenience API
|
42
|
+
# that mimics a multipart form being put. I sincerely hope you never need to use this.
|
43
|
+
def put_multipart(parameters = {}, headers = {})
|
44
|
+
Http::PutMultipart.new(self, parameters, headers, @options).invoke
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
class Uri
|
49
|
+
include Multipart
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
data/lib/wrest/native.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# Copyright 2009 Sidu Ponnappa
|
2
|
+
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at native://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
# Unless required by applicable law or agreed to in writing, software distributed under the License
|
7
|
+
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
8
|
+
# See the License for the specific language governing permissions and limitations under the License.
|
9
|
+
|
10
|
+
module Wrest
|
11
|
+
# Contains all native protocol related classes such as
|
12
|
+
# Get, Post, Request, Response etc. and uses the native
|
13
|
+
# Ruby Net::HTTP libraries.
|
14
|
+
#
|
15
|
+
# Wrest::Http points to this module by default.
|
16
|
+
module Native
|
17
|
+
include Wrest::HttpShared
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
require "#{Wrest::Root}/wrest/native/connection_factory"
|
22
|
+
require "#{Wrest::Root}/wrest/native/response"
|
23
|
+
require "#{Wrest::Root}/wrest/native/redirection"
|
24
|
+
require "#{Wrest::Root}/wrest/native/request"
|
25
|
+
require "#{Wrest::Root}/wrest/native/get"
|
26
|
+
require "#{Wrest::Root}/wrest/native/put"
|
27
|
+
require "#{Wrest::Root}/wrest/native/post"
|
28
|
+
require "#{Wrest::Root}/wrest/native/delete"
|
29
|
+
require "#{Wrest::Root}/wrest/native/options"
|
30
|
+
require "#{Wrest::Root}/wrest/native/session"
|
31
|
+
|
32
|
+
# default to using Native libs
|
33
|
+
Wrest::Http = Wrest::Native
|
@@ -0,0 +1,513 @@
|
|
1
|
+
!RBIX
|
2
|
+
0
|
3
|
+
x
|
4
|
+
M
|
5
|
+
1
|
6
|
+
n
|
7
|
+
n
|
8
|
+
x
|
9
|
+
10
|
10
|
+
__script__
|
11
|
+
i
|
12
|
+
232
|
13
|
+
99
|
14
|
+
7
|
15
|
+
0
|
16
|
+
65
|
17
|
+
49
|
18
|
+
1
|
19
|
+
2
|
20
|
+
13
|
21
|
+
99
|
22
|
+
12
|
23
|
+
7
|
24
|
+
2
|
25
|
+
12
|
26
|
+
7
|
27
|
+
3
|
28
|
+
12
|
29
|
+
65
|
30
|
+
12
|
31
|
+
49
|
32
|
+
4
|
33
|
+
4
|
34
|
+
15
|
35
|
+
49
|
36
|
+
2
|
37
|
+
0
|
38
|
+
15
|
39
|
+
5
|
40
|
+
45
|
41
|
+
0
|
42
|
+
5
|
43
|
+
43
|
44
|
+
6
|
45
|
+
47
|
46
|
+
49
|
47
|
+
7
|
48
|
+
0
|
49
|
+
7
|
50
|
+
8
|
51
|
+
63
|
52
|
+
2
|
53
|
+
47
|
54
|
+
49
|
55
|
+
9
|
56
|
+
1
|
57
|
+
15
|
58
|
+
5
|
59
|
+
45
|
60
|
+
0
|
61
|
+
10
|
62
|
+
43
|
63
|
+
6
|
64
|
+
47
|
65
|
+
49
|
66
|
+
7
|
67
|
+
0
|
68
|
+
7
|
69
|
+
11
|
70
|
+
63
|
71
|
+
2
|
72
|
+
47
|
73
|
+
49
|
74
|
+
9
|
75
|
+
1
|
76
|
+
15
|
77
|
+
5
|
78
|
+
45
|
79
|
+
0
|
80
|
+
12
|
81
|
+
43
|
82
|
+
6
|
83
|
+
47
|
84
|
+
49
|
85
|
+
7
|
86
|
+
0
|
87
|
+
7
|
88
|
+
13
|
89
|
+
63
|
90
|
+
2
|
91
|
+
47
|
92
|
+
49
|
93
|
+
9
|
94
|
+
1
|
95
|
+
15
|
96
|
+
5
|
97
|
+
45
|
98
|
+
0
|
99
|
+
14
|
100
|
+
43
|
101
|
+
6
|
102
|
+
47
|
103
|
+
49
|
104
|
+
7
|
105
|
+
0
|
106
|
+
7
|
107
|
+
15
|
108
|
+
63
|
109
|
+
2
|
110
|
+
47
|
111
|
+
49
|
112
|
+
9
|
113
|
+
1
|
114
|
+
15
|
115
|
+
5
|
116
|
+
45
|
117
|
+
0
|
118
|
+
16
|
119
|
+
43
|
120
|
+
6
|
121
|
+
47
|
122
|
+
49
|
123
|
+
7
|
124
|
+
0
|
125
|
+
7
|
126
|
+
17
|
127
|
+
63
|
128
|
+
2
|
129
|
+
47
|
130
|
+
49
|
131
|
+
9
|
132
|
+
1
|
133
|
+
15
|
134
|
+
5
|
135
|
+
45
|
136
|
+
0
|
137
|
+
18
|
138
|
+
43
|
139
|
+
6
|
140
|
+
47
|
141
|
+
49
|
142
|
+
7
|
143
|
+
0
|
144
|
+
7
|
145
|
+
19
|
146
|
+
63
|
147
|
+
2
|
148
|
+
47
|
149
|
+
49
|
150
|
+
9
|
151
|
+
1
|
152
|
+
15
|
153
|
+
5
|
154
|
+
45
|
155
|
+
0
|
156
|
+
20
|
157
|
+
43
|
158
|
+
6
|
159
|
+
47
|
160
|
+
49
|
161
|
+
7
|
162
|
+
0
|
163
|
+
7
|
164
|
+
21
|
165
|
+
63
|
166
|
+
2
|
167
|
+
47
|
168
|
+
49
|
169
|
+
9
|
170
|
+
1
|
171
|
+
15
|
172
|
+
5
|
173
|
+
45
|
174
|
+
0
|
175
|
+
22
|
176
|
+
43
|
177
|
+
6
|
178
|
+
47
|
179
|
+
49
|
180
|
+
7
|
181
|
+
0
|
182
|
+
7
|
183
|
+
23
|
184
|
+
63
|
185
|
+
2
|
186
|
+
47
|
187
|
+
49
|
188
|
+
9
|
189
|
+
1
|
190
|
+
15
|
191
|
+
5
|
192
|
+
45
|
193
|
+
0
|
194
|
+
24
|
195
|
+
43
|
196
|
+
6
|
197
|
+
47
|
198
|
+
49
|
199
|
+
7
|
200
|
+
0
|
201
|
+
7
|
202
|
+
25
|
203
|
+
63
|
204
|
+
2
|
205
|
+
47
|
206
|
+
49
|
207
|
+
9
|
208
|
+
1
|
209
|
+
15
|
210
|
+
5
|
211
|
+
45
|
212
|
+
0
|
213
|
+
26
|
214
|
+
43
|
215
|
+
6
|
216
|
+
47
|
217
|
+
49
|
218
|
+
7
|
219
|
+
0
|
220
|
+
7
|
221
|
+
27
|
222
|
+
63
|
223
|
+
2
|
224
|
+
47
|
225
|
+
49
|
226
|
+
9
|
227
|
+
1
|
228
|
+
15
|
229
|
+
45
|
230
|
+
0
|
231
|
+
28
|
232
|
+
7
|
233
|
+
29
|
234
|
+
45
|
235
|
+
0
|
236
|
+
30
|
237
|
+
43
|
238
|
+
31
|
239
|
+
49
|
240
|
+
32
|
241
|
+
2
|
242
|
+
15
|
243
|
+
2
|
244
|
+
11
|
245
|
+
I
|
246
|
+
6
|
247
|
+
I
|
248
|
+
0
|
249
|
+
I
|
250
|
+
0
|
251
|
+
I
|
252
|
+
0
|
253
|
+
n
|
254
|
+
p
|
255
|
+
33
|
256
|
+
x
|
257
|
+
5
|
258
|
+
Wrest
|
259
|
+
x
|
260
|
+
11
|
261
|
+
open_module
|
262
|
+
x
|
263
|
+
15
|
264
|
+
__module_init__
|
265
|
+
M
|
266
|
+
1
|
267
|
+
n
|
268
|
+
n
|
269
|
+
x
|
270
|
+
5
|
271
|
+
Wrest
|
272
|
+
i
|
273
|
+
28
|
274
|
+
5
|
275
|
+
66
|
276
|
+
99
|
277
|
+
7
|
278
|
+
0
|
279
|
+
65
|
280
|
+
49
|
281
|
+
1
|
282
|
+
2
|
283
|
+
13
|
284
|
+
99
|
285
|
+
12
|
286
|
+
7
|
287
|
+
2
|
288
|
+
12
|
289
|
+
7
|
290
|
+
3
|
291
|
+
12
|
292
|
+
65
|
293
|
+
12
|
294
|
+
49
|
295
|
+
4
|
296
|
+
4
|
297
|
+
15
|
298
|
+
49
|
299
|
+
2
|
300
|
+
0
|
301
|
+
11
|
302
|
+
I
|
303
|
+
6
|
304
|
+
I
|
305
|
+
0
|
306
|
+
I
|
307
|
+
0
|
308
|
+
I
|
309
|
+
0
|
310
|
+
n
|
311
|
+
p
|
312
|
+
5
|
313
|
+
x
|
314
|
+
6
|
315
|
+
Native
|
316
|
+
x
|
317
|
+
11
|
318
|
+
open_module
|
319
|
+
x
|
320
|
+
15
|
321
|
+
__module_init__
|
322
|
+
M
|
323
|
+
1
|
324
|
+
n
|
325
|
+
n
|
326
|
+
x
|
327
|
+
6
|
328
|
+
Native
|
329
|
+
i
|
330
|
+
13
|
331
|
+
5
|
332
|
+
66
|
333
|
+
5
|
334
|
+
45
|
335
|
+
0
|
336
|
+
1
|
337
|
+
43
|
338
|
+
2
|
339
|
+
47
|
340
|
+
49
|
341
|
+
3
|
342
|
+
1
|
343
|
+
11
|
344
|
+
I
|
345
|
+
2
|
346
|
+
I
|
347
|
+
0
|
348
|
+
I
|
349
|
+
0
|
350
|
+
I
|
351
|
+
0
|
352
|
+
n
|
353
|
+
p
|
354
|
+
4
|
355
|
+
x
|
356
|
+
5
|
357
|
+
Wrest
|
358
|
+
n
|
359
|
+
x
|
360
|
+
10
|
361
|
+
HttpShared
|
362
|
+
x
|
363
|
+
7
|
364
|
+
include
|
365
|
+
p
|
366
|
+
3
|
367
|
+
I
|
368
|
+
2
|
369
|
+
I
|
370
|
+
11
|
371
|
+
I
|
372
|
+
d
|
373
|
+
x
|
374
|
+
42
|
375
|
+
/Users/sidu/Work/wrest/lib/wrest/native.rb
|
376
|
+
p
|
377
|
+
0
|
378
|
+
x
|
379
|
+
13
|
380
|
+
attach_method
|
381
|
+
p
|
382
|
+
3
|
383
|
+
I
|
384
|
+
2
|
385
|
+
I
|
386
|
+
10
|
387
|
+
I
|
388
|
+
1c
|
389
|
+
x
|
390
|
+
42
|
391
|
+
/Users/sidu/Work/wrest/lib/wrest/native.rb
|
392
|
+
p
|
393
|
+
0
|
394
|
+
x
|
395
|
+
13
|
396
|
+
attach_method
|
397
|
+
n
|
398
|
+
x
|
399
|
+
4
|
400
|
+
Root
|
401
|
+
x
|
402
|
+
4
|
403
|
+
to_s
|
404
|
+
s
|
405
|
+
32
|
406
|
+
/wrest/native/connection_factory
|
407
|
+
x
|
408
|
+
7
|
409
|
+
require
|
410
|
+
n
|
411
|
+
s
|
412
|
+
22
|
413
|
+
/wrest/native/response
|
414
|
+
n
|
415
|
+
s
|
416
|
+
25
|
417
|
+
/wrest/native/redirection
|
418
|
+
n
|
419
|
+
s
|
420
|
+
21
|
421
|
+
/wrest/native/request
|
422
|
+
n
|
423
|
+
s
|
424
|
+
17
|
425
|
+
/wrest/native/get
|
426
|
+
n
|
427
|
+
s
|
428
|
+
17
|
429
|
+
/wrest/native/put
|
430
|
+
n
|
431
|
+
s
|
432
|
+
18
|
433
|
+
/wrest/native/post
|
434
|
+
n
|
435
|
+
s
|
436
|
+
20
|
437
|
+
/wrest/native/delete
|
438
|
+
n
|
439
|
+
s
|
440
|
+
21
|
441
|
+
/wrest/native/options
|
442
|
+
n
|
443
|
+
s
|
444
|
+
21
|
445
|
+
/wrest/native/session
|
446
|
+
n
|
447
|
+
x
|
448
|
+
4
|
449
|
+
Http
|
450
|
+
n
|
451
|
+
x
|
452
|
+
6
|
453
|
+
Native
|
454
|
+
x
|
455
|
+
9
|
456
|
+
const_set
|
457
|
+
p
|
458
|
+
25
|
459
|
+
I
|
460
|
+
0
|
461
|
+
I
|
462
|
+
a
|
463
|
+
I
|
464
|
+
1a
|
465
|
+
I
|
466
|
+
15
|
467
|
+
I
|
468
|
+
2d
|
469
|
+
I
|
470
|
+
16
|
471
|
+
I
|
472
|
+
40
|
473
|
+
I
|
474
|
+
17
|
475
|
+
I
|
476
|
+
53
|
477
|
+
I
|
478
|
+
18
|
479
|
+
I
|
480
|
+
66
|
481
|
+
I
|
482
|
+
19
|
483
|
+
I
|
484
|
+
79
|
485
|
+
I
|
486
|
+
1a
|
487
|
+
I
|
488
|
+
8c
|
489
|
+
I
|
490
|
+
1b
|
491
|
+
I
|
492
|
+
9f
|
493
|
+
I
|
494
|
+
1c
|
495
|
+
I
|
496
|
+
b2
|
497
|
+
I
|
498
|
+
1d
|
499
|
+
I
|
500
|
+
c5
|
501
|
+
I
|
502
|
+
1e
|
503
|
+
I
|
504
|
+
d8
|
505
|
+
I
|
506
|
+
21
|
507
|
+
I
|
508
|
+
e8
|
509
|
+
x
|
510
|
+
42
|
511
|
+
/Users/sidu/Work/wrest/lib/wrest/native.rb
|
512
|
+
p
|
513
|
+
0
|