reactor 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/lib/reactor/event.rb +5 -0
- data/lib/reactor/version.rb +1 -1
- data/spec/event_spec.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c16a557d4b35da8d8fba1efa471f796541aef335
|
4
|
+
data.tar.gz: ac815477f75de47e44ac651ca1291dc950ae4ae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3384aff052dcb81ab980ca9e4ec0adf2fce3432e69102f13a1a9d1d3e80f4689128e4b9dd4c909a70046b65ec4d258c0550c7780245733e6ba34994ef79a886d
|
7
|
+
data.tar.gz: 7c010e613b9a4e7625455165cafce6726029011a9c92bf9bb4633b10bc5fe2ec7ab8901ecd47786cb6ece8e362869852c454dcf8ea6de13ee13435c2ce5549c1
|
data/.gitignore
CHANGED
data/lib/reactor/event.rb
CHANGED
data/lib/reactor/version.rb
CHANGED
data/spec/event_spec.rb
CHANGED
@@ -35,6 +35,11 @@ describe Reactor::Event do
|
|
35
35
|
Reactor::Subscriber.any_instance.should_receive(:fire).with(hash_including(fired_at: anything))
|
36
36
|
Reactor::Event.perform(event_name, actor_id: '1')
|
37
37
|
end
|
38
|
+
|
39
|
+
it 'works with the legacy .process method, too' do
|
40
|
+
Reactor::Subscriber.any_instance.should_receive(:fire).with(hash_including(actor_id: '1'))
|
41
|
+
Reactor::Event.process(event_name, actor_id: '1')
|
42
|
+
end
|
38
43
|
end
|
39
44
|
|
40
45
|
describe 'reschedule', :sidekiq do
|
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.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- winfred
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sidekiq
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
133
|
rubyforge_project:
|
134
|
-
rubygems_version: 2.0.
|
134
|
+
rubygems_version: 2.0.3
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
137
|
summary: Sidekiq/ActiveRecord pubsub lib
|