Permalink
Browse files

Use bundler if you have it.

  • Loading branch information...
1 parent 245fa9f commit 9fae544c4f38b0e4eb070476af3b41d6ad621483 @ashleym1972 ashleym1972 committed Apr 23, 2010
Showing with 22 additions and 1 deletion.
  1. +2 −0 .gitignore
  2. +9 −0 Gemfile
  3. +11 −1 Rakefile
View
@@ -1,2 +1,4 @@
.DS_Store
*.gem
+.bundle/*
+Gemfile.lock
View
@@ -0,0 +1,9 @@
+source :gemcutter
+gem 'rails', '2.3.5'
+# gem 'memcache-client', '1.8.2'
+gem 'memcached', '0.18.0'
+group :test do
+ gem 'rspec', '1.3.0'
+ gem 'sqlite3-ruby'
+ gem 'rr'
+end
View
@@ -1,4 +1,14 @@
-require File.expand_path('../config/environment', __FILE__)
+begin
+ require File.expand_path('../.bundle/environment', __FILE__)
+rescue LoadError
+ begin
+ require 'rubygems'
+ require 'bundler'
+ Bundler.setup
+ rescue
+ require File.expand_path('../config/environment', __FILE__)
+ end
+end
require 'rake'
require 'rake/testtask'

0 comments on commit 9fae544

Please sign in to comment.