Skip to content

Commit

Permalink
Set restoring permissions and times as the default.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed May 31, 2021
1 parent 83df65c commit 9abb5cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/zip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ module Zip

DEFAULT_RESTORE_OPTIONS = {
restore_ownership: false,
restore_permissions: false,
restore_times: false
restore_permissions: true,
restore_times: true
}.freeze

def reset!
Expand Down
4 changes: 2 additions & 2 deletions lib/zip/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ class File < CentralDirectory
# default -> false.
attr_accessor :restore_ownership

# default -> false, but will be set to true in a future version.
# default -> true.
attr_accessor :restore_permissions

# default -> false, but will be set to true in a future version.
# default -> true.
attr_accessor :restore_times

# Returns the zip files comment, if it has one
Expand Down

0 comments on commit 9abb5cb

Please sign in to comment.