merb-core 0.9.11 → 0.9.12

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.
@@ -25,8 +25,12 @@ module Kernel
25
25
 
26
26
  deps = Merb::BootLoader::Dependencies.dependencies
27
27
 
28
- deps.reject! {|current| current.name == new_dep.name }
29
- deps << new_dep
28
+ idx = deps.each_with_index {|d,i| break i if d.name == new_dep.name}
29
+
30
+ idx = idx.is_a?(Array) ? deps.size + 1 : idx
31
+ deps.delete_at(idx)
32
+ deps.insert(idx - 1, new_dep)
33
+
30
34
  new_dep
31
35
  end
32
36
 
@@ -1,3 +1,3 @@
1
1
  module Merb
2
- VERSION = '0.9.11' unless defined?(Merb::VERSION)
2
+ VERSION = '0.9.12' unless defined?(Merb::VERSION)
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezra Zygmuntowicz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-29 00:00:00 -07:00
12
+ date: 2008-10-30 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency