di 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +8 -0
- data/bin/di +3 -3
- data/di.gemspec +1 -1
- metadata +2 -2
data/HISTORY
CHANGED
data/bin/di
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
29
29
|
# SUCH DAMAGE.
|
30
30
|
|
31
|
-
MYVERSION = "0.1.
|
31
|
+
MYVERSION = "0.1.8"
|
32
32
|
MYNAME = File.basename($0)
|
33
33
|
MYCOPYRIGHT = "Copyright (c) 2008, 2009, 2010 Akinori MUSHA"
|
34
34
|
|
@@ -693,9 +693,9 @@ def colorize_unified_diff(io)
|
|
693
693
|
color = colors[:file1]
|
694
694
|
when /^-{3} /
|
695
695
|
color = colors[:file2]
|
696
|
-
when /^@@ -[0-9]
|
696
|
+
when /^@@ -[0-9]+(,([0-9]+))? \+[0-9]+(,([0-9]+))?/
|
697
697
|
state = :hunk
|
698
|
-
hunk_left = $1.to_i + $
|
698
|
+
hunk_left = ($1 ? $2.to_i : 1) + ($3 ? $4.to_i : 1)
|
699
699
|
line.sub!(/^(@@ .*? @@)( )?/) {
|
700
700
|
$1 + ($2 ? colors[:off] + $2 + colors[:function] : '')
|
701
701
|
}
|
data/di.gemspec
CHANGED