lib/sym.rb in sym-2.0.2 vs lib/sym.rb in sym-2.0.3
- old
+ new
@@ -3,15 +3,15 @@
require 'coin'
require_relative 'sym/configuration'
Sym::Configuration.configure do |config|
- config.password_cipher = 'AES-128-CBC'
- config.data_cipher = 'AES-256-CBC'
- config.private_key_cipher = config.data_cipher
+ config.password_cipher = 'AES-128-CBC'
+ config.data_cipher = 'AES-256-CBC'
+ config.private_key_cipher = config.data_cipher
config.compression_enabled = true
- config.compression_level = Zlib::BEST_COMPRESSION
+ config.compression_level = Zlib::BEST_COMPRESSION
end
#
# == Using Sym Library
#
@@ -107,7 +107,15 @@
@private_key
end
end
end
end
+
+ COMPLETION_FILE = '.sym.completion'
+ COMPLETION_PATH = "#{ENV['HOME']}/#{COMPLETION_FILE}"
+
+ BASH_COMPLETION = {
+ file: File.expand_path('../../bin/sym.completion', __FILE__),
+ script: "[[ -f '#{COMPLETION_PATH}' ]] && source '#{COMPLETION_PATH}'",
+ }
end