logflume 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +45 -4
  3. data/lib/logflume/version.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fae615a235fa6c465ba65e5b9cb60aecc4ee623
4
- data.tar.gz: 14fa5ce982a4715298c6e8f5bb306b7d3ed25bd4
3
+ metadata.gz: 6a92a64b9bace5a1daaa45778fdcebd557571a33
4
+ data.tar.gz: 563c95da849f5dad5d93580f7cc1053725201735
5
5
  SHA512:
6
- metadata.gz: 77435d573f00e9e9fd1815afc3420cfc68e2fdb3ca43c0919d2fd5d5c11fc70abb6370b4ac4688b3aee178681dd85f26517ea4e7a3c443b709ad8b6807438e57
7
- data.tar.gz: 0daf70f947861eec6dc23f1af43b16caad4f97135aae041a1b93986cfd2d2939e176e7eacabd8110752670f3ca0f2cc4b1021fbad0229206b8f1e4e0b5bf6fe3
6
+ metadata.gz: cc6fbadefacbbfa74c69827a95cd8a82bb1fa58edbc4fb5ab61983c1be2def3921103192d2cb1a424d830768bd46052aba9b31eec32d3ca67e1e0a938e5eaac8
7
+ data.tar.gz: dda8f6672b8ffcd8853428f917f197e86a46de1f7c34142c420452a7e21bc9add7f23eb88623fd234209bb1e9322ebe8839170dda40517639219e01598a0bb3a
data/README.md CHANGED
@@ -8,7 +8,7 @@ A library to continually dump the contents of new logfiles into a POSIX FIFO pip
8
8
  ## Build Status
9
9
 
10
10
  [![Build Status](https://travis-ci.org/shadowbq/logflume.svg)](https://travis-ci.org/shadowbq/logflume)
11
- [![Code Climate](https://codeclimate.com/github/shadowbq/logflume/badges/gpa.svg)](https://codeclimate.com/github/shadowbq/logflume)
11
+ [![Code Climate](https://codeclimate.com/github/shadowbq/logflume/badges/gpa.svg)](https://codeclimate.com/github/shadowbq/logflume)
12
12
  [![Test Coverage](https://codeclimate.com/github/shadowbq/logflume/badges/coverage.svg)](https://codeclimate.com/github/shadowbq/logflume)
13
13
  [![GitHub tag](https://img.shields.io/github/tag/shadowbq/logflume.svg)](http://github.com/shadowbq/logflume)
14
14
 
@@ -23,7 +23,7 @@ A library to continually dump the contents of new logfiles into a POSIX FIFO pip
23
23
 
24
24
  ## EXAMPLE IMPLEMENTATION:
25
25
 
26
- This is a single blocking logflume. We can call this `worker.rb`.
26
+ This is a single blocking logflume. We can call this `worker.rb`.
27
27
 
28
28
  You need three posix shells for this to properly work
29
29
 
@@ -53,16 +53,39 @@ flume.start
53
53
  gets
54
54
  ```
55
55
 
56
- ### Example `worker.rb` Output
56
+ ### CAT - Dump the FIFO pipe
57
57
 
58
58
  ```shell
59
- $ ruby worker.rb
59
+ [shadowbq@fn-pound](~)$ cat /tmp/logflume.conveyor.fifo
60
+ 2015-02-04 13:17:16 startup archives unpack
61
+ 2015-02-04 13:17:16 install libjpeg-turbo-progs:amd64 <none> 1.3.0-0ubuntu2
62
+ 2015-02-04 13:17:16 status half-installed libjpeg-turbo-progs:amd64 1.3.0-0ubuntu2
63
+ 2015-02-04 13:17:17 status triggers-pending man-db:amd64 2.6.7.1-1ubuntu1
64
+ 2015-02-04 13:17:17 status unpacked libjpeg-turbo-progs:amd64 1.3.0-0ubuntu2
65
+ 2015-02-04 13:17:17 status unpacked libjpeg-turbo-progs:amd64 1.3.0-0ubuntu2
66
+ 2015-02-04 13:17:17 install libjpeg-progs:amd64 <none> 8c-2ubuntu8
67
+ 2015-02-04 13:17:17 status half-installed libjpeg-progs:amd64 8c-2ubuntu8
68
+ 2015-02-04 13:17:17 status unpacked libjpeg-progs:amd64 8c-2ubuntu8
69
+ 2015-02-04 13:17:17 status unpacked libjpeg-progs:amd64 8c-2ubuntu8
70
+ 2015-02-04 13:17:17 install jhead:amd64 <none> 1:2.97-1
71
+ 2015-02-04 13:17:17 status half-installed jhead:amd64 1:2.97-1
72
+ 2015-02-04 13:17:17 status unpacked jhead:amd64 1:2.97-1
73
+ 2015-02-04 13:17:17 status unpacked jhead:amd64 1:2.97-1
74
+ 2015-02-04 13:17:17 install libimage-exiftool-perl:all <none> 9.46-1
75
+ ```
76
+
77
+ ### Example `worker.rb` Output
78
+
79
+ ```shell
80
+ $ ruby worker.rb
60
81
  I, [2015-02-09T00:31:22.389096 #20712] INFO -- : new File found => /home/shadowbq/sandbox/github-shadowbq/logflume/spec/data/flume/dpkg.log
61
82
  I, [2015-02-09T00:31:22.395498 #20712] INFO -- : new File found => /home/shadowbq/sandbox/github-shadowbq/logflume/spec/data/flume/test.log
62
83
  (.. RCVR SIGQUIT see below ..)
63
84
  Terminating...
64
85
  ```
65
86
 
87
+
88
+
66
89
  ### Control Signal Hooks
67
90
 
68
91
  ```shell
@@ -75,6 +98,24 @@ shadowbq 20712 0.4 0.0 262508 14836 pts/0 Sl+ 00:30 0:04 ruby worker.rb
75
98
  $ kill -3 20712
76
99
  ```
77
100
 
101
+ ## Troubleshooting
102
+
103
+ If mkfifo gem fails to load:
104
+
105
+ ```ruby
106
+ `rescue in <top (required)>': No such file to load, please install 'win32/pipe' or 'mkfifo' (LoadError)
107
+ ```
108
+
109
+ check the permissions on the `lib` of the gems directory
110
+
111
+ Ala..
112
+
113
+ ```shell
114
+ sudo chmod a+rx /usr/local/lib/ruby/gems/2.0/gems/mkfifo-0.0.1/lib
115
+ ```
116
+
117
+
118
+
78
119
  ## LICENSE:
79
120
 
80
121
  (The MIT License)
@@ -1,3 +1,3 @@
1
1
  module Logflume
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logflume
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shadowbq
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-16 00:00:00.000000000 Z
11
+ date: 2015-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: directory_watcher
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: mkfifo
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.0.1
41
41
  - !ruby/object:Gem::Dependency