syslogstash 0.1.1 → 0.1.2

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: 6f47ccc542419a16ab39733b9e1eb4339af2eac4
4
- data.tar.gz: 6ad589db43a9ae334ca93d9124834b214ef1d917
3
+ metadata.gz: e1e482db553fd58fa24c01ad386c6e025c7f5803
4
+ data.tar.gz: a09ec42a4bcd0a10e0a96f9bf0b4b9ba0775c393
5
5
  SHA512:
6
- metadata.gz: ad9be0a929d46793a95c17da19469de50f51f2cb128576c635a0fa2ba185b21864a175cc3c2400f25e3ee2667920ad35a0d1680baac38ce1a9cd91df0575d525
7
- data.tar.gz: 06a46e150683addbf7615a68cb79c674da258f1bba4a9e7c54ef0da9ba6672a9c4cc102d6dd9079484aceae0e7300ce35f988302ac28d1433e62ec5c256bd535
6
+ metadata.gz: 307fcd4284d854a967c1b7e09e033f30fd34a1106ef905d8fe034e8f32d9f398ee119e7e70002d4b17b9a960ea72624979946bff70a4b0925b2cf6f175652a82
7
+ data.tar.gz: fb38a1494174ae8233cd5d7acf3f5496ffc50729e99242d1ac0024aa3f05de52a96abbe0ef477d4cbabfb65926f9f71350e3426ef0ea95103c6415a1f86ed23c
@@ -16,6 +16,10 @@ class Syslogstash::SyslogReader
16
16
  def run
17
17
  debug { "#run called" }
18
18
 
19
+ if File.exists?(@file)
20
+ File.unlink(@file)
21
+ end
22
+
19
23
  socket = Socket.new(Socket::AF_UNIX, Socket::SOCK_DGRAM, 0)
20
24
  socket.bind(Socket.pack_sockaddr_un(@file))
21
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: syslogstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-02 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler