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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6748dbaefe7b3235ebfe47fe615bb014561b9f35
4
- data.tar.gz: ff31c7626ca8da51a575ef63fcd5623e5c1b6322
3
+ metadata.gz: 17a7abeb39c180bcd43f0739cec8e2264564e3e0
4
+ data.tar.gz: 52a8d97cbcc40df4efea5b9cf17ed463c4962bd7
5
5
  SHA512:
6
- metadata.gz: c188136281ce91054a451c3efd529162d9055cace644584c1b70f253f4597be50c097579db520e7be9631c908c9fa293149aabfc026a6700a866341c214822b1
7
- data.tar.gz: 352f4e64ae43dd5fe973f3b00992fe3eca99a033fa9b0ee7ff293a88b365383f0d2067812a7e5d9020ba058327c03bc27d84079e13a28742ff46360f0e523292
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
- inheritable :builder, Odex::OdexBuilder.new
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
@@ -1,3 +1,3 @@
1
1
  module Odex
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sedat ÇİFTÇİ