signalman 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/signalman/version.rb +1 -1
- data/lib/signalman.rb +11 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b28d7fca8056eae8e21a3ef173b4935090754a02f7dc6fed613171e62799974
|
4
|
+
data.tar.gz: a443c1aba2246d0072dcb30360ab9f58176d5eb316122be70ef082bbab58ec2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 573fded60e4a16fbd33ae806b93ecc10bce784a04c1eca15a2340982efcd9b03bf98b1d113bc04c23d4a12584be54665345296e663006c4d3b29d8b4c7f84560
|
7
|
+
data.tar.gz: e67dc0da5783f91cf31f4be8e1fc31e7bec08849ae2564de8f48cae35cd5855cead06715eafad89b88e0179cff9f2746b3fac98a30743dd7dcc8d8513f0bd97a
|
data/README.md
CHANGED
data/lib/signalman/version.rb
CHANGED
data/lib/signalman.rb
CHANGED
@@ -90,8 +90,18 @@ module Signalman
|
|
90
90
|
end
|
91
91
|
|
92
92
|
class QueryHandler < BaseHandler
|
93
|
+
IGNORED_QUERIES = [
|
94
|
+
"SCHEMA",
|
95
|
+
"TRANSACTION",
|
96
|
+
"ActiveRecord::SchemaMigration",
|
97
|
+
"ActiveRecord::InternalMetadata",
|
98
|
+
/^Signalman/
|
99
|
+
]
|
100
|
+
|
101
|
+
# CREATE_TABLE queries have nil for `name`
|
93
102
|
def skip?
|
94
|
-
|
103
|
+
return if event.payload[:name].blank?
|
104
|
+
IGNORED_QUERIES.any?{ |q| q.match? event.payload[:name] }
|
95
105
|
end
|
96
106
|
|
97
107
|
def process
|