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

Utilize the filename as a hint when mimetype matches multiple types #75

Merged
merged 3 commits into from
Jan 11, 2022
Merged

Utilize the filename as a hint when mimetype matches multiple types #75

merged 3 commits into from
Jan 11, 2022

Conversation

jeffse
Copy link

@jeffse jeffse commented Jan 8, 2022

If the file detection returns multiple types, then use marcel's ability to use the filename as a secondary hint to narrow the type further.

I think this is the same thing that @ngan is trying to accomplish with #74 but using the logic built in to the marcel gem.

If the file detection returns multiple types, then use marcel's ability
to use the filename as a secondary hint to narrow the type further.
@sbhawsingka
Copy link
Collaborator

@jeffse Can we please fix the suggestions given by hound? Thanks!

@jeffse
Copy link
Author

jeffse commented Jan 10, 2022

@jeffse Can we please fix the suggestions given by hound? Thanks!

I fixed the Hound issues, although it seems that Hound isn't picking up the configuration from .hound.yml properly. I'll see if I rectify that in another branch.

@ngan
Copy link

ngan commented Jan 10, 2022

I think this is the same thing that @ngan is trying to accomplish

Yes, kind of. I was going to do the same thing but didn’t want to break backwards compatibility in case marcel did things differently that what was happening today inside this gem when it comes to file type. But I’m all for this simpler approach. Thanks!

@ssinghi ssinghi merged commit 1328a1a into kreeti:master Jan 11, 2022
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

Successfully merging this pull request may close these issues.

4 participants