aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-09-13 21:07:35 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-13 21:07:35 -0500
commit8c8e09c3054865f814d967fae444853d7ac8c671 (patch)
treed64b10dd55a803105bc18586af71a6d17d906074 /activesupport/lib
parenta0e43073e22bab9c4aaafa419f00c2032f8d28fd (diff)
downloadrails-8c8e09c3054865f814d967fae444853d7ac8c671.tar.gz
rails-8c8e09c3054865f814d967fae444853d7ac8c671.tar.bz2
rails-8c8e09c3054865f814d967fae444853d7ac8c671.zip
Restore AS vendor file until we get things sorted out in railties
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support.rb1
-rw-r--r--activesupport/lib/active_support/vendor.rb27
2 files changed, 28 insertions, 0 deletions
diff --git a/activesupport/lib/active_support.rb b/activesupport/lib/active_support.rb
index db3f33618e..4dcb6191df 100644
--- a/activesupport/lib/active_support.rb
+++ b/activesupport/lib/active_support.rb
@@ -35,6 +35,7 @@ module ActiveSupport
end
require 'active_support/autoload'
+require 'active_support/vendor'
begin
require 'i18n'
diff --git a/activesupport/lib/active_support/vendor.rb b/activesupport/lib/active_support/vendor.rb
new file mode 100644
index 0000000000..f9ecefe4e7
--- /dev/null
+++ b/activesupport/lib/active_support/vendor.rb
@@ -0,0 +1,27 @@
+# Prefer gems to the bundled libs.
+require 'rubygems'
+
+begin
+ gem 'builder', '~> 2.1.2'
+rescue Gem::LoadError
+ $:.unshift "#{File.dirname(__FILE__)}/vendor/builder-2.1.2/lib"
+end
+
+begin
+ gem 'memcache-client', '>= 1.6.5'
+rescue Gem::LoadError
+ $:.unshift "#{File.dirname(__FILE__)}/vendor/memcache-client-1.6.5/lib"
+end
+
+begin
+ gem 'tzinfo', '~> 0.3.13'
+rescue Gem::LoadError
+ $:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.13/lib"
+end
+
+begin
+ gem 'i18n', '~> 0.1.3'
+rescue Gem::LoadError
+ $:.unshift "#{File.dirname(__FILE__)}/vendor/i18n-0.1.3/lib"
+ require 'i18n'
+end