remote_marshal 0.1.2 → 0.1.3

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: fa5733ac118728a874c42e5226f3816cf30b9709
4
- data.tar.gz: 30d84478fd19b36898430a06370070e0c2561454
3
+ metadata.gz: 3075cb60bf8f85c1f4e6bda1be5edfc662a32239
4
+ data.tar.gz: dd5becd7180999d4953e356118457cf0dfad3f65
5
5
  SHA512:
6
- metadata.gz: 2a2996f2b1e5804d14c31058ae4155d08e2e516e50975969f1db285067232008918f2a4cc00e6f43111995c50c9a79752a779ca5340cf4fe64453168936ff389
7
- data.tar.gz: f56c77b3be25a21bf2fdac3297ed6da556e4225dbdaa65ad93f3a76aee9fb7a9cd914ecbde42902957a032b8b2a18d8e4f1992e41489e23d1aa617897c0f3833
6
+ metadata.gz: 3613211a8a5312f1d19b29d4995d6dbc5095dffed75c792146ed3903d19194822a4e4d6fe2e4974fcede80d0578dee187e7ed837ecad827aea400d29dc58881f
7
+ data.tar.gz: 22a62586eb83c41725de9e0a83964ca8e94abc03afc65d96d85cfc6018fe05760dbb19f36b7bcc9623172f05721a9b69d2c3f2d2ff8404f3b59d07bf7769e7fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- remote_marshal (0.1.2)
4
+ remote_marshal (0.1.3)
5
5
  net-scp
6
6
  net-ssh
7
7
  sourcify
@@ -32,7 +32,7 @@ class RemoteMarshal
32
32
  channel.wait
33
33
  end
34
34
 
35
- [status, (status == 0 ? output : error).join]
35
+ [status] + [output, error].map(&:join)
36
36
  end
37
37
 
38
38
  %i(upload! download!).each do |name|
@@ -48,21 +48,21 @@ class RemoteMarshal
48
48
  private
49
49
 
50
50
  def call(&block)
51
- status, output = mktmpdir
51
+ status, output, error = mktmpdir
52
52
 
53
- return [status, output] unless status == 0
53
+ return [status, output, error] unless status == 0
54
54
 
55
- dir = output.chomp
56
- ret = block.(dir)
57
- status, output = remove_entry_secure(dir)
55
+ dir = output.chomp
56
+ ret = block.(dir)
57
+ status, output, error = remove_entry_secure(dir)
58
58
 
59
- return [status, output] unless status == 0
59
+ return [status, output, error] unless status == 0
60
60
 
61
- status, output = *ret
61
+ status, output, error = *ret
62
62
 
63
- return [status, output] unless status == 0
63
+ return [status, output, error] unless status == 0
64
64
 
65
- [status, Marshal.load(output.chomp)]
65
+ [status, Marshal.load(output.chomp), error]
66
66
  end
67
67
 
68
68
  def mktmpdir
@@ -1,3 +1,3 @@
1
1
  class RemoteMarshal
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_marshal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - daisuko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-09 00:00:00.000000000 Z
11
+ date: 2016-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh