legion-logging 1.0.0 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +69 -25
- data/.gitignore +1 -0
- data/.rubocop.yml +4 -8
- data/CHANGELOG.md +4 -0
- data/README.md +1 -7
- data/bitbucket-pipelines.yml +13 -11
- data/legion-logging.gemspec +2 -4
- data/lib/legion/logging.rb +5 -9
- data/lib/legion/logging/builder.rb +42 -22
- data/lib/legion/logging/logger.rb +2 -1
- data/lib/legion/logging/methods.rb +9 -9
- data/lib/legion/logging/version.rb +1 -1
- data/sonar-project.properties +12 -0
- metadata +10 -28
- data/.idea/.rakeTasks +0 -7
- data/.idea/legion-logging.iml +0 -35
- data/.idea/misc.xml +0 -7
- data/.idea/modules.xml +0 -8
- data/.idea/vagrant.xml +0 -7
- data/.idea/workspace.xml +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55dd24d5d41069814f94578074efb34ff836d58e6eaa57275ec7da040de84b85
|
4
|
+
data.tar.gz: d17d87bd089075b217aff583e3aba1ee8fc1e14270a6b97e2f8783590b484dd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 172072cc4546bc984fb1c3399290066fd0dd41cfc8099a5c744eb9e3324753560ff24e94ab1850db683efea53e7e80ce33454322c56e11a931e8b57398f21c6c
|
7
|
+
data.tar.gz: d6339b22d9a50eb9a72022c35e4679ef0efa0326ba3b6ab6b7f1b9174eb796ec122878b23056ff2d0cc7ee0e0ed4be6230bd0bb40c97e556bd2d7abd0a49cdca
|
data/.circleci/config.yml
CHANGED
@@ -1,49 +1,90 @@
|
|
1
1
|
version: 2.1
|
2
2
|
orbs:
|
3
|
-
ruby: circleci/ruby@
|
3
|
+
ruby: circleci/ruby@1.1.2
|
4
|
+
sonarcloud: sonarsource/sonarcloud@1.0.2
|
4
5
|
|
5
6
|
jobs:
|
6
7
|
"rubocop":
|
7
8
|
docker:
|
8
|
-
- image:
|
9
|
+
- image: cimg/ruby:2.7
|
9
10
|
steps:
|
10
11
|
- checkout
|
11
|
-
-
|
12
|
-
|
13
|
-
- run:
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
- restore_cache:
|
13
|
+
key: "bundler cache mri"
|
14
|
+
- run: bundle update
|
15
|
+
- run: bundle exec rubocop --format=json --out=rubocop-result.json
|
16
|
+
- store_test_results:
|
17
|
+
path: rubocop-result.json
|
18
|
+
- sonarcloud/scan
|
19
|
+
- run: bundle exec rubocop
|
20
|
+
- save_cache:
|
21
|
+
key: "bundler cache mri"
|
22
|
+
paths:
|
23
|
+
- "/usr/local/bundle"
|
17
24
|
"ruby-two-five":
|
18
25
|
docker:
|
19
|
-
- image:
|
20
|
-
- image: memcached:1.5-alpine
|
26
|
+
- image: cimg/ruby:2.5
|
21
27
|
steps:
|
22
28
|
- checkout
|
23
|
-
-
|
24
|
-
|
25
|
-
-
|
26
|
-
-
|
29
|
+
- restore_cache:
|
30
|
+
key: "bundler cache mri"
|
31
|
+
- run: bundle update
|
32
|
+
- save_cache:
|
33
|
+
key: "bundler cache mri"
|
34
|
+
paths:
|
35
|
+
- "/usr/local/bundle"
|
36
|
+
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
37
|
+
- store_test_results:
|
38
|
+
path: rspec-results.xml
|
39
|
+
- sonarcloud/scan
|
27
40
|
"ruby-two-six":
|
28
41
|
docker:
|
29
|
-
- image:
|
30
|
-
- image: memcached:1.5-alpine
|
42
|
+
- image: cimg/ruby:2.6
|
31
43
|
steps:
|
32
44
|
- checkout
|
33
|
-
-
|
34
|
-
|
35
|
-
-
|
36
|
-
-
|
45
|
+
- restore_cache:
|
46
|
+
key: "bundler cache mri"
|
47
|
+
- run: bundle update
|
48
|
+
- save_cache:
|
49
|
+
key: "bundler cache mri"
|
50
|
+
paths:
|
51
|
+
- "/usr/local/bundle"
|
52
|
+
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
53
|
+
- store_test_results:
|
54
|
+
path: rspec-results.xml
|
55
|
+
- sonarcloud/scan
|
37
56
|
"ruby-two-seven":
|
38
57
|
docker:
|
39
58
|
- image: circleci/ruby:2.7
|
40
|
-
- image: memcached:1.5-alpine
|
41
59
|
steps:
|
42
60
|
- checkout
|
43
|
-
-
|
44
|
-
|
45
|
-
-
|
46
|
-
-
|
61
|
+
- restore_cache:
|
62
|
+
key: "bundler cache mri"
|
63
|
+
- run: bundle update
|
64
|
+
- save_cache:
|
65
|
+
key: "bundler cache mri"
|
66
|
+
paths:
|
67
|
+
- "/usr/local/bundle"
|
68
|
+
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
69
|
+
- store_test_results:
|
70
|
+
path: rspec-results.xml
|
71
|
+
- sonarcloud/scan
|
72
|
+
"ruby-three":
|
73
|
+
docker:
|
74
|
+
- image: circleci/ruby:3
|
75
|
+
steps:
|
76
|
+
- checkout
|
77
|
+
- restore_cache:
|
78
|
+
key: "bundler cache mri"
|
79
|
+
- run: bundle update
|
80
|
+
- save_cache:
|
81
|
+
key: "bundler cache mri"
|
82
|
+
paths:
|
83
|
+
- "/usr/local/bundle"
|
84
|
+
- run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
|
85
|
+
- store_test_results:
|
86
|
+
path: rspec-results.xml
|
87
|
+
- sonarcloud/scan
|
47
88
|
|
48
89
|
workflows:
|
49
90
|
version: 2
|
@@ -57,5 +98,8 @@ workflows:
|
|
57
98
|
requires:
|
58
99
|
- ruby-two-five
|
59
100
|
- ruby-two-seven:
|
101
|
+
requires:
|
102
|
+
- ruby-two-five
|
103
|
+
- ruby-three:
|
60
104
|
requires:
|
61
105
|
- ruby-two-five
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
Layout/LineLength:
|
2
2
|
Max: 120
|
3
3
|
Metrics/MethodLength:
|
4
4
|
Max: 30
|
@@ -6,16 +6,12 @@ Metrics/ClassLength:
|
|
6
6
|
Max: 1500
|
7
7
|
Metrics/BlockLength:
|
8
8
|
Max: 75
|
9
|
-
|
10
|
-
|
11
|
-
Style/SymbolArray:
|
12
|
-
Enabled: true
|
13
|
-
Layout/HashAlignment:
|
14
|
-
EnforcedHashRocketStyle: table
|
15
|
-
EnforcedColonStyle: table
|
9
|
+
Metrics/CyclomaticComplexity:
|
10
|
+
Max: 9
|
16
11
|
Style/Documentation:
|
17
12
|
Enabled: false
|
18
13
|
AllCops:
|
19
14
|
TargetRubyVersion: 2.5
|
15
|
+
NewCops: enable
|
20
16
|
Style/FrozenStringLiteralComment:
|
21
17
|
Enabled: false
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -27,15 +27,9 @@ This library is utilized by Legion to log messages
|
|
27
27
|
|
28
28
|
This gem can be viewed and download from [RubyGems - Legion-Logging](https://rubygems.org/gems/legion-logging)
|
29
29
|
|
30
|
-
## Development
|
31
|
-
|
32
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
33
|
-
|
34
|
-
To install this gem onto your local machine, run `bundle exec install`.
|
35
|
-
|
36
30
|
## Contributing
|
37
31
|
|
38
|
-
Bug reports and pull requests are welcome on
|
32
|
+
Bug reports and pull requests are welcome on Bitbucket at https://bitbucket.org/legion-io/legion-logging/issues This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
39
33
|
|
40
34
|
## License
|
41
35
|
|
data/bitbucket-pipelines.yml
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
-
image: ruby:2.
|
1
|
+
image: ruby:2.7
|
2
2
|
|
3
3
|
pipelines:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
tags:
|
5
|
+
"v*":
|
6
|
+
- step:
|
7
|
+
name: Push to RubyGems
|
8
|
+
deployment: RubyGems
|
9
|
+
script:
|
10
|
+
- gem install gem-release
|
11
|
+
- (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
|
12
|
+
- gem release
|
13
|
+
artifacts:
|
14
|
+
- pkg/**
|
13
15
|
definitions:
|
14
16
|
caches:
|
15
|
-
bundler:
|
17
|
+
bundler: /usr/local/bundle
|
data/legion-logging.gemspec
CHANGED
@@ -18,20 +18,18 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.metadata['homepage_uri'] = 'https://bitbucket.org/legion-io/legion-logging'
|
19
19
|
spec.metadata['source_code_uri'] = 'https://bitbucket.org/legion-io/legion-logging'
|
20
20
|
spec.metadata['wiki_uri'] = 'https://bitbucket.org/legion-io/legion-logging/wiki/Home'
|
21
|
-
|
21
|
+
spec.required_ruby_version = '>= 2.5.0'
|
22
22
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
23
23
|
f.match(%r{^(test|spec|features)/})
|
24
24
|
end
|
25
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
25
|
spec.require_paths = ['lib']
|
27
26
|
|
28
|
-
spec.add_development_dependency 'bundler'
|
29
27
|
spec.add_development_dependency 'codecov'
|
30
28
|
spec.add_development_dependency 'rake'
|
31
29
|
spec.add_development_dependency 'rspec'
|
32
30
|
spec.add_development_dependency 'rspec_junit_formatter'
|
33
31
|
spec.add_development_dependency 'rubocop'
|
34
|
-
spec.add_development_dependency 'simplecov'
|
32
|
+
spec.add_development_dependency 'simplecov', '< 0.18.0'
|
35
33
|
|
36
34
|
spec.add_dependency 'rainbow', '~> 3'
|
37
35
|
end
|
data/lib/legion/logging.rb
CHANGED
@@ -11,16 +11,12 @@ module Legion
|
|
11
11
|
class << self
|
12
12
|
include Legion::Logging::Methods
|
13
13
|
include Legion::Logging::Builder
|
14
|
-
attr_reader :
|
14
|
+
attr_reader :color
|
15
15
|
|
16
|
-
def level
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
def setup(options = {})
|
21
|
-
output(options)
|
22
|
-
log_level(options[:level])
|
23
|
-
log_format(options)
|
16
|
+
def setup(level: 'info', **options)
|
17
|
+
output(**options)
|
18
|
+
log_level(level)
|
19
|
+
log_format(**options)
|
24
20
|
@color = options[:color]
|
25
21
|
@color = true if options[:color].nil? && options[:log_file].nil?
|
26
22
|
end
|
@@ -1,47 +1,67 @@
|
|
1
1
|
module Legion
|
2
2
|
module Logging
|
3
3
|
module Builder
|
4
|
-
def log_format(
|
4
|
+
def log_format(include_pid: false, **options) # rubocop:disable Metrics/AbcSize
|
5
5
|
log.formatter = proc do |severity, datetime, _progname, msg|
|
6
|
-
options[:lex_name] = options.key?(:lex) ? "[
|
6
|
+
options[:lex_name] = options.key?(:lex) ? "[#{options[:lex]}]" : nil
|
7
7
|
unless options[:lex_name].nil?
|
8
8
|
data = caller_locations[4].to_s.split('/').last(2)
|
9
9
|
runner_trace = {
|
10
|
-
type:
|
11
|
-
file:
|
12
|
-
function:
|
10
|
+
type: data[0],
|
11
|
+
file: data[1].split('.')[0],
|
12
|
+
function: data[1].split('`')[1].delete_suffix('\''),
|
13
13
|
line_number: data[1].split(':')[1]
|
14
14
|
}
|
15
15
|
end
|
16
|
-
string = "[#{datetime}]
|
16
|
+
string = "[#{datetime}]"
|
17
|
+
string.concat("[#{::Process.pid}]") if include_pid
|
17
18
|
string.concat(options[:lex_name]) unless options[:lex_name].nil?
|
18
19
|
if runner_trace.is_a?(Hash) && (options[:extended] || severity == 'debug')
|
19
|
-
string.concat("[#{runner_trace[:type]}:#{runner_trace[:file]}:#{runner_trace[:line_number]}]")
|
20
|
+
string.concat("[#{runner_trace[:type]}:#{runner_trace[:file]}:#{runner_trace[:function]}:#{runner_trace[:line_number]}]") # rubocop:disable Layout/LineLength
|
20
21
|
end
|
21
22
|
string.concat(" #{severity} #{msg}\n")
|
22
23
|
string
|
23
24
|
end
|
24
25
|
end
|
25
26
|
|
26
|
-
def output(options)
|
27
|
+
def output(**options)
|
27
28
|
@log = ::Logger.new($stdout) if options[:log_file].nil?
|
28
29
|
@log = ::Logger.new(options[:log_file]) unless options[:log_file].nil?
|
29
30
|
end
|
30
31
|
|
31
|
-
def
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
32
|
+
def log
|
33
|
+
@log ||= set_log
|
34
|
+
end
|
35
|
+
|
36
|
+
def set_log(logfile: nil, **)
|
37
|
+
@log = logfile.nil? ? ::Logger.new($stdout) : ::Logger.new(logfile)
|
38
|
+
end
|
39
|
+
|
40
|
+
def level
|
41
|
+
log.level
|
42
|
+
end
|
43
|
+
|
44
|
+
def log_level(level = 'info')
|
45
|
+
log.level = case level
|
46
|
+
when 'trace', 'debug'
|
47
|
+
::Logger::DEBUG
|
48
|
+
when 'info'
|
49
|
+
::Logger::INFO
|
50
|
+
when 'warn'
|
51
|
+
::Logger::WARN
|
52
|
+
when 'error'
|
53
|
+
::Logger::ERROR
|
54
|
+
when 'fatal'
|
55
|
+
::Logger::FATAL
|
56
|
+
when nil
|
57
|
+
42
|
58
|
+
else
|
59
|
+
if level.is_a? Integer
|
60
|
+
level
|
61
|
+
else
|
62
|
+
0
|
63
|
+
end
|
64
|
+
end
|
45
65
|
@log = log
|
46
66
|
end
|
47
67
|
end
|
@@ -5,11 +5,12 @@ module Legion
|
|
5
5
|
module Logging
|
6
6
|
class Logger
|
7
7
|
attr_accessor :log, :color, :level, :lex, :log_file, :trace_enabled, :extended
|
8
|
+
|
8
9
|
include Legion::Logging::Methods
|
9
10
|
include Legion::Logging::Builder
|
10
11
|
|
11
12
|
def initialize(level: 'info', log_file: nil, lex: nil, trace: false, extended: false, trace_size: 4, **opts) # rubocop:disable Metrics/ParameterLists
|
12
|
-
|
13
|
+
set_log(logfile: log_file)
|
13
14
|
log_level(level)
|
14
15
|
log_format(lex: lex, extended: extended, **opts)
|
15
16
|
@color = opts[:color]
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module Legion
|
2
2
|
module Logging
|
3
3
|
module Methods
|
4
|
-
def trace(raw_message = nil,
|
4
|
+
def trace(raw_message = nil, size: @trace_size, log_caller: true) # rubocop:disable Metrics/AbcSize
|
5
5
|
return unless @trace_enabled
|
6
6
|
|
7
7
|
raw_message = yield if raw_message.nil? && block_given?
|
8
8
|
message = Rainbow('Tracing: ').cyan
|
9
|
-
message.concat Rainbow(raw_message
|
9
|
+
message.concat Rainbow("#{raw_message} ").cyan
|
10
10
|
if log_caller && size.nil?
|
11
11
|
message.concat Rainbow(caller_locations).cyan.underline
|
12
12
|
elsif log_caller
|
@@ -15,7 +15,7 @@ module Legion
|
|
15
15
|
log.unknown(message)
|
16
16
|
end
|
17
17
|
|
18
|
-
def debug(message = nil
|
18
|
+
def debug(message = nil)
|
19
19
|
return unless log.level < 1
|
20
20
|
|
21
21
|
message = yield if message.nil? && block_given?
|
@@ -23,7 +23,7 @@ module Legion
|
|
23
23
|
log.debug(message)
|
24
24
|
end
|
25
25
|
|
26
|
-
def info(message = nil
|
26
|
+
def info(message = nil)
|
27
27
|
return unless log.level < 2
|
28
28
|
|
29
29
|
message = yield if message.nil? && block_given?
|
@@ -31,7 +31,7 @@ module Legion
|
|
31
31
|
log.info(message)
|
32
32
|
end
|
33
33
|
|
34
|
-
def warn(message = nil
|
34
|
+
def warn(message = nil)
|
35
35
|
return unless log.level < 3
|
36
36
|
|
37
37
|
message = yield if message.nil? && block_given?
|
@@ -39,7 +39,7 @@ module Legion
|
|
39
39
|
log.warn(message)
|
40
40
|
end
|
41
41
|
|
42
|
-
def error(message = nil
|
42
|
+
def error(message = nil)
|
43
43
|
return unless log.level < 4
|
44
44
|
|
45
45
|
message = yield if message.nil? && block_given?
|
@@ -47,7 +47,7 @@ module Legion
|
|
47
47
|
log.error(message)
|
48
48
|
end
|
49
49
|
|
50
|
-
def fatal(message = nil
|
50
|
+
def fatal(message = nil)
|
51
51
|
return unless log.level < 5
|
52
52
|
|
53
53
|
message = yield if message.nil? && block_given?
|
@@ -55,7 +55,7 @@ module Legion
|
|
55
55
|
log.fatal(message)
|
56
56
|
end
|
57
57
|
|
58
|
-
def unknown(message = nil
|
58
|
+
def unknown(message = nil)
|
59
59
|
message = yield if message.nil? && block_given?
|
60
60
|
message = Rainbow(message).purple if @color
|
61
61
|
log.unknown(message)
|
@@ -68,7 +68,7 @@ module Legion
|
|
68
68
|
{ success: false, message: exc.message, backtrace: exc.backtrace }.merge(opts)
|
69
69
|
end
|
70
70
|
|
71
|
-
def thread(kvl: false)
|
71
|
+
def thread(kvl: false, **_opts)
|
72
72
|
if kvl
|
73
73
|
"thread=#{Thread.current.object_id}"
|
74
74
|
else
|
@@ -0,0 +1,12 @@
|
|
1
|
+
sonar.projectKey=legion-io_legion-logging
|
2
|
+
sonar.organization=legion-io
|
3
|
+
sonar.projectName=Legion::Logging
|
4
|
+
sonar.sources=.
|
5
|
+
sonar.exclusions=vendor/**
|
6
|
+
sonar.coverage.exclusions=spec/**
|
7
|
+
sonar.ruby.coverage.reportPath=coverage/.resultset.json
|
8
|
+
sonar.ruby.file.suffixes=rb,ruby
|
9
|
+
sonar.ruby.coverage.framework=RSpec
|
10
|
+
sonar.ruby.rubocopConfig=.rubocop.yml
|
11
|
+
sonar.ruby.rubocop.reportPath=rubocop-result.json
|
12
|
+
sonar.ruby.rubocop.filePath=.
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: legion-logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: codecov
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,16 +84,16 @@ dependencies:
|
|
98
84
|
name: simplecov
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
|
-
- - "
|
87
|
+
- - "<"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
89
|
+
version: 0.18.0
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
|
-
- - "
|
94
|
+
- - "<"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
96
|
+
version: 0.18.0
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: rainbow
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -131,15 +117,10 @@ extra_rdoc_files: []
|
|
131
117
|
files:
|
132
118
|
- ".circleci/config.yml"
|
133
119
|
- ".gitignore"
|
134
|
-
- ".idea/.rakeTasks"
|
135
|
-
- ".idea/legion-logging.iml"
|
136
|
-
- ".idea/misc.xml"
|
137
|
-
- ".idea/modules.xml"
|
138
|
-
- ".idea/vagrant.xml"
|
139
|
-
- ".idea/workspace.xml"
|
140
120
|
- ".rubocop.yml"
|
141
121
|
- CHANGELOG.md
|
142
122
|
- Gemfile
|
123
|
+
- Gemfile.lock
|
143
124
|
- README.md
|
144
125
|
- Rakefile
|
145
126
|
- bitbucket-pipelines.yml
|
@@ -149,6 +130,7 @@ files:
|
|
149
130
|
- lib/legion/logging/logger.rb
|
150
131
|
- lib/legion/logging/methods.rb
|
151
132
|
- lib/legion/logging/version.rb
|
133
|
+
- sonar-project.properties
|
152
134
|
homepage: https://bitbucket.org/legion-io/legion-logging
|
153
135
|
licenses: []
|
154
136
|
metadata:
|
@@ -166,14 +148,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
148
|
requirements:
|
167
149
|
- - ">="
|
168
150
|
- !ruby/object:Gem::Version
|
169
|
-
version:
|
151
|
+
version: 2.5.0
|
170
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
153
|
requirements:
|
172
154
|
- - ">="
|
173
155
|
- !ruby/object:Gem::Version
|
174
156
|
version: '0'
|
175
157
|
requirements: []
|
176
|
-
rubygems_version: 3.
|
158
|
+
rubygems_version: 3.1.4
|
177
159
|
signing_key:
|
178
160
|
specification_version: 4
|
179
161
|
summary: The Legion::Logging class
|
data/.idea/.rakeTasks
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
-
You are allowed to:
|
4
|
-
1. Remove rake task
|
5
|
-
2. Add existing rake tasks
|
6
|
-
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
-
--><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build legion-logging-0.1.3.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install legion-logging-0.1.3.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install legion-logging-0.1.3.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.3 and build and push legion-logging-0.1.3.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
|
data/.idea/legion-logging.iml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
3
|
-
<component name="ModuleRunConfigurationManager">
|
4
|
-
<shared />
|
5
|
-
</component>
|
6
|
-
<component name="NewModuleRootManager">
|
7
|
-
<content url="file://$MODULE_DIR$" />
|
8
|
-
<orderEntry type="inheritedJdk" />
|
9
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
10
|
-
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
11
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
12
|
-
<orderEntry type="library" scope="PROVIDED" name="codecov (v0.1.16, RVM: ruby-2.6.3) [gem]" level="application" />
|
13
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.6.3) [gem]" level="application" />
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="docile (v1.3.2, RVM: ruby-2.6.3) [gem]" level="application" />
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="jaro_winkler (v1.5.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="json (v2.3.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.19.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="parser (v2.7.0.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.0.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.4, RVM: ruby-2.6.3) [gem]" level="application" />
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.2, RVM: ruby-2.6.3) [gem]" level="application" />
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec_junit_formatter (v0.4.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop (v0.80.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.10.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.18.5, RVM: ruby-2.6.3) [gem]" level="application" />
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.2, RVM: ruby-2.6.3) [gem]" level="application" />
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.6.1, RVM: ruby-2.6.3) [gem]" level="application" />
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="url (v0.3.2, RVM: ruby-2.6.3) [gem]" level="application" />
|
34
|
-
</component>
|
35
|
-
</module>
|
data/.idea/misc.xml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="JavaScriptSettings">
|
4
|
-
<option name="languageLevel" value="ES6" />
|
5
|
-
</component>
|
6
|
-
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.6.3" project-jdk-type="RUBY_SDK" />
|
7
|
-
</project>
|
data/.idea/modules.xml
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="ProjectModuleManager">
|
4
|
-
<modules>
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/legion-logging.iml" filepath="$PROJECT_DIR$/.idea/legion-logging.iml" />
|
6
|
-
</modules>
|
7
|
-
</component>
|
8
|
-
</project>
|
data/.idea/vagrant.xml
DELETED
data/.idea/workspace.xml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project version="4">
|
3
|
-
<component name="CoverageOptionsProvider">
|
4
|
-
<option name="myAddOrReplace" value="0" />
|
5
|
-
</component>
|
6
|
-
<component name="Git.Settings">
|
7
|
-
<option name="PUSH_AUTO_UPDATE" value="true" />
|
8
|
-
<option name="ROOT_SYNC" value="DONT_SYNC" />
|
9
|
-
</component>
|
10
|
-
<component name="ProjectId" id="1Yl3Ni6NlUlB0HwEdc23TcNXMXO" />
|
11
|
-
<component name="PropertiesComponent">
|
12
|
-
<property name="settings.editor.selected.configurable" value="reference.settingsdialog.project.vagrant" />
|
13
|
-
</component>
|
14
|
-
</project>
|