pry-remote-em 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,9 +37,13 @@ module PryRemoteEm
37
37
  end
38
38
 
39
39
  def post_init
40
- return fail("connection was not established") unless get_peername
41
- port, ip = Socket.unpack_sockaddr_in(get_peername)
42
- Kernel.puts "[pry-remote-em] client connected to pryem://#{ip}:#{port}/"
40
+ if get_peername
41
+ port, ip = Socket.unpack_sockaddr_in(get_peername)
42
+ Kernel.puts "[pry-remote-em] client connected to pryem://#{ip}:#{port}/"
43
+ else
44
+ # TODO use the args used to create this connection
45
+ Kernel.puts "[pry-remote-em] client connected"
46
+ end
43
47
  @nego_timer = EM::Timer.new(PryRemoteEm::NEGOTIMER) do
44
48
  fail("[pry-remote-em] server didn't finish negotiation within #{PryRemoteEm::NEGOTIMER} seconds; terminating")
45
49
  end
@@ -67,7 +67,7 @@ module PryRemoteEm
67
67
  @opts = opts
68
68
  if (a = opts[:auth])
69
69
  if a.respond_to?(:call)
70
- return error("auth handler procs must take two arguments") unless a.method(:call).arity == 2
70
+ return fail("auth handler procs must take two arguments not (#{a.method(:call).arity})") unless a.method(:call).arity == 2
71
71
  @auth = a
72
72
  else
73
73
  return error("auth handler objects must respond to :call, or :[]") unless a.respond_to?(:[])
@@ -1,3 +1,3 @@
1
1
  module PryRemoteEm
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,68 +1,71 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pry-remote-em
3
- version: !ruby/object:Gem::Version
4
- version: 0.4.1
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 0.4.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Caleb Crane
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-31 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2012-02-04 00:00:00 +09:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
15
17
  name: eventmachine
16
- requirement: &70255566066140 !ruby/object:Gem::Requirement
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
17
20
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
22
25
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70255566066140
25
- - !ruby/object:Gem::Dependency
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
26
28
  name: pry
27
- requirement: &70255566064780 !ruby/object:Gem::Requirement
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
28
31
  none: false
29
- requirements:
32
+ requirements:
30
33
  - - ~>
31
- - !ruby/object:Gem::Version
34
+ - !ruby/object:Gem::Version
32
35
  version: 0.9.6
33
36
  type: :runtime
34
- prerelease: false
35
- version_requirements: *70255566064780
36
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
37
39
  name: rb-readline
38
- requirement: &70255566063460 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
39
42
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
44
47
  type: :runtime
45
- prerelease: false
46
- version_requirements: *70255566063460
47
- - !ruby/object:Gem::Dependency
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
48
50
  name: highline
49
- requirement: &70255566062900 !ruby/object:Gem::Requirement
51
+ prerelease: false
52
+ requirement: &id004 !ruby/object:Gem::Requirement
50
53
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: "0"
55
58
  type: :runtime
56
- prerelease: false
57
- version_requirements: *70255566062900
58
- description: Connect to Pry remotely using EventMachine with tab-completion, paging,
59
- user authentication and SSL support.
59
+ version_requirements: *id004
60
+ description: Connect to Pry remotely using EventMachine with tab-completion, paging, user authentication and SSL support.
60
61
  email: pry-remote-em@simulacre.org
61
- executables:
62
+ executables:
62
63
  - pry-remote-em
63
64
  extensions: []
65
+
64
66
  extra_rdoc_files: []
65
- files:
67
+
68
+ files:
66
69
  - lib/pry-remote-em/client.rb
67
70
  - lib/pry-remote-em/json-proto.rb
68
71
  - lib/pry-remote-em/server.rb
@@ -70,29 +73,33 @@ files:
70
73
  - lib/pry-remote-em.rb
71
74
  - bin/pry-remote-em
72
75
  - README.md
76
+ has_rdoc: true
73
77
  homepage: http://github.com/simulacre/pry-remote-em
74
78
  licenses: []
79
+
75
80
  post_install_message:
76
81
  rdoc_options: []
77
- require_paths:
82
+
83
+ require_paths:
78
84
  - lib
79
- required_ruby_version: !ruby/object:Gem::Requirement
85
+ required_ruby_version: !ruby/object:Gem::Requirement
80
86
  none: false
81
- requirements:
82
- - - ! '>='
83
- - !ruby/object:Gem::Version
84
- version: '0'
85
- required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
92
  none: false
87
- requirements:
88
- - - ! '>='
89
- - !ruby/object:Gem::Version
90
- version: '0'
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: "0"
91
97
  requirements: []
98
+
92
99
  rubyforge_project:
93
- rubygems_version: 1.8.10
100
+ rubygems_version: 1.6.2
94
101
  signing_key:
95
102
  specification_version: 3
96
103
  summary: Connect to Pry remotely using EventMachine
97
104
  test_files: []
98
- has_rdoc:
105
+