signalman 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/lib/signalman/version.rb +1 -1
- data/lib/signalman.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd4eda752f9abe69ea5219d3cd1df32be022985d126b7745e2b439e553f70905
|
4
|
+
data.tar.gz: 406d98eea5b4bab9dcf3ada634bf6e6d7598dd2384585763de8fa7b20e68b87c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1c1470ab631b64b8a87b540fc8624d209115cba7fec501739dcb01eca8818817f07c05a6233a6dcbfe6f14478b1d7c2d8812056d74f4e18f9a73336f2d63b6c
|
7
|
+
data.tar.gz: b62dc1debf71defc7ffaa243205b35eb940df98021273937ced859853da0d7cf9d667c56a6b38eee35cef23644c489045d4dc892361813f7eb68ec0857464bf6
|
data/README.md
CHANGED
@@ -8,17 +8,17 @@ How to use my plugin.
|
|
8
8
|
Add this line to your application's Gemfile:
|
9
9
|
|
10
10
|
```ruby
|
11
|
-
|
11
|
+
bundle add "signalman", group: :development
|
12
12
|
```
|
13
13
|
|
14
|
-
|
15
|
-
```
|
16
|
-
|
14
|
+
Add migrations
|
15
|
+
```ruby
|
16
|
+
bin/rails signalman:install:migrations
|
17
17
|
```
|
18
18
|
|
19
|
-
|
20
|
-
```
|
21
|
-
|
19
|
+
Mount to the Rails routes
|
20
|
+
```ruby
|
21
|
+
mount Signalman::Engine => "/signalman" if Rails.env.development?
|
22
22
|
```
|
23
23
|
|
24
24
|
## Contributing
|
data/lib/signalman/version.rb
CHANGED
data/lib/signalman.rb
CHANGED
@@ -36,6 +36,8 @@ module Signalman
|
|
36
36
|
duration: event.duration,
|
37
37
|
payload: payload
|
38
38
|
)
|
39
|
+
rescue ActiveRecord::StatementInvalid => e
|
40
|
+
Rails.logger.error "[Signalman] #{e.message}"
|
39
41
|
end
|
40
42
|
|
41
43
|
# Time measure since system boot with
|
@@ -89,8 +91,7 @@ module Signalman
|
|
89
91
|
|
90
92
|
class QueryHandler < BaseHandler
|
91
93
|
def skip?
|
92
|
-
["SCHEMA", "TRANSACTION"].include?(event.payload[:name])
|
93
|
-
event.payload[:name]&.include?("Signalman::")
|
94
|
+
["SCHEMA", "TRANSACTION", "ActiveRecord::SchemaMigration", "Signalman::"].include?(event.payload[:name])
|
94
95
|
end
|
95
96
|
|
96
97
|
def process
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: signalman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Oliver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
|
-
rubygems_version: 3.4.
|
94
|
+
rubygems_version: 3.4.13
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Development tools for Ruby on Rails
|