fun_sftp 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/fun_sftp.rb +4 -4
- data/lib/fun_sftp/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4321bd7cdf279cfd2d1362f1831615ba9a64fdf9
|
4
|
+
data.tar.gz: a525fcdd94e1394a2b151eddd2696a79b70a7021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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!(
|
46
|
+
def download!(remote, local) #fetch from remote to local
|
47
47
|
opts = { progress: DownloadCallbacks.new, recursive: true}
|
48
|
-
|
48
|
+
converted_remote_path = clean_path(remote)
|
49
49
|
opts.delete(:progress) unless FunSftp.loggable?
|
50
|
-
opts.delete(:recursive) unless has_directory?(
|
51
|
-
client.download!(
|
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
|
data/lib/fun_sftp/version.rb
CHANGED
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.
|
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:
|
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.
|
110
|
+
rubygems_version: 2.6.8
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: FunSFTP for secure file transfers
|