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

Remove use of keyword args in .delete_values to restore ruby 1.9 support #12

Merged
merged 1 commit into from Mar 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/multi_exiftool.rb
Expand Up @@ -60,7 +60,8 @@ def write filenames, values, opts={}
# unless errors.empty?
# # do error handling
# end
def delete_values filenames, tags: :all
def delete_values filenames, opts={}
tags = opts.fetch(:tags, :all)
values = Array(tags).inject(Hash.new) {|h,tag| h[tag] = nil; h}
write(filenames, values)
end
Expand Down