di 0.1.7 → 0.1.8
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/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