jackfranklin / pulldown

The minimal JavaScript package manager.
175 stars 7 forks source link

Can't download raw URLs #69

Closed jackfranklin closed 11 years ago

jackfranklin commented 11 years ago
pulldown http://micah.cowan.name/projects/promptjobs/prompt-jobs.sh
-> http://micah.cowan.name/projects/promptjobs/prompt-jobs.sh downloaded to ./http://micah.cowan.name/projects/promptjobs/prompt-jobs.sh.js

This is a regression that obviously crept in during the move over to a CLI.

Also, it adds .js on the end which it shouldn't.

jackfranklin commented 11 years ago

I added in an ensureEndsInJs method to the CLI, and that's what's doing it.

There was obviously a reason I did it at the time, but I'm unsure what it was.

jackfranklin commented 11 years ago

https://github.com/jackfranklin/pulldown/blob/master/bin/cli.js#L51

jackfranklin commented 11 years ago

Fixed https://github.com/jackfranklin/pulldown/commit/2c91f69cd82c20b4692a5c6127f61e40dde1ed81