logstash-file 0.1.0 → 0.2.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
- ZmU0MzY5MDY5ZmZiNWU1MTc5MDBkNmQ2N2Y5MzM1MmI5Njk0N2ZhMA==
4
+ NmU1YmRmMjIxNTE3YTc3NjU2YTE2MWZkMjJlYzliZTVjYmVmYTIzZg==
5
5
  data.tar.gz: !binary |-
6
- ZDU4ZGQ0NjAzY2UwMTI3MzJiOTliYjFkZWZhOTZlYjMxYWQwYTE5Yw==
6
+ MzdmMzBlNWYwOTk1OGE3YWE4MGU1NTA4YmE2YTBlZGY3Y2MzMDQ4Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OTU5YjIwOWM4ODljMGM2MzhlNjE5YmFmNDQ5NGU3ZWU5MWZiODU0ZGE5MGE1
10
- ZmZlMmZjMTcwYjNiNGNjNDFlODM1ZjE2NmFiNTk2MDljY2EwMmIyNjg1YWY3
11
- NGFjMDFiMjYyMzcwN2M5M2JjMDljMzVmZDMzODk2NWE0ZTViNTM=
9
+ MTY0MjI4MTRlMTA4OTYyMDJjNDA2YjgyZTkzMWRiM2M3YTZkZmI5MDZmNjJi
10
+ M2ZhNmI1YTNiMDljMGFlZjk4NDcxN2Y2YTYyOTUzNDhlMzBhMjg3NGQzODhl
11
+ MzVmZGJhNzBiZDZiYmVkMTNmMzhlNjgzNWU5ZThkZmM1YmY4N2Q=
12
12
  data.tar.gz: !binary |-
13
- OWRmNDU5OTk2NzgzOGFlYTZhYWM3ZTFhODI4ZjgwNGQ4MGNlMjk1MzQ2ODQ2
14
- NzJlYjY3YzI4ZjRiNWQ2MDVlM2EyZGZjNDcxNWQyYzhhYmJhYzdmMTVlYTkx
15
- YmZjY2U5NmM0MmMwM2U3ZDY1ZGNiZjNlNzJhNjg5MzVlZWY1MDQ=
13
+ MzIwNGZhMTBhMGNkOWExMzJiZGE5MTY4MWQxMGNlMGExNmZmMGJmMTU3MmYy
14
+ ODBjNGU4ZDRkYTZkZDIwZTNlZmE3ZWNhMTU2YzgyNjYwYWQxYWVlYmQwZDhk
15
+ YWU0YjA2ODkwM2I3N2RmMTk4NDU5YjFkYTdkNTE4NzcwNjM4MDc=
data/.travis.yml CHANGED
@@ -8,11 +8,7 @@ rvm:
8
8
  - jruby
9
9
  - jruby-head
10
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
11
+ - rbx-2.1.1
16
12
 
17
13
  notifications:
18
14
  email:
data/Gemfile CHANGED
@@ -1,3 +1,7 @@
1
1
  source 'https://rubygems.org/'
2
2
 
3
3
  gemspec
4
+
5
+ group :testing do
6
+ gem 'rubysl', :platform => :rbx
7
+ end
data/README.md CHANGED
@@ -21,16 +21,12 @@ logging message. See below for more information.
21
21
  * Ruby 1.9.3
22
22
  * Ruby 2.x
23
23
  * Jruby 1.7 and newer
24
- * Rubinius 2.0 and newer
24
+ * Rubinius 2.0 and newer, 2.1 or newer is recommended
25
25
 
26
26
  Tests are ran on both Travis CI as well as the private Jenkins instance of
27
27
  [Olery][olery]. Although this Gem may work on Ruby 1.8 we have not verified
28
28
  this nor do we intend to.
29
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
-
34
30
  ## Usage
35
31
 
36
32
  First install the Gem:
@@ -58,7 +58,10 @@ module LogstashFile
58
58
  # @param [Hash] hash
59
59
  #
60
60
  def write(hash)
61
- @mutex.synchronize { @handle.puts(JSON(hash)) }
61
+ @mutex.synchronize do
62
+ @handle.puts(JSON(hash))
63
+ @handle.flush
64
+ end
62
65
  end
63
66
  end # Logger
64
67
  end # LogstashFile
@@ -1,3 +1,3 @@
1
1
  module LogstashFile
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end # LogstashFile
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yorick Peterse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-15 00:00:00.000000000 Z
11
+ date: 2013-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json