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

Provide MIME::Type#add_extensions #44

Closed
halostatue opened this issue Oct 16, 2013 · 0 comments
Closed

Provide MIME::Type#add_extensions #44

halostatue opened this issue Oct 16, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@halostatue
Copy link
Member

Code like this

  extensions.each { |ext|
    type.extensions << ext unless type.extensions.include?( ext )
  }

should not be necessary. It should be possible to do:

  type.add_extensions(extensions)

and have the values be uniquely represented.

Internally, it would combine the extensions array and call Array#uniq! on it. The return value would be the full list of extensions.

@ghost ghost assigned halostatue Oct 16, 2013
halostatue added a commit that referenced this issue Oct 20, 2013
A substantial upgrade to the mime-types library. Major features:

- No longer compatible with Ruby 1.8.
- Several major API changes and deprecations.
- The default mime-types registry is now stored as JSON.
- Improved developer tools.
- Improved repackager tools.
- Resolves #28, #36, #37, #43, and #44.
halostatue added a commit that referenced this issue Oct 20, 2013
A substantial upgrade to the mime-types library. Major features:

- No longer compatible with Ruby 1.8.
- Several major API changes and deprecations.
- The default mime-types registry is now stored as JSON.
- Improved developer tools.
- Improved repackager tools.
- Resolves #28.
- Resolves #36.
- Resolves #37.
- Resolves #43.
- Resolves #44.
halostatue added a commit that referenced this issue Oct 20, 2013
A substantial upgrade to the mime-types library. Major features:

- No longer compatible with Ruby 1.8.
- Several major API changes and deprecations.
- The default mime-types registry is now stored as JSON.
- Improved developer tools.
- Improved repackager tools.
- Fixes #28.
- Fixes #36.
- Fixes #37.
- Fixes #43.
- Fixes #44.
halostatue added a commit that referenced this issue Oct 20, 2013
A substantial upgrade to the mime-types library. Major features:

- No longer compatible with Ruby 1.8.
- Several major API changes and deprecations.
- The default mime-types registry is now stored as JSON.
- Improved developer tools.
- Improved repackager tools.
- Fixes #28.
- Fixes #36.
- Fixes #37.
- Fixes #42.
- Fixes #43.
- Fixes #44.
halostatue added a commit that referenced this issue Oct 20, 2013
A substantial upgrade to the mime-types library. Major features:

- No longer compatible with Ruby 1.8.
- Several major API changes and deprecations.
- The default mime-types registry is now stored as JSON.
- Improved developer tools.
- Improved repackager tools.
- Fixes #28.
- Fixes #36.
- Fixes #37.
- Fixes #42.
- Fixes #43.
- Fixes #44.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant