Hi folks, the tzinfo version packaged with rails 2.1.2 is incorrect and missing some files. If you compare the version stored in activesupport/lib/ active_support/vendor/tzinfo-0.3.11 with a fresh gem install of tzinfo-0.3.11, the activesupport-2.1.2 version is missing all the country_code files.
(http://github.com/rails/rails/tree/v2.1.2/activesupport/lib/ active_support/vendor/tzinfo-0.3.11/tzinfo) (still seems broken in master: http://github.com/rails/rails/tree/master/activesupport/lib/active_support/vendor/tzinfo-0.3.11/tzinfo) This means that if the rails version is loaded up, calling TZInfo::Country.get('US').zones fails, while if the standard gem version is loaded, it works. I was explicitly setting, in environment.rb config.gem "tzinfo", :version => '0.3.10' but rails 2.1.2 sets 0.3.11, and because I didn't have that gem installed on my system, it loaded the broken one from activesupport-2.1.2. The way to get all of this to work is to install the 0.3.11 gem and change my environment.rb file to require the 0.3.11 version, and then it loads up the full gem version and bypasses the bad rails 2.1.2 version. But this definitely doesn't seem like the correct behavior, starting with the bad vendorized tzinfo-0.3.11 gem in activesupport-2.1.2. Thanks, Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
