1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Merge pull request #630 from rest-client/ab-rubocop

Fix rubocop failures introduced by rubocop 0.50.
This commit is contained in:
Andy Brody 2017-09-20 00:00:46 -04:00 committed by GitHub
commit f450a0f086
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