Skip to content

Commit

Permalink
Avoid conflict with existing mime gem
Browse files Browse the repository at this point in the history
* Moved lib/mime.rb away from top-level (otherwise the loading paths would use the file instead of the existing gem’s).
* Still apply the compatibility patch on the `MIME` module.
  • Loading branch information
blanquer committed May 24, 2015
1 parent 5a7c565 commit 2a1f09c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ data/mime-types.json
docs/COPYING.txt
docs/artistic.txt
lib/mime-types.rb
lib/mime.rb
lib/mime/type.rb
lib/mime/types.rb
lib/mime/types/cache.rb
lib/mime/types/loader.rb
lib/mime/types/loader_path.rb
lib/mime/types/deprecations.rb
support/apache_mime_types.rb
support/benchmarks/load.rb
support/convert.rb
Expand Down
2 changes: 1 addition & 1 deletion lib/mime/type.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- ruby encoding: utf-8 -*-

require 'mime'
require 'mime/types/deprecations'
require 'json'

# The definition of one MIME content-type.
Expand Down
File renamed without changes.

0 comments on commit 2a1f09c

Please sign in to comment.