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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd4eda752f9abe69ea5219d3cd1df32be022985d126b7745e2b439e553f70905
4
- data.tar.gz: 406d98eea5b4bab9dcf3ada634bf6e6d7598dd2384585763de8fa7b20e68b87c
3
+ metadata.gz: 0b28d7fca8056eae8e21a3ef173b4935090754a02f7dc6fed613171e62799974
4
+ data.tar.gz: a443c1aba2246d0072dcb30360ab9f58176d5eb316122be70ef082bbab58ec2f
5
5
  SHA512:
6
- metadata.gz: a1c1470ab631b64b8a87b540fc8624d209115cba7fec501739dcb01eca8818817f07c05a6233a6dcbfe6f14478b1d7c2d8812056d74f4e18f9a73336f2d63b6c
7
- data.tar.gz: b62dc1debf71defc7ffaa243205b35eb940df98021273937ced859853da0d7cf9d667c56a6b38eee35cef23644c489045d4dc892361813f7eb68ec0857464bf6
6
+ metadata.gz: 573fded60e4a16fbd33ae806b93ecc10bce784a04c1eca15a2340982efcd9b03bf98b1d113bc04c23d4a12584be54665345296e663006c4d3b29d8b4c7f84560
7
+ data.tar.gz: e67dc0da5783f91cf31f4be8e1fc31e7bec08849ae2564de8f48cae35cd5855cead06715eafad89b88e0179cff9f2746b3fac98a30743dd7dcc8d8513f0bd97a
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Signalman
2
- Short description and motivation.
2
+ A debug tool for Ruby on Rails application.
3
3
 
4
4
  ## Usage
5
5
  How to use my plugin.
@@ -1,3 +1,3 @@
1
1
  module Signalman
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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
- ["SCHEMA", "TRANSACTION", "ActiveRecord::SchemaMigration", "Signalman::"].include?(event.payload[:name])
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signalman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver