fancy_irb 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fancy_irb.gemspec +1 -1
- data/lib/fancy_irb.rb +4 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/fancy_irb.gemspec
CHANGED
data/lib/fancy_irb.rb
CHANGED
@@ -105,7 +105,10 @@ class << FancyIrb
|
|
105
105
|
|
106
106
|
def track_height(data)
|
107
107
|
lines = data.to_s.count("\n")
|
108
|
-
long_lines = data.to_s.split("\n").inject(0){ |sum, line|
|
108
|
+
long_lines = data.to_s.split("\n").inject(0){ |sum, line|
|
109
|
+
line_size = (RUBY_VERSION[2] == ?8) ? line.unpack('U*').size : line.size
|
110
|
+
sum + (line_size / `tput cols`.to_i)
|
111
|
+
}
|
109
112
|
@height_counter << lines + long_lines
|
110
113
|
end
|
111
114
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancy_irb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jan Lelis
|