fancy_irb 0.7.1 → 0.7.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.
- data/CHANGELOG.rdoc +3 -0
- data/Rakefile +0 -11
- data/VERSION +1 -1
- data/lib/fancy_irb/irb_ext.rb +4 -1
- metadata +7 -7
data/CHANGELOG.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
|
-
require 'rake/rdoctask'
|
4
3
|
require 'fileutils'
|
5
4
|
|
6
5
|
def gemspec
|
@@ -29,13 +28,3 @@ task :gemspec do
|
|
29
28
|
gemspec.validate
|
30
29
|
end
|
31
30
|
|
32
|
-
|
33
|
-
require 'rake/rdoctask'
|
34
|
-
Rake::RDocTask.new do |rdoc|
|
35
|
-
version = File.exist?('VERSION') ? File.read('VERSION').chomp : ""
|
36
|
-
|
37
|
-
rdoc.rdoc_dir = 'doc'
|
38
|
-
rdoc.title = "FancyIrb #{version}"
|
39
|
-
rdoc.rdoc_files.include('README*')
|
40
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
41
|
-
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.2
|
data/lib/fancy_irb/irb_ext.rb
CHANGED
@@ -49,7 +49,10 @@ module IRB
|
|
49
49
|
# get lengths
|
50
50
|
last_input = @scanner.instance_variable_get( :@line )
|
51
51
|
last_line_without_prompt = last_input.split("\n").last
|
52
|
-
offset =
|
52
|
+
offset = + FancyIrb.real_lengths[:input_prompt] + 1
|
53
|
+
if last_line_without_prompt
|
54
|
+
offset += last_line_without_prompt.display_size
|
55
|
+
end
|
53
56
|
screen_length = FancyIrb.current_length
|
54
57
|
screen_lines = FancyIrb.current_lines
|
55
58
|
output_length = FancyIrb.real_lengths[:output]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancy_irb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
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: 2011-
|
12
|
+
date: 2011-11-01 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: paint
|
16
|
-
requirement: &
|
16
|
+
requirement: &21083360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.8.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *21083360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: unicode-display_width
|
27
|
-
requirement: &
|
27
|
+
requirement: &21081220 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.1.1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *21081220
|
36
36
|
description: ! 'FancyIrb patches your IRB to create a smooth output experience. You
|
37
37
|
can colorize the prompts, irb errors, stderr and stdout, output your result as #=>
|
38
38
|
(hash rockets) and some other improvements.'
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
requirements:
|
77
77
|
- ! 'On Windows, you need ansicon: https://github.com/adoxa/ansicon'
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 1.8.
|
79
|
+
rubygems_version: 1.8.11
|
80
80
|
signing_key:
|
81
81
|
specification_version: 3
|
82
82
|
summary: FancyIrb patches your IRB to create a smooth output experience.
|