Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using a Pathname as file argument results in error. #8

Closed
rempargo opened this issue Aug 30, 2016 · 2 comments
Closed

using a Pathname as file argument results in error. #8

rempargo opened this issue Aug 30, 2016 · 2 comments

Comments

@rempargo
Copy link

When using a Pathname instead of a String for the file argument, I get an error.
See the following code:

require 'exiftool'
require 'pathname'
path=Pathname.new('p./public/images/test.jpg')
Exiftool.new(path)

will result in
NoMethodError: undefined method empty?' for #<Pathname:p./public/images/test.jpg>

the workaround is to convert the Pathname to a String:
Exiftool.new(path.to_s)

Ruby version 2.3.1

@mceachen
Copy link
Member

mceachen commented Oct 5, 2016

pull requests are welcome (and this, specifically, seems fine)

@mceachen
Copy link
Member

mceachen commented Feb 8, 2017

I just released v1.1.0 which addresses this.

@mceachen mceachen closed this as completed Feb 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants