Skip to content

Commit 661232c

Browse files
authored
Update classnames for JSONExample and JSONIndex
1 parent 64821a8 commit 661232c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/rspec_api_documentation/writers/json_writer.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ class JSONWriter < Writer
77

88
def write
99
File.open(docs_dir.join("index.json"), "w+") do |f|
10-
f.write Formatter.to_json(JsonIndex.new(index, configuration))
10+
f.write Formatter.to_json(JSONIndex.new(index, configuration))
1111
end
1212
write_examples
1313
end
1414

1515
def write_examples
1616
index.examples.each do |example|
17-
json_example = JsonExample.new(example, configuration)
17+
json_example = JSONExample.new(example, configuration)
1818
FileUtils.mkdir_p(docs_dir.join(json_example.dirname))
1919
File.open(docs_dir.join(json_example.dirname, json_example.filename), "w+") do |f|
2020
f.write Formatter.to_json(json_example)
@@ -23,7 +23,7 @@ def write_examples
2323
end
2424
end
2525

26-
class JsonIndex
26+
class JSONIndex
2727
def initialize(index, configuration)
2828
@index = index
2929
@configuration = configuration
@@ -34,7 +34,7 @@ def sections
3434
end
3535

3636
def examples
37-
@index.examples.map { |example| JsonExample.new(example, @configuration) }
37+
@index.examples.map { |example| JSONExample.new(example, @configuration) }
3838
end
3939

4040
def as_json(opts = nil)
@@ -61,7 +61,7 @@ def section_hash(section)
6161
end
6262
end
6363

64-
class JsonExample
64+
class JSONExample
6565
def initialize(example, configuration)
6666
@example = example
6767
@host = configuration.curl_host

0 commit comments

Comments
 (0)