file_transfer 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module FileTransfer # :nodoc:
2
- VERSION = "0.0.5" # :nodoc:
2
+ VERSION = "0.0.6" # :nodoc:
3
3
  end
data/lib/file_transfer.rb CHANGED
@@ -44,8 +44,9 @@ module FileTransfer
44
44
 
45
45
  def self.upload(type, options, paths)
46
46
  handler = FileTransferHandler.new type, options
47
- handler.upload paths
47
+ result = handler.upload paths
48
48
  handler.close
49
+ result
49
50
  end
50
51
 
51
52
  # <tt>FileTransfer.download :ftp,
@@ -58,26 +59,30 @@ module FileTransfer
58
59
 
59
60
  def self.download(type, options, paths)
60
61
  handler = FileTransferHandler.new type, options
61
- handler.download paths
62
+ result = handler.download paths
62
63
  handler.close
64
+ result
63
65
  end
64
66
 
65
67
  def self.remove(type, options, paths)
66
68
  handler = FileTransferHandler.new type, options
67
- handler.remove paths
69
+ result = handler.remove paths
68
70
  handler.close
71
+ result
69
72
  end
70
73
 
71
74
  def self.list(type, options, path)
72
75
  handler = FileTransferHandler.new type, options
73
- handler.list path
76
+ result = handler.list path
74
77
  handler.close
78
+ result
75
79
  end
76
80
 
77
81
  def self.exists?(type, options, path)
78
82
  handler = FileTransferHandler.new type, options
79
- handler.exists? path
83
+ result = handler.exists? path
80
84
  handler.close
85
+ result
81
86
  end
82
87
 
83
88
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_transfer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-12 00:00:00.000000000 Z
12
+ date: 2012-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec