rspec_api_documentation 6.0.0 → 6.1.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: debdb41655fc2b0d61d43a0feaffa6a3c4e1ae6c
4
- data.tar.gz: e560cee22b88bda2b3779a4e9f26561e3d4195ba
3
+ metadata.gz: 8e1f18cb4e1bbf1939b21e8a4bdeb0ca17aae8f2
4
+ data.tar.gz: 98c99830570aad0754d38787cbe528cde8d795f5
5
5
  SHA512:
6
- metadata.gz: 6530d774c6e77fe56a65ee073d74f7b7acec77d8feeb63aace0b0b931975f59253be12d8c091c6bae743b884db9cadf723159f59c273c0dfe2acfdb2eb0106a3
7
- data.tar.gz: 08e6146400b65497daea2d47c257ecead4436a37779b689215bab75830aab20f66e9e71698cb14a02101aea334555aae8be69aad56736e69ba483581b150aea3
6
+ metadata.gz: 000471a180aa638ee4ac2852410f4202f210d3694118a0aafb0b31a7dde2d61baeb1e40fcc45cdfaf149962479de12390ee88096b338e7a6ad979436468ca83e
7
+ data.tar.gz: b2bb72596bdbe8896243c14b69a022e8c820e57fba621c45518ccea38b304c08b165d8b2e910644bbf96af256c989157950785654f91dd554b6a6a7042a85782
@@ -38,6 +38,7 @@ module RspecApiDocumentation
38
38
  autoload :TextileWriter
39
39
  autoload :MarkdownWriter
40
40
  autoload :JSONWriter
41
+ autoload :JsonWriter
41
42
  autoload :AppendJsonWriter
42
43
  autoload :JsonIodocsWriter
43
44
  autoload :IndexHelper
@@ -8,7 +8,7 @@ module RspecApiDocumentation
8
8
 
9
9
  def sections
10
10
  super.map do |section|
11
- routes = section[:examples].group_by { |e| "#{e.route_uri}#{e.route_optionals}" }.map do |route, examples|
11
+ routes = section[:examples].group_by { |e| "#{e.route_uri}#{e.route_optionals}#{e.route_name}" }.map do |route, examples|
12
12
  attrs = fields(:attributes, examples)
13
13
  params = fields(:parameters, examples)
14
14
 
@@ -23,6 +23,10 @@ module RspecApiDocumentation
23
23
  end
24
24
  end
25
25
 
26
+ # https://github.com/zipmark/rspec_api_documentation/issues/382
27
+ # backward compatibilty json for configuration of config.format
28
+ class JsonWriter < JSONWriter; end
29
+
26
30
  class JSONIndex
27
31
  def initialize(index, configuration)
28
32
  @index = index
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_api_documentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Cahoon
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-08-23 00:00:00.000000000 Z
13
+ date: 2018-10-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec