v0.2.0
New
- An
.exists?
method has been added toPcloud::Folder
andPcloud::File
- The
.find_by
method onPcloud::Folder
andPcloud::File
can now be called with either:id
or:path
parameters.- NOTE: pCloud treats
:id
with precedence, so an error will be raised if the method is called with both parameters at once. (Allowing precedence in a method like this would likely feel like unexpected behavior, so my intention was to make it immediately obvious to the end user.)
- NOTE: pCloud treats
Changes
- The
created_at
andmodified_at
timestamps onPcloud::Folder
andPcloud::File
are now returned as RubyTime
objects (specificallyTZInfo::TimeWithOffset
).- NOTE: if you were previously parsing the string timestamps out into time objects, you may see errors like
no implicit conversion of TZInfo::TimeWithOffset into String
- NOTE: if you were previously parsing the string timestamps out into time objects, you may see errors like
- Some error class names and messages have been cleaned up for additional clarity and consistency.