grit_ext 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/grit_ext/diff.rb +8 -8
- data/lib/grit_ext/version.rb +1 -1
- metadata +5 -5
data/lib/grit_ext/diff.rb
CHANGED
@@ -10,14 +10,14 @@ module Grit
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def diff
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
13
|
+
if @diff.nil?
|
14
|
+
@diff = ""
|
15
|
+
else
|
16
|
+
lines = @diff.lines.to_a
|
17
|
+
path = GritExt.encode! lines.shift(2).join
|
18
|
+
body = GritExt.encode! lines.join
|
19
|
+
@diff = path + body
|
20
|
+
end
|
21
21
|
end
|
22
22
|
end
|
23
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.2
|
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:
|
12
|
+
date: 2013-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: charlock_holmes
|
@@ -57,18 +57,18 @@ require_paths:
|
|
57
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
58
58
|
none: false
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
|
-
rubygems_version: 1.8.
|
71
|
+
rubygems_version: 1.8.25
|
72
72
|
signing_key:
|
73
73
|
specification_version: 3
|
74
74
|
summary: gives grit utf-8 support and some misc enhancement
|