reactor 0.10.0 → 0.10.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: 2b1cd8dc6ba81d280aa248e55ab641a4c2fd71ac
4
- data.tar.gz: 57f4489af458281ec8917185854d26b3fd8ec811
3
+ metadata.gz: ca073addd79592f3fc3030cfb308b9790f772f56
4
+ data.tar.gz: b6bdfb4341a2bb713a118764e4584d418c882469
5
5
  SHA512:
6
- metadata.gz: b76d756f396d9ae0f3e3bf66a540ca03fbcc0a07d4742b10ad41e99a8b3a2ad1c1f12a3c8f7741a29571a7ee4ec3207454ddcfbf7a4c80c5bf93deea6f50e8c3
7
- data.tar.gz: 51701f10369a18d831a7961932a8a27ecbf8fc176137168f053e236d82e0b8c28cf4b5f4ed6ffcb5704916c5a4e504173f20a7c8ea596b821c27998aea1d0118
6
+ metadata.gz: 31e70511c4102b306ab4cf76b7ae5e3e85a93c0586eecf3d985e1748b1b10aadbce653f056c4a9f35cc2db7be2c26799584e83730b240d3601785454b57af69f
7
+ data.tar.gz: 10f3d2bb4624af3eceef841ec5c714866ab648cf578a464117d2c71d137e0e4c8feca7f1334ddafc6f852be7bd90f8ff31bb32bade1faa1fa0ce909f066735cc
data/.gitignore CHANGED
@@ -16,6 +16,5 @@ test/version_tmp
16
16
  tmp
17
17
  tags
18
18
  .rvmrc
19
- .ruby-version
20
19
  .ruby-gemset
21
20
  .idea
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.0
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.2
3
+ - 2.3.0
4
4
  services:
5
5
  - redis-server
data/Gemfile.lock CHANGED
@@ -1,21 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- reactor (0.1.0)
4
+ reactor (0.10.1)
5
5
  activerecord (< 5.0)
6
- sidekiq (< 4.0)
6
+ sidekiq
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (4.2.5)
12
- activesupport (= 4.2.5)
11
+ activemodel (4.2.5.1)
12
+ activesupport (= 4.2.5.1)
13
13
  builder (~> 3.1)
14
- activerecord (4.2.5)
15
- activemodel (= 4.2.5)
16
- activesupport (= 4.2.5)
14
+ activerecord (4.2.5.1)
15
+ activemodel (= 4.2.5.1)
16
+ activesupport (= 4.2.5.1)
17
17
  arel (~> 6.0)
18
- activesupport (4.2.5)
18
+ activesupport (4.2.5.1)
19
19
  i18n (~> 0.7)
20
20
  json (~> 1.7, >= 1.7.7)
21
21
  minitest (~> 5.1)
@@ -23,32 +23,15 @@ GEM
23
23
  tzinfo (~> 1.1)
24
24
  arel (6.0.3)
25
25
  builder (3.2.2)
26
- byebug (8.2.0)
27
- celluloid (0.17.2)
28
- celluloid-essentials
29
- celluloid-extras
30
- celluloid-fsm
31
- celluloid-pool
32
- celluloid-supervision
33
- timers (>= 4.1.1)
34
- celluloid-essentials (0.20.5)
35
- timers (>= 4.1.1)
36
- celluloid-extras (0.20.5)
37
- timers (>= 4.1.1)
38
- celluloid-fsm (0.20.5)
39
- timers (>= 4.1.1)
40
- celluloid-pool (0.20.5)
41
- timers (>= 4.1.1)
42
- celluloid-supervision (0.20.5)
43
- timers (>= 4.1.1)
26
+ byebug (8.2.2)
44
27
  coderay (1.1.0)
28
+ concurrent-ruby (1.0.0)
45
29
  connection_pool (2.2.0)
46
30
  diff-lcs (1.2.5)
47
- hitimes (1.2.3)
48
31
  i18n (0.7.0)
49
32
  json (1.8.3)
50
33
  method_source (0.8.2)
51
- minitest (5.8.3)
34
+ minitest (5.8.4)
52
35
  pry (0.10.3)
53
36
  coderay (~> 1.1.0)
54
37
  method_source (~> 0.8.1)
@@ -56,15 +39,13 @@ GEM
56
39
  pry-byebug (3.3.0)
57
40
  byebug (~> 8.0)
58
41
  pry (~> 0.10)
59
- rake (10.4.2)
42
+ rake (10.5.0)
60
43
  redis (3.2.2)
61
- redis-namespace (1.5.2)
62
- redis (~> 3.0, >= 3.0.4)
63
44
  rspec (3.4.0)
64
45
  rspec-core (~> 3.4.0)
65
46
  rspec-expectations (~> 3.4.0)
66
47
  rspec-mocks (~> 3.4.0)
67
- rspec-core (3.4.1)
48
+ rspec-core (3.4.2)
68
49
  rspec-support (~> 3.4.0)
69
50
  rspec-expectations (3.4.0)
70
51
  diff-lcs (>= 1.2.0, < 2.0)
@@ -72,23 +53,19 @@ GEM
72
53
  rspec-its (1.2.0)
73
54
  rspec-core (>= 3.0.0)
74
55
  rspec-expectations (>= 3.0.0)
75
- rspec-mocks (3.4.0)
56
+ rspec-mocks (3.4.1)
76
57
  diff-lcs (>= 1.2.0, < 2.0)
77
58
  rspec-support (~> 3.4.0)
78
59
  rspec-support (3.4.1)
79
- sidekiq (3.5.3)
80
- celluloid (~> 0.17.2)
60
+ sidekiq (4.1.0)
61
+ concurrent-ruby (~> 1.0)
81
62
  connection_pool (~> 2.2, >= 2.2.0)
82
- json (~> 1.0)
83
63
  redis (~> 3.2, >= 3.2.1)
84
- redis-namespace (~> 1.5, >= 1.5.2)
85
64
  slop (3.6.0)
86
65
  sqlite3 (1.3.11)
87
66
  test_after_commit (0.4.2)
88
67
  activerecord (>= 3.2)
89
68
  thread_safe (0.3.5)
90
- timers (4.1.1)
91
- hitimes
92
69
  tzinfo (1.2.2)
93
70
  thread_safe (~> 0.1)
94
71
 
@@ -28,9 +28,7 @@ module Reactor::Subscribable
28
28
  return :__perform_aborted__ if dont_perform && !Reactor::TEST_MODE_SUBSCRIBERS.include?(source)
29
29
  event = Reactor::Event.new(data)
30
30
  if method.is_a?(Symbol)
31
- ActiveSupport::Deprecation.silence do
32
- source.delay_for(delay).send(method, event)
33
- end
31
+ source.delay_for(delay).send(method, event)
34
32
  else
35
33
  method.call(event)
36
34
  end
@@ -1,3 +1,3 @@
1
1
  module Reactor
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
3
3
  end
data/reactor.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "sidekiq", '< 4.0'
21
+ spec.add_dependency "sidekiq"
22
22
  spec.add_dependency 'activerecord', '< 5.0'
23
23
 
24
24
  spec.add_development_dependency "bundler"
@@ -23,8 +23,10 @@ describe Reactor::Subscriber do
23
23
 
24
24
 
25
25
  describe 'matcher' do
26
+ before { MySubscriber.create!(event_name: '*') }
27
+ after { MySubscriber.destroy_all }
28
+
26
29
  it 'can be set to star to bind to all events' do
27
- MySubscriber.create!(event_name: '*')
28
30
  expect_any_instance_of(MySubscriber).to receive(:fire).with(hash_including('random' => 'data', 'event' => 'this_event'))
29
31
  Reactor::Event.publish(:this_event, {random: 'data'})
30
32
  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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - winfred
@@ -11,22 +11,22 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-02-05 00:00:00.000000000 Z
14
+ date: 2016-02-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: sidekiq
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - "<"
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '4.0'
22
+ version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "<"
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.0'
29
+ version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: activerecord
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -165,6 +165,7 @@ extra_rdoc_files: []
165
165
  files:
166
166
  - ".gitignore"
167
167
  - ".rspec"
168
+ - ".ruby-version"
168
169
  - ".travis.yml"
169
170
  - Gemfile
170
171
  - Gemfile.lock
@@ -230,3 +231,4 @@ test_files:
230
231
  - spec/reactor_spec.rb
231
232
  - spec/spec_helper.rb
232
233
  - spec/support/active_record.rb
234
+ has_rdoc: