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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e9a74358c1037c16f0a343f02b5840c77607569
4
- data.tar.gz: f8ba2b02d95b0934af0d57add8b75c33c2bf49b3
3
+ metadata.gz: c16a557d4b35da8d8fba1efa471f796541aef335
4
+ data.tar.gz: ac815477f75de47e44ac651ca1291dc950ae4ae8
5
5
  SHA512:
6
- metadata.gz: fae79f206e0011b096b6817c0dcf3dde568fed64329b22d2708549dc12725003bcc1ce64537ec255ecc7d6437fddf59b50afe295fa66a801f596712785cc9e88
7
- data.tar.gz: c450f5814c17cf71e6ba9f2f92a7d41dad867ba542433d4062f5ca9492b7a00e89abb6800db9980896531eeac6873a9122c0c9061cad6021af0855f8abe90969
6
+ metadata.gz: 3384aff052dcb81ab980ca9e4ec0adf2fce3432e69102f13a1a9d1d3e80f4689128e4b9dd4c909a70046b65ec4d258c0550c7780245733e6ba34994ef79a886d
7
+ data.tar.gz: 7c010e613b9a4e7625455165cafce6726029011a9c92bf9bb4633b10bc5fe2ec7ab8901ecd47786cb6ece8e362869852c454dcf8ea6de13ee13435c2ce5549c1
data/.gitignore CHANGED
@@ -16,3 +16,5 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  .rvmrc
19
+ .ruby-version
20
+ .ruby-gemset
data/lib/reactor/event.rb CHANGED
@@ -52,6 +52,11 @@ class Reactor::Event
52
52
  new.perform(name, data)
53
53
  end
54
54
 
55
+ def process(name, data)
56
+ new.perform(name, data)
57
+ end
58
+ deprecate process: 'use Event#perform instead'
59
+
55
60
  def publish(name, data = {})
56
61
  message = new(data.merge(event: name))
57
62
 
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
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.2
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-21 00:00:00.000000000 Z
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.0
134
+ rubygems_version: 2.0.3
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Sidekiq/ActiveRecord pubsub lib