testa_logger 0.1.0 → 0.1.3

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: 0b34ca15c1ccd5e02e697e6cfbaab431b8a8e80482db7cd7ffd75c37e2c902c4
4
+ data.tar.gz: 31bec113b6be9498b19f8e1842ee77316b333952988b930d1d74c3b8d11b2afc
5
5
  SHA512:
6
- metadata.gz: a8272501fb9046b72e231420fba9b345a29e51cbe6a234dfed7de0db812de5698897caa03271ac4bfd58bf5a61e093e5354540dff45db8760ec97ca39e712602
7
- data.tar.gz: 1dbc91b8244fd5c9414b203815daf345d9c09378231626be98a0199c6791c9bbbba97605503febbd662a0a4025cb77c3f77bdb6c62b29dc9e5622e1a837fc791
6
+ metadata.gz: d23135c9d0c4740bf79ad76facfbf4d8649520c106c314ed8368263611999237c59a6a8eaeec934e044bebc6337fad742a2e6828873e9bcee63d962e3b4cd761
7
+ data.tar.gz: f138359185e3ecec20f540ce8e3bcc80048bdfb82bb74532f46ccad87f660034260b9ab62887b231de198de609c5ab741ab59d2661583fc1db4f40ef3073d8b2
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.3)
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)
@@ -47,7 +47,7 @@ module TestaLogger
47
47
 
48
48
  # stop writing into log file with it is being attached, otherwise checksum integrity will fail.
49
49
  response = @s3.put_object(
50
- bucket: options.s3_creds[:bucket],
50
+ bucket: options.s3_creds[:bucket_name],
51
51
  key: key,
52
52
  body: IO.read(options.filepath)
53
53
  )
@@ -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?
@@ -50,7 +53,7 @@ module TestaLogger
50
53
  @options.persist = options[:persist] unless options[:persist].nil?
51
54
  @options.faye_url = options[:faye_url] unless options[:faye_url].nil?
52
55
  @options.faye_token = options[:faye_token] unless options[:faye_token].nil?
53
- @options.s3_creds = options[:s3_creds].deep_symbolize_keys unless options[:s3_creds].empty?
56
+ @options.s3_creds = options[:s3_creds].deep_symbolize_keys unless options[:s3_creds].blank?
54
57
  end
55
58
 
56
59
  def create_log_file
@@ -1,3 +1,3 @@
1
1
  module TestaLogger
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.3"
3
3
  end
data/logger.iml CHANGED
@@ -22,7 +22,7 @@
22
22
  <orderEntry type="library" scope="PROVIDED" name="jmespath (v1.6.1, RVM: ruby-2.7.6) [gem]" level="application" />
23
23
  <orderEntry type="library" scope="PROVIDED" name="json (v2.6.2, RVM: ruby-2.7.6) [gem]" level="application" />
24
24
  <orderEntry type="library" scope="PROVIDED" name="minitest (v5.16.2, RVM: ruby-2.7.6) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="ostruct (v0.2.0, RVM: ruby-2.7.6) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="ostruct (v0.5.5, RVM: ruby-2.7.6) [gem]" level="application" />
26
26
  <orderEntry type="library" scope="PROVIDED" name="parallel (v1.22.1, RVM: ruby-2.7.6) [gem]" level="application" />
27
27
  <orderEntry type="library" scope="PROVIDED" name="parser (v3.1.2.1, RVM: ruby-2.7.6) [gem]" level="application" />
28
28
  <orderEntry type="library" scope="PROVIDED" name="rack (v2.2.4, RVM: ruby-2.7.6) [gem]" level="application" />
@@ -43,21 +43,21 @@
43
43
  <option name="myRootTask">
44
44
  <RakeTaskImpl id="rake">
45
45
  <subtasks>
46
- <RakeTaskImpl description="Build testa_logger-0.1.0.gem into the pkg directory" fullCommand="build" id="build" />
46
+ <RakeTaskImpl description="Build testa_logger-0.1.1.gem into the pkg directory" fullCommand="build" id="build" />
47
47
  <RakeTaskImpl id="build">
48
48
  <subtasks>
49
- <RakeTaskImpl description="Generate SHA512 checksum if testa_logger-0.1.0.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
49
+ <RakeTaskImpl description="Generate SHA512 checksum if testa_logger-0.1.1.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
50
50
  </subtasks>
51
51
  </RakeTaskImpl>
52
52
  <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
53
53
  <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
54
- <RakeTaskImpl description="Build and install testa_logger-0.1.0.gem into system gems" fullCommand="install" id="install" />
54
+ <RakeTaskImpl description="Build and install testa_logger-0.1.1.gem into system gems" fullCommand="install" id="install" />
55
55
  <RakeTaskImpl id="install">
56
56
  <subtasks>
57
- <RakeTaskImpl description="Build and install testa_logger-0.1.0.gem into system gems without network access" fullCommand="install:local" id="local" />
57
+ <RakeTaskImpl description="Build and install testa_logger-0.1.1.gem into system gems without network access" fullCommand="install:local" id="local" />
58
58
  </subtasks>
59
59
  </RakeTaskImpl>
60
- <RakeTaskImpl description="Create tag v0.1.0 and build and push testa_logger-0.1.0.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
60
+ <RakeTaskImpl description="Create tag v0.1.1 and build and push testa_logger-0.1.1.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
61
61
  <RakeTaskImpl description="Run tests" fullCommand="test" id="test" />
62
62
  <RakeTaskImpl description="" fullCommand="default" id="default" />
63
63
  <RakeTaskImpl description="" fullCommand="release" id="release" />
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - karlo.razumovic