net-ssh-simple 1.2.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,24 @@
1
+ #
2
+ # Copyright (C) 2011 by moe@busyloop.net
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in
12
+ # all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ # THE SOFTWARE.
21
+ #
1
22
  require 'net/ssh/simple/version'
2
23
  require 'blockenspiel'
3
24
  require 'hashie'
@@ -1,3 +1,24 @@
1
+ #
2
+ # Copyright (C) 2011 by moe@busyloop.net
3
+ #
4
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ # of this software and associated documentation files (the "Software"), to deal
6
+ # in the Software without restriction, including without limitation the rights
7
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ # copies of the Software, and to permit persons to whom the Software is
9
+ # furnished to do so, subject to the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be included in
12
+ # all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ # THE SOFTWARE.
21
+ #
1
22
  module Net
2
23
  module SSH
3
24
  # Net::SSH::Simple is a simple wrapper around Net::SSH and Net::SCP.
@@ -559,7 +580,7 @@ module Net
559
580
  @result[:success] = false
560
581
  @result[:timed_out] = true
561
582
  @result[:finish_at] = Time.new
562
- raise Net::SSH::Simple::Error, [e, [host,opts,@result]]
583
+ raise Net::SSH::Simple::Error, [e, @result]
563
584
  end
564
585
  end
565
586
 
@@ -590,20 +611,13 @@ module Net
590
611
  # Reference to the underlying Exception
591
612
  attr_reader :wrapped
592
613
 
593
- # Context of the operation that failed, as an Array: [host, opts, result].
594
- #
595
- # @deprecated
596
- # This will be removed soon, use {#result} instead!
597
- attr_reader :context
598
-
599
614
  # {Net::SSH::Simple::Result} of the interrupted operation.
600
615
  attr_reader :result
601
616
 
602
617
  def initialize(msg, e=$!)
603
618
  super(msg)
604
619
  @wrapped = e
605
- @context = msg[1]
606
- @result = msg[1][2]
620
+ @result = msg[1]
607
621
  end
608
622
 
609
623
  def to_s
@@ -1,7 +1,7 @@
1
1
  module Net
2
2
  module SSH
3
3
  class Simple
4
- VERSION = "1.2.1"
4
+ VERSION = "1.3.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ssh-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-25 00:00:00.000000000Z
12
+ date: 2011-10-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh
16
- requirement: &17315940 !ruby/object:Gem::Requirement
16
+ requirement: &10094940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.1.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17315940
24
+ version_requirements: *10094940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: net-scp
27
- requirement: &17315180 !ruby/object:Gem::Requirement
27
+ requirement: &10094180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *17315180
35
+ version_requirements: *10094180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: blockenspiel
38
- requirement: &17314420 !ruby/object:Gem::Requirement
38
+ requirement: &10093180 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.4.3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *17314420
46
+ version_requirements: *10093180
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: hashie
49
- requirement: &17311140 !ruby/object:Gem::Requirement
49
+ requirement: &10090120 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.1.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *17311140
57
+ version_requirements: *10090120
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rake
60
- requirement: &17310360 !ruby/object:Gem::Requirement
60
+ requirement: &10089500 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.9.2.2
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *17310360
68
+ version_requirements: *10089500
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
- requirement: &17309700 !ruby/object:Gem::Requirement
71
+ requirement: &10088820 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *17309700
79
+ version_requirements: *10088820
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: cover_me
82
- requirement: &17308880 !ruby/object:Gem::Requirement
82
+ requirement: &10088120 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *17308880
90
+ version_requirements: *10088120
91
91
  description: Net::SSH::Simple is a simple wrapper around Net::SSH and Net::SCP.
92
92
  email:
93
93
  - moe@busyloop.net
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  segments:
126
126
  - 0
127
- hash: -219310430856691553
127
+ hash: 2613341470762730453
128
128
  requirements: []
129
129
  rubyforge_project:
130
130
  rubygems_version: 1.8.10