reactor 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reactor/models/concerns/publishable.rb +4 -1
- data/lib/reactor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d90cd996f2190605f1a5371b4f53e6c4bc3e06c1
|
4
|
+
data.tar.gz: 8f1fc2b3238366005a058b9682d69401075ef0ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29323bb0100ec4d4b912d44238c989aa9d5a94c94740cfa681917c62f42bf6c3d50f65ad4d7d170a863d3f3c1a3a55c656a9f0f74517bd4b47a3f297c0f1b27b
|
7
|
+
data.tar.gz: fefd3d99e793f80d9a18f9989e303daf5ef193b83c04b4858874aec341ce8ea7560b08bdd64c9888f50b16c0dae96499a9c605ecf2c1a0ba5e5c99bd95043e77
|
@@ -3,7 +3,8 @@ module Reactor::Publishable
|
|
3
3
|
|
4
4
|
included do
|
5
5
|
after_commit :schedule_events, if: :persisted?, on: :create
|
6
|
-
after_commit :
|
6
|
+
after_commit :schedule_conditional_events_on_create, if: :persisted?, on: :create
|
7
|
+
after_commit :schedule_conditional_events_on_update, if: :persisted?, on: :update
|
7
8
|
after_commit :reschedule_events, if: :persisted?, on: :update
|
8
9
|
end
|
9
10
|
|
@@ -56,6 +57,8 @@ module Reactor::Publishable
|
|
56
57
|
Reactor::Event.publish name, event if need_to_fire
|
57
58
|
end
|
58
59
|
end
|
60
|
+
alias :schedule_conditional_events_on_create :schedule_conditional_events
|
61
|
+
alias :schedule_conditional_events_on_update :schedule_conditional_events
|
59
62
|
|
60
63
|
def event_data_for_signature(signature)
|
61
64
|
signature.merge(
|
data/lib/reactor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reactor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- winfred
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-06-
|
14
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: sidekiq
|