rpdoc 0.1.4 → 0.1.5

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: 92d9f7ee29c14d29e2ff89e295a3366c04cd36d1446cb03d6e5c42ec3a5847de
4
+ data.tar.gz: 5fa8e4abf8883bfa3889cdebf52c9095879d4334b83135ab635c4e23a8297c87
5
5
  SHA512:
6
- metadata.gz: 30be6db46768982228147275570ab650c77ae1f60d399fa93d8b10e9464c6f4d190eaca3d5001b43d9ed66bfbdd52110b0dc7f2c99c96c2c138430e0e2489de7
7
- data.tar.gz: 5a82d9b23f537e680eb9460d2dcabe307953d47c93264aca310bf8dcc0ee42cd6840e714abfbe8bac13ad76f834659dc32812ed3daa05e903850da097a85f7a5
6
+ metadata.gz: f171a6883f585f0576c9a8522fdc392e2a17f859b7d43b62e473f4c09196c86291b2dfb80c421ec8635348f26ac649da0abb5d578b5229b8e4fe407d137113ee
7
+ data.tar.gz: 763c279f4da96585db0960eddc5181a88b14afb3d01867913018e4319c065ac812a7e85b848c186459b68dff4b2f77d230356bf7a03df2eec043b3eeb09425ac
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## [0.1.4] - 2021-12-22
1
+ ## [0.1.4, 0.1.5] - 2021-12-22
2
2
  - Fix rspec parsing bugs
3
3
 
4
4
  ## [0.1.3] - 2021-11-09
data/VERSION.md CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -47,9 +47,12 @@ 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
+ data[:body] = @rspec_response.body
55
+ end
53
56
  data
54
57
  end
55
58
 
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.5"
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.5
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: 2021-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_requester