message_bus 1.0.10 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of message_bus might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e399202ac9751b63a940cf2442247905bc3394c3
4
- data.tar.gz: cca646b9e0cead6959171bccc487015983caae22
3
+ metadata.gz: 3e596a5f9146a82e6197f01287502006f9330f9b
4
+ data.tar.gz: bb698d73ba25f0681cdda865b6f09a348a9f2b17
5
5
  SHA512:
6
- metadata.gz: 0e8caed956222e13faabee6bb0d0b33552fd9d030d4dd481d39baf16a208f9073e1be6c43a9a38e193ba07e8d31ccc65073a97685ea5dc0f72c6dd4833ddd813
7
- data.tar.gz: bd0253ae0cead17c8508e91fe9ea0bd6bf94f8cdd16ad8822aa914e8853e3cd141380aada6b6ac62e9c13f96622ebd062f2b5916845f23672a757cc279820b98
6
+ metadata.gz: 061915a68b0301e7d86d4f40fcd4f9f40b2d34f362350dfd89c881e73b1bddf245eaa1ecf7ad7e53cff82c3f35ab280361d7d80a9481416f3dd6df1352f2f623
7
+ data.tar.gz: bdc6d8c4c2e822c9835ed73237eadfd5da825481ac3c0e15245e90b1fd3a8e704199e2fd08250aa73c830f94ad705767f9543894f8815cb07e6b1aeef4a0106c
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 06-05-2015
2
+ - Version 1.0.11
3
+ - Fix: race condition in TimerThread
4
+
1
5
  01-05-2015
2
6
  - Version: 1.0.10
3
7
  - Feature: no longer depends on EventMachine (only used for Thin backend)
@@ -31,7 +31,6 @@ hooks:
31
31
  - gem install unicorn
32
32
  - gem install redis
33
33
  - gem install sinatra
34
- - gem install eventmachine
35
34
  - file:
36
35
  path: /etc/service/unicorn/run
37
36
  chmod: "+x"
@@ -64,7 +64,7 @@ class MessageBus::TimerThread
64
64
  def do_work
65
65
  while !@stopped
66
66
  if @next && @next <= Time.new.to_f
67
- _,blk = @jobs.shift
67
+ _,blk = @mutex.synchronize { @jobs.shift }
68
68
  begin
69
69
  blk.call
70
70
  rescue => e
@@ -1,3 +1,3 @@
1
1
  module MessageBus
2
- VERSION = "1.0.10"
2
+ VERSION = "1.0.11"
3
3
  end
@@ -25,7 +25,7 @@ describe MessageBus::TimerThread do
25
25
  items.map do |i|
26
26
  # threading introduces a delay meaning we need to wait a long time
27
27
  Thread.new do
28
- @timer.queue(i/5.0) do
28
+ @timer.queue(i/500.0) do
29
29
  failed = true if counter != i
30
30
  counter += 1
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: message_bus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-03 00:00:00.000000000 Z
11
+ date: 2015-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project:
121
- rubygems_version: 2.4.5
121
+ rubygems_version: 2.2.2
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: ''