sshkeyauth 0.0.9 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/ssh/key/verifier.rb +4 -4
  2. metadata +9 -9
@@ -48,7 +48,7 @@ module SSH; module Key; class Verifier
48
48
  @agent.connect! if !@agent.socket
49
49
  rescue Net::SSH::Authentication::AgentNotAvailable => e
50
50
  @use_agent = false
51
- @logger.warn "SSH Agent not available"
51
+ @logger.info "SSH Agent not available"
52
52
  rescue => e
53
53
  @use_agent = false
54
54
  @logger.warn "Unexpected error ocurred. Disabling agent usage."
@@ -109,8 +109,8 @@ module SSH; module Key; class Verifier
109
109
 
110
110
  def verifying_identities
111
111
  identities = []
112
+ ensure_connected
112
113
  if @use_agent
113
- ensure_connected
114
114
  begin
115
115
  @agent.identities.each { |id| identities << id }
116
116
  rescue ArgumentError => e
@@ -167,7 +167,7 @@ module SSH; module Key; class Verifier
167
167
  end
168
168
 
169
169
  # If relative path, use the homedir.
170
- if !authorized_keys_file[0,1] == "/"
170
+ if authorized_keys_file[0,1] != "/"
171
171
  if account_info == nil
172
172
  @logger.warn("No homedirectory for #{@account} and authorized_keys path is relative, skipping authorized_keys")
173
173
  return nil
@@ -200,7 +200,7 @@ module SSH; module Key; class Verifier
200
200
  @logger.info("AuthorizedKeysFile ==> #{authorized_keys_file}")
201
201
  File.new(authorized_keys_file).each do |line|
202
202
  next if line =~ /^\s*$/ # Skip blanks
203
- next if line =~ /^\s*\#$/ # Skip comments
203
+ next if line =~ /^\s*\#/ # Skip comments
204
204
  @logger.info line
205
205
 
206
206
  comment = nil
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sshkeyauth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease: false
4
+ hash: 9
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordan Sissel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-07 00:00:00 -07:00
18
+ date: 2011-08-23 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -41,13 +41,13 @@ extensions: []
41
41
  extra_rdoc_files: []
42
42
 
43
43
  files:
44
+ - lib/ssh/key/signer.rb
44
45
  - lib/ssh/key/signature.rb
45
- - lib/ssh/key/helper.rb
46
46
  - lib/ssh/key/verifier.rb
47
- - lib/ssh/key/signer.rb
47
+ - lib/ssh/key/helper.rb
48
+ - samples/test.rb
48
49
  - samples/server.rb
49
50
  - samples/speed.rb
50
- - samples/test.rb
51
51
  - samples/client.rb
52
52
  has_rdoc: true
53
53
  homepage: http://github.com/jordansissel/ruby-sshkeyauth
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  requirements: []
81
81
 
82
82
  rubyforge_project:
83
- rubygems_version: 1.3.7
83
+ rubygems_version: 1.6.2
84
84
  signing_key:
85
85
  specification_version: 3
86
86
  summary: ssh key authentication (signing and verification)