Commit Graph

121 Commits

Author SHA1 Message Date
Adam Stankiewicz
12258324d3 More code style rules to enforce 2015-11-30 11:06:57 +01:00
AnthonyBobsin
19fc84007d Implements jscs to enforce a newly created style guide for the repo. Uses jscs to fix some minor style guide warnings. 2015-11-29 16:22:58 -05:00
Adam Stankiewicz
ca0a36abcf Make downloader work on all platforms, fixes #2050 2015-11-27 13:45:19 +01:00
Adam Stankiewicz
4c6fdc905f Revert "Fix tests on Windows (cleanup of downloaded files)"
This reverts commit bb7c02b07b.
2015-11-27 00:33:15 +01:00
Adam Stankiewicz
bb7c02b07b Fix tests on Windows (cleanup of downloaded files) 2015-11-26 18:06:26 +01:00
Adam Stankiewicz
ce15df27ca Properly destroy read stream for downloads 2015-11-17 12:13:26 +01:00
Piotr Wielgolaski
51a986d0d4 add test for download.js and fix download behavior to not leave temporary files in case of error 2015-11-07 18:26:48 +01:00
Piotr Wielgolaski
931b0a8905 fix passing options to request
options from download need to be pass to request library that make HTTP
request

Also when there is http error stream need to be closed otherwise there
is issue reported that unlink operation is not permitted on Windows
2015-10-24 16:52:22 +02:00
Patrick Kettner
0f790f4293 add User-Agent to downloadd 2015-10-20 13:51:50 -07:00
Adam Stankiewicz
ff0f2a8f83 Use stat instead of lstat for checking if something is directory, fixes #1951 2015-10-16 11:17:03 +02:00
Adam Stankiewicz
0bb1536c99 Better manage file handles, properly close streams 2015-10-14 19:31:53 +02:00
Adam Stankiewicz
64eb7d598a Use lstat instead of stat for rimraf util 2015-10-14 17:24:54 +02:00
Adam Stankiewicz
df8e5a16be Fix readdir call on Windows
Sometimes it return ENOENT instead of ENODIR for normal files.

This broke code paths in few places. Also, see:
https://github.com/isaacs/chmodr/pull/8
2015-10-14 16:09:38 +02:00
Adam Stankiewicz
3ce2dd3989 Replace all fs with graceful-fs 2015-10-14 14:31:13 +02:00
Adam Stankiewicz
99105fbb57 Try chmod 777 + rimraf as fallback on rimraf in all places 2015-10-14 12:50:41 +02:00
Adam Stankiewicz
44a5260050 test: Clear analytics config for test environment 2015-09-27 12:22:40 +02:00
Sindre Sorhus
490f63a838 modularize the MD5 util function 2015-09-03 11:00:38 +07:00
Adam Stankiewicz
182d92f9bd test: Fix SvnResolver tests on all platforms 2015-02-28 23:56:17 -08:00
Sindre Sorhus
6a96815c44 bump insight 2015-01-12 10:04:25 +08:00
Adam Stankiewicz
58a7de3136 Prevent loading cli module in headless mode 2015-01-10 05:53:21 +01:00
Adam Stankiewicz
c00cadb37a [fix] Ensure extracted files are readable, update tar-fs 2014-09-28 18:21:24 +02:00
Ray Shan
4656021902 fix broken analytics tracking introduced in #1507 2014-09-26 22:33:43 +02:00
Adam Stankiewicz
dfd2c7a3d2 Add tests to analytics and fix them 2014-09-12 21:28:44 +02:00
John Schulz
6637762aec "analytics" value in \.bowerrc\ removes need to prompt user 2014-09-12 00:26:41 +02:00
Burak Yigit Kaya
623f6e9542 Use tar-fs instead of tar for faster TAR extraction 2014-09-07 19:29:37 +02:00
Ben Schwarz
254aba0995 Back concurrency down to 5 (from 50!) 2014-08-28 20:28:22 +10:00
MadLux
794744d5a3 Added .zip MIME type (e.g. the default served by Windows/IIS) 2014-07-30 11:41:21 +02:00
Adam Stankiewicz
232be333ad Add tests for removeIgnores utility 2014-07-02 11:37:56 +01:00
Martin Hansen
b8df18481f Ignore does now not apply to any file in main #547 2014-06-20 19:48:00 +02:00
Adam Stankiewicz
2f02e49716 Always ignore bower.json as said in spec 2014-06-08 18:46:39 +02:00
Adam Stankiewicz
74d568b1e7 Improve noninteractive loading performance 2x, fixes #1221 2014-04-12 21:11:17 +02:00
Nick Schonning
dfae97a8d7 Don't turn on analytics on CI unless explicit 2014-03-11 16:51:41 -04:00
Sindre Sorhus
8442373be9 use is-root instead of sudo-block
since sudo-block isn't really used anyways
2014-02-06 19:13:55 +01:00
Luke Fender
c3e6199ecf fix error message 2014-02-04 14:15:54 -05:00
Adam Stankiewicz
40dbb0ffaf Ignore prerelease versions if possible, fixes #1017 2013-12-31 15:43:36 +01:00
Pascal Hartig
e84f71cd37 Basic usage tracking with insight
The user is prompted with a question whether he would like to provide usage data
    on the first start, when run in interactive mode. The current implementation
    tracks calls to `install`, `info`, `search` and `uninstall` when run with at
    least one parameter.

    Fixes #260

Closes gh-796.
2013-12-05 22:37:32 +01:00
Mat Scales
247b7ee1ab Let's use a library instead of rolling our own solution 2013-11-28 13:09:26 +00:00
Mat Scales
58eafce947 Slightly reworked the code for readability 2013-11-27 10:06:51 +00:00
Mat Scales
ed25cf9d23 A queueing system for the cmd module to limit the number of open handles. 2013-11-26 22:26:58 +00:00
Gabriel Herrera
84c693ad22 Added config fallback for allow-root check 2013-11-19 16:43:15 -05:00
Mat Scales
d3991ee672 Close GH-900: Merge all the decompress-zip work and add small improvements. Fixes #873, Fixes #896 2013-10-07 00:29:29 +01:00
André Cruz
cc9c440614 Give priority to mime type header, except for octet-stream. 2013-09-29 22:50:06 +01:00
André Cruz
b8b03c88e4 Close GH-844: Ensure that the whole file was downloaded.. Fixes #792, Fixes #824, Fixes #830 2013-09-01 22:25:20 +01:00
André Cruz
3d84bcc7ad Fix ignore of nested folders, fixes #814. 2013-08-23 13:57:15 +01:00
André Cruz
2eea214a42 Fix linked dependencies in windows, fixes #813. 2013-08-22 18:45:34 +01:00
André Cruz
13e2514830 Simplify. 2013-08-19 19:26:44 +01:00
André Cruz
1b505cc0e6 Fix maxSatisfying throwing on invalid versions, fixes #800 2013-08-19 19:20:29 +01:00
Andre Cruz
d42a564de8 Small tweaks to util/semver. 2013-08-18 13:16:35 +01:00
Andre Cruz
71d083a552 Use graceful-fs. 2013-08-18 13:15:12 +01:00
Andre Cruz
72e6e61970 Close GH-795: Ignore file symlinks when reading project, fixes #791 and #783.. Fixes #791, Fixes #783 2013-08-17 22:39:59 +01:00