halfling 0.0.7 → 0.0.8
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: 4f295bb0137e3866d065375204ecd50e1cd2bb28
|
4
|
+
data.tar.gz: 517ec690a184faa235ea1ebc3534f1b31b577f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76755c440dfff7f5a4d17608cbc178976b7c487a7369b6bfc86d49072e73e6c5e8ecc71b0924b261a9c4fe36b5593eefcf7a28f62e875410c2c72186a4333e6d
|
7
|
+
data.tar.gz: 1078c3628e2f839df8d23633383200ac43c1e92525122bc6b7981e1499506b3c7e6f18863ad198d341dce33d2f8b0bba912fad00c5f35dc02c9348c6b8fbb11e
|
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?
|
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?
|
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