This project is archived and is in readonly mode.
ActiveSupport breaks literal "%%" in non-hash String interpolation
-
Henrik Nyh
- No changes were found…
-
Henrik Nyh
- Tag changed from string interpolation, activesupport, active_support, interpolation, ruby1.9 to string interpolation, activesupport, active_support, interpolation, patch, ruby1.9
When I run the tests, it seems the i18n gem is used for the actual interpolation. Apparently this issue has been fixed in the i18n gem on GitHub (http://github.com/svenfuchs/i18n/commit/bd740600683ca2aae78e4abf898.... That version of the gem does not appear to be published.
It's still not fixed in ActiveSupport proper, and since the i18n gem is used for interpolation in the ActiveSupport tests, at least the way I ran them, I'm not sure what the best course of action is. Should this functionality exist in both places? Should the tests be modified to actually test the ActiveSupport version? Did I run the tests wrong?
Either way, I made a patch, then ran the tests with that part of the i18n gem commented out, so that when this code actually runs, it does work.
-
Henrik Nyh
Monkeypatch initializer until this is applied: http://gist.github.com/314504
-
tadman
This appears to have been remedied in Rails 2.3.8.
-
Ryan Bigg
- State changed from new to resolved
- Importance changed from to Low
