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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTgzZTZmOGU3MWZhOTcwODUzNWE0YWFlMWIxZWFiYjI5MjkwYmJjNA==
4
+ ZjNmMGQzOWNkNDQ3MjA5YjZmZjhmODhiOTdkNTI1NTQxYjQzZTRhOQ==
5
5
  data.tar.gz: !binary |-
6
- MzA4MGQ1Y2VlM2E4NDE2MzE2MmExOWJiODVmMDUxZDZkNDM5ZWFmNQ==
6
+ YzliNmExYjE4ZDc1M2UyZmRhMDcyNzA5YjViNTE5OWM3NGU4OGQ1Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDAwODdmODk5MjA0MWQ5NTNmNjViNDZjZWFjMzQ1M2I4MzZkN2Y1MTllMTZj
10
- OTIxOTMyYmQ1NDA4ZGU4NTJkN2U5YzY3ZWU3MzA5ZjFkNDE4NjM1OTY3Zjc2
11
- ZGIzNWRiMDU4MmJjMDIwNTQxN2IxODIzYjI1ODgzYzkwNzYxM2U=
9
+ ZDgxNDViNjZlZWFjNGRjYWRiYzk3Mzc0ZjQzOWE4YzgxMGUyZTZhNjcwMmUx
10
+ ZTRkMWQ0ZDY1NTJmZGIzMDY2NjBkZDMzOGM3ODIxMmI2M2FlZjY0ODA5ZGU5
11
+ MDBhODY5Njc5ZTgyZDcxYmE2ZTI3MTdiMWM1NDhjMWY4OWUyNDM=
12
12
  data.tar.gz: !binary |-
13
- Yjg3NzBiOGZjYzdhZDI0ZTIzMDMxZTY2Njc3ZGU0Y2E1Mzc1ZWY5MzgzZmVi
14
- NjBmMTA0OTFlYzQ4OTdhOTA3YzY0ZmFkMWFmNTNmMzgyMDNmZDM1OTNhMzVj
15
- ZjBjMzY3ZTY1YTBhMjRkNTU3MzZkZTg4OTQyMzZiZTk3NGQ0NTE=
13
+ ZTYzZjA5NjBmYzg1MTFmOGRjZjljNTM3NjgxODE0YmNmN2FjZjUyYTk0Nzlk
14
+ NTNlMDFjMjk3YzcyYjEyMTVmMTI3ZDcyY2M2Y2YzODE1ZGU0OWFjOTc0ODg2
15
+ MWZjODA0MWYyMzc5ZWRmZGZlYWM0ZjY3Yjc4NDJkOGRiOThiOTE=
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module DiffParser
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
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.1
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-15 00:00:00.000000000 Z
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