Skip to content

Commit

Permalink
Bump version and update CHANGELOG for release
Browse files Browse the repository at this point in the history
  • Loading branch information
jhunschejones committed May 5, 2023
1 parent 8fded43 commit 2357020
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## 0.2.3 2021-12-14

**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.

## 0.2.3 2021-12-14

**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.
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ The `Pcloud::File` API includes:
# Find files by file :id or :path:
Pcloud::File.find(1)
Pcloud::File.find_by(path: "/images/jack_the_cat.jpg")
# NOTE: `find_by` can also be used with :id, though this will take precedence
# over :path so pick only one or the other
# NOTES:
# - `find_by` can also be used with :id, though this will take precedence over
# :path so pick only one or the other
# - Both `find` and `find_by` take an optional `recursive: true` argument which
# will recursively load all the folders contents. NOTE: this may result in
# long request times for folders with many items in them.

# Check if a file exists by :id
Pcloud::File.exists?(1)
Expand Down
2 changes: 1 addition & 1 deletion lib/pcloud/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Pcloud
VERSION = "0.2.3"
VERSION = "0.2.4"
end

0 comments on commit 2357020

Please sign in to comment.