lds-cf-plugin 0.3.2 → 0.3.3

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.
@@ -1,5 +1,6 @@
1
1
  require 'eventmachine'
2
2
  require 'interact/pretty'
3
+ require 'socket'
3
4
 
4
5
  module TunnelClient
5
6
 
@@ -29,7 +30,7 @@ module TunnelClient
29
30
  end
30
31
 
31
32
  def post_init
32
- puts 'Opening new connection to server...'
33
+ puts "Forwarding connection to server..."
33
34
  pause
34
35
  @connection = EventMachine.connect(@tunnel_server_host, @tunnel_server_port, TunnelConnection, self)
35
36
  end
@@ -71,6 +72,7 @@ module TunnelClient
71
72
  case frame_type
72
73
  when 'E', 'e'
73
74
  # Error
75
+ puts "Server error: #{frame_body}"
74
76
  close_connection
75
77
  raise frame_body
76
78
  when 'R', 'r'
@@ -148,8 +148,7 @@ module LdsCfPlugin
148
148
  line
149
149
 
150
150
  EventMachine.error_handler do |e|
151
- EventMachine.stop_event_loop
152
-
151
+ puts "Error: #{c(e, :error)}"
153
152
  log_error(e)
154
153
  end
155
154
 
@@ -1,3 +1,3 @@
1
1
  module LdsCfPlugin
2
- VERSION = "0.3.2".freeze
2
+ VERSION = "0.3.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lds-cf-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.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: 2013-09-18 00:00:00.000000000 Z
12
+ date: 2013-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cf