pry-remote-em 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pry-remote-em/server.rb +6 -4
- data/lib/pry-remote-em/version.rb +1 -1
- metadata +13 -12
data/lib/pry-remote-em/server.rb
CHANGED
@@ -196,11 +196,11 @@ module PryRemoteEm
|
|
196
196
|
return send_data({:a => !@auth_required})
|
197
197
|
|
198
198
|
elsif j['m'] # message all peer connections
|
199
|
-
peers.each { |peer| peer.send_message(j['m']) }
|
199
|
+
peers.each { |peer| peer.send_message(j['m'], @user) }
|
200
200
|
send_last_prompt
|
201
201
|
|
202
202
|
elsif j['b'] # broadcast message
|
203
|
-
peers(:all).each { |peer| peer.send_bmessage(j['b']) }
|
203
|
+
peers(:all).each { |peer| peer.send_bmessage(j['b'], @user) }
|
204
204
|
send_last_prompt
|
205
205
|
|
206
206
|
elsif j['s'] # shell command
|
@@ -250,12 +250,14 @@ module PryRemoteEm
|
|
250
250
|
end
|
251
251
|
|
252
252
|
# Sends a chat message to the client.
|
253
|
-
def send_message(msg)
|
253
|
+
def send_message(msg, from = nil)
|
254
|
+
msg = "#{msg} (@#{from})" unless from.nil?
|
254
255
|
@auth_required ? @after_auth.push({:m => msg}) : send_data({:m => msg})
|
255
256
|
end
|
256
257
|
#
|
257
258
|
# Sends a chat message to the client.
|
258
|
-
def send_bmessage(msg)
|
259
|
+
def send_bmessage(msg, from = nil)
|
260
|
+
msg = "#{msg} (@#{from})" unless from.nil?
|
259
261
|
@auth_required ? @after_auth.push({:mb => msg}) : send_data({:mb => msg})
|
260
262
|
end
|
261
263
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry-remote-em
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-02-
|
12
|
+
date: 2012-02-12 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
16
|
-
requirement: &
|
16
|
+
requirement: &70139327308140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70139327308140
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: pry
|
27
|
-
requirement: &
|
27
|
+
requirement: &70139327307400 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.9.6
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70139327307400
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rb-readline
|
38
|
-
requirement: &
|
38
|
+
requirement: &70139327306820 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70139327306820
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: ruby-termios
|
49
|
-
requirement: &
|
49
|
+
requirement: &70139327305440 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.9.6
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70139327305440
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: highline
|
60
|
-
requirement: &
|
60
|
+
requirement: &70139327304220 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70139327304220
|
69
69
|
description: Connect to Pry remotely using EventMachine with tab-completion, paging,
|
70
70
|
user auth and SSL
|
71
71
|
email: pry-remote-em@simulacre.org
|
@@ -108,3 +108,4 @@ signing_key:
|
|
108
108
|
specification_version: 3
|
109
109
|
summary: Connect to Pry remotely using EventMachine
|
110
110
|
test_files: []
|
111
|
+
has_rdoc:
|