carnivore-unixsocket 0.2.2 → 0.2.4

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: d40ca669180b22ec6a003f14d8bd03f600bb7a24
4
- data.tar.gz: 3ac35e2fedbe2df5e7765b6114ad2b6142bd3aba
3
+ metadata.gz: 9be45540321a03d923df0e339df27d39b3713702
4
+ data.tar.gz: 11af63d8b10bdd12d484d40c5571e799c60c7009
5
5
  SHA512:
6
- metadata.gz: 18914309875f9db7f8af22a4a2c389f7bfe65ecdf95decd0fc9b5707562fba7a9e6be9d2454ff851f91840b03ddee4e783b788f1d69cfbab43472349735a1465
7
- data.tar.gz: 83c34e5956710e48d4951ed7a91d0e0781a338c7f680a285977cb0bc6411059de2ec45b30ad1829f9347b3bd674700bd9ca19b32f2911d96683fa06188c73f77
6
+ metadata.gz: 289210727f7448a850440d62d63710da393f5d89babe79ff04ec2dd404b096c6293302f2b08dee05a8fab66dd0f65b7ee46049de840273bc919c85d765da893f
7
+ data.tar.gz: c0b93b584ff9e2d515f5a74fefe478179046040575643305fb0cabdd8b1086320109f7c72b7b896e1e36ad62fe3e8942a55282433f8b5460c1fdaf38c507e760
@@ -1,3 +1,6 @@
1
+ # v0.2.4
2
+ * Fix server internal notifier
3
+
1
4
  # v0.2.2
2
5
  * Fix service namespace access
3
6
  * Allow connections access via reader
@@ -18,6 +18,8 @@ module Carnivore
18
18
  attr_reader :source
19
19
  # @return [IO]
20
20
  attr_reader :waker
21
+ # @return [IO]
22
+ attr_reader :notifier
21
23
  # @return [Array<IO>]
22
24
  attr_reader :connections
23
25
 
@@ -30,7 +32,7 @@ module Carnivore
30
32
  @path = ::File.expand_path(args[:path])
31
33
  @source = args[:source]
32
34
  @connections = []
33
- @waker = IO.pipe.last
35
+ @waker, @notifier = IO.pipe
34
36
  end
35
37
 
36
38
  # Add a new connection
@@ -39,7 +41,7 @@ module Carnivore
39
41
  # @return [NilClass]
40
42
  def add_connection(con)
41
43
  @connections.push(con)
42
- waker.write '-'
44
+ notifier.write '-'
43
45
  nil
44
46
  end
45
47
 
@@ -49,7 +51,7 @@ module Carnivore
49
51
  # @return [NilClass]
50
52
  def remove_connection(con)
51
53
  @connections.delete(con)
52
- waker.write '-'
54
+ notifier.write '-'
53
55
  nil
54
56
  end
55
57
 
@@ -1,6 +1,6 @@
1
1
  module Carnivore
2
2
  module UnixSocket
3
3
  # current library version
4
- VERSION = Gem::Version.new('0.2.2')
4
+ VERSION = Gem::Version.new('0.2.4')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carnivore-unixsocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-28 00:00:00.000000000 Z
11
+ date: 2017-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carnivore