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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af6b500341ec8519c6a00209062fe5c87795416f
4
- data.tar.gz: 3d9d3ba31e952470ccb2cd31818913d69da9e3af
3
+ metadata.gz: a21ace12a48f5f7dffef8a49500c4099bc29a2aa
4
+ data.tar.gz: 770e0e388fc64f8de0e7b116701f6765d4ca4509
5
5
  SHA512:
6
- metadata.gz: 5e58308523925e5de233a5e463e8099b26a302b8b1c1bbcd768a2337d981739c50faa74118bb6fab94a0623086bcc0c6b07bff1542e944b4d080056d6314fa20
7
- data.tar.gz: b53b99bd2d481a38389c0168facae1a6184fb094358596e56f81b50b78c440fbd1bd084e35f02604b30185f640cedfdf7abd8b30dd1edc8cfd5e4e9942802405
6
+ metadata.gz: 0cc67b957f9a055240d0e2628407b33b803b005c56869f1b243cef8aaa276d220fd3470c1828c64e1b5cc91aad4a9fbb114c749892ad182369aa7a3598d42992
7
+ data.tar.gz: 85d66d57f27d6132393f59b91e39e161ab5274dac591e558e92097a03661a6a365bfd7065ed5416a0632ca320c620a797983833e1fd82e3556cbca57262e049d
@@ -1,4 +1,11 @@
1
+ ## 0.1.3
2
+
3
+ Bugfixes:
4
+
5
+ - Active mode transfers send proper commands with Ruby > 2.2.2
6
+
1
7
  ## 0.1.2
8
+
2
9
  Bugfixes:
3
10
 
4
11
  - Reuse SSL session when creating new sockets
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "double-bag-ftps"
6
- s.version = "0.1.2"
6
+ s.version = "0.1.3"
7
7
  s.license = "MIT"
8
8
  s.author = "Bryan Nix"
9
9
  s.homepage = "https://github.com/bnix/double-bag-ftps"
@@ -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.2
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: 2014-01-12 00:00:00.000000000 Z
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.0.14
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.