Closed kenotron closed 12 years ago
I've been trying to figure out how to fix this but no luck so far.
Looks like this is because the strings in ARGV are frozen, and Gem::Version.new does a strip! on its parameter. The version from --gem-version ends up being handed directly down to Gem::Version and as such is a frozen string and strip! modifies its receiver.
this is fixed in the next version
Version 2.1.3 pushed fixing this bug.
When I do a:
I get this:
This is a bug in the spec_lite.rb, line 20:
This apparently causes my RubyGems 1.3.7 running on Ruby 1.9.2 to fail with a "can't modify frozen string" error. There are 2 ways I fixed it (both strange and hacky):
OR run stickler like:
And after these hacks, I further ran into this issue:
Resourceful is buggy in that it tries to follow redirects and assumes that the response "Location" header is always an array. I suggest that Stickler would ditch the use of Resourceful gem (use CURL or Net::Http).