Skip to content

Commit

Permalink
Merge pull request #399 from roramirez/backward-compability-json-writer
Browse files Browse the repository at this point in the history
backward compatibility to use json or JSON in format configuration
  • Loading branch information
oestrich authored Sep 4, 2018
2 parents bb87226 + 0ab53a0 commit 117b82d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/rspec_api_documentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module Writers
autoload :TextileWriter
autoload :MarkdownWriter
autoload :JSONWriter
autoload :JsonWriter
autoload :AppendJsonWriter
autoload :JsonIodocsWriter
autoload :IndexHelper
Expand Down
4 changes: 4 additions & 0 deletions lib/rspec_api_documentation/writers/json_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def write_examples
end
end

# https://github.com/zipmark/rspec_api_documentation/issues/382
# backward compatibilty json for configuration of config.format
class JsonWriter < JSONWriter; end

class JSONIndex
def initialize(index, configuration)
@index = index
Expand Down

0 comments on commit 117b82d

Please sign in to comment.