Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2007-02-04 20:44:45 +00:00
parent 19fbb31464
commit 8f614a80e7
10 changed files with 14 additions and 12 deletions

View File

@ -27,7 +27,7 @@ unless defined?(ActionController)
require 'action_controller'
rescue LoadError
require 'rubygems'
require_gem 'actionpack', '>= 1.12.5'
gem 'actionpack', '>= 1.12.5'
end
end

View File

@ -30,7 +30,7 @@ unless defined?(ActiveSupport)
require 'active_support'
rescue LoadError
require 'rubygems'
require_gem 'activesupport'
gem 'activesupport'
end
end

View File

@ -13,7 +13,7 @@ unless defined?(ActionMailer)
require 'action_mailer'
rescue LoadError
require 'rubygems'
require_gem 'actionmailer'
gem 'actionmailer'
end
end

View File

@ -27,9 +27,9 @@ begin
require 'active_record'
rescue LoadError
require 'rubygems'
require_gem 'activesupport', '>= 1.0.2'
require_gem 'actionpack', '>= 1.6.0'
require_gem 'activerecord', '>= 1.9.0'
gem 'activesupport', '>= 1.0.2'
gem 'actionpack', '>= 1.6.0'
gem 'activerecord', '>= 1.9.0'
end
$:.unshift(File.dirname(__FILE__) + "/action_web_service/vendor/")

View File

@ -1,7 +1,7 @@
$:.unshift(File.dirname(__FILE__) + '/../lib')
if ARGV[2]
require 'rubygems'
require_gem 'activerecord', ARGV[2]
gem 'activerecord', ARGV[2]
else
require 'active_record'
end

View File

@ -30,7 +30,7 @@ unless defined?(ActiveSupport)
require 'active_support'
rescue LoadError
require 'rubygems'
require_gem 'activesupport'
gem 'activesupport'
end
end

View File

@ -30,7 +30,7 @@ unless defined?(ActiveSupport)
require 'active_support'
rescue LoadError
require 'rubygems'
require_gem 'activesupport'
gem 'activesupport'
end
end

View File

@ -1,5 +1,7 @@
*SVN*
* Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler]
* Plugins may be symlinked in vendor/plugins. #4245 [brandon, progrium@gmail.com]
* Resource generator depends on the model generator rather than duplicating it. #7269 [bscofield]

View File

@ -26,7 +26,7 @@ unless defined?(Rails::Initializer)
rails_gem = Gem.cache.search('rails', "~>#{version}.0").sort_by { |g| g.version.version }.last
if rails_gem
require_gem "rails", "=#{rails_gem.version.version}"
gem "rails", "=#{rails_gem.version.version}"
require rails_gem.full_gem_path + '/lib/initializer'
else
STDERR.puts %(Cannot find gem for Rails ~>#{version}.0:
@ -36,7 +36,7 @@ unless defined?(Rails::Initializer)
exit 1
end
else
require_gem "rails"
gem "rails"
require 'initializer'
end
end

View File

@ -28,7 +28,7 @@ begin
require 'active_support'
rescue LoadError
require 'rubygems'
require_gem 'activesupport'
gem 'activesupport'
end
require 'rails_generator/base'