Commit Graph

35 Commits

Author SHA1 Message Date
David Humphrey (:humph) david.humphrey@senecacollege.ca bfe4385a83 Fix #633: fix test failure in coverage run 2018-12-20 19:00:39 -05:00
Dmytro 353290a08f Adding support for promises. Closes #379, #382 (#380)
* adding promise-based filedescriptor

* fixing promisify dep

* promisifying shell

* deprecating 'exists' method on fs

* adding docs

* fixing docs

* removing redundant code.
2018-08-27 19:50:41 -04:00
David Humphrey ed11b01234 Fix lint issues in shell.js 2018-07-27 11:12:06 -04:00
David Humphrey a900d8df6d Add eslint --fix scripts, fix first round of lint errors 2018-07-15 13:25:35 -04:00
David Humphrey 0aaaeacd1a Update sh.ls and stats to remove bits I don't need, add what I do. 2018-07-14 10:02:29 -04:00
David Humphrey 93633da622 All basic operations now working in Linux 9P mounted fs 2018-07-14 10:02:29 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 21b602ef66 Fix #329 - Implement Shell.find() 2014-11-28 15:05:47 -05:00
Ali Al Dallal adf039943d Remove wget to make Filer work in node.js 2014-09-09 09:30:03 -04:00
Alan K 4126321996 remove zip/unzip from shell 2014-09-02 15:48:54 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca ee9ea82cfb Fix #261 - include path in errors 2014-08-18 19:13:50 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 2114f65f09 Deal with all other uses of this.cwd etc and convert to pwd() on current shell instance. 2014-07-28 18:46:50 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 5b785037f0 Fix #247 - sh.cwd() not updating cwd on success, with test. 2014-07-28 18:14:59 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca e063edc6fc Expanded test for wide dirs, fix, switch to async.eachSeries everywhere 2014-07-21 15:08:39 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 939d015e6d All tests passing, replaced zlib.js with jszip, upstream fixes to browser-request + jszip for Buffers 2014-06-06 21:29:09 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca c8dcd2d14a Switch to build-time check vs run-time for request module in browserify 2014-06-06 11:41:26 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca fa65a34905 Get Buffer use fixed, expose Buffer via Filer.Buffer, most tests passing. 2014-06-06 11:14:52 -04:00
Kieran Sedgwick bb23e902d2 Closes #204 - Move network.js
The network module (network.js) logically fits better in /shell since it's the only part of filer that uses it.
2014-05-29 13:00:20 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 375719b49b Refactor module system from AMD to CommonJS 2014-05-23 14:14:06 -04:00
Kieran Sedgwick 0bbaf5ff93 Added and fixed unit tests
Aside from testing our new module (network.js), we also had to add logic that would test Filer appropriately in both the node and browser environments.
2014-05-22 23:26:19 -04:00
Kieran Sedgwick 9f33d8503e Swapped out XMLHttpRequest for a custom module
We made a module to encapsulate the logic that chooses the nodejs or browser dependency that actually downloads a file when the module is used.
2014-05-22 23:04:08 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 411d6b2a9c Docs and update arg names to match docs 2014-05-14 13:31:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca af4a004435 All zip/unzip tests passing 2014-05-14 13:31:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 35b2fe46c6 Complex trees can be unzipped 2014-05-14 13:31:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 16c64d1ca2 Switched to zlib.js, all tests passing 2014-05-14 13:31:53 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca c9cb4b4bdb Work thus far, still not right 2014-05-14 13:31:52 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca fe4b1e5c0e Adding sh.zip() but still failing a test 2014-05-14 13:31:52 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 3411ba2dd3 First working end-to-end unzip test passing 2014-05-14 13:31:52 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 0e213077e7 Add sh.wget() for downloading files into the fs, with tests and docs 2014-05-14 13:31:52 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 1b12f44a02 Allow query string and hashes in wget filenames and add tests. 2014-05-14 13:24:54 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 9725f0a412 Improve automatic filename extraction for wget 2014-05-14 13:24:54 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 60a9dc2470 Beef up XHR code in sh.wget(), still failing 2 in PhantomJS due to not having web server 2014-05-14 13:24:54 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca 2aa46493fa Add sh.wget() for downloading files into the fs, with tests and docs 2014-05-14 13:24:53 -04:00
Petr Bouianov febba4c8ba Tests that expect errors check error codes. Fixes issue78 2014-04-17 11:53:55 -04:00
Petr Bouianov ea88e78df2 Fixed issues as per pull request conversation 2014-03-30 00:13:25 -04:00
David Humphrey (:humph) david.humphrey@senecacollege.ca bf22cad14d Move shell.js and environment.js to shell/ 2014-03-18 16:41:31 -04:00