rspec-api-docs 0.13.0 → 0.14.0

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
  SHA1:
3
- metadata.gz: 50585e6ff49fb10929b563f1ca8336df6a7908c9
4
- data.tar.gz: 73b99538ba5e7f9f198b831885ce8ee3d55fb16d
3
+ metadata.gz: 40f9f19c014f36869e94593f06c1e37f283faf07
4
+ data.tar.gz: 86be18b6bab2ffbdcb16855e556b26ee73961fba
5
5
  SHA512:
6
- metadata.gz: b0e7d6c7e81d08daeb36364438b1fd1bf28c2508c23b05607e3a9a28fadb9f4df3b7b0037dd8ae709fb212ed6e302910176fae35ea2453beb5114c57b6ca3395
7
- data.tar.gz: 1b3f74d08627bf8966f154136b7c89f6131f92e177f2a5eeca3ac014ccfbcb1a5224aa80903a698f0a96ffaaba6efae404ddd9fb5b4fe3ad01aae89bbebe2dd0
6
+ metadata.gz: 08ef693bb6a343c1a10bec37a37bc54cfdb5d885e0287e3388ee5903ca2e0093900737ca816311deca1825d8704dd5e36aeeea9ac85d73148c7f59527a53d526
7
+ data.tar.gz: 53a77a3c4557936d8c546cc1ba678250158b431c509bb35ae55325989259969aae8e118ea1009ca7939f402be9cd8912ecb26c74212e81882c0b387683b63b4e
@@ -0,0 +1,21 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## 0.14.0 - 2018-07-21
10
+
11
+ ### Added
12
+ - This CHANGELOG file.
13
+
14
+ ### Changed
15
+ - Include the request body in the generated JSON [#9] ([@2potatocakes])
16
+
17
+ [Unreleased]: https://github.com/twe4ked/rspec-api-docs/compare/v0.14.0...HEAD
18
+ [0.14.0]: https://github.com/twe4ked/rspec-api-docs/compare/v0.13.0...v0.14.0
19
+
20
+ [#9]: https://github.com/twe4ked/rspec-api-docs/pull/9
21
+ [@2potatocakes]: https://github.com/2potatocakes
@@ -126,8 +126,10 @@ module RspecApiDocs
126
126
  end
127
127
 
128
128
  def request_body(body)
129
- body = body.read
130
- body.empty? ? nil : body
129
+ body.rewind if body.respond_to?(:rewind)
130
+ body_content = body.read
131
+ body.rewind if body.respond_to?(:rewind)
132
+ body_content.empty? ? nil : body_content
131
133
  end
132
134
 
133
135
  def response_body(body)
@@ -1,3 +1,3 @@
1
1
  module RspecApiDocs
2
- VERSION = '0.13.0'
2
+ VERSION = '0.14.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-api-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Odin Dutton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-25 00:00:00.000000000 Z
11
+ date: 2018-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -121,6 +121,7 @@ files:
121
121
  - ".rspec"
122
122
  - ".rubocop.yml"
123
123
  - ".travis.yml"
124
+ - CHANGELOG.md
124
125
  - CODE_OF_CONDUCT.md
125
126
  - Gemfile
126
127
  - LICENSE.txt
@@ -177,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
178
  version: '0'
178
179
  requirements: []
179
180
  rubyforge_project:
180
- rubygems_version: 2.5.2
181
+ rubygems_version: 2.5.1
181
182
  signing_key:
182
183
  specification_version: 4
183
184
  summary: Generate API documentation using RSpec