testa_logger 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff209242c287b9a4143614c9375371889e72eab6bebb81efb5ab23202f461293
4
- data.tar.gz: cde5a35fbaa3c1ba3bb4d5e3b10a29c4185906116bfcc6b1c46202e27a3eb007
3
+ metadata.gz: 89722d19ac01e5ddaf0aa1526c19fee4fc5e9d9649d9b457317755efb06048a2
4
+ data.tar.gz: 235870eaf9cf5196867a3bd533c45728754408af0de93f92f41a2980d2836d94
5
5
  SHA512:
6
- metadata.gz: a8272501fb9046b72e231420fba9b345a29e51cbe6a234dfed7de0db812de5698897caa03271ac4bfd58bf5a61e093e5354540dff45db8760ec97ca39e712602
7
- data.tar.gz: 1dbc91b8244fd5c9414b203815daf345d9c09378231626be98a0199c6791c9bbbba97605503febbd662a0a4025cb77c3f77bdb6c62b29dc9e5622e1a837fc791
6
+ metadata.gz: d8b8e2d664fca255277f2c0681c833cfa6c5cb613d19cb29127c15b6eb2429a8874504cb8102b77575e757337477519f791f5b42c84938f3bdc8b34149b13f10
7
+ data.tar.gz: 89fc9c9dc8d65e12656647297e8b607a12c48800979e5ff7d616bd354d5b0d0d0f71170afea35766bbd65445735e68b80fd7e63bafdfc63f341b39943ab9cf06
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ testa_logger-*.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testa_logger (0.1.0)
4
+ testa_logger (0.1.1)
5
5
  activesupport
6
6
  awesome_print
7
7
  aws-sdk-s3
@@ -43,7 +43,7 @@ GEM
43
43
  jmespath (1.6.1)
44
44
  json (2.6.2)
45
45
  minitest (5.16.2)
46
- ostruct (0.2.0)
46
+ ostruct (0.5.5)
47
47
  parallel (1.22.1)
48
48
  parser (3.1.2.1)
49
49
  ast (~> 2.4.1)
@@ -42,7 +42,10 @@ module TestaLogger
42
42
  options.deep_symbolize_keys!
43
43
  @options = Logger.default_options
44
44
  @options.shift_age = options[:shift_age] unless options[:shift_age].nil?
45
- @options.level = options[:level] unless options[:level].nil?
45
+ unless options[:level].nil?
46
+ options[:level] = SEV_LABEL.index(options[:level].to_s.upcase).to_i unless options[:level].is_a?(Integer)
47
+ @options.level = options[:level]
48
+ end
46
49
  @options.formatter = options[:formatter] unless options[:formatter].nil?
47
50
  @options.live = options[:live] unless options[:live].nil?
48
51
  @options.filepath = File.expand_path(options[:filepath]) unless options[:filepath].nil?
@@ -1,3 +1,3 @@
1
1
  module TestaLogger
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testa_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - karlo.razumovic