diff options
| author | Zsolt Kozaroczy <[email protected]> | 2023-05-22 10:33:45 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-22 10:33:45 +0200 |
| commit | 0f812ee216076a4c713f6cadb0751bac45f6b9da (patch) | |
| tree | 95549c3a1899db8791268a71d4a33f5b9ce7847f /lib/axlsx/package.rb | |
| parent | 56ff466673b8aff9a6508e29ebfaf4ee21f5fae9 (diff) | |
| parent | 611b57cdd44f3f5e91394c699ad98b7c05330a2e (diff) | |
| download | caxlsx-0f812ee216076a4c713f6cadb0751bac45f6b9da.tar.gz caxlsx-0f812ee216076a4c713f6cadb0751bac45f6b9da.zip | |
Merge pull request #242 from tagliala/chore/fix-minor-safe-offenses
Remove minor safe offenses
Diffstat (limited to 'lib/axlsx/package.rb')
| -rw-r--r-- | lib/axlsx/package.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb index 9eab87a6..e8276d7c 100644 --- a/lib/axlsx/package.rb +++ b/lib/axlsx/package.rb @@ -145,7 +145,7 @@ module Axlsx # Encrypt the package into a CFB using the password provided # This is not ready yet def encrypt(file_name, password) - return false + false # moc = MsOffCrypto.new(file_name, password) # moc.save end @@ -386,7 +386,7 @@ module Axlsx options.merge!(secondary_options || {}) invalid_keys = options.keys - [:confirm_valid, :zip_command] if invalid_keys.any? - raise ArgumentError.new("Invalid keyword arguments: #{invalid_keys}") + raise ArgumentError, "Invalid keyword arguments: #{invalid_keys}" end [options.fetch(:confirm_valid, false), options.fetch(:zip_command, nil)] |
