uploadcare / uploadcare-ruby

Ruby API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
https://uploadcare.com
MIT License
39 stars 28 forks source link

fix NoMethodErrors in Auth::Secure and NameError in spec/resources/file_spec.rb #28

Closed vizvamitra closed 7 years ago

vizvamitra commented 7 years ago

New versions of bundler (1.14.5, 1.12.6) don't require 'time' and 'securerandom' anymore. According to a comment here by one of bundler's maintainers, it is somehow related to upcoming changes in ruby 2.5.

This causes NoMethodErrors in secure auth implementation (uses Time#rfc2822) and NameErrors in spec/resources/file_spec.rb' (usesSecureRandom`).

Ruby 2.5 is currenlty not even in beta, so things may change, but the fact is that our gem is broken with this new versions of bundler. This is the fix.