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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/carnivore-unixsocket/util/socket_server.rb +5 -3
- data/lib/carnivore-unixsocket/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9be45540321a03d923df0e339df27d39b3713702
|
4
|
+
data.tar.gz: 11af63d8b10bdd12d484d40c5571e799c60c7009
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289210727f7448a850440d62d63710da393f5d89babe79ff04ec2dd404b096c6293302f2b08dee05a8fab66dd0f65b7ee46049de840273bc919c85d765da893f
|
7
|
+
data.tar.gz: c0b93b584ff9e2d515f5a74fefe478179046040575643305fb0cabdd8b1086320109f7c72b7b896e1e36ad62fe3e8942a55282433f8b5460c1fdaf38c507e760
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
-
|
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
|
-
|
54
|
+
notifier.write '-'
|
53
55
|
nil
|
54
56
|
end
|
55
57
|
|
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.
|
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-
|
11
|
+
date: 2017-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: carnivore
|