Releases: jhunschejones/pcloud_api
Releases · jhunschejones/pcloud_api
v0.2.6
🐛 Bugfix
- 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
🐛 Bugfix
- When passing the optional
recursive: true
onPcloud::Folder#find
orPcloud::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 allPcloud::File
andPcloud::Folder
objects.
v0.2.4
Changes
- You can now specify
recursive: true
onPcloud::Folder#find
andPcloud::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. - You can now configure the pCloud API read and connect timeouts via a new
timeout_seconds
argument toPcloud::Client.configure()
. The previous way to set this value via aPCLOUD_API_TIMEOUT_SECONDS
environment variable continues to work as before.
v0.2.3
Changes
Pcloud::File
'supload
method no longer requires a:filename
param, since pCloud just reads it off of the file object and ignores the param anyway- Both
Pcloud::File
andPcloud::Folder
'supdate
andupdate!
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
Changes
- 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
Changes
- Simplifying the errors returned from
Pcloud::Folder
andPcloud::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
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.
v0.1.0
Initial release