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 +4 -4
- data/lib/halfling/base.rb +2 -2
- data/lib/halfling/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: e7a7e84bc418943fb2747fb0b9fbb27da2d001fe
|
4
|
+
data.tar.gz: 87f010568f931c00ec8aec3a703456a06f80beec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/halfling/version.rb
CHANGED