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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56daca564663468ad6609a7773094dded5fff836
4
- data.tar.gz: 5414b2ae7aa25c2e11037bf9d51673ee8fcf6a5f
3
+ metadata.gz: e5e19e6ba51702580ffb8a2d47fa9101817cbdca
4
+ data.tar.gz: 60e3d34b93a9e519c705c614e4a31987d9c455b8
5
5
  SHA512:
6
- metadata.gz: 2849161d48343fab895ff4bf92845aa3515e85a26d21b5888aba2e07c02562afe0ebeb298995abb64cfcecdaffbe3da581c5e4d4fe56b3560d4ccdbd603b1f04
7
- data.tar.gz: aab0c8f84c44ffafd7bd4f28c2a52a8924e2a61be72d95f6e94c30cb99bdf32fe0f5f3ac6d88d7b5361cd873b2e783bfd15a627a96ceb8d1af56b883cc2deb44
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('ftps://hostname', credentials: { login: 'login', password: 'pass' }) do |x|
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('ftps://hostname', credentials: { login: 'login', password: 'password' }) do |x|
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('ftps://hostname', credentials: credentials)
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)
@@ -7,7 +7,7 @@ module XFTP
7
7
  class Client
8
8
  SCHEME_ADAPTERS = {
9
9
  ftp: XFTP::Session::FTP,
10
- ftps: XFTP::Session::SFTP
10
+ sftp: XFTP::Session::SFTP
11
11
  }
12
12
 
13
13
  def self.start(url, settings, &callback)
@@ -2,8 +2,8 @@ module XFTP
2
2
  # Gem version builder module
3
3
  module VERSION
4
4
  MAJOR = 0
5
- MINOR = 4
6
- PATCH = 4
5
+ MINOR = 5
6
+ PATCH = 0
7
7
  SUFFIX = ''
8
8
 
9
9
  NUMBER = [MAJOR, MINOR, PATCH].compact.join('.')
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.4
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-05 00:00:00.000000000 Z
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.9.0
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.9.0
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.4.4
227
+ summary: xftp-0.5.0
234
228
  test_files: []
235
229
  has_rdoc: