Permalink
Browse files

Bundle AMo

  • Loading branch information...
1 parent cb8b0f4 commit 02b76862e1ff8ceccb3cd48922ac178462e14892 @wycats wycats committed Oct 15, 2009
Showing with 18 additions and 2 deletions.
  1. +11 −0 activemodel/Gemfile
  2. +7 −2 activemodel/test/cases/helper.rb
View
@@ -0,0 +1,11 @@
+rails_root = Pathname.new(File.dirname(__FILE__)).join("..")
+
+Gem.sources.each { |uri| source uri }
+
+gem "activesupport", "3.0.pre", :vendored_at => rails_root.join("activesupport")
+
+only :test do
+ gem "sqlite3-ruby"
+end
+
+disable_system_gems
@@ -1,5 +1,10 @@
-$:.unshift(File.dirname(__FILE__) + '/../../lib')
-$:.unshift(File.dirname(__FILE__) + '/../../../activesupport/lib')
+bundled = "#{File.dirname(__FILE__)}/../vendor/gems/environment"
+if File.exist?("#{bundled}.rb")
+ require bundled
+else
+ $:.unshift(File.dirname(__FILE__) + '/../../lib')
+ $:.unshift(File.dirname(__FILE__) + '/../../../activesupport/lib')
+end
require 'config'

0 comments on commit 02b7686

Please sign in to comment.