Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Pathname#dup is broken in 1.7.5. #1209
Today I tried to update some of my app to 1.7.5. But this bug had been introduced:
I see, I think Pathname should always freeze itself in
> p = Pathname("some/place") > p2 = p.dup > p.freeze => #<Pathname:some/place> > p.frozen? => true > p2.frozen? => false > p.instance_variable_get("@path").frozen? => true > p2.instance_variable_get("@path").frozen? => true
You might call that a bug.