pcloud_api 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ddd54a78436ca98f3be29ff57665673844bb2ecedbf5a31897bebc3aece48c32
4
- data.tar.gz: bf3a50ccccbaddce4ce6cf39a009ffb105062e307619f7db3ef9c2555e5604fc
3
+ metadata.gz: 7e204c8b87949a62b75cbec8924bd9522832f7c5e15b4467ad89b209fa28c784
4
+ data.tar.gz: 5f3b3ac8d0279bf911fe908207502afc81c81599f67974169eafebf529d23968
5
5
  SHA512:
6
- metadata.gz: a86f725489551a4640a236da72e7debfcecdd41858f18980c14a7c9a8ac4f85ce4475e7def2485656c1f9372d34a9527b5ad39a4b3817e3139261f695a89ec42
7
- data.tar.gz: 899a5a928e5e86a1390e813e2dfeb1d9967171393a5d9d186a848262e9ff2ee50b7b1643152f27a1a3289fd446efaccababa42ca5c9036fc5eef2641ca952a19
6
+ metadata.gz: 544b40799d93583fc1488daf3d2e6eceab589ac13813098a31cf89c63da44a5e7fcaffd721298803d7d001461786df24ae6b72ecfcfa6965214594da25a0d435
7
+ data.tar.gz: c091693a9d6b8323aa963b8e740e561d42906f840fcc0da58b759aa93e4e0f17db6e890ff3425e43b8c0146ad910d99abef117a49f6b3048db2b4d6fbd142fec
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.8 2025-11-01
2
+
3
+ **Bugfix**
4
+ 1. Fixed a bug where calling `.contents` on a truly empty folder would cause `SystemStackError`.
5
+
1
6
  ## 0.2.7 2025-08-01
2
7
 
3
8
  **Changes**
data/lib/pcloud/folder.rb CHANGED
@@ -65,9 +65,9 @@ module Pcloud
65
65
  # Some APIs return `nil` or `[]` for contents when a folder does actually
66
66
  # have contents. This method allows us to re-try one time if we try to get
67
67
  # the contents and find that they're missing.
68
- def contents
69
- return @contents if @contents_are_confirmed
70
- @contents = Folder.find(id).contents
68
+ def contents(is_retry: false)
69
+ return @contents if @contents_are_confirmed || is_retry
70
+ @contents = Folder.find(id).contents(is_retry: true)
71
71
  @contents_are_confirmed = true
72
72
  @contents
73
73
  end
@@ -1,3 +1,3 @@
1
1
  module Pcloud
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pcloud_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hunsche Jones
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-08-01 00:00:00.000000000 Z
10
+ date: 2025-11-01 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler