genki-irb_rocket 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/irb_rocket.rb +3 -4
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake/gempackagetask'
3
3
 
4
4
  GEM_NAME = "irb_rocket"
5
- GEM_VERSION = "0.1.1"
5
+ GEM_VERSION = "0.1.2"
6
6
  AUTHOR = "Genki Takiuchi"
7
7
  EMAIL = "genki@s21g.com"
8
8
  HOMEPAGE = "http://blog.s21g.com/genki"
data/lib/irb_rocket.rb CHANGED
@@ -38,7 +38,7 @@ module IRB
38
38
  private
39
39
  def play_io(io, &block)
40
40
  buf = ""
41
- buf << io.read_nonblock(3) while true
41
+ buf << io.read_nonblock(1024) while true
42
42
  rescue Errno::EAGAIN
43
43
  block[buf]
44
44
  rescue Exception => e
@@ -56,15 +56,14 @@ module IRB
56
56
  original_signal_status(name, *args, &block)
57
57
  end
58
58
  else
59
- if name == :IN_INPUT
60
- end
59
+ print sc if name == :IN_INPUT
61
60
  original_signal_status(name, *args, &block)
62
61
  end
63
62
  end
64
63
 
65
64
  def output_value
66
65
  last = @context.io.prompt + @last_line.split("\n").last
67
- @io.print(cuu1 + (cuf1*last.length) + " " +
66
+ @io.print(rc + cuu1 + (cuf1*last.length) + " " +
68
67
  Wirble::Colorize::Color.escape(:blue) + "#=>" + sgr0 +
69
68
  " " + Wirble::Colorize.colorize(@context.last_value.inspect) + cud1)
70
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genki-irb_rocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Takiuchi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-08 00:00:00 -08:00
12
+ date: 2009-02-09 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency