mass-client 1.0.24 → 1.0.25
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 +4 -4
- data/lib/base-line/profile.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5768caa40938991a8b3622882554c8cf6007b1eaa6a515a567239a37ac0ad69b
|
4
|
+
data.tar.gz: 1b583d8993f857ee75fc41c70988229d1a842457f512e1eaf5d78c6fa2d98ef6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6310d3567d96a961ed126ed2d83dffdf48c4d4fa30b9a5681e5d6d40f1b22cfd5266197ce46e0ca4cf7536d934771dc0cfc5a27546fe2e242191037e0f796829
|
7
|
+
data.tar.gz: d8bc9fa2b1888143c673b40c54924edd2b5eda70929f925215d6cc268d7bd0c5cdd784092dd5a87c9e469bd330cda887fd75dea907fe5f1833ca9a716959b82d
|
data/lib/base-line/profile.rb
CHANGED
@@ -4,7 +4,7 @@ module Mass
|
|
4
4
|
|
5
5
|
# DROPBOX LOCKFILE PARAMETERS
|
6
6
|
LOCKFILE_PATH = '/tmp/dropbox_upload.lock' # Path to your lockfile
|
7
|
-
LOCK_TIMEOUT =
|
7
|
+
LOCK_TIMEOUT = 30 # Maximum time in seconds to wait for the lock
|
8
8
|
|
9
9
|
# DROPBOX LOCKFILE FUNCTIONS
|
10
10
|
def acquire_lock
|
@@ -27,6 +27,7 @@ module Mass
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def upload_to_dropbox_with_lock(tmp_path, path)
|
30
|
+
s = ''
|
30
31
|
acquire_lock
|
31
32
|
begin
|
32
33
|
# Upload the file to Dropbox
|
@@ -36,7 +37,7 @@ module Mass
|
|
36
37
|
raise "Dropbox file upload failed. Dropbox response: #{s}"
|
37
38
|
end
|
38
39
|
rescue => e
|
39
|
-
raise "Error during upload: #{e.message}"
|
40
|
+
raise "Error during upload: #{e.message} - Dropbox response: #{s}"
|
40
41
|
ensure
|
41
42
|
# Always release the lock, even if an error occurs
|
42
43
|
release_lock
|