diff_highlight 0.1.2 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44570a3c2e64e8b6ed66520df352bf8acd992cfe
4
- data.tar.gz: 493fefac277aafe1b52bf8856bb872bf18426e0c
3
+ metadata.gz: 1a34d0d92d9fd3d91f2b2703d48e2d3c993a2d27
4
+ data.tar.gz: 00d8333a03718d2de28f457ed8ef12f1219dcc18
5
5
  SHA512:
6
- metadata.gz: e1e2b23bfe6f36c39cd7d14b512703a40edb94fb04f9783dd3375d223d87840a657fc5c4ebf718da81741fd3711f09a287d4e6830b366f632896213fba17bc13
7
- data.tar.gz: d81cc123d648554c88030417167cf5364a63d8de1ec1c533f2eca04f8b3da85c6495c5d9b8d93e66b317f358632207fa15fa55d46758be4bf61e02d40fecc36b
6
+ metadata.gz: 9e47445244e80547a0cb48dc5749ad3b3c86cf482d36bfd33e89ff787e58b80533abb38d9820b8df4ca407c7c4beb7c80aa3025bdd1a5161e6ab213178f8d29b
7
+ data.tar.gz: fdfaf0203943180a0258b824dd1973c29349b0c5340edaddb03d8daa94995cf681f81497d286e5b86bbe067a7de09d6ed1ebc0d67b271cf086382fca7c2282b4
@@ -77,7 +77,7 @@ class DiffHighlight
77
77
 
78
78
  # when a line is not an addition (e.g begins with a +)
79
79
  def write_other_line(line)
80
- if line =~ /^-/
80
+ if line =~ /^-[^-]/
81
81
  write(red(line))
82
82
  else
83
83
  write(line)
@@ -1,3 +1,3 @@
1
1
  class DiffHighlight
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diff_highlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Mair