grit_ext 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,14 @@ module Grit
10
10
  end
11
11
 
12
12
  def diff
13
- GritExt.encode! @diff
13
+ lines = @diff.lines.to_a
14
+
15
+ # path encoding is dependent on environment
16
+ path = GritExt.encode! lines.shift(2).join
17
+ # diff body encoding is dependent on file encoding
18
+ body = GritExt.encode! lines.join
19
+
20
+ @diff = path + body
14
21
  end
15
22
  end
16
23
  end
@@ -2,6 +2,6 @@ module GritExt
2
2
  extend self
3
3
 
4
4
  def version
5
- "0.6.0"
5
+ "0.6.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grit_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-08 00:00:00.000000000 Z
12
+ date: 2012-11-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: charlock_holmes