vanicat / hubic-swift

A wraper for using swift with https://hubic.com
5 stars 2 forks source link

Remove xdg-user-dirs dependency? #5

Open C-Duv opened 10 years ago

C-Duv commented 10 years ago

As xdg-user-dirs package is not installed on my server, when trying to run ./hubic-swift list default, I get the following error:

./hubic-swift:42:in ``': No such file or directory - xdg-user-dir RUNTIME (Errno::ENOENT)
        from ./hubic-swift:42:in `xdg_runtime'
        from ./hubic-swift:45:in `<main>'

Using Debian 7 and Ruby v1.9.3.

vanicat commented 10 years ago

You could easily install xdg-user-dir in a Debian 7 (sudo apt-get install xdg-user-dirs). I could try to not use it, but it simpler with it.

C-Duv commented 10 years ago

I know I could install it. But for storing configuration in a file (only goal of it: correct me if I'm wrong) I find it a bit too much and was only advising not to create unnecessary dependency.

szepeviktor commented 10 years ago

"Easy for the dev but pain for the user."