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.
- data/lib/grit_ext/diff.rb +8 -1
- data/lib/grit_ext/version.rb +1 -1
- metadata +2 -2
data/lib/grit_ext/diff.rb
CHANGED
@@ -10,7 +10,14 @@ module Grit
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def diff
|
13
|
-
|
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
|
data/lib/grit_ext/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2012-11-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: charlock_holmes
|