Robert Haines
33dce510a6
Remove `Entry#dirty=` as 'dirtyness' is now monitored internally.
...
Had to round out some of the accessors that mark an `Entry` as dirty.
2022-06-20 17:18:20 +01:00
Robert Haines
e0e754ae65
Switch how the `Entry::dirty` flag is used.
...
Set it to true by default - because a new `Entry` is dirty by
definition, having not been written yet. Then make sure that an `Entry`
that is created by reading from a zip file is set as not dirty.
2022-06-20 17:18:19 +01:00
Robert Haines
54b7762c8f
Don't silently alter zip files opened with `Zip::sort_entries`.
...
Fixes #329 .
2021-06-30 23:18:59 +01:00
Robert Haines
ce08405c1a
Fix (most) Style/MutableConstant cop errors.
...
The last one, in `ExtraField` needs a sizeable refactor to fix.
2021-05-25 21:50:06 +01:00
Robert Haines
e10badf68e
Fix Style/FrozenStringLiteralComment cop.
2021-05-25 21:24:50 +01:00
Robert Haines
e4ceedaa58
Use keyword arguments for the `Entry` initializer.
...
This greatly simplifies the creation of `Entry` objects when only a
couple of fields are not set to their defaults, while at the same time
allowing an `Entry` to be fully configured at creation time if
appropriate.
This fundamentally changes the `Entry` API and means that some
convenience methods in `OutputStream` and `File` have needed to be
refactored.
2020-08-31 17:48:08 +01:00
Robert Haines
e6f414f539
Fix Naming/VariableName cop in the tests.
2020-02-29 18:11:52 +00:00
Koichi ITO
33d0949902
Fix warnings: `Use assert_nil if expecting nil`
2017-01-08 15:31:51 +09:00
David Rodríguez
9c475f5160
Add extended globbing support
2016-10-08 19:32:53 -03:00
Pavel Lobashov
ce7e01a206
fix rubocop Style/CommentIndentation cop
2015-03-24 19:31:28 +03:00
Pavel.Lobashov
b13fafb7e8
fix rubocop Style/StringLiterals cop
2015-03-22 19:54:44 +03:00
Pavel Lobashov
da863e4b55
Merge branch 'master' into rubocop_fixes
...
Conflicts:
lib/zip/entry.rb
2015-03-21 11:37:28 +03:00
Pavel Lobashov
b93ef1266f
fix rubocop Style/StringLiterals cop
2015-03-21 11:27:44 +03:00
Pavel Lobashov
70dd0d0d59
fix rubocop Style/IndentArray cop
2015-03-21 11:25:58 +03:00
weshatheleopard
cfc38b30a1
PROPER case insensitivity handling
2015-03-08 13:38:57 -05:00
Sergey Konotopov
61a4435cc3
Case insensitivity option for #find_entry
2015-02-20 01:20:07 +03: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
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
Alexander Simonov
58f08ca0e1
Split all tests to small files. Move to minitest
2014-01-20 23:31:06 +02:00