odex 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/odex/app.rb +3 -5
- data/lib/odex/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17a7abeb39c180bcd43f0739cec8e2264564e3e0
|
4
|
+
data.tar.gz: 52a8d97cbcc40df4efea5b9cf17ed463c4962bd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2b63290f56c3f61aeb97639d41d72ad932c1beb935c23e08b087a7256e13403dc4dd5b2b28924b00ff14ada67993789049a3220b692f9ffabfe58d2c418b07d
|
7
|
+
data.tar.gz: bba9a79fb24b7c4f05a66787ed97bf44baeb3f4db5c9cf8c19b2b847851dfefe2c0d26ae4193d00f3a6bd99d5283dcc769ec3ed3bc087997d23051763fdab0de
|
data/lib/odex/app.rb
CHANGED
@@ -152,8 +152,8 @@ module Odex
|
|
152
152
|
class Base
|
153
153
|
include Odex::Init
|
154
154
|
METHODS = [:options, :patch, :post, :put, :trace, :delete, :get, :head]
|
155
|
-
|
156
|
-
|
155
|
+
|
156
|
+
init_methods :builder, Odex::OdexBuilder.new
|
157
157
|
init_methods :c, Class.new(Req)
|
158
158
|
init_methods :route_defs, []
|
159
159
|
init_methods :hook_before, []
|
@@ -199,12 +199,10 @@ module Odex
|
|
199
199
|
|
200
200
|
def group(url, app=nil, &block)
|
201
201
|
scope = self.c
|
202
|
-
|
203
202
|
app ||= Class.new(self.superclass) do
|
204
203
|
self.c = scope
|
205
204
|
class_eval(&block)
|
206
205
|
end
|
207
|
-
|
208
206
|
map[url] = app
|
209
207
|
end
|
210
208
|
|
@@ -242,7 +240,7 @@ module Odex
|
|
242
240
|
class App < Base
|
243
241
|
class << self
|
244
242
|
def go!(port = 1453)
|
245
|
-
Rack::Handler.pick(['webrick']).run new, :Port => port
|
243
|
+
Rack::Handler.pick(['thin','webrick']).run new, :Port => port
|
246
244
|
end
|
247
245
|
end
|
248
246
|
end
|
data/lib/odex/version.rb
CHANGED