logstash-file 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2MwYzc5MzMxYjE2YjA2M2EwODRmYWQ2MDY4ZDE3MDU5MjQzN2RhYg==
4
+ ZmU0MzY5MDY5ZmZiNWU1MTc5MDBkNmQ2N2Y5MzM1MmI5Njk0N2ZhMA==
5
5
  data.tar.gz: !binary |-
6
- MGU2N2UwOGEwOWZiNjE2NzI0MmNlOTA0YmQ5MTk4MjJlMGE3NzU5Yw==
6
+ ZDU4ZGQ0NjAzY2UwMTI3MzJiOTliYjFkZWZhOTZlYjMxYWQwYTE5Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWRkMzc4YWEzZGQ3YzUwOTBmZjcyMzc4ZTdjMWU2MDNiMTIyMmE4YzVmZWMy
10
- MDQxMDQ4NWIyM2RiMmZiZWJkNDBmNzc4YmIxZWFmNzFhM2U5MGRiMzA1ODdk
11
- MjMxZDFkYzcwNjI0YTQxYTJhOTE5M2NhYjA1OWU5YmQ5ODQ2M2Q=
9
+ OTU5YjIwOWM4ODljMGM2MzhlNjE5YmFmNDQ5NGU3ZWU5MWZiODU0ZGE5MGE1
10
+ ZmZlMmZjMTcwYjNiNGNjNDFlODM1ZjE2NmFiNTk2MDljY2EwMmIyNjg1YWY3
11
+ NGFjMDFiMjYyMzcwN2M5M2JjMDljMzVmZDMzODk2NWE0ZTViNTM=
12
12
  data.tar.gz: !binary |-
13
- M2UxNGU2YzY0ZTRmNTJmYjUzYzEzMjA1OGYzMTlhNjE5ZmJiNGMzOGM4YzJh
14
- OGVmZjA5OWJiYTZmY2M4MTY5NzJlOGIxYzQwN2Q1NTIyMDJjMDIwYmMyNDk1
15
- M2M1Njg5M2NjNjg0ZTgwODUxNDE0NTZiYTE5MDIxZjk3OTQxODc=
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
- - rbx-head
8
- - jruby-19mode
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: always
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/
@@ -1,3 +1,3 @@
1
1
  module LogstashFile
2
- VERSION = '0.0.1'
2
+ VERSION = '0.1.0'
3
3
  end # LogstashFile
@@ -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. It doesn't *actually* test thread-safety though, that's a
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
- threads << Thread.new { logger.info("thread #{n}") }
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
@@ -1,6 +1,6 @@
1
1
  desc 'Creates a Git tag for the current version'
2
2
  task :tag do
3
- version = Oni::VERSION
3
+ version = LogstashFile::VERSION
4
4
 
5
- sh %Q{git tag -a -m "Version #{version}" -s #{version}}
5
+ sh %Q{git tag -a -m "Version #{version}" #{version}}
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yorick Peterse