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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 429a0afbea16cd5fab5920685e2f16838f1a21db064866dd40b0eff090067fa7
4
- data.tar.gz: 6183e6c6a015ceef0dc302c9228a1220fbd9db0f4dea53e198db118d84a3e902
3
+ metadata.gz: 19e1429fe980e3089827df5437bb0e542aecd7446c8e17bddf3040f3602a32e3
4
+ data.tar.gz: 1977c6d504a57b373072399f84ea37f3bf55eaa187443b4a7568162bf9c047be
5
5
  SHA512:
6
- metadata.gz: afaabc98ee7a6582c7c6e468db19f317ad9f52e9e808f8098aed2c1d7aba298749a7a24e4801825f7471a2d3a493c25c1e95606347837768dace45d983b400f1
7
- data.tar.gz: 7c24db70cfe476134d29d9d0bbb526f860821dc06037529cc9834bc094991f59d45fbecdb2d1f86f0684b51d6b45520260091b8260fe6e59321e5d45c860c62b
6
+ metadata.gz: d6a89bf62a075ab748f668a5602aaf7b91156760c15c3e5a04e86ceadbdadcbb84c8bd293eec6dedabfef806e4e579d9d91539da949a4de7ffc2c1311f46faa3
7
+ data.tar.gz: 6a3d8bd65c817782a80d136d64a2a2f354d26150057279783c8b20b42e01266ed7edb79241e032e19af1167339c9d4678bd561b7b2e5773b062fcaf668ef3e1e
@@ -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.0.0...HEAD
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 != 'application/json'
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?
@@ -1,3 +1,3 @@
1
1
  module RspecApiDocs
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.0'
3
3
  end
@@ -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.beta2'
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.0.0
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-09-24 00:00:00.000000000 Z
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.beta2
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.beta2
96
+ version: 2.0.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement