Fix rubocop failures introduced by rubocop 0.50.

This commit is contained in:
Andy Brody 2017-09-19 21:49:36 -04:00
parent 6beead019b
commit ae3ca18884
4 changed files with 10 additions and 4 deletions

View File

@ -385,3 +385,9 @@ Style/WordArray:
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/BarePercentLiterals:
Enabled: false
Lint/RescueWithoutErrorClass:
Exclude:
- 'bin/restclient'
- 'lib/restclient/windows/root_certs.rb'

View File

@ -8,7 +8,7 @@ Gem::Specification.new do |s|
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.license = 'MIT'
s.email = 'rest.client@librelist.com'
s.email = 'discuss@rest-client.groups.io'
s.executables = ['restclient']
s.extra_rdoc_files = ['README.md', 'history.md']
s.files = `git ls-files -z`.split("\0")

View File

@ -92,7 +92,7 @@ describe RestClient::Request do
begin
data = JSON.parse(raw)
rescue
rescue StandardError
puts "Failed to parse: " + raw.inspect
raise
end

View File

@ -1221,10 +1221,10 @@ describe RestClient::Request, :include_helpers do
expect(@request.process_url_params('https://example.com/', params: {
foo: [1,2,3],
null: nil,
false: false,
falsy: false,
math: '2+2=4',
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[arr][]=1&nested[arr][]=2'
end