rspec-api-docs 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/rspec_api_docs/formatter/resource/example.rb +1 -1
- data/lib/rspec_api_docs/version.rb +1 -1
- data/rspec-api-docs.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19e1429fe980e3089827df5437bb0e542aecd7446c8e17bddf3040f3602a32e3
|
4
|
+
data.tar.gz: 1977c6d504a57b373072399f84ea37f3bf55eaa187443b4a7568162bf9c047be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6a89bf62a075ab748f668a5602aaf7b91156760c15c3e5a04e86ceadbdadcbb84c8bd293eec6dedabfef806e4e579d9d91539da949a4de7ffc2c1311f46faa3
|
7
|
+
data.tar.gz: 6a3d8bd65c817782a80d136d64a2a2f354d26150057279783c8b20b42e01266ed7edb79241e032e19af1167339c9d4678bd561b7b2e5773b062fcaf668ef3e1e
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.1.0] - 2018-11-02
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- Relax JSON Content-Type check to work with custom MIME types [#13] ([@2potatocakes])
|
13
|
+
|
9
14
|
## [1.0.0] - 2018-09-24
|
10
15
|
|
11
16
|
### Changed
|
@@ -19,7 +24,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
19
24
|
### Changed
|
20
25
|
- Include the request body in the generated JSON [#9] ([@2potatocakes])
|
21
26
|
|
22
|
-
[Unreleased]: https://github.com/twe4ked/rspec-api-docs/compare/v1.
|
27
|
+
[Unreleased]: https://github.com/twe4ked/rspec-api-docs/compare/v1.1.0...HEAD
|
28
|
+
[1.1.0]: https://github.com/twe4ked/rspec-api-docs/compare/v1.0.0...v1.1.0
|
23
29
|
[1.0.0]: https://github.com/twe4ked/rspec-api-docs/compare/v0.14.0...v1.0.0
|
24
30
|
[0.14.0]: https://github.com/twe4ked/rspec-api-docs/compare/v0.13.0...v0.14.0
|
25
31
|
|
@@ -133,7 +133,7 @@ module RspecApiDocs
|
|
133
133
|
end
|
134
134
|
|
135
135
|
def response_body(body, content_type:)
|
136
|
-
unless body.empty? || content_type
|
136
|
+
unless body.empty? || !content_type.to_s.include?('json')
|
137
137
|
parsed_body = JSON.parse(body, symbolize_names: true)
|
138
138
|
response_fields.each do |f|
|
139
139
|
unless f.example.nil?
|
data/rspec-api-docs.gemspec
CHANGED
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
24
24
|
spec.add_development_dependency 'pry'
|
25
25
|
spec.add_development_dependency 'rack-test'
|
26
|
-
spec.add_development_dependency 'sinatra', '2.0.0
|
26
|
+
spec.add_development_dependency 'sinatra', '~> 2.0.0'
|
27
27
|
spec.add_development_dependency 'rubocop'
|
28
28
|
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: 1.
|
4
|
+
version: 1.1.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-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: sinatra
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.0.0
|
89
|
+
version: 2.0.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 2.0.0
|
96
|
+
version: 2.0.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|