rye 0.8.17 → 0.8.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES.txt +4 -0
  2. data/lib/rye.rb +1 -1
  3. data/lib/rye/box.rb +2 -2
  4. data/rye.gemspec +1 -1
  5. metadata +2 -2
@@ -1,5 +1,9 @@
1
1
  RYE, CHANGES
2
2
 
3
+ #### 0.8.18 (2010-06-19) #############################
4
+
5
+ * FIXED: Authentication would never succeed if the first password attempt failed.
6
+
3
7
  #### 0.8.17 (2010-05-19) #############################
4
8
 
5
9
  * FIXED: authorize_keys_remote was using incorrect home directory
data/lib/rye.rb CHANGED
@@ -42,7 +42,7 @@ require 'esc'
42
42
  module Rye
43
43
  extend self
44
44
 
45
- VERSION = "0.8.17".freeze unless defined?(VERSION)
45
+ VERSION = "0.8.18".freeze unless defined?(VERSION)
46
46
 
47
47
  @@sysinfo = nil
48
48
  @@agent_env = Hash.new # holds ssh-agent env vars
@@ -650,9 +650,9 @@ module Rye
650
650
  retried += 1
651
651
  if STDIN.tty? && retried <= 3
652
652
  STDERR.puts "Passwordless login failed for #{@rye_user}"
653
- @rye_opts[:password] = highline.ask("Password: ") { |q| q.echo = '' }
653
+ @rye_opts[:password] = highline.ask("Password: ") { |q| q.echo = '' }.strip
654
654
  @rye_opts[:auth_methods] ||= []
655
- @rye_opts[:auth_methods] << 'password'
655
+ @rye_opts[:auth_methods].push *['keyboard-interactive', 'password']
656
656
  retry
657
657
  else
658
658
  raise Net::SSH::AuthenticationFailed
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "rye"
3
3
  s.rubyforge_project = "rye"
4
- s.version = "0.8.17"
4
+ s.version = "0.8.18"
5
5
  s.summary = "Rye: Safely run SSH commands on a bunch of machines at the same time (from Ruby)."
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.17
4
+ version: 0.8.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-05-19 00:00:00 -04:00
12
+ date: 2010-06-19 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency