Commit graph

105 commits

Author SHA1 Message Date
The Dlang Bot
bfc34bc5eb
Merge pull request #7201 from crocopaw/zip3
std.zip: Replace magic constants by constants named after specs
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-10-05 14:33:02 +02:00
Berni
c14c203e9d Add data structure for detecting overlapping chunks. 2019-09-28 15:03:38 +02:00
Berni
e82b773fb0 Replace magic constants by constants named after specs 2019-09-27 17:49:16 +02:00
Berni
9f816b7ce6 Update and correct main documentation 2019-09-26 16:37:52 +02:00
Berni
250db069ef Remove posix only unittest relying on presence of unzip untility. 2019-09-26 11:54:00 +02:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Walter Bright
33cceac7ac switch Digital Mars copyright to D Language Foundation 2018-09-05 13:49:46 -07:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Nathan Sashihara
8ae499e963 zip & zlib: don't zero-fill buffers before writing to them 2018-04-24 21:00:16 -04:00
Andrei-Cristian VASILE (87585)
0dc7ea22b0 Fix Issue 18452 - std.zip has size limit of 2 GB 2018-03-31 14:20:18 +03:00
Jack Stouffer
a67d667d8b Work On Issue 18184 - std.zip should be usable in @safe 2018-03-27 13:51:03 -04:00
Sebastian Wilzbach
2591b61b4f Start removing std.{json,zip,zlib,algorithm.mutation}
from the assert_without_msg blacklist
2017-12-01 09:28:05 +01:00
RazvanN7
6b15175610 Fix Issue 2137 - Data not compressed on fly when adding to zip archive 2017-08-10 10:23:11 +03:00
Jack Stouffer
20d40a954c Switched package-wide datetime imports to new sub-packages 2017-06-30 13:51:53 -04:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
2070d867dd Sort multiple packages within one line 2017-06-12 08:18:25 +02:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Jack Stouffer
4ce5d44dbb Use underscores for number literals with five or more digits 2017-02-23 09:45:49 -05:00
Sebastian Wilzbach
425ab667a3 Automatically set the range style from a..b -> a .. b
Commands:

sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Jack Stouffer
67d44e4cdc Remove package wide std.algorithm imports from Phobos 2016-09-22 08:36:14 +01:00
dhasenan
31f9a9e389 std.zip: tighter imports, more repeatable test 2016-07-27 15:06:20 +00:00
dhasenan
d10f4f2872 add standard method attributes 2016-07-22 19:09:31 +00:00
dhasenan
0984c5064b fix dscanner warnings 2016-07-22 15:05:26 +00:00
dhasenan
d104bd99d7 Allow specifying zip archive member order.
Fixes https://issues.dlang.org/show_bug.cgi?id=16310
2016-07-22 05:52:21 +00:00
Jack Stouffer
f693f91a89 Removed unused variables from std.zip 2016-07-12 10:10:13 -04:00
Atila Neves
5c4b0cbea0 Add @safe and @system to std.zip unit tests 2016-07-01 10:49:27 +02:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Bastiaan Veelo
0fa2048118 With underscore per request (@aG0aep6G). 2016-06-06 01:04:17 +02:00
Bastiaan Veelo
d8d2f3fe75 Fix bad host.
LINK2 is OK for external links, right?
2016-06-06 00:34:29 +02:00
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
anonymous
764caefa36 XREF -> REF (sed)
Done by:

(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
    's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Joakim
d965b1aa64 Fix Android regressions: make sure all tests don't use the local directory and no unzip 2016-05-16 21:57:17 +05:30
Martin Nowak
ce2ac192c9 fix incorrect imports/fqn usages
- mostly of the form `import a.b : sym; a.b.sym();`, which is wrong b/c
  selective imports do not add the module to the current scope
2016-02-20 14:41:44 +01:00
Walter Bright
8e6faa560f fix problems that prevent implementing import shadowing protection 2016-02-11 22:38:53 -08:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
Daniel Murphy
d9ae5f4871 Merge pull request #3605 from jmdavis/zip
Port std.zip tests from the dmd test suite to std.zip.
2015-08-31 17:49:10 +10:00
Jonathan M Davis
eaf7f3075d Port std.zip tests from the dmd test suite to std.zip.
For whatever reason, the dmd test suite has tests for std.zip, though
for the most part, they seem to just run it without actually checking
the results, making them of questionable value. But this commit ports
them to std.zip (to remove a Phobos dependency in the dmd test suite)
and attempts to make it so that they actually check the results. So, the
tests are not identical by any means, but they're similar. Perhaps the
most significant test is the one that tests a file that's written with
std.zip against the unzip utility, since that's testing against
something that we didn't write.
2015-08-30 16:42:53 -07:00
Jonathan M Davis
7b4abd0aa7 Move deprecations along. 2015-08-29 17:01:23 -07:00
David Eagen
da33d8b0ab Document how to use std.zip to create a zip file. 2015-04-07 23:54:03 -05:00
Martin Nowak
f6a1ca8932 add introductory example to std.zip 2015-04-01 00:12:46 +02:00
rsw0x
71f430790e Update zip.d
These bugs are marked as FIXED.
2015-02-13 20:11:05 -05:00
k-hara
611a9a1b9b fix property enforcement 2015-02-10 01:00:36 +09:00
k-hara
e7b3d834d7 detab and remove trailing whitespaces 2015-02-10 00:56:40 +09:00
fgda
8ef18e640c Expanded the unittest to test if packing and unpacking produces the original, quite random data 2015-01-27 10:27:12 +01:00
fgda
8cc228c4e9 Fix Issue 2138 - Allow more than 65535 files in Zip archives
Fixed by adding support for reading and writing Zip64 archives
2015-01-26 20:34:45 +01:00
Ilya Yaroshenko
f807525143 std.zip: clean imports 2014-11-14 17:21:31 +03:00
Geod24
0fb95b8c27 Usage of WEB macro for License everywhere 2014-10-15 11:30:42 +02:00