Forum: Ruby on Rails TZInfo included in Rails 2.2.2 vs. version on RubyForge

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
435134895424e272f4d69d42ae0d750c?d=identicon&s=25 matto (Guest)
on 2009-03-14 13:44
(Received via mailing list)
I downloaded version 0.3.12 of TZInfo from [1], and observed that it
has a very robust set of timezones including, for example, 'America/
Anchorage':

irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'tzinfo'
=> true
irb(main):003:0> TZInfo::Timezone.get('America/Anchorage')
=> #<TZInfo::DataTimezone: America/Anchorage>

Within Rails 2.2, however, which appears to have the same version of
the gem (see the error that follows), the set of timezones is far more
limited.

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'active_support'
=> true
irb(main):003:0> TZInfo::Timezone.get('America/Anchorage')
TZInfo::InvalidTimezoneIdentifier: no such file to load -- tzinfo/
definitions/America/Anchorage
        from /usr/local/lib/ruby/gems/gems/activesupport-2.2.2/lib/
active_support/vendor/tzinfo-0.3.12/tzinfo/timezone.rb:108:in `get'
        from (irb):3

Perhaps the maintainers of TZInfo didn't bump up the version number of
the gem after adding additional timezone data?

Matt

[1] http://rubyforge.org/frs/?group_id=894
6883e5ef03484d4fcef507d7b4f1d243?d=identicon&s=25 Matt Jones (Guest)
on 2009-03-15 20:11
(Received via mailing list)
The bundled TZInfo is intentionally limited in size. If you have the
full version installed,
Rails will load that instead. See also this ticket:
http://rails.lighthouseapp.com/projects/8994-ruby-...

--Matt Jones
This topic is locked and can not be replied to.