testa_logger 0.1.0 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +2 -2
- data/lib/testa_logger/logger/persistence.rb +1 -1
- data/lib/testa_logger/logger.rb +5 -2
- data/lib/testa_logger/version.rb +1 -1
- data/logger.iml +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b34ca15c1ccd5e02e697e6cfbaab431b8a8e80482db7cd7ffd75c37e2c902c4
|
4
|
+
data.tar.gz: 31bec113b6be9498b19f8e1842ee77316b333952988b930d1d74c3b8d11b2afc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d23135c9d0c4740bf79ad76facfbf4d8649520c106c314ed8368263611999237c59a6a8eaeec934e044bebc6337fad742a2e6828873e9bcee63d962e3b4cd761
|
7
|
+
data.tar.gz: f138359185e3ecec20f540ce8e3bcc80048bdfb82bb74532f46ccad87f660034260b9ab62887b231de198de609c5ab741ab59d2661583fc1db4f40ef3073d8b2
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
testa_logger (0.1.
|
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.
|
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[:
|
50
|
+
bucket: options.s3_creds[:bucket_name],
|
51
51
|
key: key,
|
52
52
|
body: IO.read(options.filepath)
|
53
53
|
)
|
data/lib/testa_logger/logger.rb
CHANGED
@@ -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
|
-
|
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].
|
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
|
data/lib/testa_logger/version.rb
CHANGED
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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" />
|