Skip to content

v0.2.0

Compare
Choose a tag to compare
@jhunschejones jhunschejones released this 08 Oct 01:42
· 47 commits to master since this release
4dcbeb6

New

  1. An .exists? method has been added to Pcloud::Folder and Pcloud::File
  2. The .find_by method on Pcloud::Folder and Pcloud::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.)

Changes

  1. The created_at and modified_at timestamps on Pcloud::Folder and Pcloud::File are now returned as Ruby Time objects (specifically TZInfo::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
  2. Some error class names and messages have been cleaned up for additional clarity and consistency.