Skip to content

Commit

Permalink
Add spaces after commas
Browse files Browse the repository at this point in the history
See #200
  • Loading branch information
d-m-u authored and olleolleolle committed Feb 7, 2020
1 parent 64aa530 commit b8f2645
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/faraday_middleware/request/oauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def include_body_params?(env)

def signature_params(params)
params.empty? ? params :
params.reject {|k,v| v.respond_to?(:content_type) }
params.reject {|k, v| v.respond_to?(:content_type) }
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/faraday_middleware/response/chunked.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Chunked < FaradayMiddleware::ResponseMiddleware
decoded_body = []
until raw_body.empty?
chunk_len, raw_body = raw_body.split("\r\n", 2)
chunk_len = chunk_len.split(';',2).first.hex
chunk_len = chunk_len.split(';', 2).first.hex
break if chunk_len == 0

decoded_body << raw_body[0, chunk_len]
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/parse_dates_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
end

it 'leaves arrays with ids alone' do
expect(process({'x' => [1,2,3]}).body).to eq({'x' => [1,2,3]})
expect(process({'x' => [1, 2, 3]}).body).to eq({'x' => [1, 2, 3]})
end

it 'does not parse date-like things' do
Expand Down

0 comments on commit b8f2645

Please sign in to comment.