rpdoc 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: caba52d54294faa94238dc9788932f4220a8aca303edd1168ac50e6525bd4648
4
- data.tar.gz: 40377c908e39e6eef198030ad51d33475d2c7d7360ea68491cb8d383eb8eeb3c
3
+ metadata.gz: 204129b067a6bafd639a29a0a18f361526855a2472d252f7b2f5f08258c91ff3
4
+ data.tar.gz: bf9fac67e3ccdd67441bd39cee555ef34af168367adae4832be6beb7cad2065a
5
5
  SHA512:
6
- metadata.gz: 9dc7e20fdd92637027e1023b5fdaf3426456fcf7fc76038c694421d610f45bc28399c135a1d7f88baf209ae9fbffbb95c9f352300f230940730c93ee96e6ef9c
7
- data.tar.gz: 0a7c973ed4df9555bb348d5c7a6a513d834c6e8c4f8fdfc8862d24302e83db70c44f2d78398d8bf4d8ed7acea9f4ad77c490a439289a4f17548981199dfda01c
6
+ metadata.gz: 1b362d3e068426fc9eb21cd367d3caca67c9838e55a060954f5633415fdf8cca5ed10ce70199ff2a51eab65ffa54c09b9b443dd70c610cdea75beb6dcc2c8d73
7
+ data.tar.gz: a7ae37b09463579a01da095527e84b0af7adc0470df89462b064c556673a278f7656409d3d18821e1b390dd87a79059c38f306b72062ac8f0e3620f7a3595a69
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## [0.1.7] - 2022-02-14
2
+ - Fix rspec parse zip response bug
1
3
  ## [0.1.6] - 2022-02-14
2
4
  - Update licnese
3
5
 
data/VERSION.md CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -51,7 +51,8 @@ module Rpdoc
51
51
  if @rspec_response.headers['Content-Type'].include?('application/json')
52
52
  data[:body] = JSON.pretty_generate(JSON.parse(@rspec_response.body)) rescue nil
53
53
  else
54
- data[:body] = @rspec_response.body
54
+ body = @rspec_response.body
55
+ data[:body] = body.encoding == 'ASCII-8BIT' ? body.force_encoding("ISO-8859-1").encode("UTF-8") : body
55
56
  end
56
57
  data
57
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.6"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - yuntai