dbox 0.6.3 → 0.6.4
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.
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/dbox.gemspec +1 -1
- data/lib/dbox/api.rb +0 -10
- metadata +3 -3
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.4
|
data/dbox.gemspec
CHANGED
data/lib/dbox/api.rb
CHANGED
@@ -151,16 +151,6 @@ module Dbox
|
|
151
151
|
|
152
152
|
def put_file(path, file_obj, previous_revision=nil)
|
153
153
|
log.info "Uploading #{path}"
|
154
|
-
|
155
|
-
# temporary workaround for bug in Dropbox /put_files API where
|
156
|
-
# passing a valid older parent_rev causes a 500
|
157
|
-
if previous_revision
|
158
|
-
m = metadata(path)
|
159
|
-
if m && m[:rev] && m[:rev] != previous_revision
|
160
|
-
previous_revision = nil
|
161
|
-
end
|
162
|
-
end
|
163
|
-
|
164
154
|
run(path) do
|
165
155
|
@client.put_file(path, file_obj, false, previous_revision)
|
166
156
|
end
|
metadata
CHANGED