zlog 0.8 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95b3fd6c53f48770f2b2751940346071debc8dc4
4
- data.tar.gz: 3954a451f924c658cb5a3a0df8b0db729a1bfc3e
3
+ metadata.gz: 83d95585a76db78691e020e75f4c140ef0805b1c
4
+ data.tar.gz: e917eab598ba75a5f2f38132e09bd3d674dac559
5
5
  SHA512:
6
- metadata.gz: 45b5d98da16c8d21d224ace756249d056be82d7f1c589c147879cb4ab9db9fae2b7b03ae6ccdf8e07ff46014833cc364cdb63776d12bc499a10e8fa00363dc3f
7
- data.tar.gz: fd5cbfcfc6f24749f0adb8d2be32d9dd12daf0c040847b7355c40dc54a2d68963a7fb3f3aa3af86bf2a7baad8426172929abd352e8681fd9c14dc834d123b6b9
6
+ metadata.gz: 4338fd423d4fbeff430fce51a5220dd58b2251eab0be9488a2dacb480ff17dd6c2a2cd0eb538abf72a7dc554de6aed56315ca0803b66351f37ad07eaf7713eb4
7
+ data.tar.gz: b5e9b5996f987a69762c1f8c097017294014702ea8b4f7deeb72a0dbdc9ea321b2d019b11e3bfd2ffdbed09efc94ee25f47c39f8c83a26e0d97841105d7168f6
data/.travis.yml CHANGED
@@ -4,4 +4,5 @@ rvm:
4
4
  - "1.9.3"
5
5
  - "2.0.0"
6
6
  - "jruby-19mode"
7
- - "rbx-19mode"
7
+ - "rbx-2.1.1"
8
+ - "rbx-2.2.6"
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.9.0
2
+
3
+ * bugfix: allow continuous readinf from stdin, without waiting for eof
4
+
1
5
  ## 0.8
2
6
 
3
7
  * feature: support reading log files for zlog formatter
data/lib/zlog/cli.rb CHANGED
@@ -24,7 +24,7 @@ class Zlog::CLI
24
24
  handler = lambda{|line| res.push line} if not block_given?
25
25
 
26
26
  # process each line
27
- STDIN.readlines.each do |line|
27
+ while line = STDIN.gets do
28
28
  handler.( convert_line line, opts )
29
29
  end
30
30
 
data/lib/zlog/zlog.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  require 'json'
2
+ require 'tmpdir'
2
3
 
3
4
  module Zlog
4
- VERSION = "0.8"
5
+ VERSION = "0.9.0"
5
6
  extend self
6
7
 
7
8
  def init_stdout opts = {layout: :simple, loglevel: nil}
@@ -1,5 +1,4 @@
1
1
  require 'minitest_helper'
2
- require 'tmpdir'
3
2
 
4
3
  describe Zlog do
5
4
  it "can initialize itself to STDOUT" do
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zlog
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-10 00:00:00.000000000 Z
11
+ date: 2014-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logging
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.8.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.8.1
27
27
  description: rudimentary simple logging for ruby
@@ -31,8 +31,8 @@ executables:
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - .gitignore
35
- - .travis.yml
34
+ - ".gitignore"
35
+ - ".travis.yml"
36
36
  - CHANGELOG.md
37
37
  - Gemfile
38
38
  - LICENSE
@@ -65,19 +65,18 @@ require_paths:
65
65
  - lib
66
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: 1.9.3
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.0.3
78
+ rubygems_version: 2.2.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: rudimentary simple logging for ruby
82
82
  test_files: []
83
- has_rdoc: