janfri / mini_exiftool

This library is a wrapper for the Exiftool command-line application (https://exiftool.org) written by Phil Harvey. It provides the full power of Exiftool to Ruby: reading and writing of EXIF-data, IPTC-data and XMP-data. Branch master is for actual development and branch compatibility-version is for compatibility with Ruby 1.8 and exiftool versions prior 7.65.
GNU Lesser General Public License v2.1
213 stars 52 forks source link

Added ability to define custom pstore_file_path #21

Closed shawnpyle closed 9 years ago

shawnpyle commented 9 years ago

Thanks for this useful project!

This should allow setting of a custom path for the pstore file. Using this with Rails was problematic due to the fact that the file was placed in the home directory of a user and not accessible by other users.

I also added a gemspec so I could install it via Gemfile. Out of curiosity, how are you publishing this as a gem without a gemspec?

janfri commented 9 years ago

Thanks a lot for your effort. I have not much time at the moment. I try to look on it in the next weeks.

shawnpyle commented 9 years ago

No worries. Thanks for considering. On Nov 13, 2014 2:32 PM, "janfri" notifications@github.com wrote:

Thanks a lot for your effort. I have not much time at the moment. I hope to have a look on it in the next weeks.

— Reply to this email directly or view it on GitHub https://github.com/janfri/mini_exiftool/pull/21#issuecomment-62951665.

janfri commented 9 years ago

It is not a good idea to change the complete path to the PStore file because if you install a newer version of exiftool you use an outdated version of the PStore file (the exiftool version is coded into the basename of the file).

Therefore in my solution I have added the possibility to change the directory (not the complete path) where mini_exiftool stores the PStore files.

MiniExiftool.pstore_dir = 'path/to/my/pstore/dir'

The changes are included in mini_exiftool version 2.5.0.

I don't need a gemspec file because I use rim for all my needs of project management, from spell checking to releasing. :-)

Btw: mini_exiftool is licensed under the LGPL. If you want to use your own fork / your own gemspec it has to be also licensed under the LGPL.

I hope this help you. Best regards.