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 +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/rspec_api_docs/formatter/resource/example.rb +4 -2
- data/lib/rspec_api_docs/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40f9f19c014f36869e94593f06c1e37f283faf07
|
|
4
|
+
data.tar.gz: 86be18b6bab2ffbdcb16855e556b26ee73961fba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 08ef693bb6a343c1a10bec37a37bc54cfdb5d885e0287e3388ee5903ca2e0093900737ca816311deca1825d8704dd5e36aeeea9ac85d73148c7f59527a53d526
|
|
7
|
+
data.tar.gz: 53a77a3c4557936d8c546cc1ba678250158b431c509bb35ae55325989259969aae8e118ea1009ca7939f402be9cd8912ecb26c74212e81882c0b387683b63b4e
|
data/CHANGELOG.md
ADDED
|
@@ -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
|
|
130
|
-
|
|
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)
|
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.
|
|
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-
|
|
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.
|
|
181
|
+
rubygems_version: 2.5.1
|
|
181
182
|
signing_key:
|
|
182
183
|
specification_version: 4
|
|
183
184
|
summary: Generate API documentation using RSpec
|