Skip to content

Commit

Permalink
Make sure mime-types gem is required
Browse files Browse the repository at this point in the history
We use the third party mime-types gem in lib/geoblacklight/download.rb
but never explicitly include it or declare it as a dependency. It most
cases, it seems to still work probably because it gets included by
another gem somewhere. We shouldn't rely on this, though.
  • Loading branch information
Mike Graves committed Sep 6, 2017
1 parent 6460b08 commit c269350
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions geoblacklight.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'geoblacklight-icons', '>= 0.2'
spec.add_dependency 'deprecation'
spec.add_dependency 'geo_combine', '>= 0.3'
spec.add_dependency 'mime-types'

spec.add_development_dependency 'solr_wrapper'
spec.add_development_dependency 'rails-controller-testing'
Expand Down
1 change: 1 addition & 0 deletions lib/geoblacklight/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require 'faraday_middleware'
require 'nokogiri'
require 'geoblacklight-icons'
require 'mime/types'

module Geoblacklight
class Engine < ::Rails::Engine
Expand Down

0 comments on commit c269350

Please sign in to comment.