lib/global_session/directory.rb in global_session-1.0.2 vs lib/global_session/directory.rb in global_session-1.0.3

- old
+ new

@@ -42,10 +42,9 @@ # ConfigurationError:: if too many or too few keys are found, or if *.key/*.pub files are malformatted def initialize(configuration, keystore_directory) @configuration = configuration certs = Dir[File.join(keystore_directory, '*.pub')] keys = Dir[File.join(keystore_directory, '*.key')] - raise ConfigurationError, "Excepted 0 or 1 key files, found #{keys.size}" unless [0, 1].include?(keys.size) @authorities = {} certs.each do |cert_file| basename = File.basename(cert_file) authority = basename[0...(basename.rindex('.'))] #chop trailing .ext \ No newline at end of file