Commit Graph

743 Commits

Author SHA1 Message Date
James Williams 3b639b6c62 prevent tempfile path from being unlinked by garbage collection 2014-08-29 08:31:56 -06:00
Alexander Simonov 8ede42436e Merge pull request #181 from lolgear/master
markdown: recursive zipping example improvement
2014-08-18 16:04:59 +03:00
Lobanov Dmitry 1ac0aa7591 options description added 2014-08-18 14:58:28 +04:00
Lobanov Dmitry 84e6614483 another small improvement 2014-08-18 14:53:12 +04:00
Lobanov Dmitry 3f571839a5 small improvements with options in open zip file 2014-08-18 14:48:26 +04:00
Lobanov Dmitry 044435d927 markdown: improvements ( more complex example with recursive directories zipping ) 2014-08-18 14:40:31 +04:00
Alexander Simonov 7869cbaf9f Merge pull request #174 from hainesr/latest-minitest
Use the latest version of minitest.
2014-07-26 11:28:02 +03:00
Robert Haines d0054bda0b Use the latest version of minitest.
Now the real culprit of the random test failures has been fixed [1] we can use
the latest version of minitest.

[1] 96f84aee4c
2014-07-25 16:14:01 +01:00
Alexander Simonov 36c9f3b286 Merge pull request #172 from amco/master
`Zip.sort_entries` working for zip output
2014-07-24 22:03:33 +03:00
Jason King cf0a5fe386 `Zip.sort_entries` working for zip output 2014-07-24 11:39:37 -07:00
Jason King b859e9a50a Sorted `EntrySet#each` test 2014-07-24 11:39:37 -07:00
Jason King 96f84aee4c Fixes occasional failures of tests 2014-07-24 11:34:55 -07:00
Alexander Simonov 121a90b5ee Allow rbx to failure 2014-07-23 13:15:17 +03:00
Alexander Simonov d460b81745 Fix #171 2014-07-23 12:59:29 +03:00
Robert Haines 4b943fb263 Remove unused variable 'comment' in file_test.rb. 2014-07-23 12:59:14 +03:00
Robert Haines 9e642acdc9 Don't use deprecated File.exists? in tests. 2014-07-23 12:59:14 +03:00
Robert Haines fd1c500445 Clean up .gitignore file.
Loads of stuff in there that no longer needs ignoring.
2014-07-23 12:59:14 +03:00
Robert Haines cd2ac6c747 Clean up test/dummy.txt generated file.
Now force file generation into the test/data/generated directory where other
such files go so tests are cleaned up properly.
2014-07-23 12:59:14 +03:00
Robert Haines 4b4c10d9da Clean up and disambiguate extEntry generated file.
Now force file generation into the test/data/generated directory where other
such files go so tests are cleaned up properly.
2014-07-23 12:59:13 +03:00
Robert Haines 6eee8aafbf Clean up output_stream_test.rb generated files.
Now force file generation into the test/data/generated directory where other
such files go so tests are cleaned up properly.
2014-07-23 12:59:13 +03:00
Robert Haines 8100cf69a0 Clean up okToDeleteMoved.txt generated file.
Now force file generation into the test/data/generated directory where other
such files go so tests are cleaned up properly.
2014-07-23 12:59:13 +03:00
Robert Haines 58f24bbb94 Clean up emptyOutDir generated file.
Now force file generation into the test/data/generated directory where other
such files go so tests are cleaned up properly.
2014-07-23 12:59:13 +03:00
Robert Haines 656116c55a Clean up deflater_test.rb generated files.
Now force file generation into the test/data/generated directory where other
such files go so tests are cleaned up properly.
2014-07-23 12:59:13 +03:00
Robert Haines 2b6044530f Clean up local_entry_test.rb generated files.
Now force file generation into the test/data/generated directory where other
such files go so tests are cleaned up properly.
2014-07-23 12:59:13 +03:00
Robert Haines 9785b66a43 Update tests to use the minitest 5.x API.
MiniTest::Unit::TestCase -> MiniTest::Test
MiniTest::Unit.after_tests -> MiniTest.after_run
2014-07-23 12:59:13 +03:00
Robert Haines 982b528711 Move dependencies to the gemspec and lock down versions.
Development dependencies should go in the gemspec when using a Gemfile. Versions
are locked down to prevent failures creeping in as dependencies are updated (so
long as they play nice with semantic versioning). An example of this is the
minitest gem; see issue 164 (https://github.com/rubyzip/rubyzip/issues/164).
2014-07-23 12:59:13 +03:00
Alexander Simonov 2f424341bf Merge pull request #169 from hainesr/fix-travis-allow-fail
Fix Travis config so that ruby-head can actually fail.
2014-07-16 23:23:22 +03:00
Robert Haines fe74140d41 Fix Travis config so that ruby-head can actually fail.
The allow_failures set up needs to be in the matrix definition.
2014-07-16 14:24:04 +01:00
Alexander Simonov 2ef328b11b Version bump 2014-07-02 18:17:00 +03:00
Alexander Simonov 2fcdc3a3ea Revert "Return created zip file from Zip::File.open when supplied a block"
This reverts commit e3029d0b10.
2014-07-02 18:15:54 +03:00
Alexander Simonov 2cd56671fc Version bump 2014-07-02 14:11:04 +03:00
Alexander Simonov 62e0a87e49 Merge pull request #166 from layerssss/master
treat empty file as non-exists
2014-07-02 14:07:52 +03:00
Alexander Simonov a989e8c145 Revert "Speed up Deflater sysread speed when number_of_bytes is small and @output_buffer is large"
This reverts commit a800987a52.
2014-07-02 14:05:13 +03:00
Michael Yin fe1d4ade49 treat empty file as non-exists 2014-07-02 12:46:44 +08:00
Alexander Simonov 8959d447a2 Merge pull request #163 from hainesr/tests-in-gem
Add the tests to the gem as per rubyzip/rubyzip#52.
2014-07-01 22:47:24 +03:00
Robert Haines 217b278715 Add the pkg directory to .gitignore. 2014-06-22 12:57:31 +01:00
Robert Haines 1f1e49e060 Add the tests to the gem as per rubyzip/rubyzip#52.
The tests aren't that big and this will help those with a build-test-install
workflow.
2014-06-22 12:53:40 +01:00
Alexander Simonov fd5310aa6d Fix rbx build on travis 2014-06-21 18:24:44 +03:00
Alexander Simonov 09011eca6b Merge pull request #141 from zacstewart/master
Add InputStream#ungetc
2014-06-21 17:48:49 +03:00
Alexander Simonov 62908f4ff1 Merge pull request #162 from hainesr/run-unicode-tests
Actually run the unicode tests
2014-06-21 17:45:56 +03:00
Robert Haines d01b0cde12 Rename the unicode tests file so it actually runs. 2014-06-21 13:47:03 +01:00
Robert Haines 81d39ff7c3 Declare utf-8 encoding for the unicode tests.
Will fail without this as there are utf-8 characters in the file.
2014-06-21 13:43:14 +01:00
Alexander Simonov bb1e4362e5 Merge pull request #161 from tpickett66/file-open
Return created zip file from Zip::File.open when supplied a block
2014-06-17 19:49:33 +03:00
Tyler Pickett e3029d0b10 Return created zip file from Zip::File.open when supplied a block
This change is to match ruby zip’s behavior to core’s IO.open when
supplied a block.
2014-06-17 10:08:26 -06:00
Alexander Simonov 6b77562d32 Version bump 2014-05-30 20:12:33 +03:00
Alexander Simonov c76e1a51ef Add license info 2014-05-30 20:09:02 +03:00
Alexander Simonov c61c8657da Merge pull request #156 from mehmetc/write_to_zip_output_stream_fix
Zip::Entry::DEFLATED is forced on every file
2014-04-23 10:15:38 +03:00
Mehmet Celik b5c5b6803e Zip::Entry::DEFLATED was forced on every file 2014-04-23 08:42:09 +02:00
Alexander Simonov 4761fab6ba Merge pull request #155 from mrloop/remove_empty_append
Don't send empty string to stream
2014-04-17 20:42:02 +03:00
mrloop 9eb35ca0c4 Don't send empty string to stream
Unneeded method call removed.
This was causing an issue in rails 4 and zipline
https://github.com/fringd/zipline/pull/10
2014-04-17 13:23:12 +01:00