airbrake-ruby 4.7.0 → 4.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/airbrake-ruby/filters/sql_filter.rb +4 -1
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/filters/sql_filter_spec.rb +15 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f06a3a2de096ef24fbe7fc848acb44a8c631cdc4
|
4
|
+
data.tar.gz: 17cb5b6ac664e2e49ed2c4b656a774d327de2a01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29c546f17ad80bb9953d63b60ae695ef900e35446f49666be2a7abed88e75be4682553ec30402469cf0f1a2a4f6c1bddd14c49bfeea8a1746d3621d064e6e064
|
7
|
+
data.tar.gz: 5802789e4df182654edb152608dd42536f359c4d2b7f88b08c51ad455d04e6826612cfbae1cfda69cb64950bdba0ebd706d06f2cfaeb0655c2e02f122cb57aef
|
@@ -248,8 +248,22 @@ RSpec.describe Airbrake::Filters::SqlFilter do
|
|
248
248
|
'cons AS ( SELECT conrelid, connum, row_number() OVER() AS rownum FROM ' \
|
249
249
|
'pk_constraint ) SELECT attr.attname FROM pg_attribute attr INNER JOIN ' \
|
250
250
|
'cons ON attr.attrelid = cons.conrelid AND attr.attnum = cons.connum ' \
|
251
|
-
'ORDER BY cons.rownum'
|
251
|
+
'ORDER BY cons.rownum',
|
252
252
|
|
253
|
+
'SELECT c.relname FROM pg_class c LEFT JOIN pg_namespace n ON ' \
|
254
|
+
'n.oid = c.relnamespace WHERE n.nspname = ANY (?)',
|
255
|
+
|
256
|
+
'SELECT a.attname FROM ( SELECT indrelid, indkey, generate_subscripts(?) ' \
|
257
|
+
'idx FROM pg_index WHERE indrelid = ?::regclass AND indisprimary ) i ' \
|
258
|
+
'JOIN pg_attribute a ON a.attrelid = i.indrelid AND ' \
|
259
|
+
'a.attnum = i.indkey[i.idx] ORDER BY i.idx',
|
260
|
+
|
261
|
+
'SELECT t.oid, t.typname, t.typelem, t.typdelim, t.typinput, r.rngsubtype, ' \
|
262
|
+
't.typtype, t.typbasetype FROM pg_type as t LEFT JOIN pg_range as r ON ' \
|
263
|
+
'oid = rngtypid WHERE t.typname IN (?) OR t.typtype IN (?) OR t.typinput ' \
|
264
|
+
'= ?::regprocedure OR t.typelem != ?',
|
265
|
+
|
266
|
+
'SELECT t.oid, t.typname FROM pg_type as t WHERE t.typname IN (?)'
|
253
267
|
].each do |query|
|
254
268
|
include_examples 'query blacklisting', query, should_ignore: true
|
255
269
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airbrake-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.7.
|
4
|
+
version: 4.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Airbrake Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbtree3
|