Skip to content

Added ability to define custom pstore_file_path#21

Closed
shawnpyle wants to merge 4 commits intojanfri:masterfrom
theasci:master
Closed

Added ability to define custom pstore_file_path#21
shawnpyle wants to merge 4 commits intojanfri:masterfrom
theasci:master

Conversation

@shawnpyle
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Owner

janfri commented Nov 13, 2014

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
Copy link
Copy Markdown
Author

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
#21 (comment).

@janfri
Copy link
Copy Markdown
Owner

janfri commented Nov 25, 2014

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.

@janfri janfri closed this Nov 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants