Bump cartodb-common to 0.3.4

pull/15808/head
Jorge Tarrero 4 years ago
parent 32bd84e66b
commit efdee6ac7f

1
.gitignore vendored

@ -86,3 +86,4 @@ app_config.yml
database.yml database.yml
build_resources/ build_resources/
.dockerignore .dockerignore
fake.log*

@ -69,7 +69,7 @@ gem 'google-cloud-pubsub', '1.2.0'
# Service components (/services) # Service components (/services)
gem 'virtus', '1.0.5' gem 'virtus', '1.0.5'
gem 'cartodb-common', git: 'https://github.com/cartodb/cartodb-common.git', tag: 'v0.3.3' gem 'cartodb-common', git: 'https://github.com/cartodb/cartodb-common.git', tag: 'v0.3.4'
gem 'email_address', '~> 0.1.11' gem 'email_address', '~> 0.1.11'
# Markdown # Markdown

@ -8,8 +8,8 @@ GIT
GIT GIT
remote: https://github.com/cartodb/cartodb-common.git remote: https://github.com/cartodb/cartodb-common.git
revision: 26094bd1cff81b80841e11e0e463d4f98193c2a9 revision: 341004053e7198ab1021fb0722de18acd4a09520
tag: v0.3.3 tag: v0.3.4
specs: specs:
cartodb-common (0.3.0) cartodb-common (0.3.0)
activesupport (~> 4.2.11.3) activesupport (~> 4.2.11.3)

@ -45,10 +45,18 @@ describe(Carto::Common::Logger, type: :request) do
it 'obfuscates sensitive parameters' do it 'obfuscates sensitive parameters' do
output = LogDeviceMock.capture_output do output = LogDeviceMock.capture_output do
get(root_path, password: 'password', nested: { token: 'token', auth_stuff: 'auth_stuff' }) get(
root_path,
password: 'password',
nested: { token: 'token', auth_stuff: 'auth_stuff' },
nested_array: %w[auth sensible_stuff]
)
end end
expect(output).to match(/"password":"********".*"token":"*****".*"auth_stuff":"**********"/) expect(output).to match(/password=(\*{8})/)
expect(output).to match(/nested\[token\]=(\*{5})/)
expect(output).to match(/nested\[auth_stuff\]=(\*{10})/)
expect(output).to match(/nested_array=(\*{4})(.*)(\*{14})/)
end end
it 'logs request processing' do it 'logs request processing' do

Loading…
Cancel
Save