halfling 0.0.6 → 0.0.7

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: 1cd0462a495c741750f1cffd0077eb4c789fd9ff
4
- data.tar.gz: 9be361dc0bcf1106ae6ccebc4601f0d679804bca
3
+ metadata.gz: e7a7e84bc418943fb2747fb0b9fbb27da2d001fe
4
+ data.tar.gz: 87f010568f931c00ec8aec3a703456a06f80beec
5
5
  SHA512:
6
- metadata.gz: 775cdda1defcda56dcd6d82b7bc2d6577372149f3e4148c0b4f6c1180f95da092624eac5e92797ee0a47f6fa4fd240c14bd81fe077f7b241d885f6b78f8acad3
7
- data.tar.gz: 4053b59dcc16e9a6b1f1a82614dfc683b5655bc44984a43ce4eac7fd46ca54028d6af395aad5848462392a59b4b1c2cd3862230e15669edd2b554a1577c06db7
6
+ metadata.gz: b357d670cc375dda42169ec036d51e0481c13e1077a257483a2f75989300a8f22cda289cb39a639d4295d5703894f5021487aa49cb0f8924a1e23fc8802df756
7
+ data.tar.gz: aa0b62fdbc217dec652c1d67bd85d2d1a1f8c6f61fb138cf8659e28bb167ee9e2b232a84a1b3eabad9284a59ecc20f0ebd6078af5130bdb33c7db0c9fe056ec3
data/lib/halfling/base.rb CHANGED
@@ -96,7 +96,7 @@ module Hobbit
96
96
  end
97
97
 
98
98
  def initialize
99
- if self.class.class_variable_defined? :@@controller_routes
99
+ if self.class.class_variable_defined? :@@controller_routes && @@controller_routes
100
100
  @@controller_routes.each do |route, controller|
101
101
  @@application.map(route) do
102
102
  run controller.new
@@ -104,7 +104,7 @@ module Hobbit
104
104
  end
105
105
  @@controller_routes = nil
106
106
  end
107
- if self.class.class_variable_defined? :@@root_controller
107
+ if self.class.class_variable_defined? :@@root_controller && @@root_controller
108
108
  root_controller = @@root_controller
109
109
  @@application.map("/") do
110
110
  run root_controller.new
@@ -1,3 +1,3 @@
1
1
  module Halfling
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: halfling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo P.