airbrake-ruby 4.7.0 → 4.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/airbrake-ruby/config.rb +1 -1
- data/lib/airbrake-ruby/filters/sql_filter.rb +4 -1
- data/lib/airbrake-ruby/version.rb +1 -1
- data/spec/config_spec.rb +1 -1
- data/spec/filters/sql_filter_spec.rb +15 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bb6fd7fd474a31d89d2b532d467f5c319399b183a5805488bbb57789bc502bef
|
4
|
+
data.tar.gz: 83493c7a39f6eea49668f7c94fc202c90d55efcc1d4822864a70cca03c96134f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 149075c2e3a3cd9f43f19f7309f8b9e46aa36bde2994bc48b80c8b66a4c675d1fef2989e2020e5bc81dc55a8e8490f18aa445307dd2212f7c2467a3186fb1c8d
|
7
|
+
data.tar.gz: 030edc9303bd0f1042a6aa3f3ec5b672ab58598fee90a71e6d7f6a6fed84716d2043afab9edf46b3bdd6ee9939ef6b979ad78dc37575be774663ac84e8af73a7
|
data/lib/airbrake-ruby/config.rb
CHANGED
data/spec/config_spec.rb
CHANGED
@@ -21,7 +21,7 @@ RSpec.describe Airbrake::Config do
|
|
21
21
|
its(:whitelist_keys) { is_expected.to be_empty }
|
22
22
|
its(:performance_stats) { is_expected.to eq(true) }
|
23
23
|
its(:performance_stats_flush_period) { is_expected.to eq(15) }
|
24
|
-
its(:query_stats) { is_expected.to eq(
|
24
|
+
its(:query_stats) { is_expected.to eq(true) }
|
25
25
|
|
26
26
|
describe "#new" do
|
27
27
|
context "when user config is passed" do
|
@@ -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.
|
4
|
+
version: 4.8.0
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbtree3
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubyforge_project:
|
160
|
-
rubygems_version: 2.6.
|
160
|
+
rubygems_version: 2.7.6.2
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Ruby notifier for https://airbrake.io
|