Commit graph

92 commits

Author SHA1 Message Date
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
Andrej Mitrovic
4bdd5f2c6a Merge pull request #1870 from MartinNowak/fix1832
fix Issue 1832 - rebuilding ZipArchive looses data
2014-02-16 21:01:54 +01:00
SHOO
c42bb8f593 Fix Issue 12003 - std\zip.d(421): Deprecation 2014-01-26 23:13:49 +09:00
Martin Nowak
1a3f9ab273 fix Issue 1832 - rebuilding ZipArchive looses data
- Already need to set compressedData slice when reading
  the directory index not only during expand.
2014-01-18 23:29:18 +01:00
David Nadlinger
9965173d33 Remove duplicate ArchiveMember.madeVersion() property.
This fixes a build-breaking issue introduced by
9bcb99fee1.
2014-01-15 22:49:49 +01:00
AndrewEdwards
9bcb99fee1 Merge branch '2.065'
Conflicts:
	posix.mak
2014-01-15 13:06:42 -05:00
Johannes Pfau
0fe597019b Don't do unaligned accesses 2014-01-14 21:00:28 +01:00
Martin Nowak
a087fcb2c3 fix Issue 11831 - std.zip no longer allows setting madeVersion field
- add deprecated ref accessor
2014-01-02 18:34:30 +01:00
Martin Nowak
eac5ec14d2 fix Issue 11831 - std.zip no longer allows setting madeVersion field
- add deprecated ref accessor
2013-12-28 02:55:28 +01:00
Martin Nowak
c445f1c288 Merge pull request #1766 from jmdavis/deprecations
Move various deprecations along.

Conflicts:
    std/algorithm.d
    std/zip.d
2013-12-19 23:33:47 +01:00
Martin Nowak
6ceef71172 Revert "Merge pull request #1751 from dawgfoto/std_zip"
This reverts commit 67933fda95.
2013-12-19 19:05:53 +01:00
monarch dodra
67933fda95 Merge pull request #1751 from dawgfoto/std_zip
[install,regression] fix Issue 11692 - can't set file attributes for std.zip.ArchiveMember
2013-12-19 09:56:16 -05:00
monarch dodra
11f3b0f721 Merge pull request #1775 from MartinNowak/std_zip3
fix adding an ArchiveMember to another ZipArchive
2013-12-16 05:22:29 -08:00
monarch dodra
afc6b1a5ee Merge pull request #1774 from MartinNowak/std_zip2
fixup deprecation of externalAttributes
2013-12-15 00:52:35 -08:00