legion-logging 1.1.0 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9ecd67d5e6c68af98e3b53869a576f4d9cfb4021498f66903bfd57b5ff533e1
4
- data.tar.gz: 896e360f937631af59ea1cf4cba88be1baa8b6d23a432506c3c016db6c263f1f
3
+ metadata.gz: 2a7637c5109af48b5f10f6bde301cf6a9e32dea2a67170c09cc7ef26ed938740
4
+ data.tar.gz: 7467915a62b2d92005b45fe40c4df601a74deaf8147ce08e94ef8d74aef11a9b
5
5
  SHA512:
6
- metadata.gz: d8d7e995ca4a2ed5f54636ebbe9fdea124f47caea4e0c43c5e65dcfc5f6716d770394cc94d033fbfacdb6d2cb3cc8d80319637485a62388362eb8468842c482f
7
- data.tar.gz: 15f2613124940fbeee5868992c6ef7f53f3b10950d2bb835145309c4a82a8a67a92f3de1e23fdbb71a91e68c4f6ba67eab43ee98d549d4f9e1d3d3c214c5a8a3
6
+ metadata.gz: d00b3c3863c62c8db7a080a918ecf94bd963f13db97fb68755c74bc904fd29037e1af86397f7f272d9fe2efa8afc4a6b73274fa73ea354bf188fdc9681968684
7
+ data.tar.gz: 6b9a6f5cd0cb82db66848388129fd83a636d5836c6cdb62d3336eb8689407956247977af6a76800b222d7b62e283077f23f6c970e82fa21c88612d0f852dcb9f
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /tmp/
10
10
  /rspec/
11
11
  /test-results/
12
+ .idea
12
13
 
13
14
  # rspec failure tracking
14
15
  .rspec_status
data/.rubocop.yml CHANGED
@@ -6,17 +6,13 @@ Metrics/ClassLength:
6
6
  Max: 1500
7
7
  Metrics/BlockLength:
8
8
  Max: 75
9
- Layout/SpaceAroundEqualsInParameterDefault:
10
- EnforcedStyle: space
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
20
15
  NewCops: enable
16
+ SuggestExtensions: false
21
17
  Style/FrozenStringLiteralComment:
22
18
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Legion::Logging Changelog
2
2
 
3
+ ## v1.1.1
4
+ * Updating default log level to info instead of debug
5
+ * Cleaning up some RSpec tests
6
+
3
7
  ## v0.1.3
4
8
  * Updating `.rubocop.yml`
5
9
  * Adding in logic for LOGGING-1 LOGGING-5
data/Gemfile CHANGED
@@ -1,3 +1,10 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+ group :test do
5
+ gem 'rake'
6
+ gem 'rspec'
7
+ gem 'rspec_junit_formatter'
8
+ gem 'rubocop'
9
+ gem 'simplecov'
10
+ end
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 GitHub 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.
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
 
@@ -1,18 +1,74 @@
1
- image: ruby:2.7.0
1
+ image: ruby:2.7
2
+
3
+
4
+ definitions:
5
+ steps:
6
+ - step: &rubocop
7
+ name: Rubocop
8
+ runs-on: self.hosted
9
+ script:
10
+ - gem install rubocop rubocop-rspec rubocop-performance rubocop-sequel rubocop-md rubocop-sequel --no-document
11
+ - rubocop --format junit --out test-reports/junit.xml
12
+ - step: &rspec
13
+ name: RSpec 2.7
14
+ runs-on: self.hosted
15
+ caches:
16
+ - bundler
17
+ script:
18
+ - gem install bundler rspec rspec_junit_formatter
19
+ - bundle install
20
+ - bundle exec rspec --format RspecJunitFormatter --out test-reports/junit.xml
21
+ caches:
22
+ bundler: /usr/local/bundle
2
23
 
3
24
  pipelines:
4
- branches:
25
+ default:
26
+ - step: *rubocop
27
+ - step: *rspec
28
+ - parallel:
29
+ - step:
30
+ <<: *rspec
31
+ name: RSpec 2.5
32
+ image: ruby:2.5
33
+ - step:
34
+ <<: *rspec
35
+ name: RSpec 2.6
36
+ image: ruby:2.6
37
+ - step:
38
+ <<: *rspec
39
+ name: RSpec 3
40
+ image: ruby:3
41
+ pull-requests:
5
42
  master:
43
+ - step: *rubocop
44
+ - step: *rspec
45
+ - parallel:
46
+ - step:
47
+ <<: *rspec
48
+ name: RSpec 2.5
49
+ image: ruby:2.5
50
+ - step:
51
+ <<: *rspec
52
+ name: RSpec 2.6
53
+ image: ruby:2.6
54
+ - step:
55
+ <<: *rspec
56
+ name: RSpec 3
57
+ image: ruby:3
6
58
  - step:
7
- name: Push to RubyGems
59
+ name: RubyGems Deployment
8
60
  deployment: RubyGems
61
+ runs-on: self.hosted
9
62
  script:
10
- - gem install bundler gem-release rake rspec
11
- - bundle install
12
- - rake build
13
- - mkdir .gem
14
- - (umask 077 ; echo $gem_creds | base64 --decode > .gem/credentials)
15
- - gem release
16
- - gem tag --push
63
+ - gem install gem-release
64
+ - (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
65
+ - gem release --tag --push
66
+ - git push --tags
67
+ - gem build
68
+ condition:
69
+ changesets:
70
+ includePaths:
71
+ - "lib/legion/logging/version.rb"
17
72
  artifacts:
18
73
  - pkg/**
74
+ - '*.gem'
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ['Esity']
9
9
  spec.email = ['matthewdiverson@gmail.com']
10
10
 
11
- spec.summary = 'The Legion::Logging class'
12
- spec.description = 'Legion Logging is used for logging things'
11
+ spec.summary = 'The Legion::Logging Class'
12
+ spec.description = 'The Logger class for LegionIO'
13
13
  spec.homepage = 'https://bitbucket.org/legion-io/legion-logging'
14
14
 
15
15
  spec.metadata['bug_tracker_uri'] = 'https://bitbucket.org/legion-io/legion-logging/issues?status=new&status=open'
@@ -18,21 +18,10 @@ 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
-
28
- spec.add_development_dependency 'bundler'
29
- spec.add_development_dependency 'codecov'
30
- spec.add_development_dependency 'rake'
31
- spec.add_development_dependency 'rspec'
32
- spec.add_development_dependency 'rspec_junit_formatter'
33
- spec.add_development_dependency 'rubocop'
34
- spec.add_development_dependency 'rubocop-performance'
35
- spec.add_development_dependency 'simplecov', '< 0.18.0'
36
-
37
26
  spec.add_dependency 'rainbow', '~> 3'
38
27
  end
@@ -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 :log, :color
14
+ attr_reader :color
15
15
 
16
- def level
17
- @log.level
18
- end
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,48 +1,67 @@
1
1
  module Legion
2
2
  module Logging
3
3
  module Builder
4
- def log_format(options = {}, log = @log) # rubocop:disable Metrics/AbcSize
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) ? "[lex-#{options[:lex]}]" : nil
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: data[0],
11
- file: data[1].split('.')[0],
12
- function: data[1].split('`')[1].delete_suffix('\''),
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}][#{::Process.pid}]"
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 log_level(level = 'info', log = @log)
32
- case level
33
- when 'trace'
34
- log.level = ::Logger::INFO
35
- when 'debug'
36
- log.level = ::Logger::DEBUG
37
- when 'info'
38
- log.level = ::Logger::INFO
39
- when 'warn'
40
- log.level = ::Logger::WARN
41
- when 'error'
42
- log.level = ::Logger::ERROR
43
- when 'fatal'
44
- log.level = ::Logger::FATAL
45
- end
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
46
65
  @log = log
47
66
  end
48
67
  end
@@ -10,7 +10,7 @@ module Legion
10
10
  include Legion::Logging::Builder
11
11
 
12
12
  def initialize(level: 'info', log_file: nil, lex: nil, trace: false, extended: false, trace_size: 4, **opts) # rubocop:disable Metrics/ParameterLists
13
- output(logfile: log_file)
13
+ set_log(logfile: log_file)
14
14
  log_level(level)
15
15
  log_format(lex: lex, extended: extended, **opts)
16
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, log = @log, size: @trace_size, log_caller: true) # rubocop:disable Metrics/PerceivedComplexity, Metrics/AbcSize
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 + ' ').cyan
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, log = @log)
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, log = @log)
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, log = @log)
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, log = @log)
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, log = @log)
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, log = @log)
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)
@@ -1,5 +1,5 @@
1
1
  module Legion
2
2
  module Logging
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.1.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,127 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-21 00:00:00.000000000 Z
11
+ date: 2021-05-28 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
- - !ruby/object:Gem::Dependency
28
- name: codecov
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
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: rspec_junit_formatter
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: rubocop
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'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop-performance
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: simplecov
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "<"
116
- - !ruby/object:Gem::Version
117
- version: 0.18.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "<"
123
- - !ruby/object:Gem::Version
124
- version: 0.18.0
125
13
  - !ruby/object:Gem::Dependency
126
14
  name: rainbow
127
15
  requirement: !ruby/object:Gem::Requirement
@@ -136,27 +24,18 @@ dependencies:
136
24
  - - "~>"
137
25
  - !ruby/object:Gem::Version
138
26
  version: '3'
139
- description: Legion Logging is used for logging things
27
+ description: The Logger class for LegionIO
140
28
  email:
141
29
  - matthewdiverson@gmail.com
142
30
  executables: []
143
31
  extensions: []
144
32
  extra_rdoc_files: []
145
33
  files:
146
- - ".circleci/config.yml"
147
34
  - ".gitignore"
148
- - ".idea/.rakeTasks"
149
- - ".idea/legion-logging.iml"
150
- - ".idea/misc.xml"
151
- - ".idea/modules.xml"
152
- - ".idea/vagrant.xml"
153
- - ".idea/workspace.xml"
154
35
  - ".rubocop.yml"
155
36
  - CHANGELOG.md
156
37
  - Gemfile
157
- - Gemfile.lock
158
38
  - README.md
159
- - Rakefile
160
39
  - bitbucket-pipelines.yml
161
40
  - legion-logging.gemspec
162
41
  - lib/legion/logging.rb
@@ -174,7 +53,7 @@ metadata:
174
53
  homepage_uri: https://bitbucket.org/legion-io/legion-logging
175
54
  source_code_uri: https://bitbucket.org/legion-io/legion-logging
176
55
  wiki_uri: https://bitbucket.org/legion-io/legion-logging/wiki/Home
177
- post_install_message:
56
+ post_install_message:
178
57
  rdoc_options: []
179
58
  require_paths:
180
59
  - lib
@@ -182,15 +61,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
61
  requirements:
183
62
  - - ">="
184
63
  - !ruby/object:Gem::Version
185
- version: '0'
64
+ version: 2.5.0
186
65
  required_rubygems_version: !ruby/object:Gem::Requirement
187
66
  requirements:
188
67
  - - ">="
189
68
  - !ruby/object:Gem::Version
190
69
  version: '0'
191
70
  requirements: []
192
- rubygems_version: 3.1.2
193
- signing_key:
71
+ rubygems_version: 3.1.6
72
+ signing_key:
194
73
  specification_version: 4
195
- summary: The Legion::Logging class
74
+ summary: The Legion::Logging Class
196
75
  test_files: []
data/.circleci/config.yml DELETED
@@ -1,83 +0,0 @@
1
- version: 2.1
2
- orbs:
3
- ruby: circleci/ruby@0.2.1
4
- sonarcloud: sonarsource/sonarcloud@1.0.1
5
-
6
- jobs:
7
- "rubocop":
8
- docker:
9
- - image: circleci/ruby:2.7-node
10
- steps:
11
- - checkout
12
- - ruby/load-cache
13
- - ruby/install-deps
14
- - run:
15
- name: Run Rubocop
16
- command: bundle exec rubocop
17
- - ruby/save-cache
18
- "ruby-two-five":
19
- docker:
20
- - image: circleci/ruby:2.5
21
- steps:
22
- - checkout
23
- - ruby/load-cache
24
- - run:
25
- name: update bundler
26
- command: gem update bundler
27
- - ruby/install-deps
28
- - ruby/run-tests
29
- - ruby/save-cache
30
- "ruby-two-six":
31
- docker:
32
- - image: circleci/ruby:2.6
33
- steps:
34
- - checkout
35
- - ruby/load-cache
36
- - run:
37
- name: update bundler
38
- command: gem update bundler
39
- - ruby/install-deps
40
- - ruby/run-tests
41
- - ruby/save-cache
42
- "ruby-two-seven":
43
- docker:
44
- - image: circleci/ruby:2.7
45
- - image: memcached:1.5-alpine
46
- steps:
47
- - checkout
48
- - ruby/load-cache
49
- - ruby/install-deps
50
- - ruby/run-tests
51
- - ruby/save-cache
52
- "sonarcloud":
53
- docker:
54
- - image: circleci/ruby:2.7
55
- steps:
56
- - checkout
57
- - ruby/load-cache
58
- - ruby/install-deps
59
- - ruby/run-tests
60
- - run:
61
- name: Run Rubocop
62
- command: bundle exec rubocop --format=json --out=rubocop-result.json
63
- - sonarcloud/scan
64
- - ruby/save-cache
65
-
66
- workflows:
67
- version: 2
68
- rubocop-rspec:
69
- jobs:
70
- - rubocop
71
- - ruby-two-five:
72
- requires:
73
- - rubocop
74
- - ruby-two-six:
75
- requires:
76
- - ruby-two-five
77
- - ruby-two-seven:
78
- requires:
79
- - ruby-two-five
80
- - sonarcloud:
81
- requires:
82
- - ruby-two-seven
83
- - ruby-two-six
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>
@@ -1,38 +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="jdk" jdkName="RVM: ruby-2.7.0" jdkType="RUBY_SDK" />
9
- <orderEntry type="sourceFolder" forTests="false" />
10
- <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.1, RVM: ruby-2.7.0) [gem]" level="application" />
11
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.7.0) [gem]" level="application" />
12
- <orderEntry type="library" scope="PROVIDED" name="chef (v16.1.0, RVM: ruby-2.7.0) [gem]" level="application" />
13
- <orderEntry type="library" scope="PROVIDED" name="codecov (v0.2.2, RVM: ruby-2.7.0) [gem]" level="application" />
14
- <orderEntry type="library" scope="PROVIDED" name="colorize (v0.8.1, RVM: ruby-2.7.0) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.4.4, RVM: ruby-2.7.0) [gem]" level="application" />
16
- <orderEntry type="library" scope="PROVIDED" name="docile (v1.3.2, RVM: ruby-2.7.0) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="json (v2.3.1, RVM: ruby-2.7.0) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="parallel (v1.19.2, RVM: ruby-2.7.0) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="parser (v2.7.1.4, RVM: ruby-2.7.0) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.0.0, RVM: ruby-2.7.0) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.1, RVM: ruby-2.7.0) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="regexp_parser (v1.7.1, RVM: ruby-2.7.0) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.4, RVM: ruby-2.7.0) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, RVM: ruby-2.7.0) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.2, RVM: ruby-2.7.0) [gem]" level="application" />
26
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.2, RVM: ruby-2.7.0) [gem]" level="application" />
27
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, RVM: ruby-2.7.0) [gem]" level="application" />
28
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.3, RVM: ruby-2.7.0) [gem]" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="rspec_junit_formatter (v0.4.1, RVM: ruby-2.7.0) [gem]" level="application" />
30
- <orderEntry type="library" scope="PROVIDED" name="rubocop (v0.88.0, RVM: ruby-2.7.0) [gem]" level="application" />
31
- <orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v0.2.0, RVM: ruby-2.7.0) [gem]" level="application" />
32
- <orderEntry type="library" scope="PROVIDED" name="rubocop-performance (v1.7.1, RVM: ruby-2.7.0) [gem]" level="application" />
33
- <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.10.1, RVM: ruby-2.7.0) [gem]" level="application" />
34
- <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.17.1, RVM: ruby-2.7.0) [gem]" level="application" />
35
- <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.10.2, RVM: ruby-2.7.0) [gem]" level="application" />
36
- <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.7.0, RVM: ruby-2.7.0) [gem]" level="application" />
37
- </component>
38
- </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
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VagrantProjectSettings">
4
- <option name="instanceFolder" value="" />
5
- <option name="provider" value="" />
6
- </component>
7
- </project>
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>
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec