Skip to content

Commit 65f4075

Browse files
committed
Clean up white space
1 parent f868442 commit 65f4075

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

lib/rspec_api_documentation/views/html_index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def initialize(index, configuration)
55
super
66
self.template_name = "rspec_api_documentation/html_index"
77
end
8-
8+
99
def examples
1010
@index.examples.map { |example| HtmlExample.new(example, @configuration) }
1111
end

lib/rspec_api_documentation/views/markup_example.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def initialize(example, configuration)
88
@host = configuration.curl_host
99
self.template_path = configuration.template_path
1010
end
11-
11+
1212
def method_missing(method, *args, &block)
1313
@example.send(method, *args, &block)
1414
end
@@ -20,13 +20,13 @@ def respond_to?(method, include_private = false)
2020
def dirname
2121
resource_name.downcase.gsub(/\s+/, '_')
2222
end
23-
23+
2424
def filename
2525
basename = description.downcase.gsub(/\s+/, '_').gsub(/[^a-z_]/, '')
2626
basename = Digest::MD5.new.update(description).to_s if basename.blank?
2727
"#{basename}.#{extension}"
2828
end
29-
29+
3030
def requests
3131
super.map do |hash|
3232
hash[:request_headers_text] = format_hash(hash[:request_headers])
@@ -40,7 +40,7 @@ def requests
4040
hash
4141
end
4242
end
43-
43+
4444
def extension
4545
raise 'Parent class. This method should not be called.'
4646
end

lib/rspec_api_documentation/views/markup_index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def initialize(index, configuration)
88
@configuration = configuration
99
self.template_path = configuration.template_path
1010
end
11-
11+
1212
def api_name
1313
@configuration.api_name
1414
end

lib/rspec_api_documentation/views/textile_index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def initialize(index, configuration)
55
super
66
self.template_name = "rspec_api_documentation/textile_index"
77
end
8-
8+
99
def examples
1010
@index.examples.map { |example| TextileExample.new(example, @configuration) }
1111
end

lib/rspec_api_documentation/writers/general_markup_writer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class GeneralMarkupWriter
44
attr_accessor :index, :configuration
55

66
INDEX_FILE_NAME = 'index'
7-
7+
88
def initialize(index, configuration)
99
self.index = index
1010
self.configuration = configuration
@@ -14,7 +14,7 @@ def self.write(index, configuration)
1414
writer = new(index, configuration)
1515
writer.write
1616
end
17-
17+
1818
def write
1919
File.open(configuration.docs_dir.join(index_file_name + '.' + extension), "w+") do |f|
2020
f.write markup_index_class.new(index, configuration).render

spec/writers/combined_text_example_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
context "when there are requests" do
3535
let(:requests) {[
36-
{
36+
{
3737
:request_method => "GET",
3838
:request_path => "/greetings",
3939
:request_headers => { "Header" => "value" },
@@ -43,7 +43,7 @@
4343
:response_headers => { "Header" => "value", "Foo" => "bar" },
4444
:response_body => "body"
4545
},
46-
{
46+
{
4747
:request_method => "POST",
4848
:request_path => "/greetings",
4949
:request_body => "body",
@@ -52,7 +52,7 @@
5252
:response_headers => { "Header" => "value" },
5353
:response_body => "body"
5454
},
55-
{
55+
{
5656
:request_method => "DELETE",
5757
:request_path => "/greetings/1",
5858
:response_status => 200,

spec/writers/textile_writer_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
describe RspecApiDocumentation::Writers::TextileWriter do
55
let(:index) { RspecApiDocumentation::Index.new }
66
let(:configuration) { RspecApiDocumentation::Configuration.new }
7-
7+
88
describe ".write" do
99
let(:writer) { double(:writer) }
1010

@@ -14,7 +14,7 @@
1414
described_class.write(index, configuration)
1515
end
1616
end
17-
17+
1818
describe "#write" do
1919
let(:writer) { described_class.new(index, configuration) }
2020

0 commit comments

Comments
 (0)