Closed apepper closed 5 years ago
I wonder why this wasn’t picked up by travis.
Okay, the travis tests were completely borked. I've fixed them, and I'm now updating it to use SecureRandom.uuid
which is supported all the way back to 2.0.
Fixed in v2.1.1.
If you're using
multipart-post
version2.1.0
withruby
version2.4.1p111
you'll receive the following exception:This is because
SecureRandom.alphanumeric
was added to ruby in version 2.5.0 (see https://github.com/ruby/ruby/commit/b867882a1c2a358bb7a46f84365c86a959d35240 and https://github.com/ruby/ruby/blob/v2_5_0/NEWS).Ruby 2.4 is still supported by the ruby language team.
Currently you have to downgrade
multipart-post
to version2.0.0
, or upgrade the ruby to at least version2.5.0
.See https://github.com/socketry/multipart-post/commit/a8bccb99f020594500bf7e84a05471888d9a93f5 for the introducing commit.