Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stable Ruby #412

Closed
wants to merge 540 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
540 commits
Select commit Hold shift + click to select a range
edf3126
EntrySet.dub fix for code-style
ShockwaveNN Mar 23, 2015
d5f7982
fix rubocop Style/LineEndConcatenation cop
ShockwaveNN Mar 23, 2015
b6f9176
fix rubocop Style/Lambda cop
ShockwaveNN Mar 23, 2015
47b72f5
fix rubocop Style/LeadingCommentSpace cop
ShockwaveNN Mar 23, 2015
930b5ae
fix rubocop Style/MethodCallParentheses cop
ShockwaveNN Mar 23, 2015
04f6902
fix rubocop Style/MultilineBlockLayout cop
ShockwaveNN Mar 23, 2015
6a7a22f
fix rubocop Style/MultilineOperationIndentation cop
ShockwaveNN Mar 23, 2015
f291e1f
fix rubocop Style/NegatedIf cop
ShockwaveNN Mar 23, 2015
31fb9d7
fix rubocop Style/PredicateName cop
ShockwaveNN Mar 23, 2015
77b7d6c
fix rubocop Style/PercentLiteralDelimiters cop
ShockwaveNN Mar 23, 2015
1ba81ff
fix rubocop Style/NumericLiterals cop
ShockwaveNN Mar 23, 2015
8533708
fix rubocop Style/Not cop
ShockwaveNN Mar 23, 2015
abb8c02
fix rubocop Style/Next cop
ShockwaveNN Mar 23, 2015
d6cc880
fix rubocop Style/MultilineTernaryOperator cop
ShockwaveNN Mar 23, 2015
b1bfb1a
fix some rubocop Style/ModuleFunction cop
ShockwaveNN Mar 23, 2015
23cfcc7
fix rubocop Style/MethodName cop
ShockwaveNN Mar 24, 2015
2c8f6f8
fix correct initialization for ExtraField
ShockwaveNN Mar 24, 2015
b9aefaf
fix rubocop Style/IfUnlessModifier cop
ShockwaveNN Mar 24, 2015
63b3ee3
fix rubocop Style/HashSyntax cop
ShockwaveNN Mar 24, 2015
b920a1e
fix rubocop Style/GuardClause cop
ShockwaveNN Mar 24, 2015
112a77d
fix some Style/FormatString cop
ShockwaveNN Mar 24, 2015
68b5fcf
fix some Style/FormatString cop
ShockwaveNN Mar 24, 2015
068a3e7
fix rubocop Style/FileName cop
ShockwaveNN Mar 24, 2015
f6693af
fix rubocop Style/EmptyLinesAroundMethodBody cop
ShockwaveNN Mar 24, 2015
94c1df1
fix rubocop Style/EmptyLinesAroundAccessModifier cop
ShockwaveNN Mar 24, 2015
4b60095
fix rubocop Style/EmptyLines cop
ShockwaveNN Mar 24, 2015
784e70b
fix rubocop Style/EmptyElse cop
ShockwaveNN Mar 24, 2015
ce7e01a
fix rubocop Style/CommentIndentation cop
ShockwaveNN Mar 24, 2015
96f3997
fix rubocop Style/GuardClause cop
ShockwaveNN Mar 24, 2015
1759f71
fix rubocop Style/CommentAnnotation cop
ShockwaveNN Mar 24, 2015
aa83776
fix rubocop Style/ClassMethods cop
ShockwaveNN Mar 24, 2015
fd864bd
fix rubocop Style/CaseEquality cop
ShockwaveNN Mar 24, 2015
2007be0
fix rubocop Lint/UselessAccessModifier cop
ShockwaveNN Mar 24, 2015
e211434
fix rubocop Lint/UnusedBlockArgument cop
ShockwaveNN Mar 24, 2015
32016ab
Remove executable bit.
voxik Mar 31, 2015
6a98297
Merge pull request #228 from voxik/fix-permissions
simonoff Mar 31, 2015
1175abf
Update README.md
matugm Apr 20, 2015
e1d5012
Merge pull request #230 from matugm/patch-1
simonoff Apr 20, 2015
34899f3
Fix Recursive zipping example
KernCheh Jun 1, 2015
6e8069e
Update README.md
KernCheh Jun 1, 2015
faa45ef
Merge pull request #235 from KernCheh/master
simonoff Jun 1, 2015
d289780
Fix #234. Add special variable what is a flag about internal usege
simonoff Jun 7, 2015
63d388c
Merge pull request #2 from rubyzip/master
ShockwaveNN Jun 8, 2015
c0177a4
Merge branch 'master' into rubocop_fixes
ShockwaveNN Jun 8, 2015
53fba8a
fix after merge fix
ShockwaveNN Jun 8, 2015
47aa16f
update .rubocop_rubyzip for latest version of rubocop
ShockwaveNN Jun 8, 2015
68181da
fix rubocop cop Style/TrailingBlankLines
ShockwaveNN Jun 8, 2015
f7eec2d
fix rubocop cop Style/SpaceAroundOperators
ShockwaveNN Jun 8, 2015
37ede3c
fix rubocop cop Style/SingleSpaceBeforeFirstArg
ShockwaveNN Jun 8, 2015
13658b0
fix rubocop cop Style/NonNilCheck
ShockwaveNN Jun 8, 2015
4c81b11
fix rubocop cop Style/NilComparison
ShockwaveNN Jun 8, 2015
753eab1
fix rubocop cop Style/EmptyLinesAroundClassBody
ShockwaveNN Jun 8, 2015
8c13dfc
fix rubocop cop Style/ClassCheck
ShockwaveNN Jun 8, 2015
1e99ff6
Revert "fix rubocop cop Style/ClassCheck". It cause regression in tests
ShockwaveNN Jun 8, 2015
bbd7cc4
Merge pull request #226 from ShockwaveNN/rubocop_fixes
simonoff Jun 8, 2015
9acc50f
Do something more expected with new file permissions.
hainesr Dec 30, 2014
8edb2bd
Add a note to the README about file permissions.
hainesr Jun 24, 2015
228cd4a
Merge pull request #237 from hainesr/create-file-perms
simonoff Jun 25, 2015
37a5baa
Accept StringIO in Zip.open_buffer.
pwnall Jul 2, 2015
93528de
Merge pull request #238 from pwnall/stringio
simonoff Jul 2, 2015
a1f75a3
Added error for empty (zero bit) zip file. Added tests for empty and …
Jul 28, 2015
0ac4a84
Merge pull request #242 from ClairePitman/master
simonoff Jul 28, 2015
1a028fc
Fix name collision in test class.
sethk Sep 3, 2015
05a9ba3
Use duck typing to detect IO-like objects.
sethk Sep 3, 2015
04714ec
Merge pull request #244 from sethk/io_like
simonoff Sep 7, 2015
77acc03
Fix exception due to calling empty? on nil.
pwnall Sep 30, 2015
a3ca219
Merge pull request #248 from pwnall/crash
simonoff Sep 30, 2015
7a4b8bb
Fix high memory usage due to Deflater buffering
felixbuenemann Oct 17, 2015
e1ce501
Merge pull request #250 from felixbuenemann/fix-deflate-buffering
simonoff Oct 18, 2015
8447f0e
Fix #252
simonoff Nov 21, 2015
9dd0912
Upgrade bundler on travis
simonoff Nov 21, 2015
6e1dea4
Fix accidental unlink (#185) without using ObjectSpace (#252)
mnaberez Nov 22, 2015
73a35d4
User `warn` method instead `STDERR.puts` to correctly check error in …
ShockwaveNN Dec 18, 2015
bee921b
Add actual verification to tests for `Zip.warn_invalid_date` attribute
ShockwaveNN Dec 18, 2015
73bfa59
Fix TypeError: can't dup NilClass from EntrySet#dup
shhavel Dec 19, 2015
4b41915
Merge pull request #264 from shhavel/bug/type_error_cannot_dup_nil_class
simonoff Jan 4, 2016
972749c
Merge pull request #263 from ShockwaveNN/feature/fix-warn-date-tests
simonoff Jan 4, 2016
560bf5d
Merge pull request #259 from mnaberez/remove-tempfile
simonoff Jan 4, 2016
9a261bc
Fix typo file name in samples/example_filesystem.rb
Neil-Ni Jan 7, 2016
fb0b58c
Fix in example_recursive
pol0nium Jan 20, 2016
62558f0
Merge pull request #268 from Neil-Ni/master
simonoff Jan 22, 2016
088f44a
Merge pull request #270 from pol0nium/master
simonoff Jan 22, 2016
3ec40d8
Version bump
simonoff Feb 19, 2016
4a60771
Add changelog entries for 1.2.0. Fixes #275
mnaberez Feb 29, 2016
66d6076
- revised typo
Mar 22, 2016
63c0ef0
- copied current version of example_recursive.rb to readme (old versi…
Mar 22, 2016
4d86978
Small change to "Modify docx file with rubyzip"
peter50216 Mar 28, 2016
4b21d52
Merge pull request #287 from peter50216/patch-1
simonoff Apr 6, 2016
7aa3666
Merge pull request #278 from mnaberez/changelog-1.2.0
simonoff Apr 6, 2016
c0dccb1
Replace puts with write in README.md for dir recursion
Meatballs1 May 9, 2016
b6896c4
Switch file_permission_test.rb to compare with File.open perms
metavida Jun 30, 2016
046b7f8
Add a failing test when the umask is 0027
metavida Jun 30, 2016
4b27538
Add a test helper for more human-readable file permission comparison
metavida Jun 30, 2016
b0b54e5
example_recursive.rb lost some special characters (0x1a at file end) …
EagleSHCN Aug 15, 2016
7caab1f
Clean up empty.zip after running tests.
hainesr Aug 28, 2016
7b14d11
Stop using 0600 perms for temporary files.
hainesr Sep 1, 2016
b005c48
Clean up file permissions tests.
hainesr Sep 1, 2016
9366044
Test ruby 2.3.1 with Travis.
hainesr Sep 1, 2016
40eca74
Update Travis rubies to latest in each branch.
hainesr Sep 1, 2016
3b75ffe
Add jruby-head to Travis but allow failures.
hainesr Sep 1, 2016
b2e65ca
Update Travis jrubies to latest stable.
hainesr Sep 1, 2016
36dc49b
Test with Java 8 in Travis.
hainesr Sep 1, 2016
e8def12
Allow Travis jruby tests to fail, for now.
hainesr Sep 1, 2016
dee6fbe
Try latest jruby.
hainesr Sep 2, 2016
331c4bb
No need to allow jruby builds to fail any more.
hainesr Sep 2, 2016
63ed0d9
Refactor the code which manages temp files.
hainesr Sep 5, 2016
fc23f68
Refactor the create logic in Zip::File.
hainesr Sep 5, 2016
c00d767
Fix rubocop offence caused by temp files changes.
hainesr Sep 5, 2016
366a1d8
Fix test failure when running a single test file
Oct 8, 2016
6597af1
Cleanup after ourselves
Oct 8, 2016
9c475f5
Add extended globbing support
Oct 8, 2016
579e78f
Update entry.rb
knut2 Oct 10, 2016
80af58e
Merge pull request #301 from hainesr/update-travis
simonoff Nov 9, 2016
bf8ffa4
Merge pull request #304 from knut2/internal_file_attributes
simonoff Nov 9, 2016
2569a65
Merge pull request #283 from entwanderer/master
simonoff Nov 9, 2016
fdc7a50
Merge pull request #298 from hainesr/cleanup-post-tests
simonoff Nov 9, 2016
82fa57c
Merge pull request #303 from deivid-rodriguez/extended_globbing
simonoff Nov 9, 2016
a0cf673
Merge pull request #300 from hainesr/fix-create-perms
simonoff Nov 9, 2016
8126091
Merge pull request #297 from EagleSHCN/patch-1
simonoff Nov 9, 2016
f157dfc
Revert "Cleanup after ourselves"
Nov 10, 2016
a4e3b55
remove tr to support cp932 encoding
dogatana Dec 7, 2016
8d1808f
Merge pull request #306 from deivid-rodriguez/fix_build
simonoff Dec 21, 2016
c12b8b3
Merge pull request #308 from dogatana/support_cp932
simonoff Dec 21, 2016
f34c1d9
Merge pull request #289 from Meatballs1/fix_readme_dir_recursion
simonoff Dec 21, 2016
4a7ec6a
Use the latest rubies on Travis
koic Jan 8, 2017
33d0949
Fix warnings: `Use assert_nil if expecting nil`
koic Jan 8, 2017
7c250c0
Fix warning: `::[] is deprecated. Use ::new instead.`
koic Jan 8, 2017
960414a
Fix warnings: `constant ::Fixnum is deprecated` in Ruby 2.4
koic Jan 8, 2017
14b8fed
allows open_buffer to work without a given block
mwlang Jan 16, 2017
1dfce05
Merge pull request #312 from koic/use_latest_rubies
simonoff Feb 4, 2017
28c5dd5
Merge pull request #313 from koic/fix_deprecated_warnings
simonoff Feb 4, 2017
df8dfbc
Merge pull request #314 from mwlang/bugfix/open_buffer_without_block
simonoff Feb 8, 2017
ce4208f
Fix #315 and resolve relative path vulnerability
simonoff Feb 8, 2017
98f4f2e
Version bump
simonoff Feb 8, 2017
722ee6e
File.join() is our friend for joining paths
gaurish Apr 3, 2017
258ef02
Save temporary files to a temporary directory
aeroastro Apr 14, 2017
d80e720
Add rubocop dependency and correct settings
aeroastro Jun 28, 2017
9bfc52b
Disable Style/MutableConstant because existent code relies on it
aeroastro Jun 29, 2017
cf91112
Apply automatic correction by rubocop
aeroastro Jun 29, 2017
41fcf0a
Merge pull request #332 from aeroastro/feature/rubocop-update
simonoff Aug 2, 2017
fc83680
Merge pull request #321 from gaurish/patch-1
simonoff Aug 2, 2017
3c0de6c
Make naming on README more consistent
aeroastro Apr 17, 2017
a9f020c
add option to force entry names encoding
alsor Oct 18, 2017
deb6616
Merge branch 'master' into force-entry-names-encoding-option
alsor Oct 18, 2017
1039b28
Merge pull request #340 from alsor/force-entry-names-encoding-option
simonoff Nov 8, 2017
4ecb5b9
Merge pull request #326 from aeroastro/feature/readme-improvement
simonoff Nov 8, 2017
57c3772
Merge pull request #325 from aeroastro/feature/tempfile-directory
simonoff Nov 8, 2017
a27204f
README: Use a blockquote to make text readable
olleolleolle Nov 28, 2017
43f01f4
Travis: use pre-installed Travis rubies
olleolleolle Nov 28, 2017
e19a5c1
Travis: use JRUBY_OPTS="--debug"
olleolleolle Nov 28, 2017
e65bc45
Travis: drop oraclejdk-7
olleolleolle Nov 28, 2017
cbdea2a
Travis: update RubyGems
olleolleolle Nov 28, 2017
849e774
Travis: Try using rbx-3
olleolleolle Nov 28, 2017
75cd0dc
Travis: typo
olleolleolle Nov 28, 2017
5ac2707
CI against Ruby 2.2.8, 2.3.5, and 2.4.2
swamp09 Dec 5, 2017
2f6bc8e
Merge pull request #347 from swamp09/ci_against
simonoff Dec 6, 2017
ea98fa1
Merge branch 'master' into patch-2
olleolleolle Dec 7, 2017
2f6b47d
Merge pull request #346 from olleolleolle/patch-2
simonoff Dec 7, 2017
ae9d8fb
Merge pull request #345 from olleolleolle/patch-1
simonoff Dec 7, 2017
50b01d0
Travis: Workaround a rbx-3 autoload issue
olleolleolle Dec 9, 2017
6c2bddb
Travis: Typo
olleolleolle Dec 9, 2017
2f80da6
Merge pull request #350 from olleolleolle/patch-1
simonoff Jan 11, 2018
888ca88
Bump Ruby versions on Travis CI
tricknotes Jan 18, 2018
792266d
Added fix for calling 'close' on a StringIO-backed zip file, and specs
pnomolos Feb 21, 2018
ffd0b67
Fix regression caused by Rubocop cleanup
pnomolos Feb 23, 2018
c0a8ad9
Merge pull request #355 from pnomolos/pnomolos/fix-rubocop-breakage
simonoff Mar 30, 2018
bdd57e1
Merge pull request #352 from tricknotes/bump-ruby-versions
simonoff Mar 30, 2018
05af123
Merge pull request #353 from pnomolos/pnomolos/fix_stringio
simonoff Mar 30, 2018
c787d94
Handle stored files with general purpose bit 3 set
ameyer-pivotal Apr 3, 2018
7cd263e
Clean up use of file_name in Zip::File::initialize.
hainesr Apr 3, 2018
cfa9441
Handle passing an IO to Zip::File.new better.
hainesr Apr 3, 2018
0363393
No need to require stringio in Zip::File.open_buffer.
hainesr Apr 4, 2018
15ccc25
Fix File.open_buffer when no changes are made.
hainesr Apr 4, 2018
84c2089
Switch newly created StringIOs to binmode.
hainesr Apr 4, 2018
cd7bb14
Turn off all terminal output in all tests.
hainesr Apr 4, 2018
f073f64
Merge pull request #358 from idoru/handle-gpbit-3
simonoff Apr 23, 2018
8887b70
Merge pull request #361 from hainesr/quiet-tests
simonoff Apr 23, 2018
1673da7
Pass glob through from ZipFileNameMapper.
hainesr Apr 30, 2018
aa6284d
When globbing in ZipFSDir, take CWD into account.
hainesr Apr 30, 2018
6ea4a71
Merge pull request #363 from hainesr/fix-dir-glob
simonoff Aug 22, 2018
e89f6ac
Fix jruby version
simonoff Aug 22, 2018
6e0d231
Fix CVE-2018-1000544 absolute path traversal
bdewater Jul 1, 2018
8e78311
Fix CVE-2018-1000544 symlink path traversal
bdewater Jul 1, 2018
eda8862
Move jruby to allow failures matrix till crc uint 32 issues are resolved
vipulnsward Aug 26, 2018
cf71583
Move jruby to allow failures matrix till crc uint 32 issues are resolved
vipulnsward Aug 26, 2018
0586329
Trigger CI again
bdewater Aug 26, 2018
9c468f3
Add jwilk's path traversal tests
jdleesmiller Aug 26, 2018
ffebfa3
Consolidate path traversal tests
jdleesmiller Aug 26, 2018
3dd165b
Disable symlinks and check for path traversal
jdleesmiller Aug 26, 2018
8a1de58
Expand from root rather than current working directory
jdleesmiller Aug 26, 2018
ffb374c
Bump version to 2.0.0
jdleesmiller Aug 27, 2018
cf35774
Bump version to 1.3.0
jdleesmiller Aug 27, 2018
fd81bd5
Bump version to 1.2.2
jdleesmiller Aug 27, 2018
d07b13a
Merge pull request #376 from jdleesmiller/fix-cve-2018-1000544
simonoff Aug 31, 2018
afb1b79
remove some strange commas
mihyaeru21 Dec 3, 2018
9eac0d6
Add Changelog for 1.2.2 (#378)
Jan 23, 2019
a420323
require pathname where it is used
d235j Feb 10, 2019
74f0d4e
fixed errors caused by frozen-string-literal
taichi-ishitani Feb 27, 2019
0e6e626
fixed CI error
taichi-ishitani Feb 28, 2019
cc7b18e
Merge pull request #387 from aspiers/add-1.2.2-changelog
jdleesmiller Mar 21, 2019
6aecdf9
Merge pull request #388 from d235j/pathname-require
jdleesmiller Mar 21, 2019
3219d8e
Merge pull request #390 from taichi-ishitani/master
jdleesmiller Mar 21, 2019
bb34887
Merge pull request #385 from mihyaeru21/remove-commas
jdleesmiller Mar 21, 2019
d40921b
Merge pull request #375 from vipulnsward/allow-jruby-failure-on-crc
jdleesmiller Mar 21, 2019
fa4f7fb
Stop allowing jruby failures
jdleesmiller Mar 22, 2019
d2f0f02
Enable parallel build support for coveralls
jdleesmiller Mar 21, 2019
0f36838
Update ruby dependencies
jdleesmiller Mar 22, 2019
8ece5c9
Merge pull request #392 from rubyzip/update-ci
jdleesmiller Mar 22, 2019
ad15c3c
Allow tilde in zip entry names
jdleesmiller Mar 3, 2019
fb1c230
Bump version to 1.2.3
jdleesmiller Mar 22, 2019
a8609e1
CI: update to latest MRI, drop a setting
olleolleolle Mar 22, 2019
249775f
Merge pull request #394 from olleolleolle/patch-1
jdleesmiller Mar 22, 2019
ada408d
Add #394 to changelog
jdleesmiller Mar 22, 2019
ef516bd
Merge pull request #391 from jdleesmiller/fix-expand-path
jdleesmiller May 23, 2019
6f0b219
Merge pull request #393 from rubyzip/v1-2-3
jdleesmiller May 23, 2019
9d891f7
Fix link typo in changelog
jdleesmiller May 23, 2019
1e21121
Update example_recursive in README
jdleesmiller May 24, 2019
952950e
Update changelog for #397
jdleesmiller May 24, 2019
2ffbc3b
Merge pull request #397 from rubyzip/tidy-examples
jdleesmiller May 24, 2019
5152f6f
Put CI back to trusty
jdleesmiller Jul 7, 2019
b2573f6
Use rbx-4 in CI
jdleesmiller Jul 7, 2019
fc23db2
Update changelog for #399
jdleesmiller Jul 20, 2019
8dfc95d
Hold jruby at 9.1 on JDK 7
jdleesmiller Jul 20, 2019
ee6fb82
Merge pull request #399 from rubyzip/rbx-4
jdleesmiller Jul 20, 2019
7fbaf1e
Merge pull request #360 from hainesr/fix-open-buffer
jdleesmiller Sep 5, 2019
eeef507
Add test case based on #146
jdleesmiller Sep 5, 2019
9a41ce6
Add more explicit test for #280
jdleesmiller Sep 6, 2019
0d85cb6
Bump to 1.2.4
jdleesmiller Sep 6, 2019
72e7ca0
Add project metadata to the gemspec
orien Sep 12, 2019
09bb946
Merge pull request #402 from orien/gem-metadata
jdleesmiller Sep 13, 2019
ecb2776
Zip::File.add_stored() to add uncompressed files.
hainesr May 20, 2018
6619bf3
Merge pull request #366 from hainesr/add-stored
jdleesmiller Sep 15, 2019
93505ca
Check expected entry size in add_stored test
jdleesmiller Sep 15, 2019
94b7fa2
[ci skip] Update changelog
jdleesmiller Sep 15, 2019
4167f0c
Validate entry sizes when extracting
jdleesmiller Sep 12, 2019
7849f73
Default validate_entry_sizes to false for 1.3 release
jdleesmiller Sep 15, 2019
97cb6ae
Warn when an entry size is invalid
jdleesmiller Sep 18, 2019
74d4bec
Remove test files from gem
jdleesmiller Sep 18, 2019
35446f4
Drop old ruby and JDK versions from CI
jdleesmiller Sep 18, 2019
d65fe7b
Merge pull request #403 from rubyzip/check-size
jdleesmiller Sep 25, 2019
7c65e1e
Bump version to 1.3.0
jdleesmiller Sep 25, 2019
e79d9ea
Merge pull request #407 from rubyzip/v1-3-0
jdleesmiller Sep 25, 2019
3641a96
Merge pull request #405 from rubyzip/remove-test-files
jdleesmiller Sep 25, 2019
e1d9af6
Merge pull request #406 from rubyzip/bump-supported-ruby
jdleesmiller Sep 25, 2019
cb407b1
Bump version to 2.0.0
jdleesmiller Sep 25, 2019
2825898
Merge pull request #408 from rubyzip/v2-0-0
jdleesmiller Sep 25, 2019
506d557
StreamableStream now uses the OS temp directory.
hainesr Sep 27, 2019
e871842
Require 'tmpdir' only in the tests.
hainesr Sep 27, 2019
a9a313a
Merge pull request #411 from hainesr/tempfiles
jdleesmiller Oct 4, 2019
34d2074
Update changelog for #411
jdleesmiller Oct 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 5 additions & 12 deletions .gitignore
@@ -1,17 +1,10 @@
.idea
*.gem
test/5entry_copy.zip
test/cdirtest.bin
test/centralEntryHeader.bin
test/data/generated/
test/deflatertest.bin
test/dummy.txt
test/localEntryHeader.bin
test/okToDeleteMoved.txt
test/output.zip
test/test_putOnClosedStream.zip
test/zipWithDirs_copy.zip
.bundle
Gemfile.lock
+samples/*.zip
+samples/*.zip.*
+samples/*.zip.*
coverage
pkg/
.ruby-gemset
.ruby-version
6 changes: 6 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,6 @@
inherit_from:
- .rubocop_rubyzip.yml
AllCops:
TargetRubyVersion: 1.9
Style/MutableConstant:
Enabled: false # Because some existent code relies on mutable constant
137 changes: 137 additions & 0 deletions .rubocop_rubyzip.yml
@@ -0,0 +1,137 @@
# This configuration was generated by `rubocop --auto-gen-config`
# on 2015-06-08 10:22:52 +0300 using RuboCop version 0.32.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 13
Lint/HandleExceptions:
Enabled: false

# Offense count: 1
Lint/LiteralInCondition:
Enabled: false

# Offense count: 1
Lint/RescueException:
Enabled: false

# Offense count: 1
Lint/UselessComparison:
Enabled: false

# Offense count: 115
Metrics/AbcSize:
Max: 62

# Offense count: 12
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 562

# Offense count: 21
Metrics/CyclomaticComplexity:
Max: 14

# Offense count: 237
# Configuration parameters: AllowURI, URISchemes.
Metrics/LineLength:
Max: 236

# Offense count: 108
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 35

# Offense count: 2
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 10

# Offense count: 15
Metrics/PerceivedComplexity:
Max: 15

# Offense count: 8
Style/AccessorMethodName:
Enabled: false

# Offense count: 23
# Cop supports --auto-correct.
Style/Alias:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
Style/BlockDelimiters:
Enabled: false

# Offense count: 7
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassAndModuleChildren:
Enabled: false

# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/ClassCheck:
Enabled: false

# Offense count: 77
Style/Documentation:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Style/InfiniteLoop:
Enabled: false

# Offense count: 1
Style/ModuleFunction:
Enabled: false

# Offense count: 1
Style/MultilineBlockChain:
Enabled: false

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
Style/RegexpLiteral:
Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
Enabled: false

# Offense count: 79
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/SignalException:
Enabled: false

# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: MultiSpaceAllowedForOperators.
Style/SpaceAroundOperators:
Enabled: false

# Offense count: 30
# Cop supports --auto-correct.
Style/SpecialGlobalVars:
Enabled: false

# Offense count: 22
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
Style/SymbolProc:
Enabled: false

# Offense count: 151
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/VariableName:
Enabled: false
9 changes: 9 additions & 0 deletions .simplecov
@@ -0,0 +1,9 @@
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
])
SimpleCov.start do
add_filter '/test'
end
37 changes: 29 additions & 8 deletions .travis.yml
@@ -1,9 +1,30 @@
language: ruby
dist: trusty
cache: bundler
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
before_script: "sudo apt-get -y install zip unzip"
branches:
only:
- master
- 2.4
- 2.5
- 2.6
- ruby-head
matrix:
include:
- rvm: jruby-9.2
jdk: openjdk8
- rvm: jruby-head
jdk: openjdk8
- rvm: rbx-4
allow_failures:
- rvm: ruby-head
- rvm: rbx-4
- rvm: jruby-head
before_install:
- gem --version
before_script:
- echo `whereis zip`
- echo `whereis unzip`
env:
global:
- JRUBY_OPTS="--debug"
- COVERALLS_PARALLEL=true
notifications:
webhooks: https://coveralls.io/webhook