logstash-file 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/.travis.yml +9 -3
- data/README.md +17 -0
- data/lib/logstash-file/version.rb +1 -1
- data/spec/logstash-file/logger_spec.rb +10 -3
- data/task/tag.rake +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmU0MzY5MDY5ZmZiNWU1MTc5MDBkNmQ2N2Y5MzM1MmI5Njk0N2ZhMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDU4ZGQ0NjAzY2UwMTI3MzJiOTliYjFkZWZhOTZlYjMxYWQwYTE5Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTU5YjIwOWM4ODljMGM2MzhlNjE5YmFmNDQ5NGU3ZWU5MWZiODU0ZGE5MGE1
|
10
|
+
ZmZlMmZjMTcwYjNiNGNjNDFlODM1ZjE2NmFiNTk2MDljY2EwMmIyNjg1YWY3
|
11
|
+
NGFjMDFiMjYyMzcwN2M5M2JjMDljMzVmZDMzODk2NWE0ZTViNTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWRmNDU5OTk2NzgzOGFlYTZhYWM3ZTFhODI4ZjgwNGQ4MGNlMjk1MzQ2ODQ2
|
14
|
+
NzJlYjY3YzI4ZjRiNWQ2MDVlM2EyZGZjNDcxNWQyYzhhYmJhYzdmMTVlYTkx
|
15
|
+
YmZjY2U5NmM0MmMwM2U3ZDY1ZGNiZjNlNzJhNjg5MzVlZWY1MDQ=
|
data/.travis.yml
CHANGED
@@ -4,9 +4,15 @@ script: rake
|
|
4
4
|
rvm:
|
5
5
|
- 1.9.3
|
6
6
|
- 2.0.0
|
7
|
-
-
|
8
|
-
- jruby
|
7
|
+
- 2.1.0-preview1
|
8
|
+
- jruby
|
9
9
|
- jruby-head
|
10
|
+
- jruby-1.7.4
|
11
|
+
|
12
|
+
# Rubinius is disabled for the time being as Travis CI hasn't updated yet to
|
13
|
+
# Rubinius 2.0 (as far as I'm aware of).
|
14
|
+
#- rbx
|
15
|
+
#- rbx-head
|
10
16
|
|
11
17
|
notifications:
|
12
18
|
email:
|
@@ -14,7 +20,7 @@ notifications:
|
|
14
20
|
- development@olery.com
|
15
21
|
email:
|
16
22
|
on_success: change
|
17
|
-
on_failure:
|
23
|
+
on_failure: change
|
18
24
|
|
19
25
|
branches:
|
20
26
|
only:
|
data/README.md
CHANGED
@@ -16,6 +16,21 @@ logging message. See below for more information.
|
|
16
16
|
|
17
17
|
* Ruby 1.9.3 or newer
|
18
18
|
|
19
|
+
## Supported Rubies
|
20
|
+
|
21
|
+
* Ruby 1.9.3
|
22
|
+
* Ruby 2.x
|
23
|
+
* Jruby 1.7 and newer
|
24
|
+
* Rubinius 2.0 and newer
|
25
|
+
|
26
|
+
Tests are ran on both Travis CI as well as the private Jenkins instance of
|
27
|
+
[Olery][olery]. Although this Gem may work on Ruby 1.8 we have not verified
|
28
|
+
this nor do we intend to.
|
29
|
+
|
30
|
+
Rubinius support will be properly evaluated once Travis CI and our internal
|
31
|
+
Jenkins instance have been updated so that they contain the latest Rubinius
|
32
|
+
versions. Having said that, this Gem should just work fine in theory.
|
33
|
+
|
19
34
|
## Usage
|
20
35
|
|
21
36
|
First install the Gem:
|
@@ -38,3 +53,5 @@ Basic logging is as following:
|
|
38
53
|
The source code of this repository and logstash-file itself are licensed under
|
39
54
|
the MIT license unless specified otherwise. A copy of this license can be found
|
40
55
|
in the file "LICENSE" in the root directory of this repository.
|
56
|
+
|
57
|
+
[olery]: http://olery.com/
|
@@ -35,14 +35,21 @@ describe LogstashFile::Logger do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# Half-assed test to ensure that multiple entries are actually written on
|
38
|
-
# separate lines.
|
39
|
-
# pretty difficult thing to test reliably.
|
38
|
+
# separate lines.
|
40
39
|
example 'synchronize multi-threaded operations' do
|
41
40
|
amount = 50
|
42
41
|
threads = []
|
43
42
|
|
43
|
+
# Create the logger before using it amongst the different threads. Without
|
44
|
+
# doing so we'd also have to wrap a mutex around the `let` block access.
|
45
|
+
logger = self.logger
|
46
|
+
|
44
47
|
amount.times do |n|
|
45
|
-
|
48
|
+
thread = Thread.new { logger.info("thread #{n}") }
|
49
|
+
|
50
|
+
thread.abort_on_exception = true
|
51
|
+
|
52
|
+
threads << thread
|
46
53
|
end
|
47
54
|
|
48
55
|
threads.each(&:join)
|
data/task/tag.rake
CHANGED