Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulnsward committed Feb 24, 2024
1 parent 28730ce commit 4e9886e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/uploadcare/client/rest_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ def request(uri:, method: 'GET', **options)
path: remove_trailing_slash(uri),
headers: request_headers,
body: options[:content],
params: options[:params]
)
params: options[:params])
end
end

Expand Down
1 change: 1 addition & 0 deletions lib/uploadcare/param/secure_auth_header.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def timestamp
end

private

def make_uri(options)
if options[:params] && !options[:params].empty?
uri = Addressable::URI.parse options[:uri]
Expand Down
6 changes: 3 additions & 3 deletions spec/uploadcare/client/file_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ module Client
end

it 'supports extra params like include' do
Uploadcare.config.public_key = "5d5bb5639e3f2df33674"
Uploadcare.config.secret_key = "159845b6ca81012c106c"
Uploadcare.config.public_key = '5d5bb5639e3f2df33674'
Uploadcare.config.secret_key = '159845b6ca81012c106c'

VCR.use_cassette('rest_file_info') do
uuid = '640fe4b7-7352-42ca-8d87-0e4387957157'
file = subject.info(uuid, { include: "appdata" })
file = subject.info(uuid, { include: 'appdata' })
expect(file.value![:uuid]).to eq(uuid)
expect(file.value![:appdata]).not_to be_empty
end
Expand Down

0 comments on commit 4e9886e

Please sign in to comment.