fluent-logger 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/ChangeLog +5 -0
- data/README.md +4 -4
- data/VERSION +1 -1
- data/fluent-logger.gemspec +2 -1
- data/lib/fluent/logger/fluent_logger.rb +1 -1
- data/lib/fluent/logger/version.rb +1 -1
- data/spec/fluent_logger_spec.rb +2 -2
- data/spec/logger_spec.rb +2 -1
- data/spec/spec_helper.rb +3 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c28c12beb5dd5c132b8b110bc75f91e396871395
|
4
|
+
data.tar.gz: 719e9ca555e70f8e6546c75f090169b7701787c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 964de8579891ba48e5b8a74cc15d40068ec5530082233db9600c3ff1b4e35c3e08197d469c0631039dd9bd6175de26a565197b29df7425a21565fd4301139e7d
|
7
|
+
data.tar.gz: 1ad8bf051fb2d9f31f89093d8e642651904f7e169080cfdbdb15163e06777bd9d63593a56a5e1b14add881cd172ef39e624f179bb44eed258d2d9a6608e36e34
|
data/.travis.yml
CHANGED
data/ChangeLog
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Fluent logger
|
2
|
-
A structured event
|
2
|
+
A structured event logger
|
3
3
|
|
4
4
|
## Examples
|
5
5
|
|
@@ -40,7 +40,7 @@ log.post("access", {"agent"=>"foo"})
|
|
40
40
|
|
41
41
|
### Fluent
|
42
42
|
```ruby
|
43
|
-
Fluent::Logger::FluentLogger.open('tag_prefix', :host=>'localhost', :port
|
43
|
+
Fluent::Logger::FluentLogger.open('tag_prefix', :host=>'localhost', :port=>24224)
|
44
44
|
```
|
45
45
|
|
46
46
|
### Console
|
@@ -55,8 +55,8 @@ Fluent::Logger::NullLogger.open
|
|
55
55
|
|
56
56
|
|name|description|
|
57
57
|
|---|---|
|
58
|
-
|Web site|http://
|
59
|
-
|Documents|http://
|
58
|
+
|Web site|http://fluentd.org/|
|
59
|
+
|Documents|http://docs.fluentd.org/|
|
60
60
|
|Source repository|https://github.com/fluent/fluent-logger-ruby|
|
61
61
|
|Author|Sadayuki Furuhashi|
|
62
62
|
|Copyright|(c) 2011 FURUHASHI Sadayuki|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.10
|
data/fluent-logger.gemspec
CHANGED
@@ -38,7 +38,8 @@ EOF
|
|
38
38
|
gem.add_dependency 'yajl-ruby', '~> 1.0'
|
39
39
|
gem.add_dependency "msgpack", [">= 0.4.4", "!= 0.5.0", "!= 0.5.1", "!= 0.5.2", "!= 0.5.3", "< 0.6.0"]
|
40
40
|
gem.add_development_dependency 'rake', '>= 0.9.2'
|
41
|
-
gem.add_development_dependency 'rspec', '>=
|
41
|
+
gem.add_development_dependency 'rspec', '>= 3.0.0'
|
42
|
+
gem.add_development_dependency 'rspec-its', '>= 1.1.0'
|
42
43
|
gem.add_development_dependency 'simplecov', '>= 0.5.4'
|
43
44
|
gem.add_development_dependency 'timecop', '>= 0.3.0'
|
44
45
|
end
|
data/spec/fluent_logger_spec.rb
CHANGED
@@ -111,7 +111,7 @@ EOF
|
|
111
111
|
|
112
112
|
context('post') do
|
113
113
|
it ('success') {
|
114
|
-
logger.post('tag', {'a' => 'b'}).
|
114
|
+
expect(logger.post('tag', {'a' => 'b'})).to be true
|
115
115
|
wait_transfer
|
116
116
|
queue.last.should == ['logger-test.tag', {'a' => 'b'}]
|
117
117
|
}
|
@@ -202,7 +202,7 @@ EOF
|
|
202
202
|
context "not running fluentd" do
|
203
203
|
context('fluent logger interface') do
|
204
204
|
it ('post & close') {
|
205
|
-
logger.post('tag', {'a' => 'b'}).
|
205
|
+
expect(logger.post('tag', {'a' => 'b'})).to be false
|
206
206
|
wait_transfer # even if wait
|
207
207
|
queue.last.should be_nil
|
208
208
|
logger.close
|
data/spec/logger_spec.rb
CHANGED
@@ -13,6 +13,7 @@ describe Fluent::Logger do
|
|
13
13
|
|
14
14
|
it('post') {
|
15
15
|
test_logger.should_receive(:post).with('tag1', {:foo => :bar})
|
16
|
+
#allow_any_instance_of(test_logger).to receive(:post).with('tag1', {:foo => :bar})
|
16
17
|
Fluent::Logger.post('tag1', {:foo => :bar})
|
17
18
|
}
|
18
19
|
|
@@ -28,7 +29,7 @@ describe Fluent::Logger do
|
|
28
29
|
Fluent::Logger.open('tag-prefix', {
|
29
30
|
:logger => ::Logger.new(fluent_logger_logger_io)
|
30
31
|
})
|
31
|
-
Fluent::Logger.default.kind_of?(Fluent::Logger::FluentLogger).
|
32
|
+
expect(Fluent::Logger.default.kind_of?(Fluent::Logger::FluentLogger)).to be true
|
32
33
|
}
|
33
34
|
|
34
35
|
it('open with BaseLogger class') {
|
data/spec/spec_helper.rb
CHANGED
@@ -19,6 +19,9 @@ if ENV['SIMPLE_COV']
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
+
require 'rspec'
|
23
|
+
require 'rspec/its'
|
24
|
+
|
22
25
|
# Requires supporting files with custom matchers and macros, etc,
|
23
26
|
# in ./support/ and its subdirectories.
|
24
27
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yajl-ruby
|
@@ -88,14 +88,28 @@ dependencies:
|
|
88
88
|
requirements:
|
89
89
|
- - ">="
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
91
|
+
version: 3.0.0
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - ">="
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
98
|
+
version: 3.0.0
|
99
|
+
- !ruby/object:Gem::Dependency
|
100
|
+
name: rspec-its
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 1.1.0
|
106
|
+
type: :development
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.1.0
|
99
113
|
- !ruby/object:Gem::Dependency
|
100
114
|
name: simplecov
|
101
115
|
requirement: !ruby/object:Gem::Requirement
|