rails/rails — pull request #4973 by kennyj (2012-02-09 16:41:35+00:00)
Title: Fix GH #4909. Dependency on TZInfo move from AR to AS.

I found reference to TZInfo in active_support, but I couldn't find reference to TZInfo in active_record.
I think that we should move dependency on tzinfo from active_record to active_support.

I found steps to reproduce for acitvesupport.

```
$ cd (path to rails)
$ git checkout master
$ rake build
$ ls -la pkg
...
-rw-rw-r-- 1 kennyj kennyj 306688 1月 12 01:13 activesupport-4.0.0.beta.gem
...

$ gem install pkg/activesupport-4.0.0.beta.gem --no-ri --no-rdoc

$ cd (path to work)
$ vim Gemfile
source 'http://rubygems.org'
gem 'activesupport', '4.0.0.beta'
$ bundle install
$ bundle exec irb

■before
ruby-1.9.3-p0 :001 > require 'active_support/all'
=> true
ruby-1.9.3-p0 :002 > Time.find_zone!("Tokyo")
You don't have tzinfo installed in your application. Please add it to your Gemfile and run bundle install
NameError: uninitialized constant Class::TZInfo
from /home/kennyj/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-4.0.0.beta/lib/active_support/core_ext/time/zones.rb:60:in `rescue in find_zone!'
from /home/kennyj/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-4.0.0.beta/lib/active_support/core_ext/time/zones.rb:53:in `find_zone!'
from (irb):2
from /home/kennyj/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `

'

■after (with myfix)
ruby-1.9.3-p0 :001 > require 'active_support/all'
=> true
ruby-1.9.3-p0 :002 > Time.find_zone!("Tokyo")
=> (GMT+09:00) Tokyo
```

and for activerecord

```
~/rails(fix_4909)$ cd activerecord/
~/rails/activerecord(fix_4909)$ find . -name "*" -print | xargs grep "tzinfo"
./CHANGELOG.md:* Removing unnecessary uses_tzinfo helper from tests, given that TZInfo is now bundled *Geoff Buesing*
~/rails/activerecord(fix_4909)$ find . -name "*" -print | xargs grep "TZInfo"
./CHANGELOG.md:* Removing unnecessary uses_tzinfo helper from tests, given that TZInfo is now bundled *Geoff Buesing*
```