rpdoc 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 243ceb4a0adab54f8a06f34e661c43ad7b33c910366f900707274930d1d54840
4
- data.tar.gz: 0d7f8060ff75dd7ad59f33fdb2c75b1442d824c2c6581098a08be68a2758d303
3
+ metadata.gz: 8bd4a2fdf6339f7ab5a963d52ad2ccc3950e7edcca3ffbd7882be39e995d1014
4
+ data.tar.gz: 228c44ebef79a9852e08a736935c9334cb4cd1e8decca079ff5b38c18fa70cee
5
5
  SHA512:
6
- metadata.gz: 233f675ee16f351fa6a36da68f8a7d099d0a333d6e8b4c9672b4d208e4515da4285fad63fdb372c23f6cf8406eb9824cf07f527aade8890f78df7d5f77368b21
7
- data.tar.gz: 54f1f4fe0c839b37938115fb25271e39d9b41910d29bad38641e0645ba3b294d69f1b91453426a198e9139cc100b3fa9af0a6f5a9ca4e2a37131b24bc6b634ed
6
+ metadata.gz: e8480e75031c7dadda942348f6ec22799ac217ea78202aea5c53131ff67298e83d25d7cb5b4430eb3c6b870e2c4362650023c0883efe8b152eb673fd2ed2ea4d
7
+ data.tar.gz: 792babfa02d6b6a54b52f42124b3e519bad2ee2c9a63b197073dfa075ede8a1e50523d4e9334af1b5776d5ba64ed97e737878b960449f31415c7873d7506f2db
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [0.1.12] - 2022-09-06
2
+ - Handle encoding error
3
+
1
4
  ## [0.1.11] - 2022-08-09
2
5
  - Check encoding names using instance (PR#1)
3
6
 
data/VERSION.md CHANGED
@@ -1 +1 @@
1
- 0.1.11
1
+ 0.1.12
@@ -52,7 +52,7 @@ module Rpdoc
52
52
  data[:body] = JSON.pretty_generate(JSON.parse(@rspec_response.body)) rescue nil
53
53
  else
54
54
  body = @rspec_response.body
55
- data[:body] = body.encoding == Encoding::BINARY ? body.force_encoding(Encoding::ISO_8859_1).encode(Encoding::UTF_8) : body
55
+ data[:body] = body.encoding == Encoding::BINARY ? (body.force_encoding(Encoding::ISO_8859_1).encode(Encoding::UTF_8) rescue body) : body
56
56
  end
57
57
  data
58
58
  end
data/lib/rpdoc/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rpdoc
4
- VERSION = "0.1.11"
4
+ VERSION = "0.1.12"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - yuntai
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-11 00:00:00.000000000 Z
11
+ date: 2022-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_requester