journald-logger 2.0.4 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +17 -0
- data/.travis.yml +7 -11
- data/CHANGELOG.md +6 -0
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +7 -6
- data/Rakefile +33 -1
- data/journald-logger.gemspec +20 -19
- data/lib/journald/classes/logger.rb +25 -25
- data/lib/journald/classes/trace_logger.rb +16 -18
- data/lib/journald/logger.rb +8 -8
- data/lib/journald/modules/exceptionable.rb +20 -20
- data/lib/journald/modules/loggable.rb +18 -17
- data/lib/journald/modules/version.rb +1 -1
- data/spec/journald_logger_spec.rb +16 -16
- data/spec/spec_helper.rb +2 -2
- metadata +40 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf0682f32c2a2e7587b1289893403e1a5eb02e6cddcba526dc9260573ea1268a
|
4
|
+
data.tar.gz: 0c909e457098e41616dec4732b98aa23adf78b6cdbba08b81b199137420e776f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8fa2653047d79eb2d235a0f371ff6114e547e481c0a4976bed00be0e720a6998aa5298c810dd7e19ef2b694d51279f5de58e1190076d0471c94b78d9d7728ed
|
7
|
+
data.tar.gz: 46fd5fcee4a3c55ae14f69c6ce04ee58b2c8619a1d7e6d9e91b8479275d46919e8f1fec6c79ec5e73d761f63ea91222979216f83ca7162f029870915f9e3d626
|
data/.rubocop.yml
ADDED
data/.travis.yml
CHANGED
@@ -1,14 +1,10 @@
|
|
1
|
-
# test with minimum and current and previous version of ruby; try default version of rbx
|
2
|
-
|
3
1
|
language: ruby
|
4
|
-
|
5
|
-
-
|
2
|
+
before_install:
|
3
|
+
- sudo apt-get install -y libsystemd-dev
|
4
|
+
install: "bundle install"
|
6
5
|
rvm:
|
7
|
-
-
|
8
|
-
-
|
9
|
-
- '2.2.4'
|
10
|
-
- '2.3.0'
|
11
|
-
- rbx
|
6
|
+
- 2.0.0
|
7
|
+
- 2.6.0
|
12
8
|
script:
|
13
|
-
- bundle exec rake
|
14
|
-
- bundle exec
|
9
|
+
- bundle exec rake build
|
10
|
+
- bundle exec rake
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
# journald-logger
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/journald-logger.svg)](http://badge.fury.io/rb/journald-logger)
|
4
|
-
[![Reference Status](https://www.versioneye.com/ruby/journald-logger/reference_badge.svg)](https://www.versioneye.com/ruby/journald-logger/references)
|
5
|
-
|
6
3
|
A Logger drop-in replacement that logs directly to systemd-journal with some additional features
|
7
4
|
|
8
5
|
## Usage
|
@@ -74,7 +71,7 @@ letters, numbers, underscores, cannot begin with underscore. Library upcases all
|
|
74
71
|
Two methods which look similarly to native systemd-journal api
|
75
72
|
|
76
73
|
```ruby
|
77
|
-
logger.
|
74
|
+
logger.send_message(
|
78
75
|
message: 'hi!',
|
79
76
|
priority: Journald::LOG_NOTICE,
|
80
77
|
any_field: 'any_value',
|
@@ -109,11 +106,15 @@ Exception logger automatically fills the following fields:
|
|
109
106
|
EXCEPTION_CLASS=ExceptionRealClassName
|
110
107
|
EXCEPTION_MESSAGE=Original exception message
|
111
108
|
BACKTRACE=full backtrace
|
112
|
-
CAUSE=exception cause
|
109
|
+
CAUSE=exception cause (Ruby >= 2.1)
|
113
110
|
GEM_LOGGER_MESSAGE_TYPE=Exception
|
114
111
|
```
|
115
112
|
|
116
|
-
|
113
|
+
In Ruby 2.1+ it also tries to log ```CODE_LINE```, ```CODE_FILE``` and ```CODE_FUNC``` and to recurse into Cause and log it into a separate message with ```GEM_LOGGER_MESSAGE_TYPE=ExceptionCause```
|
114
|
+
|
115
|
+
## Authors
|
116
|
+
|
117
|
+
This library was written by Anton Smirnov and currently maintained by https://www.theforeman.org developers.
|
117
118
|
|
118
119
|
## License
|
119
120
|
|
data/Rakefile
CHANGED
@@ -1 +1,33 @@
|
|
1
|
-
require
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
require "rubocop/rake_task"
|
4
|
+
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
|
+
RuboCop::RakeTask.new
|
7
|
+
|
8
|
+
if Gem::Version.new(RUBY_VERSION) > Gem::Version.new("2.0")
|
9
|
+
namespace :rufo do
|
10
|
+
require "rufo"
|
11
|
+
|
12
|
+
def rufo_command(*switches, rake_args)
|
13
|
+
files_or_dirs = rake_args[:files_or_dirs] || "."
|
14
|
+
args = switches + files_or_dirs.split(" ")
|
15
|
+
Rufo::Command.run(args)
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Format Ruby code in current directory"
|
19
|
+
task :run, [:files_or_dirs] do |_task, rake_args|
|
20
|
+
rufo_command(rake_args)
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "Check that no formatting changes are produced"
|
24
|
+
task :check, [:files_or_dirs] do |_task, rake_args|
|
25
|
+
rufo_command("--check", rake_args)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
task :default => [:spec, :rubocop, :'rufo:check']
|
30
|
+
else
|
31
|
+
# rufo is no longer Ruby 2.0 compatible yet we want to support old Ruby
|
32
|
+
task :default => [:spec, :rubocop]
|
33
|
+
end
|
data/journald-logger.gemspec
CHANGED
@@ -1,27 +1,28 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require "journald/modules/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name
|
7
|
-
spec.version
|
8
|
-
spec.authors
|
9
|
-
spec.email
|
10
|
-
spec.summary
|
11
|
-
|
12
|
-
spec.
|
13
|
-
spec.license = 'MIT'
|
6
|
+
spec.name = "journald-logger"
|
7
|
+
spec.version = Journald::Logger::VERSION
|
8
|
+
spec.authors = ["Anton Smirnov"]
|
9
|
+
spec.email = ["sandfox@sandfox.me"]
|
10
|
+
spec.summary = %q{systemd-journal native logger}
|
11
|
+
spec.homepage = "https://github.com/theforeman/journald-logger"
|
12
|
+
spec.license = "MIT"
|
14
13
|
|
15
|
-
spec.files
|
16
|
-
spec.test_files
|
17
|
-
spec.require_paths = [
|
14
|
+
spec.files = `git ls-files -z`.split("\x0")
|
15
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
|
+
spec.require_paths = ["lib"]
|
18
17
|
|
19
|
-
spec.required_ruby_version =
|
18
|
+
spec.required_ruby_version = ">= 2.0.0"
|
20
19
|
|
21
|
-
spec.add_runtime_dependency
|
20
|
+
spec.add_runtime_dependency "journald-native", "~> 1.0"
|
22
21
|
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency
|
25
|
-
spec.add_development_dependency
|
26
|
-
spec.add_development_dependency
|
22
|
+
spec.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "rake"
|
24
|
+
spec.add_development_dependency "rufo"
|
25
|
+
spec.add_development_dependency "rubocop", "~> 0.50.0"
|
26
|
+
spec.add_development_dependency "rspec"
|
27
|
+
spec.add_development_dependency "simplecov"
|
27
28
|
end
|
@@ -5,7 +5,7 @@ module Journald
|
|
5
5
|
include Sysloggable
|
6
6
|
|
7
7
|
def initialize(progname = nil, min_priority = nil, **tags)
|
8
|
-
@tags
|
8
|
+
@tags = tags
|
9
9
|
@logger = Native
|
10
10
|
self.min_priority = min_priority
|
11
11
|
self.progname = progname
|
@@ -28,15 +28,15 @@ module Journald
|
|
28
28
|
# systemd-journal style
|
29
29
|
|
30
30
|
# send systemd-journal message
|
31
|
-
def
|
31
|
+
def send_message(hash)
|
32
32
|
hash_to_send = @tags.merge(hash)
|
33
33
|
real_send(hash_to_send)
|
34
34
|
end
|
35
35
|
|
36
36
|
def print(priority, message)
|
37
|
-
|
37
|
+
send_message(
|
38
38
|
priority: priority,
|
39
|
-
message:
|
39
|
+
message: message,
|
40
40
|
)
|
41
41
|
end
|
42
42
|
|
@@ -81,36 +81,36 @@ module Journald
|
|
81
81
|
|
82
82
|
protected
|
83
83
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
84
|
+
# used internally by exception() and TraceLogger
|
85
|
+
def tag_trace_location(location)
|
86
|
+
tag code_file: location.path,
|
87
|
+
code_line: location.lineno,
|
88
|
+
code_func: location.label
|
89
|
+
end
|
90
90
|
|
91
|
-
|
92
|
-
|
93
|
-
|
91
|
+
def untag_trace_location
|
92
|
+
untag :code_file, :code_line, :code_func
|
93
|
+
end
|
94
94
|
|
95
95
|
private
|
96
96
|
|
97
|
-
|
98
|
-
|
97
|
+
def real_send(hash)
|
98
|
+
hash = hash.delete_if { |_, v| v.nil? }
|
99
99
|
|
100
|
-
|
101
|
-
|
102
|
-
|
100
|
+
array_to_send = hash.map do |k, v|
|
101
|
+
key = k.to_s.upcase
|
102
|
+
value = v.to_s
|
103
103
|
|
104
|
-
|
105
|
-
|
104
|
+
if key == "PRIORITY"
|
105
|
+
priority = value.to_i
|
106
106
|
|
107
|
-
|
108
|
-
end
|
109
|
-
|
110
|
-
"#{key}=#{value}"
|
107
|
+
return 0 if priority > @min_priority # DEBUG = 7, ALERT = 1
|
111
108
|
end
|
112
109
|
|
113
|
-
|
110
|
+
"#{key}=#{value}"
|
114
111
|
end
|
112
|
+
|
113
|
+
@logger.send(*array_to_send)
|
114
|
+
end
|
115
115
|
end
|
116
116
|
end
|
@@ -5,25 +5,23 @@ module Journald
|
|
5
5
|
end
|
6
6
|
|
7
7
|
PASSTHROUGH_METHODS = [
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
8
|
+
:tag,
|
9
|
+
:tag_value,
|
10
|
+
:untag,
|
11
|
+
:progname,
|
12
|
+
:progname=,
|
13
|
+
:level,
|
14
|
+
:level=,
|
15
|
+
:sev_threshold,
|
16
|
+
:sev_threshold=,
|
17
|
+
:min_priority,
|
18
|
+
:min_priority=,
|
19
19
|
]
|
20
20
|
|
21
|
-
METHODS = (
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
Journald::Logger::Sysloggable. public_instance_methods(false)
|
26
|
-
)
|
21
|
+
METHODS = (Journald::Logger.public_instance_methods(false) +
|
22
|
+
Journald::Logger::Exceptionable.public_instance_methods(false) +
|
23
|
+
Journald::Logger::Loggable.public_instance_methods(false) +
|
24
|
+
Journald::Logger::Sysloggable.public_instance_methods(false))
|
27
25
|
|
28
26
|
METHODS.each do |method|
|
29
27
|
if PASSTHROUGH_METHODS.include? method
|
@@ -32,7 +30,7 @@ module Journald
|
|
32
30
|
end
|
33
31
|
else
|
34
32
|
define_method(method) do |*args, &block|
|
35
|
-
@wrapped_logger.__send__(:tag_trace_location, caller_locations
|
33
|
+
@wrapped_logger.__send__(:tag_trace_location, caller_locations(1..1).first)
|
36
34
|
@wrapped_logger.public_send(method, *args, &block)
|
37
35
|
end
|
38
36
|
end
|
data/lib/journald/logger.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require "logger"
|
2
|
+
require "journald/native"
|
3
3
|
|
4
|
-
require_relative
|
5
|
-
require_relative
|
6
|
-
require_relative
|
7
|
-
require_relative
|
4
|
+
require_relative "modules/version"
|
5
|
+
require_relative "modules/exceptionable"
|
6
|
+
require_relative "modules/loggable"
|
7
|
+
require_relative "modules/sysloggable"
|
8
8
|
|
9
|
-
require_relative
|
10
|
-
require_relative
|
9
|
+
require_relative "classes/logger"
|
10
|
+
require_relative "classes/trace_logger"
|
@@ -8,30 +8,30 @@ module Journald
|
|
8
8
|
|
9
9
|
private
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
def real_exception(e, priority, is_cause)
|
12
|
+
# for Ruby 2.1 get cause if present
|
13
|
+
cause = if e.respond_to? :cause; e.cause; end
|
14
|
+
# for Ruby 2.1 get backtrace if present
|
15
|
+
bt = e.respond_to?(:backtrace_locations) &&
|
16
|
+
e.backtrace_locations &&
|
17
|
+
e.backtrace_locations.length > 0
|
18
18
|
|
19
|
-
|
19
|
+
tag_trace_location(e.backtrace_locations[0]) if bt
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
21
|
+
send_message(
|
22
|
+
priority: priority,
|
23
|
+
message: "Exception #{e.inspect}",
|
24
|
+
gem_logger_message_type: is_cause ? "ExceptionCause" : "Exception",
|
25
|
+
exception_class: e.class.name,
|
26
|
+
exception_message: e.message,
|
27
|
+
backtrace: bt ? e.backtrace.join("\n") : nil,
|
28
|
+
cause: cause ? cause.inspect : nil,
|
29
|
+
)
|
30
30
|
|
31
|
-
|
31
|
+
untag_trace_location if bt
|
32
32
|
|
33
|
-
|
34
|
-
|
33
|
+
real_exception(cause, priority, true) if cause
|
34
|
+
end
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -5,32 +5,32 @@ module Journald
|
|
5
5
|
|
6
6
|
# our map differs from Syslog::Logger
|
7
7
|
LEVEL_MAP = {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
::Logger::UNKNOWN => LOG_ALERT,
|
9
|
+
::Logger::FATAL => LOG_CRIT,
|
10
|
+
::Logger::ERROR => LOG_ERR,
|
11
|
+
::Logger::WARN => LOG_WARNING,
|
12
|
+
::Logger::INFO => LOG_INFO,
|
13
|
+
::Logger::DEBUG => LOG_DEBUG,
|
14
14
|
}
|
15
15
|
|
16
|
-
def add(severity, message = nil, progname = nil
|
16
|
+
def add(severity, message = nil, progname = nil)
|
17
17
|
priority = severity_to_priority(severity) || LEVEL_MAP[::Logger::UNKNOWN]
|
18
18
|
|
19
19
|
# some black magic from Logger O__o
|
20
20
|
progname ||= self.progname
|
21
21
|
if message.nil?
|
22
22
|
if block_given?
|
23
|
-
message =
|
23
|
+
message = yield
|
24
24
|
else
|
25
25
|
message = progname
|
26
26
|
progname = self.progname
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
send_message(
|
31
|
+
priority: priority,
|
32
|
+
message: message,
|
33
|
+
syslog_identifier: progname,
|
34
34
|
)
|
35
35
|
end
|
36
36
|
|
@@ -38,7 +38,7 @@ module Journald
|
|
38
38
|
|
39
39
|
# add methods a la Logger.warn or Logger.error
|
40
40
|
::Logger::Severity::constants.each do |severity|
|
41
|
-
severity_key
|
41
|
+
severity_key = severity.downcase
|
42
42
|
severity_value = ::Logger::Severity.const_get(severity)
|
43
43
|
|
44
44
|
define_method(severity_key) do |progname = nil, &block|
|
@@ -60,7 +60,7 @@ module Journald
|
|
60
60
|
# journald always logs everything
|
61
61
|
def level
|
62
62
|
priority = self.min_priority
|
63
|
-
LEVEL_MAP.select{|_,p| p <= priority}.keys.min
|
63
|
+
LEVEL_MAP.select { |_, p| p <= priority }.keys.min
|
64
64
|
end
|
65
65
|
|
66
66
|
def level=(severity)
|
@@ -101,9 +101,10 @@ module Journald
|
|
101
101
|
def close; end
|
102
102
|
|
103
103
|
private
|
104
|
-
|
105
|
-
|
106
|
-
|
104
|
+
|
105
|
+
def severity_to_priority(severity)
|
106
|
+
LEVEL_MAP[severity]
|
107
|
+
end
|
107
108
|
end
|
108
109
|
end
|
109
110
|
end
|
@@ -1,39 +1,39 @@
|
|
1
|
-
require
|
1
|
+
require "spec_helper"
|
2
2
|
|
3
3
|
RSpec.describe Journald::Logger do
|
4
|
-
describe
|
4
|
+
describe "acts as logger" do
|
5
5
|
before(:each) do
|
6
6
|
allow(Journald::Native).to receive(:send).and_return(0)
|
7
|
-
@logger = Journald::Logger.new(
|
7
|
+
@logger = Journald::Logger.new("rspec journald-logger", Journald::LOG_DEBUG)
|
8
8
|
end
|
9
9
|
|
10
|
-
it
|
10
|
+
it "logs things as logger" do
|
11
11
|
# todo: expects
|
12
|
-
@logger.warn
|
12
|
+
@logger.warn "test warn"
|
13
13
|
end
|
14
14
|
|
15
|
-
it
|
15
|
+
it "logs things as syslog" do
|
16
16
|
# todo: expects
|
17
|
-
@logger.log_warning
|
17
|
+
@logger.log_warning "test log_warning"
|
18
18
|
end
|
19
19
|
|
20
|
-
it
|
21
|
-
@logger.tag(tag1:
|
22
|
-
@logger.tag(tag2:
|
20
|
+
it "adds tags" do
|
21
|
+
@logger.tag(tag1: "value1")
|
22
|
+
@logger.tag(tag2: "value2")
|
23
23
|
|
24
|
-
expect(@logger.tag_value(:tag1)).to eq(
|
24
|
+
expect(@logger.tag_value(:tag1)).to eq("value1")
|
25
25
|
|
26
|
-
@logger.tag(tag1:
|
27
|
-
expect(@logger.tag_value(:tag1)).to eq(
|
26
|
+
@logger.tag(tag1: "in-block-value") do
|
27
|
+
expect(@logger.tag_value(:tag1)).to eq("in-block-value")
|
28
28
|
end
|
29
29
|
|
30
|
-
expect(@logger.tag_value(:tag1)).to eq(
|
30
|
+
expect(@logger.tag_value(:tag1)).to eq("value1") # expect old value to be restored
|
31
31
|
end
|
32
32
|
|
33
|
-
it
|
33
|
+
it "logs exceptions" do
|
34
34
|
# todo: expects
|
35
35
|
begin
|
36
|
-
raise
|
36
|
+
raise "logs exception"
|
37
37
|
rescue => e
|
38
38
|
@logger.exception e
|
39
39
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: journald-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Smirnov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: journald-native
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,19 +53,47 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rufo
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
73
|
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
75
|
+
version: 0.50.0
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
80
|
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
82
|
+
version: 0.50.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
69
97
|
- !ruby/object:Gem::Dependency
|
70
98
|
name: simplecov
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,6 +116,7 @@ extensions: []
|
|
88
116
|
extra_rdoc_files: []
|
89
117
|
files:
|
90
118
|
- ".gitignore"
|
119
|
+
- ".rubocop.yml"
|
91
120
|
- ".travis.yml"
|
92
121
|
- CHANGELOG.md
|
93
122
|
- Gemfile
|
@@ -104,7 +133,7 @@ files:
|
|
104
133
|
- lib/journald/modules/version.rb
|
105
134
|
- spec/journald_logger_spec.rb
|
106
135
|
- spec/spec_helper.rb
|
107
|
-
homepage: https://github.com/
|
136
|
+
homepage: https://github.com/theforeman/journald-logger
|
108
137
|
licenses:
|
109
138
|
- MIT
|
110
139
|
metadata: {}
|
@@ -123,8 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
152
|
- !ruby/object:Gem::Version
|
124
153
|
version: '0'
|
125
154
|
requirements: []
|
126
|
-
|
127
|
-
rubygems_version: 2.7.6
|
155
|
+
rubygems_version: 3.0.3
|
128
156
|
signing_key:
|
129
157
|
specification_version: 4
|
130
158
|
summary: systemd-journal native logger
|