Skip to content
This repository

Radius 0.7.2 is broken with frozen strings #16

Open
jfahrenkrug opened this Issue February 17, 2012 · 2 comments

2 participants

Johannes Fahrenkrug Jim Gay
Johannes Fahrenkrug
Collaborator

In the current gem release (0.7.2) Utility.array_to_s is broken when used with frozen strings. I've fixed it in daf1cd0

It might be good to do a bug fix release soon.

Jim Gay
Collaborator

I'm curious about 2 things with this:

  1. will running dup become expensive
  2. why do you have frozen strings?
Johannes Fahrenkrug
Collaborator
  1. You are right that dup would create a new String instance for each string. I've fixed the code so that only frozen strings will be duplicated: 9829802

  2. That is a very good question. I couldn't really pinpoint it in my code. I suspect that nokogiri returns frozen strings after parsing XML in certain cases (I use nokogiri).

But I think regardless of the usecase, frozen strings should work. Also, I mostly view tags as output methods. They should not attempt to modify anything we pass in, imho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.