dcas-ruby 0.3.6 → 0.3.7
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/VERSION +1 -1
- data/dcas-ruby.gemspec +1 -1
- data/lib/dcas.rb +4 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.7
|
data/dcas-ruby.gemspec
CHANGED
data/lib/dcas.rb
CHANGED
|
@@ -56,7 +56,7 @@ module DCAS
|
|
|
56
56
|
return nil
|
|
57
57
|
else
|
|
58
58
|
lock_object.submit_lock!(shortname) if lock_object
|
|
59
|
-
with_ftp do |ftp|
|
|
59
|
+
res = with_ftp do |ftp|
|
|
60
60
|
# 1) Create the STAGING folder if it's not already there.
|
|
61
61
|
begin
|
|
62
62
|
ftp.mkdir(DCAS::STAGING_BUCKET) unless ftp.nlst.include?(DCAS::STAGING_BUCKET)
|
|
@@ -88,6 +88,8 @@ module DCAS
|
|
|
88
88
|
false
|
|
89
89
|
end
|
|
90
90
|
end
|
|
91
|
+
lock_object.submit_failed!(shortname) if lock_object && res.nil?
|
|
92
|
+
res
|
|
91
93
|
end
|
|
92
94
|
end
|
|
93
95
|
|
|
@@ -173,6 +175,7 @@ module DCAS
|
|
|
173
175
|
yield
|
|
174
176
|
end
|
|
175
177
|
rescue Object
|
|
178
|
+
result = nil
|
|
176
179
|
ensure
|
|
177
180
|
@inside_with_ftp -= 1
|
|
178
181
|
ftp_done
|