double-bag-ftps 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/double_bag_ftps.gemspec +1 -1
- data/lib/double_bag_ftps.rb +5 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a21ace12a48f5f7dffef8a49500c4099bc29a2aa
|
4
|
+
data.tar.gz: 770e0e388fc64f8de0e7b116701f6765d4ca4509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cc67b957f9a055240d0e2628407b33b803b005c56869f1b243cef8aaa276d220fd3470c1828c64e1b5cc91aad4a9fbb114c749892ad182369aa7a3598d42992
|
7
|
+
data.tar.gz: 85d66d57f27d6132393f59b91e39e161ab5274dac591e558e92097a03661a6a365bfd7065ed5416a0632ca320c620a797983833e1fd82e3556cbca57262e049d
|
data/CHANGELOG.md
CHANGED
data/double_bag_ftps.gemspec
CHANGED
data/lib/double_bag_ftps.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'net/ftp'
|
2
|
+
require 'rubygems'
|
2
3
|
begin
|
3
4
|
require 'openssl'
|
4
5
|
rescue LoadError
|
@@ -109,6 +110,10 @@ class DoubleBagFTPS < Net::FTP
|
|
109
110
|
conn = ssl_socket(conn) # SSL connection now possible after cmd sent
|
110
111
|
else
|
111
112
|
sock = makeport
|
113
|
+
# Before ruby-2.2.3, makeport did a sendport automatically
|
114
|
+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.2.3")
|
115
|
+
sendport(sock.addr[3], sock.addr[1])
|
116
|
+
end
|
112
117
|
if @resume and rest_offset
|
113
118
|
resp = sendcmd('REST ' + rest_offset.to_s)
|
114
119
|
if resp[0] != ?3
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: double-bag-ftps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Nix
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description:
|
@@ -44,7 +44,7 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
-
- .gitignore
|
47
|
+
- ".gitignore"
|
48
48
|
- CHANGELOG.md
|
49
49
|
- LICENSE
|
50
50
|
- README.md
|
@@ -63,17 +63,17 @@ require_paths:
|
|
63
63
|
- lib
|
64
64
|
required_ruby_version: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- -
|
71
|
+
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
75
|
rubyforge_project:
|
76
|
-
rubygems_version: 2.
|
76
|
+
rubygems_version: 2.5.1
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: Provides a child class of Net::FTP to support implicit and explicit FTPS.
|