cryptum 0.0.414 → 0.0.416
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/lib/cryptum/log.rb +7 -2
- data/lib/cryptum/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60f61db2cffc6e74629720d6f7938d277ed3b163817442e8ffe4f3f28a8ed2c0
|
4
|
+
data.tar.gz: dd143696948162a17efef0136f1032480e01aba18772b15dcbe48372744c6903
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e5af4999fed4b526d2c177cfefeb62054f2a190d5a2d08d01ebfc4591158086bbbd931385a9058bac38036231ab74e2e4631c56bcf4ca7d70e3f7cb8cff6cd1
|
7
|
+
data.tar.gz: 4950b062101e75eda8263bceb7ac85bebf5cab96a5d61f6da13e92fd76bbf730d0bc8bad027fe29bf7a11ca5bbee2c3d36f04cacf3681e18af6799a15e82f699
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.2.
|
1
|
+
3.2.2
|
data/lib/cryptum/log.rb
CHANGED
@@ -12,6 +12,8 @@ module Cryptum
|
|
12
12
|
which_self = opts[:which_self].to_s
|
13
13
|
event_history = opts[:event_history]
|
14
14
|
|
15
|
+
driver_name = File.basename($PROGRAM_NAME)
|
16
|
+
|
15
17
|
# Only attempt to exit gracefully if level == :error
|
16
18
|
exit_gracefully = false
|
17
19
|
|
@@ -43,14 +45,17 @@ module Cryptum
|
|
43
45
|
when :error
|
44
46
|
exit_gracefully = true
|
45
47
|
logger.level = Logger::ERROR
|
46
|
-
puts "\nERROR: See #{log_file_path} for more details."
|
48
|
+
puts "\nERROR: See #{log_file_path} for more details." if driver_name == 'cryptum-repl'
|
47
49
|
when :fatal
|
48
50
|
# This is reserved for the Cryptum::UI::Exit module
|
49
51
|
# if the Interrupt or StandardError exceptions are
|
50
52
|
# triggered. This prevents infintely attempting to
|
51
53
|
# exit if something in the module fails.
|
52
54
|
logger.level = Logger::FATAL
|
53
|
-
|
55
|
+
if driver_name == 'cryptum-repl'
|
56
|
+
puts "\nFATAL ERROR: Event history cannot be saved."
|
57
|
+
puts "See #{log_file_path} for more details."
|
58
|
+
end
|
54
59
|
when :info, :learning
|
55
60
|
logger.level = Logger::INFO
|
56
61
|
when :unknown
|
data/lib/cryptum/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.416
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 0day Inc.
|
@@ -530,7 +530,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
530
530
|
requirements:
|
531
531
|
- - ">="
|
532
532
|
- !ruby/object:Gem::Version
|
533
|
-
version: 3.2.
|
533
|
+
version: 3.2.2
|
534
534
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
535
535
|
requirements:
|
536
536
|
- - ">="
|