Skip to content

Releases: jhunschejones/pcloud_api

v0.2.6

09 Jun 12:15
Compare
Choose a tag to compare

🐛 Bugfix

  1. Added a missing require "time" statement that resulted in errors for folks building and testing the gem locally. This should not affect production behavior.

Full Changelog: v0.2.5...v0.26

v0.2.5

05 May 15:58
d152ba0
Compare
Choose a tag to compare

🐛 Bugfix

  1. When passing the optional recursive: true on Pcloud::Folder#find or Pcloud::Folder#find_by methods to load all the folders contents recursively in v0.2.4, recursive contents were not correctly parsed into objects. This release fixes that bug so that the recursive file tree is all Pcloud::File and Pcloud::Folder objects.

v0.2.4

05 May 15:15
Compare
Choose a tag to compare

Changes

  1. You can now specify recursive: true on Pcloud::Folder#find and Pcloud::Folder#find_by methods to load all the folders contents recursively. Note that this may result in long request times for folders with many items in them.
  2. You can now configure the pCloud API read and connect timeouts via a new timeout_seconds argument to Pcloud::Client.configure(). The previous way to set this value via a PCLOUD_API_TIMEOUT_SECONDS environment variable continues to work as before.

v0.2.3

14 Dec 18:59
bba99ed
Compare
Choose a tag to compare

Changes

  1. Pcloud::File's upload method no longer requires a :filename param, since pCloud just reads it off of the file object and ignores the param anyway
  2. Both Pcloud::File and Pcloud::Folder's update and update! methods now allow either partial paths (starting and ending with slashes) or full paths. This is a little more dangerous if you specify a full path and you meant partial, but it's a reasonable use case to support.

v0.2.2

09 Oct 07:15
da464f4
Compare
Choose a tag to compare

Changes

  1. After enabling GitHub actions for this project, I discovered that the gem did not in fact work on all the versions of Ruby that I thought it supported. This update makes some small changes under the hood to bring support to Ruby 2.4 then updates the .gemspec to clarify that 2.3 is not in fact supported. All current users of the gem should see no behavior changes as a result of this update 👍🏻

v0.2.1

08 Oct 02:34
34bf8e7
Compare
Choose a tag to compare

Changes

  1. Simplifying the errors returned from Pcloud::Folder and Pcloud::File. This is purely a cleanup release, unless your client is explicitly checking error strings there should be no noticeable behavior change 👍🏻

v0.2.0

08 Oct 01:42
4dcbeb6
Compare
Choose a tag to compare

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.

v0.1.0

27 Sep 17:55
Compare
Choose a tag to compare

Initial release