Skip to content

Commit

Permalink
Replace mimemagic with marcel
Browse files Browse the repository at this point in the history
  • Loading branch information
massongit committed Mar 27, 2021
1 parent 8f7e425 commit a369db5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion comfortable_mexican_sofa.gemspec
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |s|
s.add_dependency "haml-rails", ">= 1.0.0"
s.add_dependency "jquery-rails", ">= 4.3.1"
s.add_dependency "kramdown", ">= 1.0.0"
s.add_dependency "mimemagic", ">= 0.3.2"
s.add_dependency "marcel", ">= 1.0.0"
s.add_dependency "mini_magick", ">= 4.8.0"
s.add_dependency "rails", ">= 5.2.0"
s.add_dependency "rails-i18n", ">= 5.0.0"
Expand Down
2 changes: 1 addition & 1 deletion lib/comfortable_mexican_sofa/seeds.rb
Expand Up @@ -6,7 +6,7 @@ module ComfortableMexicanSofa::Seeds

class Error < StandardError; end

require "mimemagic"
require "marcel"

class Importer

Expand Down
2 changes: 1 addition & 1 deletion lib/comfortable_mexican_sofa/seeds/file/importer.rb
Expand Up @@ -38,7 +38,7 @@ def import!
file.file = {
io: file_handler,
filename: filename,
content_type: MimeMagic.by_magic(file_handler)
content_type: Marcel::Magic.by_magic(file_handler)
}
end

Expand Down
2 changes: 1 addition & 1 deletion lib/comfortable_mexican_sofa/seeds/page/importer.rb
Expand Up @@ -192,7 +192,7 @@ def files_content(record, identifier, path, frag_content)
{
io: file_handler,
filename: filename,
content_type: MimeMagic.by_magic(file_handler)
content_type: Marcel::Magic.by_magic(file_handler)
}
end

Expand Down

0 comments on commit a369db5

Please sign in to comment.