net-ssh-backports 6.3.3.backports → 6.3.5.backports

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
  SHA256:
3
- metadata.gz: 918c2ff0c3480a29680cb420ff7c17f3c09c1dfd77e825602fd2ed3cbe5d1eac
4
- data.tar.gz: 56d4d76d1c08be13634ff811989ca3826acade09a1fe99910e3ff55f93557916
3
+ metadata.gz: 8f0926227faa7f95554bb3b35498266161a625e5419da811c2f3b28cf031bac5
4
+ data.tar.gz: f84f8c5d5801318f6b9a906fb49f0d6d5b0f9d99524103ad496a9d4029059f2d
5
5
  SHA512:
6
- metadata.gz: 6f6d6b0478fc004842a2cb1c1d18d7ed8680884d6fe8fec4aa5960d5c1d2fe1490678b67a4798e4832a8143cc4de01cbc41c1a3edd66eb5ac8901c4ba7fea11a
7
- data.tar.gz: 74b7797a3a061f980ce70ad183ed15670b101c1708fa6456d23d0418e02d759d78669d8c7fd4e768fdf935e251b36f9ca0877dacc712c0340179672f53673ff7
6
+ metadata.gz: ece9f000d7d5073c457c88a535b19d580c7343e415ab092ba3bbe4155b29aef96e30da80bcd1609e4bfa45deafebe9ffffb602965c709ee546ddbe8e54bf924a
7
+ data.tar.gz: 6e288d23a6ef7c63b404eb03761b301e734eade713238b4bf09474330e91d3d257083b90fa64a33f4b482030ca8372211154fc17f9afa320c9f72680fb7cd2c2
@@ -69,21 +69,24 @@ module Net
69
69
  attempted = []
70
70
 
71
71
  @auth_methods.each do |name|
72
- next unless @allowed_auth_methods.include?(name)
73
-
74
- attempted << name
75
-
76
- debug { "trying #{name}" }
77
72
  begin
78
- auth_class = Methods.const_get(name.split(/\W+/).map { |p| p.capitalize }.join)
79
- method = auth_class.new(self, key_manager: key_manager, password_prompt: options[:password_prompt])
80
- rescue NameError
81
- debug {"Mechanism #{name} was requested, but isn't a known type. Ignoring it."}
82
- next
73
+ next unless @allowed_auth_methods.include?(name)
74
+
75
+ attempted << name
76
+
77
+ debug { "trying #{name}" }
78
+ begin
79
+ auth_class = Methods.const_get(name.split(/\W+/).map { |p| p.capitalize }.join)
80
+ method = auth_class.new(self, key_manager: key_manager, password_prompt: options[:password_prompt])
81
+ rescue NameError
82
+ debug {"Mechanism #{name} was requested, but isn't a known type. Ignoring it."}
83
+ next
84
+ end
85
+
86
+ return true if method.authenticate(next_service, username, password)
87
+ rescue Net::SSH::Authentication::DisallowedMethod => e
88
+ raise e
83
89
  end
84
-
85
- return true if method.authenticate(next_service, username, password)
86
- rescue Net::SSH::Authentication::DisallowedMethod
87
90
  end
88
91
 
89
92
  error { "all authorization methods failed (tried #{attempted.join(', ')})" }
@@ -52,7 +52,7 @@ module Net
52
52
  MINOR = 3
53
53
 
54
54
  # The tiny component of this version of the Net::SSH library
55
- TINY = 3
55
+ TINY = 5
56
56
 
57
57
  # The prerelease component of this version of the Net::SSH library
58
58
  # nil allowed
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ssh-backports
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.3.backports
4
+ version: 6.3.5.backports
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck