Fix Style/FrozenStringLiteralComment cop.
This commit is contained in:
parent
0e4dc676a0
commit
e10badf68e
|
@ -146,13 +146,6 @@ Style/Documentation:
|
||||||
Style/FormatStringToken:
|
Style/FormatStringToken:
|
||||||
EnforcedStyle: unannotated
|
EnforcedStyle: unannotated
|
||||||
|
|
||||||
# Offense count: 97
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle.
|
|
||||||
# SupportedStyles: always, always_true, never
|
|
||||||
Style/FrozenStringLiteralComment:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Offense count: 1
|
# Offense count: 1
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowSplatArgument.
|
# Configuration parameters: AllowSplatArgument.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'simplecov-lcov'
|
require 'simplecov-lcov'
|
||||||
|
|
||||||
SimpleCov::Formatter::LcovFormatter.config do |c|
|
SimpleCov::Formatter::LcovFormatter.config do |c|
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gemspec
|
gemspec
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
guard :minitest do
|
guard :minitest do
|
||||||
# with Minitest::Unit
|
# with Minitest::Unit
|
||||||
watch(%r{^test/(.*)\/?(.*)_test\.rb$})
|
watch(%r{^test/(.*)\/?(.*)_test\.rb$})
|
||||||
|
|
2
Rakefile
2
Rakefile
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'bundler/gem_tasks'
|
require 'bundler/gem_tasks'
|
||||||
require 'rake/testtask'
|
require 'rake/testtask'
|
||||||
require 'rubocop/rake_task'
|
require 'rubocop/rake_task'
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'bundler/setup'
|
require 'bundler/setup'
|
||||||
require 'zip'
|
require 'zip'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'English'
|
require 'English'
|
||||||
require 'delegate'
|
require 'delegate'
|
||||||
require 'singleton'
|
require 'singleton'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class CentralDirectory
|
class CentralDirectory
|
||||||
include Enumerable
|
include Enumerable
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class Compressor #:nodoc:all
|
class Compressor #:nodoc:all
|
||||||
def finish; end
|
def finish; end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
RUNNING_ON_WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/i
|
RUNNING_ON_WINDOWS = RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/i
|
||||||
|
|
||||||
|
@ -38,27 +40,27 @@ module Zip
|
||||||
FSTYPE_ATHEOS = 30
|
FSTYPE_ATHEOS = 30
|
||||||
|
|
||||||
FSTYPES = {
|
FSTYPES = {
|
||||||
FSTYPE_FAT => 'FAT'.freeze,
|
FSTYPE_FAT => 'FAT',
|
||||||
FSTYPE_AMIGA => 'Amiga'.freeze,
|
FSTYPE_AMIGA => 'Amiga',
|
||||||
FSTYPE_VMS => 'VMS (Vax or Alpha AXP)'.freeze,
|
FSTYPE_VMS => 'VMS (Vax or Alpha AXP)',
|
||||||
FSTYPE_UNIX => 'Unix'.freeze,
|
FSTYPE_UNIX => 'Unix',
|
||||||
FSTYPE_VM_CMS => 'VM/CMS'.freeze,
|
FSTYPE_VM_CMS => 'VM/CMS',
|
||||||
FSTYPE_ATARI => 'Atari ST'.freeze,
|
FSTYPE_ATARI => 'Atari ST',
|
||||||
FSTYPE_HPFS => 'OS/2 or NT HPFS'.freeze,
|
FSTYPE_HPFS => 'OS/2 or NT HPFS',
|
||||||
FSTYPE_MAC => 'Macintosh'.freeze,
|
FSTYPE_MAC => 'Macintosh',
|
||||||
FSTYPE_Z_SYSTEM => 'Z-System'.freeze,
|
FSTYPE_Z_SYSTEM => 'Z-System',
|
||||||
FSTYPE_CPM => 'CP/M'.freeze,
|
FSTYPE_CPM => 'CP/M',
|
||||||
FSTYPE_TOPS20 => 'TOPS-20'.freeze,
|
FSTYPE_TOPS20 => 'TOPS-20',
|
||||||
FSTYPE_NTFS => 'NTFS'.freeze,
|
FSTYPE_NTFS => 'NTFS',
|
||||||
FSTYPE_QDOS => 'SMS/QDOS'.freeze,
|
FSTYPE_QDOS => 'SMS/QDOS',
|
||||||
FSTYPE_ACORN => 'Acorn RISC OS'.freeze,
|
FSTYPE_ACORN => 'Acorn RISC OS',
|
||||||
FSTYPE_VFAT => 'Win32 VFAT'.freeze,
|
FSTYPE_VFAT => 'Win32 VFAT',
|
||||||
FSTYPE_MVS => 'MVS'.freeze,
|
FSTYPE_MVS => 'MVS',
|
||||||
FSTYPE_BEOS => 'BeOS'.freeze,
|
FSTYPE_BEOS => 'BeOS',
|
||||||
FSTYPE_TANDEM => 'Tandem NSK'.freeze,
|
FSTYPE_TANDEM => 'Tandem NSK',
|
||||||
FSTYPE_THEOS => 'Theos'.freeze,
|
FSTYPE_THEOS => 'Theos',
|
||||||
FSTYPE_MAC_OSX => 'Mac OS/X (Darwin)'.freeze,
|
FSTYPE_MAC_OSX => 'Mac OS/X (Darwin)',
|
||||||
FSTYPE_ATHEOS => 'AtheOS'.freeze
|
FSTYPE_ATHEOS => 'AtheOS'
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
COMPRESSION_METHOD_STORE = 0
|
COMPRESSION_METHOD_STORE = 0
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class DecryptedIo #:nodoc:all
|
class DecryptedIo #:nodoc:all
|
||||||
CHUNK_SIZE = 32_768
|
CHUNK_SIZE = 32_768
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class Encrypter #:nodoc:all
|
class Encrypter #:nodoc:all
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
module NullEncryption
|
module NullEncryption
|
||||||
def header_bytesize
|
def header_bytesize
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
module TraditionalEncryption
|
module TraditionalEncryption
|
||||||
def initialize(password)
|
def initialize(password)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class Decompressor #:nodoc:all
|
class Decompressor #:nodoc:all
|
||||||
CHUNK_SIZE = 32_768
|
CHUNK_SIZE = 32_768
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class Deflater < Compressor #:nodoc:all
|
class Deflater < Compressor #:nodoc:all
|
||||||
def initialize(output_stream, level = Zip.default_compression, encrypter = NullEncrypter.new)
|
def initialize(output_stream, level = Zip.default_compression, encrypter = NullEncrypter.new)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'pathname'
|
require 'pathname'
|
||||||
module Zip
|
module Zip
|
||||||
class Entry
|
class Entry
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class EntrySet #:nodoc:all
|
class EntrySet #:nodoc:all
|
||||||
include Enumerable
|
include Enumerable
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class Error < StandardError; end
|
class Error < StandardError; end
|
||||||
class EntryExistsError < Error; end
|
class EntryExistsError < Error; end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class ExtraField < Hash
|
class ExtraField < Hash
|
||||||
ID_MAP = {}
|
ID_MAP = {}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class ExtraField::Generic
|
class ExtraField::Generic
|
||||||
def self.register_map
|
def self.register_map
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
# PKWARE NTFS Extra Field (0x000a)
|
# PKWARE NTFS Extra Field (0x000a)
|
||||||
# Only Tag 0x0001 is supported
|
# Only Tag 0x0001 is supported
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
# Olf Info-ZIP Extra for UNIX uid/gid and file timestampes
|
# Olf Info-ZIP Extra for UNIX uid/gid and file timestampes
|
||||||
class ExtraField::OldUnix < ExtraField::Generic
|
class ExtraField::OldUnix < ExtraField::Generic
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
# Info-ZIP Additional timestamp field
|
# Info-ZIP Additional timestamp field
|
||||||
class ExtraField::UniversalTime < ExtraField::Generic
|
class ExtraField::UniversalTime < ExtraField::Generic
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
# Info-ZIP Extra for UNIX uid/gid
|
# Info-ZIP Extra for UNIX uid/gid
|
||||||
class ExtraField::IUnix < ExtraField::Generic
|
class ExtraField::IUnix < ExtraField::Generic
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
# Info-ZIP Extra for Zip64 size
|
# Info-ZIP Extra for Zip64 size
|
||||||
class ExtraField::Zip64 < ExtraField::Generic
|
class ExtraField::Zip64 < ExtraField::Generic
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
# placeholder to reserve space for a Zip64 extra information record, for the
|
# placeholder to reserve space for a Zip64 extra information record, for the
|
||||||
# local file header only, that we won't know if we'll need until after
|
# local file header only, that we won't know if we'll need until after
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
# ZipFile is modeled after java.util.zip.ZipFile from the Java SDK.
|
# ZipFile is modeled after java.util.zip.ZipFile from the Java SDK.
|
||||||
# The most important methods are those inherited from
|
# The most important methods are those inherited from
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'zip'
|
require 'zip'
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class Inflater < Decompressor #:nodoc:all
|
class Inflater < Decompressor #:nodoc:all
|
||||||
def initialize(*args)
|
def initialize(*args)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
# InputStream is the basic class for reading zip entries in a
|
# InputStream is the basic class for reading zip entries in a
|
||||||
# zip file. It is possible to create a InputStream object directly,
|
# zip file. It is possible to create a InputStream object directly,
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
module IOExtras #:nodoc:
|
module IOExtras #:nodoc:
|
||||||
CHUNK_SIZE = 131_072
|
CHUNK_SIZE = 131_072
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
module IOExtras
|
module IOExtras
|
||||||
# Implements many of the convenience methods of IO
|
# Implements many of the convenience methods of IO
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
module IOExtras
|
module IOExtras
|
||||||
# Implements many of the output convenience methods of IO.
|
# Implements many of the output convenience methods of IO.
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class NullCompressor < Compressor #:nodoc:all
|
class NullCompressor < Compressor #:nodoc:all
|
||||||
include Singleton
|
include Singleton
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
module NullDecompressor #:nodoc:all
|
module NullDecompressor #:nodoc:all
|
||||||
module_function
|
module_function
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
module NullInputStream #:nodoc:all
|
module NullInputStream #:nodoc:all
|
||||||
include ::Zip::NullDecompressor
|
include ::Zip::NullDecompressor
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
# ZipOutputStream is the basic class for writing zip files. It is
|
# ZipOutputStream is the basic class for writing zip files. It is
|
||||||
# possible to create a ZipOutputStream object directly, passing
|
# possible to create a ZipOutputStream object directly, passing
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class PassThruCompressor < Compressor #:nodoc:all
|
class PassThruCompressor < Compressor #:nodoc:all
|
||||||
def initialize(output_stream)
|
def initialize(output_stream)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class PassThruDecompressor < Decompressor #:nodoc:all
|
class PassThruDecompressor < Decompressor #:nodoc:all
|
||||||
def initialize(*args)
|
def initialize(*args)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class StreamableDirectory < Entry
|
class StreamableDirectory < Entry
|
||||||
def initialize(zipfile, entry, src_path = nil, permission = nil)
|
def initialize(zipfile, entry, src_path = nil, permission = nil)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
class StreamableStream < DelegateClass(Entry) # :nodoc:all
|
class StreamableStream < DelegateClass(Entry) # :nodoc:all
|
||||||
def initialize(entry)
|
def initialize(entry)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Zip
|
module Zip
|
||||||
VERSION = '3.0.0'
|
VERSION = '3.0.0'
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
lib = File.expand_path('lib', __dir__)
|
lib = File.expand_path('lib', __dir__)
|
||||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||||
require 'zip/version'
|
require 'zip/version'
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
$LOAD_PATH << '../lib'
|
$LOAD_PATH << '../lib'
|
||||||
system('zip example.zip example.rb gtk_ruby_zip.rb')
|
system('zip example.zip example.rb gtk_ruby_zip.rb')
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
$LOAD_PATH << '../lib'
|
$LOAD_PATH << '../lib'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'zip'
|
require 'zip'
|
||||||
|
|
||||||
# This is a simple example which uses rubyzip to
|
# This is a simple example which uses rubyzip to
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
$LOAD_PATH << '../lib'
|
$LOAD_PATH << '../lib'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
$VERBOSE = true
|
$VERBOSE = true
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
$LOAD_PATH << '../lib'
|
$LOAD_PATH << '../lib'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
$VERBOSE = true
|
$VERBOSE = true
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class BasicZipFileTest < MiniTest::Test
|
class BasicZipFileTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class Bzip2SupportTest < MiniTest::Test
|
class Bzip2SupportTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipCaseSensitivityTest < MiniTest::Test
|
class ZipCaseSensitivityTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipCentralDirectoryEntryTest < MiniTest::Test
|
class ZipCentralDirectoryEntryTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipCentralDirectoryTest < MiniTest::Test
|
class ZipCentralDirectoryTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ConstantsTest < MiniTest::Test
|
class ConstantsTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class NullEncrypterTest < MiniTest::Test
|
class NullEncrypterTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class TraditionalEncrypterTest < MiniTest::Test
|
class TraditionalEncrypterTest < MiniTest::Test
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class NotZippedRuby
|
class NotZippedRuby
|
||||||
def return_true
|
def return_true
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
class DecompressorTest < MiniTest::Test
|
class DecompressorTest < MiniTest::Test
|
||||||
TEST_COMPRESSION_METHOD = 255
|
TEST_COMPRESSION_METHOD = 255
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class DeflaterTest < MiniTest::Test
|
class DeflaterTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class EncryptionTest < MiniTest::Test
|
class EncryptionTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipEntrySetTest < MiniTest::Test
|
class ZipEntrySetTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipEntryTest < MiniTest::Test
|
class ZipEntryTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ErrorsTest < MiniTest::Test
|
class ErrorsTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipExtraFieldTest < MiniTest::Test
|
class ZipExtraFieldTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipExtraFieldUTTest < MiniTest::Test
|
class ZipExtraFieldUTTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipFileExtractDirectoryTest < MiniTest::Test
|
class ZipFileExtractDirectoryTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipFileExtractTest < MiniTest::Test
|
class ZipFileExtractTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class FileOptionsTest < MiniTest::Test
|
class FileOptionsTest < MiniTest::Test
|
||||||
|
@ -8,9 +10,9 @@ class FileOptionsTest < MiniTest::Test
|
||||||
EXTPATH_1 = ::File.join(Dir.tmpdir, 'extracted_1.txt').freeze
|
EXTPATH_1 = ::File.join(Dir.tmpdir, 'extracted_1.txt').freeze
|
||||||
EXTPATH_2 = ::File.join(Dir.tmpdir, 'extracted_2.txt').freeze
|
EXTPATH_2 = ::File.join(Dir.tmpdir, 'extracted_2.txt').freeze
|
||||||
EXTPATH_3 = ::File.join(Dir.tmpdir, 'extracted_3.txt').freeze
|
EXTPATH_3 = ::File.join(Dir.tmpdir, 'extracted_3.txt').freeze
|
||||||
ENTRY_1 = 'entry_1.txt'.freeze
|
ENTRY_1 = 'entry_1.txt'
|
||||||
ENTRY_2 = 'entry_2.txt'.freeze
|
ENTRY_2 = 'entry_2.txt'
|
||||||
ENTRY_3 = 'entry_3.txt'.freeze
|
ENTRY_3 = 'entry_3.txt'
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
::File.unlink(ZIPPATH) if ::File.exist?(ZIPPATH)
|
::File.unlink(ZIPPATH) if ::File.exist?(ZIPPATH)
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class FilePermissionsTest < MiniTest::Test
|
class FilePermissionsTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipFileSplitTest < MiniTest::Test
|
class ZipFileSplitTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipFileTest < MiniTest::Test
|
class ZipFileTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'zip/filesystem'
|
require 'zip/filesystem'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'zip/filesystem'
|
require 'zip/filesystem'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'zip/filesystem'
|
require 'zip/filesystem'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'zip/filesystem'
|
require 'zip/filesystem'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'zip/filesystem'
|
require 'zip/filesystem'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
$VERBOSE = true
|
$VERBOSE = true
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
class InflaterTest < MiniTest::Test
|
class InflaterTest < MiniTest::Test
|
||||||
include DecompressorTests
|
include DecompressorTests
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipInputStreamTest < MiniTest::Test
|
class ZipInputStreamTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'zip/ioextras'
|
require 'zip/ioextras'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'zip/ioextras'
|
require 'zip/ioextras'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'zip/ioextras'
|
require 'zip/ioextras'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipLocalEntryTest < MiniTest::Test
|
class ZipLocalEntryTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipOutputStreamTest < MiniTest::Test
|
class ZipOutputStreamTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class PassThruCompressorTest < MiniTest::Test
|
class PassThruCompressorTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
class PassThruDecompressorTest < MiniTest::Test
|
class PassThruDecompressorTest < MiniTest::Test
|
||||||
include DecompressorTests
|
include DecompressorTests
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class PathTraversalTest < MiniTest::Test
|
class PathTraversalTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require_relative '../../samples/example_recursive'
|
require_relative '../../samples/example_recursive'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipSettingsTest < MiniTest::Test
|
class ZipSettingsTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class StoredSupportTest < MiniTest::Test
|
class StoredSupportTest < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
require 'minitest/autorun'
|
require 'minitest/autorun'
|
||||||
require 'minitest/unit'
|
require 'minitest/unit'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class ZipUnicodeFileNamesAndComments < MiniTest::Test
|
class ZipUnicodeFileNamesAndComments < MiniTest::Test
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
if ENV['FULL_ZIP64_TEST']
|
if ENV['FULL_ZIP64_TEST']
|
||||||
require 'minitest/autorun'
|
require 'minitest/autorun'
|
||||||
require 'minitest/unit'
|
require 'minitest/unit'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'test_helper'
|
require 'test_helper'
|
||||||
|
|
||||||
class Zip64SupportTest < MiniTest::Test
|
class Zip64SupportTest < MiniTest::Test
|
||||||
|
|
Loading…
Reference in New Issue