diff_parser 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/diff_parser/diff.rb +7 -1
- data/lib/diff_parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjNmMGQzOWNkNDQ3MjA5YjZmZjhmODhiOTdkNTI1NTQxYjQzZTRhOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzliNmExYjE4ZDc1M2UyZmRhMDcyNzA5YjViNTE5OWM3NGU4OGQ1Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDgxNDViNjZlZWFjNGRjYWRiYzk3Mzc0ZjQzOWE4YzgxMGUyZTZhNjcwMmUx
|
10
|
+
ZTRkMWQ0ZDY1NTJmZGIzMDY2NjBkZDMzOGM3ODIxMmI2M2FlZjY0ODA5ZGU5
|
11
|
+
MDBhODY5Njc5ZTgyZDcxYmE2ZTI3MTdiMWM1NDhjMWY4OWUyNDM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTYzZjA5NjBmYzg1MTFmOGRjZjljNTM3NjgxODE0YmNmN2FjZjUyYTk0Nzlk
|
14
|
+
NTNlMDFjMjk3YzcyYjEyMTVmMTI3ZDcyY2M2Y2YzODE1ZGU0OWFjOTc0ODg2
|
15
|
+
MWZjODA0MWYyMzc5ZWRmZGZlYWM0ZjY3Yjc4NDJkOGRiOThiOTE=
|
data/lib/diff_parser/diff.rb
CHANGED
@@ -9,7 +9,13 @@ module DiffParser
|
|
9
9
|
@info = github.commit(repo, sha)
|
10
10
|
|
11
11
|
@raw = Rails.cache.fetch(diff_cache_key) do
|
12
|
-
github.commit(repo, sha, accept: 'application/vnd.github.VERSION.diff')
|
12
|
+
diff = github.commit(repo, sha, accept: 'application/vnd.github.VERSION.diff')
|
13
|
+
|
14
|
+
if diff.encoding == Encoding::ASCII_8BIT
|
15
|
+
diff.encode('utf-8', 'ASCII-8BIT', invalid: :replace, undef: :replace, replace: '')
|
16
|
+
else
|
17
|
+
diff
|
18
|
+
end
|
13
19
|
end
|
14
20
|
end
|
15
21
|
|
data/lib/diff_parser/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diff_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stevo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Allows parsing diffs for presentation purposes - extracted from marvelous
|
14
14
|
GitLab project
|