Skip to content

Commit

Permalink
Use bundler if you have it.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleym1972 committed Apr 23, 2010
1 parent 245fa9f commit 9fae544
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.DS_Store
*.gem
.bundle/*
Gemfile.lock
9 changes: 9 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
12 changes: 11 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 9fae544

Please sign in to comment.