backport 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +19 -18
- data/CHANGELOG.md +4 -0
- data/lib/backport/server/connectable.rb +0 -7
- data/lib/backport/server/interval.rb +6 -3
- data/lib/backport/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48f2747578596662f088eee89f805524050bd8c2efb4a357f454e338723ba08b
|
4
|
+
data.tar.gz: af914ebb78ef90b553e8b652a793bff042866536eb54d3f280736b4ef7f027d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 873e8c3a990e9263ea16da2870559d7471b6bd840012648ca7409fdbd304a0269ee6beb8868aa1a82c615df77a19cc80c87a788bd999bd395b7b0d6df68f3fcd
|
7
|
+
data.tar.gz: 1dee31e2865afa7631e4252f5d73a235eca96dd4e5071dab53357b75e0d7e41a63dd677d60d18babbb33ae0de34549166c13f320d608c8700f4de5f19f235544
|
data/.travis.yml
CHANGED
@@ -1,18 +1,19 @@
|
|
1
|
-
---
|
2
|
-
sudo: false
|
3
|
-
language: ruby
|
4
|
-
rvm:
|
5
|
-
- 2.1
|
6
|
-
- 2.2
|
7
|
-
- 2.3
|
8
|
-
- 2.4
|
9
|
-
- 2.5.1
|
10
|
-
- 2.5.3
|
11
|
-
- 2.6
|
12
|
-
- jruby-9.
|
13
|
-
- jruby-9.
|
14
|
-
matrix:
|
15
|
-
include:
|
16
|
-
- rvm: 2.4
|
17
|
-
os: osx
|
18
|
-
before_install: gem install bundler -v 1.17.2
|
1
|
+
---
|
2
|
+
sudo: false
|
3
|
+
language: ruby
|
4
|
+
rvm:
|
5
|
+
- 2.1
|
6
|
+
- 2.2
|
7
|
+
- 2.3
|
8
|
+
- 2.4
|
9
|
+
- 2.5.1
|
10
|
+
- 2.5.3
|
11
|
+
- 2.6
|
12
|
+
- jruby-9.1.16.0
|
13
|
+
- jruby-9.2
|
14
|
+
matrix:
|
15
|
+
include:
|
16
|
+
- rvm: 2.4
|
17
|
+
os: osx
|
18
|
+
before_install: gem install bundler -v 1.17.2
|
19
|
+
script: rspec --format documentation
|
data/CHANGELOG.md
CHANGED
@@ -5,13 +5,6 @@ module Backport
|
|
5
5
|
# Connectable servers check clients for incoming data on each tick.
|
6
6
|
#
|
7
7
|
module Connectable
|
8
|
-
# def tick
|
9
|
-
# mutex.synchronize do
|
10
|
-
# # clients.each(&:tick)
|
11
|
-
# clients.delete_if(&:stopped?)
|
12
|
-
# end
|
13
|
-
# end
|
14
|
-
|
15
8
|
def starting
|
16
9
|
clients.map(&:run)
|
17
10
|
end
|
@@ -10,6 +10,7 @@ module Backport
|
|
10
10
|
@period = period
|
11
11
|
@block = block
|
12
12
|
@ready = false
|
13
|
+
@mutex = Mutex.new
|
13
14
|
end
|
14
15
|
|
15
16
|
def starting
|
@@ -19,8 +20,10 @@ module Backport
|
|
19
20
|
|
20
21
|
def tick
|
21
22
|
return unless @ready
|
22
|
-
@
|
23
|
-
|
23
|
+
@mutex.synchronize do
|
24
|
+
@block.call self
|
25
|
+
@ready = false
|
26
|
+
end
|
24
27
|
end
|
25
28
|
|
26
29
|
private
|
@@ -30,7 +33,7 @@ module Backport
|
|
30
33
|
until stopped?
|
31
34
|
sleep @period
|
32
35
|
break if stopped?
|
33
|
-
@ready = true
|
36
|
+
@mutex.synchronize { @ready = true }
|
34
37
|
changed
|
35
38
|
notify_observers self
|
36
39
|
end
|
data/lib/backport/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Snyder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|