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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/dcas-ruby.gemspec +1 -1
  3. data/lib/dcas.rb +4 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.7
data/dcas-ruby.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dcas-ruby}
8
- s.version = "0.3.6"
8
+ s.version = "0.3.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["BehindLogic"]
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcas-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - BehindLogic