mass-client 1.0.24 → 1.0.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/base-line/profile.rb +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 960021fea3e8dc9a0735b20a24730083231b8109ec74dd738a3d8508ff5ced3a
4
- data.tar.gz: 126df561fa20424d26c71d3b6b32000b7ae1ae72b6beda64bc37e9bfef56894b
3
+ metadata.gz: 5768caa40938991a8b3622882554c8cf6007b1eaa6a515a567239a37ac0ad69b
4
+ data.tar.gz: 1b583d8993f857ee75fc41c70988229d1a842457f512e1eaf5d78c6fa2d98ef6
5
5
  SHA512:
6
- metadata.gz: 92bb76f6c2cd71c2b9d5cbcc84fce102c7c5ab2de8949e6dedf5a09d8f928e221563133049ff212d4d601ea317b714a77e0767016d9e671c3df365b6120fc06f
7
- data.tar.gz: 402f6999e082f2bc4e90168915a165c2f336bd3547bbd360e909d07ddc879af3add9c3d1363a39198d7a5d4e443505d7adc1936840b93a58d2b6131d8144e149
6
+ metadata.gz: 6310d3567d96a961ed126ed2d83dffdf48c4d4fa30b9a5681e5d6d40f1b22cfd5266197ce46e0ca4cf7536d934771dc0cfc5a27546fe2e242191037e0f796829
7
+ data.tar.gz: d8bc9fa2b1888143c673b40c54924edd2b5eda70929f925215d6cc268d7bd0c5cdd784092dd5a87c9e469bd330cda887fd75dea907fe5f1833ca9a716959b82d
@@ -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 = 5 # Maximum time in seconds to wait for the lock
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mass-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.24
4
+ version: 1.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi