Oleksandr Simonov
57c3772d94
Merge pull request #325 from aeroastro/feature/tempfile-directory
...
Save temporary files to a temporary directory
2017-11-08 20:38:22 +02:00
Oleksandr Simonov
4ecb5b9adb
Merge pull request #326 from aeroastro/feature/readme-improvement
...
Make naming on README more consistent
2017-11-08 20:37:06 +02:00
Oleksandr Simonov
1039b28e35
Merge pull request #340 from alsor/force-entry-names-encoding-option
...
add option to force entry names encoding
2017-11-08 20:36:23 +02:00
Alexey Sorokin
deb6616c5f
Merge branch 'master' into force-entry-names-encoding-option
2017-10-18 19:24:58 +03:00
Alexey Sorokin
a9f020c0a0
add option to force entry names encoding
...
if you need to work with existing zip files which contain names with
non-ascii characters then you can specify this option.
Without this option find_entry will not work properly
2017-10-18 18:20:56 +03:00
Takumasa Ochi
3c0de6cd08
Make naming on README more consistent
2017-08-07 19:58:04 +09:00
Alexander Simonov
fc83680f47
Merge pull request #321 from gaurish/patch-1
...
File.join() is our friend for joining paths
2017-08-02 17:02:10 +03:00
Alexander Simonov
41fcf0a26e
Merge pull request #332 from aeroastro/feature/rubocop-update
...
Update RuboCop settings and apply automatic corrections
2017-08-02 17:01:35 +03:00
Takumasa Ochi
cf91112b57
Apply automatic correction by rubocop
2017-06-29 11:57:12 +09:00
Takumasa Ochi
9bfc52b2b7
Disable Style/MutableConstant because existent code relies on it
2017-06-29 11:56:31 +09:00
Takumasa Ochi
d80e7203d8
Add rubocop dependency and correct settings
2017-06-28 11:36:14 +09:00
Takumasa Ochi
258ef02914
Save temporary files to a temporary directory
2017-06-27 09:17:55 +09:00
Gaurish Sharma
722ee6efa9
File.join() is our friend for joining paths
2017-04-03 14:15:31 -05:00
Alexander Simonov
98f4f2ed9b
Version bump
2017-02-08 13:50:16 +02:00
Alexander Simonov
ce4208fdec
Fix #315 and resolve relative path vulnerability
2017-02-08 13:43:14 +02:00
Alexander Simonov
df8dfbcff3
Merge pull request #314 from mwlang/bugfix/open_buffer_without_block
...
allows open_buffer to work without a given block
2017-02-08 13:16:06 +02:00
Alexander Simonov
28c5dd5ba8
Merge pull request #313 from koic/fix_deprecated_warnings
...
Fix deprecated warnings
2017-02-04 23:23:43 +02:00
Alexander Simonov
1dfce0543b
Merge pull request #312 from koic/use_latest_rubies
...
Use the latest rubies on Travis
2017-02-04 23:22:58 +02:00
mwlang
14b8fed18c
allows open_buffer to work without a given block
2017-01-16 13:24:22 -06:00
Koichi ITO
960414aff0
Fix warnings: `constant ::Fixnum is deprecated` in Ruby 2.4
2017-01-08 16:41:23 +09:00
Koichi ITO
7c250c0127
Fix warning: `::[] is deprecated. Use ::new instead.`
2017-01-08 15:37:41 +09:00
Koichi ITO
33d0949902
Fix warnings: `Use assert_nil if expecting nil`
2017-01-08 15:31:51 +09:00
Koichi ITO
4a7ec6a865
Use the latest rubies on Travis
2017-01-08 14:56:45 +09:00
Alexander Simonov
f34c1d972d
Merge pull request #289 from Meatballs1/fix_readme_dir_recursion
...
Replace puts with write in README.md for dir recursion
2016-12-21 10:37:47 +02:00
Alexander Simonov
c12b8b3553
Merge pull request #308 from dogatana/support_cp932
...
remove tr to support cp932 encoding
2016-12-21 10:37:25 +02:00
Alexander Simonov
8d1808f50a
Merge pull request #306 from deivid-rodriguez/fix_build
...
Revert "Cleanup after ourselves"
2016-12-21 07:03:56 +02:00
dogatana
a4e3b55bb2
remove tr to support cp932 encoding
2016-12-07 22:35:33 +09:00
David Rodríguez
f157dfc1b6
Revert "Cleanup after ourselves"
...
This reverts commit 6597af1257 since
7caab1f already fixed the same thing. It should fix the build.
2016-11-10 08:23:34 -02:00
Alexander Simonov
812609111c
Merge pull request #297 from EagleSHCN/patch-1
...
example_recursive.rb lost some special characters (0x1a at file end) …
2016-11-09 22:22:16 +02:00
Alexander Simonov
a0cf673186
Merge pull request #300 from hainesr/fix-create-perms
...
Fix permissions on new zip files (#294 )
2016-11-09 22:19:04 +02:00
Alexander Simonov
82fa57cc83
Merge pull request #303 from deivid-rodriguez/extended_globbing
...
Extended globbing
2016-11-09 22:17:17 +02:00
Alexander Simonov
fdc7a50e89
Merge pull request #298 from hainesr/cleanup-post-tests
...
Clean up empty.zip after running tests.
2016-11-09 22:16:24 +02:00
Alexander Simonov
2569a655fe
Merge pull request #283 from entwanderer/master
...
Fixing outdated/incorrect example code in Readme and some typos
2016-11-09 22:15:38 +02:00
Alexander Simonov
bf8ffa46c0
Merge pull request #304 from knut2/internal_file_attributes
...
Update entry.rb
2016-11-09 22:15:12 +02:00
Alexander Simonov
80af58eb40
Merge pull request #301 from hainesr/update-travis
...
Update travis config
2016-11-09 22:13:57 +02:00
knut2
579e78f1ef
Update entry.rb
...
Add accessor to @internal_file_attributes
See http://stackoverflow.com/questions/39800771/hot-to-set-binary-flag-in-zip-file-with-rubyzip
2016-10-10 23:04:36 +02:00
David Rodríguez
9c475f5160
Add extended globbing support
2016-10-08 19:32:53 -03:00
David Rodríguez
6597af1257
Cleanup after ourselves
...
Otherwise tests leave an empty file there.
2016-10-08 19:23:45 -03:00
David Rodríguez
366a1d8dca
Fix test failure when running a single test file
...
```
bundle exec rake TEST=test/file_test.rb
```
was giving
```
1) Error:
ZipFileTest#test_get_output_stream:
NameError: uninitialized constant ZipFileTest::ZipEntryTest
.../test/file_test.rb:59:in `block in test_get_output_stream'
.../lib/zip/file.rb:102:in `open'
.../test/file_test.rb:45:in `test_get_output_stream'
```
2016-10-08 19:21:30 -03:00
Robert Haines
c00d767533
Fix rubocop offence caused by temp files changes.
2016-09-05 17:34:12 +01:00
Robert Haines
fc23f68f77
Refactor the create logic in Zip::File.
...
Make the internal @create varible more consistent and actually match the
documentation.
Zip::File::CREATE is now true, rather than 1.
A new test is added to check if passing 1 in still works to ensure backwards
compatibility.
2016-09-05 15:16:57 +01:00
Robert Haines
63ed0d970b
Refactor the code which manages temp files.
...
Combine the creation of the temporary filename with the writing to it.
2016-09-05 15:07:18 +01:00
Robert Haines
331c4bb070
No need to allow jruby builds to fail any more.
2016-09-02 12:04:47 +01:00
Robert Haines
dee6fbe8e1
Try latest jruby.
2016-09-02 11:49:12 +01:00
Robert Haines
e8def12e87
Allow Travis jruby tests to fail, for now.
...
It's not ideal to have these tests being allowed to fail but while there are
issues with jruby itself I think it's best to have the Travis tests pass.
Jruby should be OK from the next release given that jruby-head passes at the
moment.
2016-09-01 19:50:24 +01:00
Robert Haines
36dc49bd41
Test with Java 8 in Travis.
2016-09-01 19:36:56 +01:00
Robert Haines
b2e65caa66
Update Travis jrubies to latest stable.
2016-09-01 19:36:03 +01:00
Robert Haines
3b75ffe266
Add jruby-head to Travis but allow failures.
2016-09-01 19:24:13 +01:00
Robert Haines
40eca74cdb
Update Travis rubies to latest in each branch.
...
Rubies available are detailed here: http://rubies.travis-ci.org/
2016-09-01 19:19:08 +01:00
Robert Haines
936604453f
Test ruby 2.3.1 with Travis.
2016-09-01 19:16:10 +01:00