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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 523d8125a9a4afa9d7ec5aaf83168b4a102a8617e6ad601a8484f4beaffbaaf1
4
- data.tar.gz: 7713d8f3f523ee57285b3cf7c836b5c65a40d1f97beaa5ac21da08fc62160edf
3
+ metadata.gz: 60f61db2cffc6e74629720d6f7938d277ed3b163817442e8ffe4f3f28a8ed2c0
4
+ data.tar.gz: dd143696948162a17efef0136f1032480e01aba18772b15dcbe48372744c6903
5
5
  SHA512:
6
- metadata.gz: 30912ebbd8ae6f737bfa8506b4471ebc66c5c358c60c3a83a6b2735b379d3a5895fc9e6605354f550d053d67dac3393025af384675040ccef8d2dc1adde9cb67
7
- data.tar.gz: 00e161bbf7877f2161476a4eca1450067cf3fd6408da7c577bd4c9535115a592330919b82b09bc63518715e5a92dbf9f54240c13238c1d0453d733c012a5c345
6
+ metadata.gz: 7e5af4999fed4b526d2c177cfefeb62054f2a190d5a2d08d01ebfc4591158086bbbd931385a9058bac38036231ab74e2e4631c56bcf4ca7d70e3f7cb8cff6cd1
7
+ data.tar.gz: 4950b062101e75eda8263bceb7ac85bebf5cab96a5d61f6da13e92fd76bbf730d0bc8bad027fe29bf7a11ca5bbee2c3d36f04cacf3681e18af6799a15e82f699
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.2.1
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
- puts "\nFATAL ERROR: Event history cannot be saved. See #{log_file_path} for more details."
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cryptum
4
- VERSION = '0.0.414'
4
+ VERSION = '0.0.416'
5
5
  end
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.414
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.1
533
+ version: 3.2.2
534
534
  required_rubygems_version: !ruby/object:Gem::Requirement
535
535
  requirements:
536
536
  - - ">="