Skip to content

Commit

Permalink
backward compatibility to use json or JSON in format configuration
Browse files Browse the repository at this point in the history
issue #382
  • Loading branch information
Rodrigo Ramírez Norambuena committed Sep 4, 2018
1 parent bb87226 commit 0ab53a0
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 0ab53a0

Please sign in to comment.