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 CHANGED
@@ -36,12 +36,12 @@ module Sharp
36
36
  if @booted
37
37
  false
38
38
  else
39
- pre_boot
39
+ pre_initialization
40
40
  load_lib
41
41
  load_models
42
42
  load_actions
43
43
  load_routes
44
- post_boot
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 pre_boot
95
- # A hook for plugins to add boot logic
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 post_boot
121
- # A hook for plugins to add boot logic
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
@@ -1,3 +1,3 @@
1
1
  module Sharp
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
data/sharp.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = "sharp"
5
- gem.version = "0.0.3"
5
+ gem.version = "0.1.0"
6
6
  gem.authors = ["Paul Barry"]
7
7
  gem.email = ["mail@paulbarry.com"]
8
8
  gem.description = %q{A web framework}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sharp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: