Permalink
Browse files

Fix gem deprecation warnings, which also means depending on RubyGems …

…0.9.0+ [Chad Fowler]

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@6119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 0ee158a commit c4d8d97e9cb7261e8150b952e8eab3c15d4ad635 @dhh dhh committed Feb 4, 2007
@@ -27,7 +27,7 @@
require 'action_controller'
rescue LoadError
require 'rubygems'
- require_gem 'actionpack', '>= 1.12.5'
+ gem 'actionpack', '>= 1.12.5'
end
end
@@ -30,7 +30,7 @@
require 'active_support'
rescue LoadError
require 'rubygems'
- require_gem 'activesupport'
+ gem 'activesupport'
end
end
@@ -13,7 +13,7 @@
require 'action_mailer'
rescue LoadError
require 'rubygems'
- require_gem 'actionmailer'
+ gem 'actionmailer'
end
end
@@ -27,9 +27,9 @@
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 @@
require 'active_support'
rescue LoadError
require 'rubygems'
- require_gem 'activesupport'
+ gem 'activesupport'
end
end
View
@@ -1,7 +1,10 @@
*SVN*
+* Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler]
+
* Require the dispatcher for Rails::Configuration#to_prepare. [Rick]
+
*1.2.1* (January 16th, 2007)
* Updated to Active Record 1.15.1, Action Pack 1.13.1, Action Mailer 1.3.1, Action Web Service 1.2.1
@@ -26,7 +26,7 @@
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 @@
exit 1
end
else
- require_gem "rails"
+ gem "rails"
require 'initializer'
end
end
@@ -28,7 +28,7 @@
require 'active_support'
rescue LoadError
require 'rubygems'
- require_gem 'activesupport'
+ gem 'activesupport'
end
require 'rails_generator/base'

0 comments on commit c4d8d97

Please sign in to comment.