diffcrypt / diffcrypt-ruby

Diffable encrypted files that can be committed into a git repo
MIT License
8 stars 3 forks source link

Cannot initialize with a new repo #29

Closed marcqualie closed 3 years ago

marcqualie commented 4 years ago

The following errors have been observed on new Rails 6.0 applications with ruby 2.7.1

# when file is empty
lib/diffcrypt/rails/encrypted_configuration.rb:102:in `decrypt': undefined method `decrypt_and_verify' for nil:NilClass (NoMethodError)
# when file just contents `---`
lib/diffcrypt/file.rb:18:in `cipher': undefined method `[]' for nil:NilClass (NoMethodError)
# when file contains non encrypted data, like `---\ntest: true`
lib/diffcrypt/encryptor.rb:37:in `decrypt_hash': undefined method `each' for nil:NilClass (NoMethodError)
marcqualie commented 3 years ago

Closed by #31