reactor 0.5.0 → 0.5.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: 11693bb99d91dfe0e19245876a0367c7580563a6
4
- data.tar.gz: c3c2957d48171f38bf6673e1b55a5ec95977ed00
3
+ metadata.gz: 32ae9f0d99cf819318f0bd3611addcc9537548fe
4
+ data.tar.gz: 17f2a43e5d16f8fe9d0847d949eba3425a31f72d
5
5
  SHA512:
6
- metadata.gz: b002c8547c7e0893c9e45b58d14254364b6bf141f32725f7bb822c0766ab8c054a3a9b7ac3bcf61435cd03c9b396db07ea1088875d3c4a9b3bc8d0ee69db7f77
7
- data.tar.gz: c294f5349ce9c2d4b28e789a1059dc3c1a71c6682f5b91b739284052a1634bb496a5c2ab0808acc318b21d662b946a75875c2b2fa10b0b242b64331c347e838a
6
+ metadata.gz: 2d67d5c63c75311901f4b7e0bbb40c10da97fc65a5245fa06f37bab54b55bf0adb5f4eb86751af6934db16ed3b4319979c80953498943c3414e40d520cb5c40c
7
+ data.tar.gz: 5bbe9527be4c56d7c73586b7b22da08799321d611de3bb823c96f4548958d0596aa1b8588c5114a5fc4619ca7cbdc4bc6b74d796c311f2f3886c7efb289c0f29
data/lib/reactor/event.rb CHANGED
@@ -53,11 +53,6 @@ class Reactor::Event
53
53
  new.perform(name, data)
54
54
  end
55
55
 
56
- def process(name, data)
57
- new.perform(name, data)
58
- end
59
- deprecate process: 'use Reactor::Event#perform instead'
60
-
61
56
  def publish(name, data = {})
62
57
  message = new(data.merge(event: name))
63
58
 
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
data/reactor.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "sidekiq", ">= 2.13.0"
22
- spec.add_dependency 'activerecord', '3.2.13'
22
+ spec.add_dependency 'activerecord', '~> 3.2.13'
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
25
25
  spec.add_development_dependency "rspec"
data/spec/spec_helper.rb CHANGED
@@ -32,16 +32,12 @@ RSpec.configure do |config|
32
32
  # in which case it will use the real Redis-backed Sidekiq queue
33
33
  config.before(:each, :sidekiq) do
34
34
  Sidekiq.redis{|r| r.flushall }
35
- Sidekiq::Client.class_eval do
36
- singleton_class.class_eval do
37
- alias_method :raw_push, :raw_push_old
38
- end
39
- end
35
+ Sidekiq::Testing.disable!
40
36
  end
41
37
 
42
38
 
43
39
  config.after(:each, :sidekiq) do
44
- load "sidekiq/testing/inline.rb"
40
+ Sidekiq::Testing.inline!
45
41
  end
46
42
 
47
43
  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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - winfred
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-08-14 00:00:00.000000000 Z
15
+ date: 2013-10-09 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: sidekiq
@@ -32,14 +32,14 @@ dependencies:
32
32
  name: activerecord
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - '='
35
+ - - ~>
36
36
  - !ruby/object:Gem::Version
37
37
  version: 3.2.13
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - '='
42
+ - - ~>
43
43
  - !ruby/object:Gem::Version
44
44
  version: 3.2.13
45
45
  - !ruby/object:Gem::Dependency