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 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
  }
@@ -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
- self.raw_input = self.raw_output = server.accept_nonblock
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
@@ -3,7 +3,7 @@ module LiveConsoleConfig
3
3
  Authors = 'Pete Elmore'
4
4
  Email = 'pete.elmore@gmail.com'
5
5
  PkgName = 'live_console'
6
- Version = '0.2.1'
6
+ Version = '0.2.3'
7
7
  URL = 'http://debu.gs/live-console'
8
8
  Project = 'live-console'
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pete-live_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Elmore