public
Description: Merb More: The Full Stack. Take what you need; leave what you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-more.git
Search Repo:
merb-freezer now unshifts instead of pushes (vanpelt)
mattetti (author)
Sun Apr 20 18:28:11 -0700 2008
commit  9645de9130e80e109e2ae8c4a9422f02ad6e0ea1
tree    e8470787c42bce86efdd2f09393cedd6ec1865e6
parent  e9378f505952030bb675394f3d4dc6279809a986
...
11
12
13
14
 
15
16
17
18
19
 
20
21
22
23
24
25
 
26
27
28
...
46
47
48
49
 
50
51
52
...
11
12
13
 
14
15
16
17
18
 
19
20
21
22
23
24
 
25
26
27
28
...
46
47
48
 
49
50
51
52
0
@@ -11,18 +11,18 @@
0
   core = File.join(framework,"merb-core")
0
   if File.directory?(core)
0
     puts "using merb-core from #{core}"
0
- $:.push File.join(core,"lib")
0
+ $:.unshift File.join(core,"lib")
0
   end
0
   more = File.join(framework,"merb-more")
0
   if File.directory?(more)
0
     Dir.new(more).select {|d| d =~ /merb-/}.each do |d|
0
- $:.push File.join(more,d,'lib')
0
+ $:.unshift File.join(more,d,'lib')
0
     end
0
   end
0
   plugins = File.join(framework,"merb-plugins")
0
   if File.directory?(plugins)
0
     Dir.new(plugins).select {|d| d =~ /merb_/}.each do |d|
0
- $:.push File.join(plugins,d,'lib')
0
+ $:.unshift File.join(plugins,d,'lib')
0
     end
0
   end
0
   require "merb-core/core_ext/kernel"
0
@@ -46,7 +46,7 @@
0
 gem_submodules_dir = File.join(__DIR__,"gems/submodules")
0
 if File.directory?(gem_submodules_dir)
0
   Dir["#{gem_submodules_dir}/*"].each do |dir|
0
- $:.push File.join(dir,"lib")
0
+ $:.unshift File.join(dir,"lib")
0
   end
0
 end
0
 

Comments

    No one has commented yet.