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 +4 -4
- data/lib/reactor/event.rb +0 -5
- data/lib/reactor/version.rb +1 -1
- data/reactor.gemspec +1 -1
- data/spec/spec_helper.rb +2 -6
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32ae9f0d99cf819318f0bd3611addcc9537548fe
|
4
|
+
data.tar.gz: 17f2a43e5d16f8fe9d0847d949eba3425a31f72d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/reactor/version.rb
CHANGED
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::
|
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
|
-
|
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.
|
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-
|
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
|