dcas-ruby 0.3.9 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.9
1
+ 0.4.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dcas-ruby}
8
- s.version = "0.3.9"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["BehindLogic"]
12
- s.date = %q{2010-02-01}
12
+ s.date = %q{2010-02-10}
13
13
  s.description = %q{Ruby codebase for creating payment batch files for DCAS, uploading them, and receiving response files from DCAS.}
14
14
  s.email = %q{gems@behindlogic.com}
15
15
  s.extra_rdoc_files = [
@@ -28,6 +28,19 @@ class Net::FTPS::Implicit < Net::FTP
28
28
  end
29
29
  attr_accessor :data_protection
30
30
 
31
+ def self.open(host, user=nil, passwd=nil, acct=nil, verify_mode=OpenSSL::SSL::VERIFY_PEER)
32
+ if block_given?
33
+ ftps = new(host, user, passwd, acct, verify_mode)
34
+ begin
35
+ yield ftps
36
+ ensure
37
+ ftps.close
38
+ end
39
+ else
40
+ new(host, user, passwd, acct, verify_mode)
41
+ end
42
+ end
43
+
31
44
  def open_socket(host, port, data_socket=false)
32
45
  tcpsock = if defined? SOCKSsocket and ENV["SOCKS_SERVER"]
33
46
  @passive = true
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.9
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BehindLogic
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-01 00:00:00 -05:00
12
+ date: 2010-02-10 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency