as-notifications 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +2 -4
- data/lib/as/notifications/fanout.rb +2 -2
- metadata +10 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0ac36431b2f10910a6a16630c52c58bae37b99fbc6117219022861c18500f72e
|
4
|
+
data.tar.gz: b5ae40c233e6cba3e0f114cf812d4b75f6127ef63394429d04f40f7d44059fd9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: abd95e05223913e52f47cbcfd473f99ca32d2f75c3d35515df8cf33259d44af6cb0f0717589bf5039aa1726072cadcae4f161e199a81aaf185e9f69fa5d1cd72
|
7
|
+
data.tar.gz: 7b2542f653b5249686a8eab3a2088c91c12872b6916423e082797831cbcc6f194305490c51a733823ac5e8647499e76b65b40547e91d8e1ed80ebf019c73d006
|
data/README.md
CHANGED
@@ -2,11 +2,9 @@ AS::Notification -- Provides an instrumentation API for Ruby
|
|
2
2
|
------------------------------------------------------------
|
3
3
|
|
4
4
|
AS::Notification is an extraction of ActiveSupport::Notifications from
|
5
|
-
[Rails](https://github.com/rails/rails/tree/
|
5
|
+
[Rails](https://github.com/rails/rails/tree/main/activesupport).
|
6
6
|
|
7
|
-
[
|
8
|
-
|
9
|
-
* [API documentation](http://rubydoc.info/github/bernd/as-notifications/master/AS/Notifications)
|
7
|
+
* [API documentation](http://rubydoc.info/github/bernd/as-notifications/main/AS/Notifications)
|
10
8
|
* [ChangeLog](CHANGELOG.md)
|
11
9
|
|
12
10
|
## Installation
|
@@ -15,8 +15,8 @@ module AS
|
|
15
15
|
super
|
16
16
|
end
|
17
17
|
|
18
|
-
def subscribe(pattern = nil,
|
19
|
-
subscriber = Subscribers.new pattern, block
|
18
|
+
def subscribe(pattern = nil, callable = nil, &block)
|
19
|
+
subscriber = Subscribers.new pattern, callable || block
|
20
20
|
synchronize do
|
21
21
|
@subscribers << subscriber
|
22
22
|
@listeners_for.clear
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: as-notifications
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Bernd Ahlers
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2021-06-22 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Provides an instrumentation API for Ruby. It has been extracted from
|
15
14
|
rails activesupport.
|
@@ -20,43 +19,35 @@ extra_rdoc_files: []
|
|
20
19
|
files:
|
21
20
|
- MIT-LICENSE
|
22
21
|
- README.md
|
23
|
-
- lib/as/per_thread_registry.rb
|
24
|
-
- lib/as/notifications.rb
|
25
22
|
- lib/as/backports/define_singleton_method.rb
|
26
23
|
- lib/as/backports/public_send.rb
|
24
|
+
- lib/as/notifications.rb
|
27
25
|
- lib/as/notifications/fanout.rb
|
28
26
|
- lib/as/notifications/instrumenter.rb
|
27
|
+
- lib/as/per_thread_registry.rb
|
29
28
|
homepage: https://github.com/bernd/as-notifications
|
30
29
|
licenses:
|
31
30
|
- MIT
|
31
|
+
metadata: {}
|
32
32
|
post_install_message:
|
33
33
|
rdoc_options:
|
34
|
-
- --encoding
|
34
|
+
- "--encoding"
|
35
35
|
- UTF-8
|
36
36
|
require_paths:
|
37
37
|
- lib
|
38
38
|
required_ruby_version: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
39
|
requirements:
|
41
|
-
- -
|
40
|
+
- - ">="
|
42
41
|
- !ruby/object:Gem::Version
|
43
42
|
version: '0'
|
44
|
-
segments:
|
45
|
-
- 0
|
46
|
-
hash: 2475729035612698049
|
47
43
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
48
|
-
none: false
|
49
44
|
requirements:
|
50
|
-
- -
|
45
|
+
- - ">="
|
51
46
|
- !ruby/object:Gem::Version
|
52
47
|
version: '0'
|
53
|
-
segments:
|
54
|
-
- 0
|
55
|
-
hash: 2475729035612698049
|
56
48
|
requirements: []
|
57
|
-
|
58
|
-
rubygems_version: 1.8.25
|
49
|
+
rubygems_version: 3.1.2
|
59
50
|
signing_key:
|
60
|
-
specification_version:
|
51
|
+
specification_version: 4
|
61
52
|
summary: Provides an instrumentation API for Ruby
|
62
53
|
test_files: []
|