lib/cryptum.rb in cryptum-0.0.299 vs lib/cryptum.rb in cryptum-0.0.300

- old
+ new

@@ -123,23 +123,21 @@ end # Update Key/Value Pair in Bot Conf and Serialize to YAML File public_class_method def self.beautify_large_number(opts = {}) value = opts[:value].to_s - + split_str_num = value.split('.') whole_num = split_str_num.first fraction = 0 fraction = split_str_num.last if split_str_num.length > 1 is_negative = false - is_negative = true if whole_num.split('').first == '-' + is_negative = true if whole_num.chars.first == '-' whole_num = whole_num[1..] if is_negative beautify_whole = whole_num.reverse.scan(/.{1,3}/).join(',').reverse beautify_num = "#{beautify_whole}.#{fraction}" unless is_negative beautify_num = "-#{beautify_whole}.#{fraction}" if is_negative - - return beautify_num rescue Interrupt # Exit Gracefully if CTRL+C is Pressed During Session Cryptum.exit_gracefully(which_self: self) rescue StandardError => e # Produce a Stacktrace for anything else