fun_sftp 1.1.0 → 1.1.1

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: f542665943daf0252b5c909c866daeaa3b2e4ef8
4
- data.tar.gz: d5a17ecb648aa1f190cfe00ee574017f305751e8
3
+ metadata.gz: 4321bd7cdf279cfd2d1362f1831615ba9a64fdf9
4
+ data.tar.gz: a525fcdd94e1394a2b151eddd2696a79b70a7021
5
5
  SHA512:
6
- metadata.gz: bc0f0059a666a57f1801e574cb72d3dc4dee43b1ef8a037a488e7fa2facf483a2eb6a7ca91a472c234d6393a82675c1664212a2d583739ddf4248b09cb7b6d58
7
- data.tar.gz: 4d4a4d1ac18f020de9b111d3415460dfdbecb29440a0b349d9bdbb5d942c60a2c47ab3bc6326f6cb518b6bda7704d1a184cdabc463f9325ace97d9bf5f4aa581
6
+ metadata.gz: 6236a1788a0a51a95c6640a15742aa810a4d1358d93a08a8a91c7fae0d5f24081d3aaaa59f12108ead5f22b8036a52918978110eff357131084d71a9b99a318a
7
+ data.tar.gz: 36716df02183be8c014e59104e3092c2d1b29777fa42fe1f72fe807c7acd589ecb1a2bb7e9bf02635f8c96f456d0bb920836d7970bfa9efcf1510a8f3b116138
data/README.md CHANGED
@@ -188,7 +188,7 @@ Contribute
188
188
  License
189
189
  -------
190
190
 
191
- Copyright (c) 2016 George Diaz
191
+ Copyright (c) 2017 George Diaz
192
192
 
193
193
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
194
194
 
data/lib/fun_sftp.rb CHANGED
@@ -43,12 +43,12 @@ module FunSftp
43
43
  client.upload!(src, converted_target, opts)
44
44
  end
45
45
 
46
- def download!(target, src) #fetch locally from remote
46
+ def download!(remote, local) #fetch from remote to local
47
47
  opts = { progress: DownloadCallbacks.new, recursive: true}
48
- converted_target = clean_path(target)
48
+ converted_remote_path = clean_path(remote)
49
49
  opts.delete(:progress) unless FunSftp.loggable?
50
- opts.delete(:recursive) unless has_directory?(target)
51
- client.download!(converted_target, src, opts)
50
+ opts.delete(:recursive) unless has_directory?(remote)
51
+ client.download!(converted_remote_path, local, opts)
52
52
  end
53
53
 
54
54
  def read(path) #read a file
@@ -1,3 +1,3 @@
1
1
  module FunSftp
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fun_sftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Diaz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-03 00:00:00.000000000 Z
11
+ date: 2017-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-sftp
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project: fun_sftp
110
- rubygems_version: 2.2.2
110
+ rubygems_version: 2.6.8
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: FunSFTP for secure file transfers