pete-live_console 0.2.1 → 0.2.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.
- data/Rakefile +1 -2
- data/lib/live_console.rb +1 -1
- data/lib/live_console/io_methods/socket_io.rb +2 -1
- data/lib/live_console_config.rb +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
|
@@ -57,7 +57,6 @@ task(:clean) {
|
|
|
57
57
|
FileUtils.rm_rf 'pkg'
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
|
|
61
60
|
desc "Generates a static gemspec file; useful for github."
|
|
62
61
|
task(:static_gemspec) {
|
|
63
62
|
# This whole thing is hacky.
|
|
@@ -84,7 +83,7 @@ spec = Gem::Specification.new { |s|
|
|
|
84
83
|
if __FILE__ == $0
|
|
85
84
|
Gem::Builder.new(spec).build
|
|
86
85
|
else
|
|
87
|
-
spec
|
|
86
|
+
spec # Github wants this file to return the spec.
|
|
88
87
|
end
|
|
89
88
|
EOGEMSPEC
|
|
90
89
|
}
|
data/lib/live_console.rb
CHANGED
|
@@ -137,9 +137,9 @@ module IRB
|
|
|
137
137
|
@inited = true
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
bind ||= IRB::Frame.top(1)
|
|
141
140
|
ws = IRB::WorkSpace.new(bind)
|
|
142
141
|
irb = Irb.new(ws, io, io)
|
|
142
|
+
bind ||= IRB::Frame.top(1) rescue TOPLEVEL_BINDING
|
|
143
143
|
|
|
144
144
|
@CONF[:IRB_RC].call(irb.context) if @CONF[:IRB_RC]
|
|
145
145
|
@CONF[:MAIN_CONTEXT] = irb.context
|
|
@@ -10,7 +10,8 @@ class LiveConsole::IOMethods::SocketIO
|
|
|
10
10
|
@server ||= TCPServer.new host, port
|
|
11
11
|
|
|
12
12
|
begin
|
|
13
|
-
|
|
13
|
+
IO.select([server])
|
|
14
|
+
self.raw_input = self.raw_output = server.accept
|
|
14
15
|
return true
|
|
15
16
|
rescue Errno::EAGAIN, Errno::ECONNABORTED, Errno::EPROTO,
|
|
16
17
|
Errno::EINTR => e
|
data/lib/live_console_config.rb
CHANGED