log_tribe 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -4
- data/.versions.conf +1 -1
- data/Rakefile +4 -4
- data/lib/log_tribe/loggers.rb +2 -2
- data/lib/log_tribe/version.rb +1 -1
- data/log_tribe.gemspec +18 -18
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6900f12d893bc94cdebd9b3e316946841724a065
|
4
|
+
data.tar.gz: ea861ebd35684bd6c761f4a73b587dca2f42df05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 629432e8112d200b92eb049bd2cc147ad0dd192ec35fe1b8603eeb813a0f44a3af3dd1b86305fcb762364a01f016cfed527d040aa7a5f63de07d18e311a92c8f
|
7
|
+
data.tar.gz: 2af0c07df9323adf7f67059b4da1adf636ac862e2851a946289369158ff07e6782b328254dbf1977e2c0e1f7424a6e29d2db2f54951627b1bb9abaa0dc8ed045
|
data/.travis.yml
CHANGED
data/.versions.conf
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
ruby=ruby-2.3.
|
1
|
+
ruby=ruby-2.3.3
|
2
2
|
ruby-gemset=log_tribe
|
data/Rakefile
CHANGED
@@ -4,12 +4,12 @@ require 'bundler/gem_tasks'
|
|
4
4
|
require 'rspec/core/rake_task'
|
5
5
|
require 'yard'
|
6
6
|
|
7
|
-
RSpec::Core::RakeTask.new('spec'
|
7
|
+
RSpec::Core::RakeTask.new('spec')
|
8
8
|
|
9
9
|
task default: :spec
|
10
10
|
|
11
|
-
desc 'Generate documentation'
|
11
|
+
desc 'Generate documentation'
|
12
12
|
YARD::Rake::YardocTask.new do |t|
|
13
|
-
t.files = %w(lib/**/*.rb - LICENSE.txt).map(&:freeze)
|
14
|
-
t.options = %w(--main README.md --no-private --protected).map(&:freeze)
|
13
|
+
t.files = %w(lib/**/*.rb - LICENSE.txt).map(&:freeze)
|
14
|
+
t.options = %w(--main README.md --no-private --protected).map(&:freeze)
|
15
15
|
end
|
data/lib/log_tribe/loggers.rb
CHANGED
@@ -151,7 +151,7 @@ module LogTribe
|
|
151
151
|
logger.add(severity, message, progname, &block)
|
152
152
|
elsif defined?(::Fluent::Logger) && logger.respond_to?(:post)
|
153
153
|
# FluentLogger
|
154
|
-
logger.post(@tag_name || 'none'
|
154
|
+
logger.post(@tag_name || 'none',
|
155
155
|
message: format_message(format_severity(severity), Time.now, progname, message)
|
156
156
|
)
|
157
157
|
end
|
@@ -170,7 +170,7 @@ module LogTribe
|
|
170
170
|
logger << msg
|
171
171
|
elsif defined?(::Fluent::Logger) && logger.respond_to?(:post)
|
172
172
|
# FluentLogger
|
173
|
-
logger.post(@tag_name || 'none'
|
173
|
+
logger.post(@tag_name || 'none', message: msg)
|
174
174
|
end
|
175
175
|
end
|
176
176
|
end
|
data/lib/log_tribe/version.rb
CHANGED
data/log_tribe.gemspec
CHANGED
@@ -5,32 +5,32 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require 'log_tribe/version'
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
spec.name = 'log_tribe'
|
8
|
+
spec.name = 'log_tribe'
|
9
9
|
spec.version = LogTribe::VERSION
|
10
|
-
spec.authors = ['Christian Kakesa'
|
11
|
-
spec.email = ['christian.kakesa@gmail.com'
|
10
|
+
spec.authors = ['Christian Kakesa']
|
11
|
+
spec.email = ['christian.kakesa@gmail.com']
|
12
12
|
|
13
|
-
spec.summary = 'Write logs messages to multiple destinations.'
|
13
|
+
spec.summary = 'Write logs messages to multiple destinations.'
|
14
14
|
spec.description = spec.summary
|
15
|
-
spec.homepage = 'https://github.com/fenicks/log_tribe'
|
16
|
-
spec.license = 'MIT'
|
15
|
+
spec.homepage = 'https://github.com/fenicks/log_tribe'
|
16
|
+
spec.license = 'MIT'
|
17
17
|
|
18
18
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
19
19
|
# delete this section to allow pushing this gem to any host.
|
20
|
-
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
21
|
-
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
20
|
+
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.' unless spec.respond_to?(:metadata)
|
21
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
22
22
|
|
23
23
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
-
spec.bindir = 'bin'
|
24
|
+
spec.bindir = 'bin'
|
25
25
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
26
|
-
spec.require_paths = ['lib'
|
26
|
+
spec.require_paths = ['lib']
|
27
27
|
|
28
|
-
spec.add_development_dependency 'bundler'
|
29
|
-
spec.add_development_dependency 'rake'
|
30
|
-
spec.add_development_dependency 'rubocop'
|
31
|
-
spec.add_development_dependency 'rspec'
|
32
|
-
spec.add_development_dependency 'simplecov'
|
33
|
-
spec.add_development_dependency 'coveralls'
|
34
|
-
spec.add_development_dependency 'memory_profiler'
|
35
|
-
spec.add_development_dependency 'yard'
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.7', '>= 1.7.0'
|
29
|
+
spec.add_development_dependency 'rake', '~> 0'
|
30
|
+
spec.add_development_dependency 'rubocop', '~> 0'
|
31
|
+
spec.add_development_dependency 'rspec', '~> 3.3'
|
32
|
+
spec.add_development_dependency 'simplecov', '~> 0'
|
33
|
+
spec.add_development_dependency 'coveralls', '~> 0'
|
34
|
+
spec.add_development_dependency 'memory_profiler', '~> 0' if RUBY_VERSION >= '2.1.0'
|
35
|
+
spec.add_development_dependency 'yard', '~> 0'
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_tribe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Kakesa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -170,9 +170,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
172
|
rubyforge_project:
|
173
|
-
rubygems_version: 2.5.
|
173
|
+
rubygems_version: 2.5.2
|
174
174
|
signing_key:
|
175
175
|
specification_version: 4
|
176
176
|
summary: Write logs messages to multiple destinations.
|
177
177
|
test_files: []
|
178
|
-
has_rdoc:
|