Don't use raw numbers for Entry compression types.
Constants for Store and Deflate are already available, so use them. It might be sensible to remove these local versions, but they do have their uses as a shortened form.
This commit is contained in:
parent
156b0f3dee
commit
0620fba13d
|
@ -1,8 +1,9 @@
|
|||
require 'pathname'
|
||||
module Zip
|
||||
class Entry
|
||||
STORED = 0
|
||||
DEFLATED = 8
|
||||
STORED = ::Zip::COMPRESSION_METHOD_STORE
|
||||
DEFLATED = ::Zip::COMPRESSION_METHOD_DEFLATE
|
||||
|
||||
# Language encoding flag (EFS) bit
|
||||
EFS = 0b100000000000
|
||||
|
||||
|
|
Loading…
Reference in New Issue