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 +1 -1
- data/dcas-ruby.gemspec +2 -2
- data/lib/net/ftps_implicit.rb +13 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/dcas-ruby.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dcas-ruby}
|
8
|
-
s.version = "0.
|
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-
|
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 = [
|
data/lib/net/ftps_implicit.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2010-02-10 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|