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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a05b705bc951aed966742d0403f8c29f9e96949b
4
- data.tar.gz: e629610d7eace9ddca72ab165636b7e91bd7b255
2
+ SHA256:
3
+ metadata.gz: bb6fd7fd474a31d89d2b532d467f5c319399b183a5805488bbb57789bc502bef
4
+ data.tar.gz: 83493c7a39f6eea49668f7c94fc202c90d55efcc1d4822864a70cca03c96134f
5
5
  SHA512:
6
- metadata.gz: 37c876fee2ce05781a18f76cddd9f9c16c70a0d49e9d473736859ecfa6af5de03f6b3d75efde455096a79f80be73afbdd0ea0db85d49aa351c6875df3e16eecf
7
- data.tar.gz: 2bd3600c3cf8263c4cc8f8606ea7a8ee55a2347275d2122b47a6703b0c0864061dfbc5ffa29524f966c6457261c77b991d19e0df1a07bb263154a6d42b45e987
6
+ metadata.gz: 149075c2e3a3cd9f43f19f7309f8b9e46aa36bde2994bc48b80c8b66a4c675d1fef2989e2020e5bc81dc55a8e8490f18aa445307dd2212f7c2467a3186fb1c8d
7
+ data.tar.gz: 030edc9303bd0f1042a6aa3f3ec5b672ab58598fee90a71e6d7f6a6fed84716d2043afab9edf46b3bdd6ee9939ef6b979ad78dc37575be774663ac84e8af73a7
@@ -138,7 +138,7 @@ module Airbrake
138
138
  self.versions = {}
139
139
  self.performance_stats = true
140
140
  self.performance_stats_flush_period = 15
141
- self.query_stats = false
141
+ self.query_stats = true
142
142
 
143
143
  merge(user_config)
144
144
  end
@@ -86,7 +86,10 @@ module Airbrake
86
86
  /\ASET/i,
87
87
  /\ASHOW/i,
88
88
  /\AWITH/i,
89
- /FROM pg_attribute/i
89
+ /FROM pg_attribute/i,
90
+ /FROM pg_index/i,
91
+ /FROM pg_class/i,
92
+ /FROM pg_type/i
90
93
  ].freeze
91
94
 
92
95
  def initialize(dialect)
@@ -2,5 +2,5 @@
2
2
  # More information: http://semver.org/
3
3
  module Airbrake
4
4
  # @return [String] the library version
5
- AIRBRAKE_RUBY_VERSION = '4.7.0'.freeze
5
+ AIRBRAKE_RUBY_VERSION = '4.8.0'.freeze
6
6
  end
@@ -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(false) }
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.7.0
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-03 00:00:00.000000000 Z
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.14.4
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