Update the Bundler snippet for 0.9.15 and above

This commit is contained in:
Andre Arko 2010-04-12 15:09:40 -07:00 committed by wycats
parent 86defed5ad
commit ca378659bc
2 changed files with 7 additions and 15 deletions

View File

@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.email = 'david@loudthinking.com'
s.homepage = 'http://www.rubyonrails.org'
s.rubyforge_project = 'rails'
s.files = []
s.require_path = []
@ -24,5 +24,5 @@ Gem::Specification.new do |s|
s.add_dependency('activeresource', version)
s.add_dependency('actionmailer', version)
s.add_dependency('railties', version)
s.add_dependency('bundler', '>= 0.9.14')
s.add_dependency('bundler', '>= 0.9.19')
end

View File

@ -1,14 +1,6 @@
# Use locked gems if present.
begin
require File.expand_path('../../.bundle/environment', __FILE__)
rescue LoadError
# Otherwise, use RubyGems.
require 'rubygems'
# And set up the gems listed in the Gemfile.
if File.exist?(File.expand_path('../../Gemfile', __FILE__))
require 'bundler'
Bundler.setup
end
require 'rubygems'
# Set up gems listed in the Gemfile.
if File.exist?(File.expand_path('../../Gemfile', __FILE__))
require 'bundler'
Bundler.setup
end