fix rubocop Style/PercentLiteralDelimiters cop

This commit is contained in:
Pavel Lobashov 2015-03-23 19:20:31 +03:00
parent 31fb9d729b
commit 77b7d6c35d
3 changed files with 3 additions and 9 deletions

View File

@ -203,12 +203,6 @@ Style/Not:
Style/NumericLiterals:
MinDigits: 12
# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Enabled: false
# Offense count: 3
# Configuration parameters: MaxSlashes.
Style/RegexpLiteral:

View File

@ -11,7 +11,7 @@ Gem::Specification.new do |s|
s.homepage = 'http://github.com/rubyzip/rubyzip'
s.platform = Gem::Platform::RUBY
s.summary = 'rubyzip is a ruby module for reading and writing zip files'
s.files = Dir.glob('{samples,lib}/**/*.rb') + %w{ README.md TODO Rakefile }
s.files = Dir.glob('{samples,lib}/**/*.rb') + %w(README.md TODO Rakefile)
s.test_files = Dir.glob('test/**/*')
s.require_paths = ['lib']
s.license = 'BSD 2-Clause'

View File

@ -114,9 +114,9 @@ class TestZipFile
end
TEST_ZIP1 = TestZipFile.new('test/data/generated/empty.zip', [])
TEST_ZIP2 = TestZipFile.new('test/data/generated/5entry.zip', %w{ test/data/generated/longAscii.txt test/data/generated/empty.txt test/data/generated/empty_chmod640.txt test/data/generated/short.txt test/data/generated/longBinary.bin},
TEST_ZIP2 = TestZipFile.new('test/data/generated/5entry.zip', %w(test/data/generated/longAscii.txt test/data/generated/empty.txt test/data/generated/empty_chmod640.txt test/data/generated/short.txt test/data/generated/longBinary.bin),
'my zip comment')
TEST_ZIP3 = TestZipFile.new('test/data/generated/test1.zip', %w{ test/data/file1.txt })
TEST_ZIP3 = TestZipFile.new('test/data/generated/test1.zip', %w(test/data/file1.txt))
TEST_ZIP4 = TestZipFile.new('test/data/generated/zipWithDir.zip', ['test/data/file1.txt',
TestFiles::EMPTY_TEST_DIR])
end