mirror of https://github.com/rails/rails
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:
parent
19fbb31464
commit
8f614a80e7
|
@ -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
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ unless defined?(ActiveSupport)
|
|||
require 'active_support'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
require_gem 'activesupport'
|
||||
gem 'activesupport'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ unless defined?(ActionMailer)
|
|||
require 'action_mailer'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
require_gem 'actionmailer'
|
||||
gem 'actionmailer'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -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/")
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -30,7 +30,7 @@ unless defined?(ActiveSupport)
|
|||
require 'active_support'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
require_gem 'activesupport'
|
||||
gem 'activesupport'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ unless defined?(ActiveSupport)
|
|||
require 'active_support'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
require_gem 'activesupport'
|
||||
gem 'activesupport'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -28,7 +28,7 @@ begin
|
|||
require 'active_support'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
require_gem 'activesupport'
|
||||
gem 'activesupport'
|
||||
end
|
||||
|
||||
require 'rails_generator/base'
|
||||
|
|
Loading…
Reference in New Issue