ir_b 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ir_b.rb +3 -3
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/lib/ir_b.rb
CHANGED
@@ -29,16 +29,16 @@ module IrB
|
|
29
29
|
def -(_binding)
|
30
30
|
file = _binding.eval '__FILE__'
|
31
31
|
ir_b_line = _binding.eval '__LINE__'
|
32
|
-
puts "#{file}:#{ir_b_line}
|
32
|
+
puts "#{file}:#{ir_b_line}"
|
33
33
|
|
34
34
|
File.open(file).each_with_index do |line, index|
|
35
35
|
line_n = index + 1
|
36
36
|
next unless line_n > (ir_b_line - 6)
|
37
37
|
break if line_n > (ir_b_line + 5)
|
38
38
|
if line_n == ir_b_line
|
39
|
-
puts "
|
39
|
+
puts " =>#{line_n.to_s.rjust(3)}: #{line.chomp}"
|
40
40
|
else
|
41
|
-
puts "
|
41
|
+
puts "#{line_n.to_s.rjust(6)}: #{line.chomp}"
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 1
|
7
|
-
- 1
|
8
7
|
- 2
|
9
|
-
|
8
|
+
- 0
|
9
|
+
version: 1.2.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- jugyo
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-11-13 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|