rubygems_over_ssh 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rubygems_over_ssh.rb +2 -4
  2. metadata +2 -2
@@ -19,7 +19,7 @@ module RubyGemsOverSSH
19
19
  key = host + ":" + port.to_s
20
20
  @tunnels ||= {}
21
21
  @tunnels[key] ||= begin
22
- gateway = Net::SSH::Gateway.new(host, `whoami`.chomp)
22
+ gateway = Net::SSH::Gateway.new(host, nil)
23
23
  local_port = open_tunnel(gateway, port)
24
24
  puts "rubygemsoverssh: opened tunnel to #{key} (listening locally on #{local_port})"
25
25
  {:gateway => gateway, :local_port => local_port}
@@ -56,7 +56,7 @@ end
56
56
 
57
57
  begin
58
58
  require 'rubygems/commands/inabox_command'
59
- rescue
59
+ rescue LoadError
60
60
  end
61
61
 
62
62
  if Gem::Commands.const_defined?(:InaboxCommand)
@@ -67,8 +67,6 @@ if Gem::Commands.const_defined?(:InaboxCommand)
67
67
  host = geminabox_host_without_tunnel
68
68
  uri = URI.parse(host)
69
69
  if uri.scheme == "ssh+http"
70
- puts uri.inspect
71
- puts uri.port
72
70
  local_port = RubyGemsOverSSH.init_tunnel(uri.host, uri.port)
73
71
  host = "http://localhost:#{local_port}/"
74
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems_over_ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-30 00:00:00.000000000 Z
12
+ date: 2012-06-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-ssh-gateway