u-observers 2.2.0 → 2.2.1

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: e7da28034b714bb64baf033cf43705ed585fa007659964dc36bec440436292f0
4
- data.tar.gz: cd2b40e92cdfd12708ab36f1ed8a7726ecfbc2c6e96223ca090aedc7758f44f8
3
+ metadata.gz: d7ebc064f3e8384d9322c640d3d52b1bf70bf6d5159ae67bf3cd34bdf67482eb
4
+ data.tar.gz: 398d1ab0fc5852a42416c5bc16c377c4a55d760e1e327e2149b58b7db23cae73
5
5
  SHA512:
6
- metadata.gz: 51be920a8f6f0123e0a94fbf180fb85517ddccb107f729f6eaa38ac840e14a9d207cb82e8f3f76e018e3836f4a7cc0b47b7ea6320ffd0615d22df49c6b693d73
7
- data.tar.gz: 66c73487b724149f640e096b24a1e9ecf5e5d8780e9679f1d182823eda377e8b289ed88c98d73f6a81147e945eba7a8ce24278244ab50c1a191ebba1b912e265
6
+ metadata.gz: 0d805d69fb5cb7d08d1ef5aec34742d08845d2d544cec1262ec63d99788adb5053ed87558957849f1b9843b772929e9490f1ae243ee3c568d87b94e1b432a8c5
7
+ data.tar.gz: 932bfa8189f162fea8160779d521168fdebe253d36414c0b05fbccf2a8c661dc94e127fb5a942523e0ae415142d6090cd8a361124f60f550b7d2166c87106c0e
@@ -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.0 | v2.x | >= 2.2.0 | >= 3.2, < 6.1 |
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
- return callable.call(with) if with && !with.is_a?(Proc)
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
 
@@ -1,5 +1,5 @@
1
1
  module Micro
2
2
  module Observers
3
- VERSION = '2.2.0'
3
+ VERSION = '2.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: u-observers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Serradura