mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Fix rubocop failures introduced by rubocop 0.50.
This commit is contained in:
parent
6beead019b
commit
ae3ca18884
4 changed files with 10 additions and 4 deletions
|
@ -385,3 +385,9 @@ Style/WordArray:
|
||||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||||
Style/BarePercentLiterals:
|
Style/BarePercentLiterals:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|
||||||
|
Lint/RescueWithoutErrorClass:
|
||||||
|
Exclude:
|
||||||
|
- 'bin/restclient'
|
||||||
|
- 'lib/restclient/windows/root_certs.rb'
|
||||||
|
|
|
@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
||||||
s.authors = ['REST Client Team']
|
s.authors = ['REST Client Team']
|
||||||
s.description = 'A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete.'
|
s.description = 'A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete.'
|
||||||
s.license = 'MIT'
|
s.license = 'MIT'
|
||||||
s.email = 'rest.client@librelist.com'
|
s.email = 'discuss@rest-client.groups.io'
|
||||||
s.executables = ['restclient']
|
s.executables = ['restclient']
|
||||||
s.extra_rdoc_files = ['README.md', 'history.md']
|
s.extra_rdoc_files = ['README.md', 'history.md']
|
||||||
s.files = `git ls-files -z`.split("\0")
|
s.files = `git ls-files -z`.split("\0")
|
||||||
|
|
|
@ -92,7 +92,7 @@ describe RestClient::Request do
|
||||||
|
|
||||||
begin
|
begin
|
||||||
data = JSON.parse(raw)
|
data = JSON.parse(raw)
|
||||||
rescue
|
rescue StandardError
|
||||||
puts "Failed to parse: " + raw.inspect
|
puts "Failed to parse: " + raw.inspect
|
||||||
raise
|
raise
|
||||||
end
|
end
|
||||||
|
|
|
@ -1221,10 +1221,10 @@ describe RestClient::Request, :include_helpers do
|
||||||
expect(@request.process_url_params('https://example.com/', params: {
|
expect(@request.process_url_params('https://example.com/', params: {
|
||||||
foo: [1,2,3],
|
foo: [1,2,3],
|
||||||
null: nil,
|
null: nil,
|
||||||
false: false,
|
falsy: false,
|
||||||
math: '2+2=4',
|
math: '2+2=4',
|
||||||
nested: {'key + escaped' => 'value + escaped', other: [], arr: [1,2]},
|
nested: {'key + escaped' => 'value + escaped', other: [], arr: [1,2]},
|
||||||
})).to eq 'https://example.com/?foo[]=1&foo[]=2&foo[]=3&null&false=false&math=2%2B2%3D4' \
|
})).to eq 'https://example.com/?foo[]=1&foo[]=2&foo[]=3&null&falsy=false&math=2%2B2%3D4' \
|
||||||
'&nested[key+%2B+escaped]=value+%2B+escaped&nested[other]' \
|
'&nested[key+%2B+escaped]=value+%2B+escaped&nested[other]' \
|
||||||
'&nested[arr][]=1&nested[arr][]=2'
|
'&nested[arr][]=1&nested[arr][]=2'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue