xftp 0.4.4 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/xftp/client.rb +1 -1
- data/lib/xftp/version.rb +2 -2
- metadata +5 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5e19e6ba51702580ffb8a2d47fa9101817cbdca
|
4
|
+
data.tar.gz: 60e3d34b93a9e519c705c614e4a31987d9c455b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7e9a8d7989510e12e71cf71fa028d723374aa9a6c1cad9ae071b96cf761e10667d2d73d2cdb84f70a9bcc9a5693c9ba7d2e8b3f612190f662d63c284a1321a0
|
7
|
+
data.tar.gz: 867594ddb21af43709ad2d432abe94765e2c705298434dd0547c845e914c1d1dfbd5ca9c520898a17431d782765144ea3d32d7b439204d8061b35e0e38dba972
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ $ gem install xftp
|
|
21
21
|
|
22
22
|
Basic example:
|
23
23
|
```ruby
|
24
|
-
XFTP.start('
|
24
|
+
XFTP.start('sftp://hostname', credentials: { login: 'login', password: 'pass' }) do |x|
|
25
25
|
x.chdir 'remote-src-path'
|
26
26
|
x.mkdir 'new-remote-dir'
|
27
27
|
x.rmdir 'dir-to-remove'
|
@@ -45,7 +45,7 @@ end
|
|
45
45
|
|
46
46
|
Example using `each_io`:
|
47
47
|
```ruby
|
48
|
-
XFTP.start('
|
48
|
+
XFTP.start('sftp://hostname', credentials: { login: 'login', password: 'password' }) do |x|
|
49
49
|
x.chdir 'some-dir'
|
50
50
|
x.each_io do |filename, io|
|
51
51
|
# do smth with it
|
@@ -55,7 +55,7 @@ end
|
|
55
55
|
|
56
56
|
Wihout block argument (ntoe that you should rely on you local execution context objects):
|
57
57
|
```ruby
|
58
|
-
XFTP.start('
|
58
|
+
XFTP.start('sftp://hostname', credentials: credentials)
|
59
59
|
chdir 'blahblah'
|
60
60
|
each_file do |filename|
|
61
61
|
download filename, to: File.join('local-dir', filename)
|
data/lib/xftp/client.rb
CHANGED
data/lib/xftp/version.rb
CHANGED
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasiliy Yorkin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-22 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
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.9'
|
20
17
|
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.
|
19
|
+
version: 1.7.0
|
23
20
|
type: :development
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.9'
|
30
24
|
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: 1.
|
26
|
+
version: 1.7.0
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: rake
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,6 +224,6 @@ rubyforge_project:
|
|
230
224
|
rubygems_version: 2.2.2
|
231
225
|
signing_key:
|
232
226
|
specification_version: 4
|
233
|
-
summary: xftp-0.
|
227
|
+
summary: xftp-0.5.0
|
234
228
|
test_files: []
|
235
229
|
has_rdoc:
|