pancake 0.1.26 → 0.1.27

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ begin
17
17
  gem.add_dependency "rack"
18
18
  gem.add_dependency "tilt", ">=0.3"
19
19
  gem.add_dependency "hashie", ">=0.1.4"
20
- gem.add_dependency "mynyml-rack-accept-media-types"
20
+ gem.add_dependency "rack-accept-media-types"
21
21
  gem.require_path = 'lib'
22
22
  gem.autorequire = 'pancake'
23
23
  gem.bindir = "bin"
@@ -18,28 +18,22 @@ end # Pancake
18
18
 
19
19
  Pancake::Stack::BootLoader.add(:load_configuration, :level => :init) do
20
20
  def run!
21
- stack_class.roots.each do |root|
22
- stack_class.paths_for(:config).each{|f| require f.join}
23
- end
21
+ stack_class.paths_for(:config).each{|f| require f.join}
24
22
  end
25
23
  end
26
24
 
27
25
  Pancake::Stack::BootLoader.add(:load_mounted_inits, :level => :init) do
28
26
  def run!
29
27
  # Mount any stacks this stack may have in it.
30
- stack_class.roots.each do |root|
31
- Dir["#{root}/mounts/*/pancake_init.rb"].each{|f| load f if File.exists?(f)}
32
- end
28
+ stack_class.paths_for(:mounts).each{|f| require f}
33
29
  end
34
30
  end
35
31
 
36
32
 
37
33
  Pancake::Stack::BootLoader.add(:load_application, :level => :init) do
38
34
  def run!
39
- stack_class.roots.each do |root|
40
- [:models, :controllers].each do |type|
41
- stack_class.paths_for(type).each{|f| require f.join}
42
- end
35
+ [:models, :controllers].each do |type|
36
+ stack_class.paths_for(type).each{|f| require f.join}
43
37
  end
44
38
  end
45
39
  end
@@ -57,9 +51,7 @@ end
57
51
 
58
52
  Pancake::Stack::BootLoader.add(:load_routes, :level => :init) do
59
53
  def run!
60
- stack_class.roots.each do |root|
61
- stack_class.paths_for(:router).each{|f| require f.join}
62
- end
54
+ stack_class.paths_for(:router).each{|f| require f.join}
63
55
  end
64
56
  end
65
57
 
@@ -15,6 +15,7 @@ module Pancake
15
15
  push_paths(:router, "config", "router.rb")
16
16
  push_paths(:rake_tasks, "tasks", "**/*.rake")
17
17
  push_paths(:public, "public", "**/*")
18
+ push_paths(:mounts, "mounts", "*/pancake_init.rb")
18
19
 
19
20
 
20
21
  #Iterates the list of roots in the stack, and initializes the app found their
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pancake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
@@ -9,7 +9,7 @@ autorequire: pancake
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-28 00:00:00 +11:00
12
+ date: 2009-11-30 00:00:00 +11:00
13
13
  default_executable: pancake-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -83,7 +83,7 @@ dependencies:
83
83
  version: 0.1.4
84
84
  version:
85
85
  - !ruby/object:Gem::Dependency
86
- name: mynyml-rack-accept-media-types
86
+ name: rack-accept-media-types
87
87
  type: :runtime
88
88
  version_requirement:
89
89
  version_requirements: !ruby/object:Gem::Requirement