sharp 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/sharp.rb +6 -6
- data/lib/sharp/version.rb +1 -1
- data/sharp.gemspec +1 -1
- metadata +1 -1
data/lib/sharp.rb
CHANGED
@@ -36,12 +36,12 @@ module Sharp
|
|
36
36
|
if @booted
|
37
37
|
false
|
38
38
|
else
|
39
|
-
|
39
|
+
pre_initialization
|
40
40
|
load_lib
|
41
41
|
load_models
|
42
42
|
load_actions
|
43
43
|
load_routes
|
44
|
-
|
44
|
+
post_initialization
|
45
45
|
finish_boot
|
46
46
|
end
|
47
47
|
end
|
@@ -91,8 +91,8 @@ module Sharp
|
|
91
91
|
end
|
92
92
|
|
93
93
|
protected
|
94
|
-
def
|
95
|
-
|
94
|
+
def pre_initialization
|
95
|
+
Dir.glob(root.join("app/preinitializers/*.rb")) {|file| load file }
|
96
96
|
db # TODO: Pull out Sequel-specific code
|
97
97
|
end
|
98
98
|
|
@@ -117,8 +117,8 @@ module Sharp
|
|
117
117
|
require File.expand_path "app/routes", root
|
118
118
|
end
|
119
119
|
|
120
|
-
def
|
121
|
-
|
120
|
+
def post_initialization
|
121
|
+
Dir.glob(root.join("app/initializers/*.rb")) {|file| load file }
|
122
122
|
end
|
123
123
|
|
124
124
|
def finish_boot
|
data/lib/sharp/version.rb
CHANGED
data/sharp.gemspec
CHANGED