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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fde04277711d635f472dbd5f930d8d229439977f
4
- data.tar.gz: defa897759a608c46676c26ba1552887d24fb0e7
3
+ metadata.gz: d90cd996f2190605f1a5371b4f53e6c4bc3e06c1
4
+ data.tar.gz: 8f1fc2b3238366005a058b9682d69401075ef0ba
5
5
  SHA512:
6
- metadata.gz: 2a461f780da7909000cf0b9487f63a731bdbef965d2329cc8cfb7b7129fb0f0adcb16c74f4e297ed4fcbc33ccdcef675bc0b682f147c93128b74712ffd09f807
7
- data.tar.gz: 35616c16d05954d319bc4fa55029d5432b1444332aa3ede44fc9bc8e97fb64bafbb3bc32587c3b0e66a61f0a3867a445445a95cb6024ec9426ec24ea540bed4f
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 :schedule_conditional_events, if: :persisted?, on: [:create, :update]
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(
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
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.0
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-20 00:00:00.000000000 Z
14
+ date: 2014-06-26 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: sidekiq