cryptum 0.0.414 → 0.0.415

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: 2887eb2e6b6a4935edfb71aabd839d0cbc633f75ab6d0c7fac30187149e9d0dd
4
+ data.tar.gz: 88002f644e4d7b9839818c1df8487e14b004ebb46cb2f782c41272c8130a129d
5
5
  SHA512:
6
- metadata.gz: 30912ebbd8ae6f737bfa8506b4471ebc66c5c358c60c3a83a6b2735b379d3a5895fc9e6605354f550d053d67dac3393025af384675040ccef8d2dc1adde9cb67
7
- data.tar.gz: 00e161bbf7877f2161476a4eca1450067cf3fd6408da7c577bd4c9535115a592330919b82b09bc63518715e5a92dbf9f54240c13238c1d0453d733c012a5c345
6
+ metadata.gz: 81a1f5db054fcc8f599d59bf03f69627980f669f52af18343d7254b7b8b356a9ae6489df8f029bcba2a922082927fdb726eee19089df276ce81a99cddeb6bfc8
7
+ data.tar.gz: 1c94d64e561029e53e2a912e2befd9a8736a858a73ec45db77394b8daf359c3a1446a556ba7490572835e514d74c9355dcb25495e3f75089b47e2b30debef863
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.415'
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.415
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.