This project is archived and is in readonly mode.
Psych does not handle symbols in YAML, used in ActiveSupport
Reported by Shtééf | February 1st, 2011 @ 04:00 PM
Bundler 1.0.10 loads Psych by default. (Bundler commit a318f91) At least ActiveSupport 2.3.10 subtly breaks because of this.
Psych does not seem to understand symbols in inline sequences
used in lib/active_support/locale/en.yml
. This can be
triggered by any action that loads this file, in my case it was
Array#to_sentence
.
It looks like this was already fixed in 3.0, which uses the block notation for sequences instead. This works fine in Psych.
Comments and changes to this ticket
-
Aaron Patterson February 1st, 2011 @ 09:31 PM
- State changed from new to committed
- Importance changed from to Low
I've cherry picked the fix to 2-3-stable. It should be released with 2.3.11
-
Nikos Dimitrakopoulos February 28th, 2011 @ 08:25 PM
Aaron, could you please point me to the commit that this is fixed (either in 3.x or in 2.x)? I'm asking cause I'm currently on 3.0.4 and I'm getting some troubles with this thing (got here from http://stackoverflow.com/questions/4980877/rails-error-couldnt-pars...)
-
Shtééf February 28th, 2011 @ 08:43 PM
Aaron fixed this in: https://github.com/rails/rails/commit/dc94d81
(For future reference, you can browse to the specific file on GitHub, and click 'history' top-right of the file content view.)
-
Dave Myron February 28th, 2011 @ 10:46 PM
So is there an explanation why this would be happening in 3.0.4? Would some gem cause this problem to rear its head again?
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>