Vote #69961
完了Consider removing #7013 workaround
0%
説明
As mentionned in @config/environment.rb@ :
# TODO: Workaround for #7013 to be removed for 1.2.0
# Loads i18n 0.4.2 before Rails loads any more recent gem
# 0.5.0 is not compatible with the old interpolation syntax
# Plugins will have to migrate to the new syntax for 1.2.0
require 'rubygems'
begin
gem 'i18n', '0.4.2'
rescue Gem::LoadError => load_error
$stderr.puts %(Missing the i18n 0.4.2 gem. Please `gem install -v=0.4.2 i18n`)
exit 1
end
journals
I'm no longer sure that we should remove it.
If a new i18n release breaks the API again, Rails 2.3.11 will load it anyway.
--------------------------------------------------------------------------------
Isn't it the same kind of issue with Rails 2.3.11 not supporting RubyGems > 1.6 ?
What would you think of adding Bundler support (#5638) to add some dependencies check at startup such as rack, rubyGems, i18n, etc., maybe that would also prevent some support issues to be posted ?
--------------------------------------------------------------------------------
Budnler support is adressed for next major, so can this get closed in favour for #5638 ?
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Isn't it the same kind of issue with Rails 2.3.11 not supporting RubyGems > 1.6 ?
No, rubygems is not a gem.
> What would you think of adding Bundler support (#5638) to add some dependencies check at startup such as rack, rubyGems, i18n, etc., maybe that would also prevent some support issues to be posted ?
The only problem is i18n and the way the Rails dependency is done. In active_support/vendor.rb we have:
<pre>
gem 'i18n', '>= 0.4.1'
</pre>
which will load the more recent i18n version available. I think that the following would be safer:
<pre>
gem 'i18n', '~> 0.4.1'
</pre>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
As Rails 2.3.14 dependency is still '>= 0.4.1', I hope that i18n won't break the API in the future.
--------------------------------------------------------------------------------
related_issues
relates,Closed,7013,See {{count}} in page display rather than value with i18n 0.5.0