u-observers 2.2.0 → 2.2.1
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 +4 -4
- data/README.pt-BR.md +1 -1
- data/lib/micro/observers/broadcast.rb +5 -1
- data/lib/micro/observers/version.rb +1 -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: d7ebc064f3e8384d9322c640d3d52b1bf70bf6d5159ae67bf3cd34bdf67482eb
|
|
4
|
+
data.tar.gz: 398d1ab0fc5852a42416c5bc16c377c4a55d760e1e327e2149b58b7db23cae73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d805d69fb5cb7d08d1ef5aec34742d08845d2d544cec1262ec63d99788adb5053ed87558957849f1b9843b772929e9490f1ae243ee3c568d87b94e1b432a8c5
|
|
7
|
+
data.tar.gz: 932bfa8189f162fea8160779d521168fdebe253d36414c0b05fbccf2a8c661dc94e127fb5a942523e0ae415142d6090cd8a361124f60f550b7d2166c87106c0e
|
data/README.pt-BR.md
CHANGED
|
@@ -66,7 +66,7 @@ gem 'u-observers'
|
|
|
66
66
|
| u-observers | branch | ruby | activerecord |
|
|
67
67
|
| ----------- | ------- | -------- | ------------- |
|
|
68
68
|
| unreleased | main | >= 2.2.0 | >= 3.2, < 6.1 |
|
|
69
|
-
| 2.2.
|
|
69
|
+
| 2.2.1 | v2.x | >= 2.2.0 | >= 3.2, < 6.1 |
|
|
70
70
|
| 1.0.0 | v1.x | >= 2.2.0 | >= 3.2, < 6.1 |
|
|
71
71
|
|
|
72
72
|
> **Nota**: O ActiveRecord não é uma dependência, mas você pode adicionar um módulo para habilitar alguns métodos estáticos que foram projetados para serem usados com seus [callbacks](https://guides.rubyonrails.org/active_record_callbacks.html).
|
|
@@ -56,7 +56,11 @@ module Micro
|
|
|
56
56
|
|
|
57
57
|
callable, with, context = options[0], options[1], options[2]
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
if with && !with.is_a?(Proc)
|
|
60
|
+
callable.call(with)
|
|
61
|
+
|
|
62
|
+
return true
|
|
63
|
+
end
|
|
60
64
|
|
|
61
65
|
event = Event.new(event_name, subject, context, data)
|
|
62
66
|
|