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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a05b705bc951aed966742d0403f8c29f9e96949b
4
- data.tar.gz: e629610d7eace9ddca72ab165636b7e91bd7b255
3
+ metadata.gz: f06a3a2de096ef24fbe7fc848acb44a8c631cdc4
4
+ data.tar.gz: 17cb5b6ac664e2e49ed2c4b656a774d327de2a01
5
5
  SHA512:
6
- metadata.gz: 37c876fee2ce05781a18f76cddd9f9c16c70a0d49e9d473736859ecfa6af5de03f6b3d75efde455096a79f80be73afbdd0ea0db85d49aa351c6875df3e16eecf
7
- data.tar.gz: 2bd3600c3cf8263c4cc8f8606ea7a8ee55a2347275d2122b47a6703b0c0864061dfbc5ffa29524f966c6457261c77b991d19e0df1a07bb263154a6d42b45e987
6
+ metadata.gz: 29c546f17ad80bb9953d63b60ae695ef900e35446f49666be2a7abed88e75be4682553ec30402469cf0f1a2a4f6c1bddd14c49bfeea8a1746d3621d064e6e064
7
+ data.tar.gz: 5802789e4df182654edb152608dd42536f359c4d2b7f88b08c51ad455d04e6826612cfbae1cfda69cb64950bdba0ebd706d06f2cfaeb0655c2e02f122cb57aef
@@ -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.7.1'.freeze
6
6
  end
@@ -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.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-03 00:00:00.000000000 Z
11
+ date: 2019-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbtree3