rpdoc 0.1.4 → 0.1.8

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: d8f234d1015e23861e910744f7ada506266c634096c6f577e49d6fc6af11301b
4
- data.tar.gz: a57bf4be6484e6f313260fc425b5ad41c1b1cd02c62e2de4a59f107cb9590aec
3
+ metadata.gz: 0365e6f4e31e20da1e3fd51af280333f980d5ff814275d94f17e20dc74435f11
4
+ data.tar.gz: 3fbdc85843b90ad5197c87df38889e294199ffb444bd8d107839f44c63db5eb8
5
5
  SHA512:
6
- metadata.gz: 30be6db46768982228147275570ab650c77ae1f60d399fa93d8b10e9464c6f4d190eaca3d5001b43d9ed66bfbdd52110b0dc7f2c99c96c2c138430e0e2489de7
7
- data.tar.gz: 5a82d9b23f537e680eb9460d2dcabe307953d47c93264aca310bf8dcc0ee42cd6840e714abfbe8bac13ad76f834659dc32812ed3daa05e903850da097a85f7a5
6
+ metadata.gz: df99941bd81926fd59a4137e20efaf296cf63c57fd5a8d36f7f5331700814b80846a6381a8d7c046d40736db581ad372262f0c963862b8f80dc7764f7a43ef73
7
+ data.tar.gz: 4c7cc4e528fa4b209b5c34020ec84d5e866bbdbcbfa329bafa29bd1f834350a46207b350d979491d1c6e446fdb6300e44d1706f427a927bae5992425e47fe0bf
data/CHANGELOG.md CHANGED
@@ -1,4 +1,9 @@
1
- ## [0.1.4] - 2021-12-22
1
+ ## [0.1.7, 0.1.8] - 2022-02-14
2
+ - Fix rspec parse zip response bug
3
+ ## [0.1.6] - 2022-02-14
4
+ - Update licnese
5
+
6
+ ## [0.1.4, 0.1.5] - 2021-12-22
2
7
  - Fix rspec parsing bugs
3
8
 
4
9
  ## [0.1.3] - 2021-11-09
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 yuntai
3
+ Copyright (c) 2021 Kdan Mobile Software Ltd
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  Add `rpdoc` to your application's `Gemfile`:
13
13
 
14
14
  ```ruby
15
- gem 'rpdoc', '~> 0.1.2'
15
+ gem 'rpdoc'
16
16
  ```
17
17
 
18
18
  And then install the gem:
data/VERSION.md CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.8
@@ -47,9 +47,13 @@ module Rpdoc
47
47
  code: @rspec_response.code.to_i,
48
48
  _postman_previewlanguage: "json",
49
49
  header: headers,
50
- body: nil
51
50
  }
52
- data[:body] = JSON.pretty_generate(JSON.parse(@rspec_response.body)) rescue nil if @rspec_response.headers['Content-Type'].include?('application/json')
51
+ if @rspec_response.headers['Content-Type'].include?('application/json')
52
+ data[:body] = JSON.pretty_generate(JSON.parse(@rspec_response.body)) rescue nil
53
+ else
54
+ body = @rspec_response.body
55
+ data[:body] = body.encoding == 'ASCII-8BIT' ? body.force_encoding("ISO-8859-1").encode("UTF-8") : body
56
+ end
53
57
  data
54
58
  end
55
59
 
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.4"
4
+ VERSION = "0.1.8"
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.4
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - yuntai
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-22 00:00:00.000000000 Z
11
+ date: 2022-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_requester
@@ -94,7 +94,7 @@ files:
94
94
  - CHANGELOG.md
95
95
  - Gemfile
96
96
  - Gemfile.lock
97
- - LICENSE.txt
97
+ - LICENSE
98
98
  - README.md
99
99
  - Rakefile
100
100
  - VERSION.md