I ran this in Rubinius (rubinius 2.2.6.n78 (2.1.0 ac8f0e2f 2014-03-19 JI) [x86_64-darwin13.1.0]) and MRI 2.1.0 (ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin13.0])
These two lines in the backtraces refer to the same source code location in Parade:
- Rubinius: https://gist.github.com/brixen/8e53247e368117a3a11f#file-1-rubinius-L38
- MRI: https://gist.github.com/brixen/8e53247e368117a3a11f#file-2-mri-2-1-0-L38
The next line in the Rubinius backtrace follows (ie, we are in String#gsub
): https://github.com/rubinius/rubinius/blob/master/kernel/common/string.rb#L1686
I have no clue (with superficial inspection) how we get to the next line in MRI: https://github.com/burtlo/parade/blob/master/lib/parade/parsers/dsl.rb#L36