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

Opening a file from heel throws an exception #11

Closed
rickenharp opened this issue Oct 9, 2013 · 2 comments
Closed

Opening a file from heel throws an exception #11

rickenharp opened this issue Oct 9, 2013 · 2 comments

Comments

@rickenharp
Copy link

On Ruby 2.0-p247, clicking on any kind of file results in this:

Puma caught this error: no implicit conversion of Array into String (TypeError)
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/mime-types-1.25/lib/mime/types.rb:296:in `match'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/mime-types-1.25/lib/mime/types.rb:296:in `simplified'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/mime-types-1.25/lib/mime/types.rb:653:in `[]'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/mime-types-1.25/lib/mime/types.rb:848:in `[]'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/heel-3.1.1/lib/heel/mime_map.rb:52:in `block in initialize'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/heel-3.1.1/lib/heel/mime_map.rb:51:in `each'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/heel-3.1.1/lib/heel/mime_map.rb:51:in `initialize'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/heel-3.1.1/lib/heel/rackapp.rb:42:in `new'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/heel-3.1.1/lib/heel/rackapp.rb:42:in `mime_map'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/heel-3.1.1/lib/heel/rackapp.rb:115:in `file_response'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/heel-3.1.1/lib/heel/rackapp.rb:137:in `call'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:65:in `block in call'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `each'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/rack-1.5.2/lib/rack/urlmap.rb:50:in `call'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/puma-2.6.0/lib/puma/rack_patch.rb:13:in `call'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/puma-2.6.0/lib/puma/server.rb:486:in `handle_request'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/puma-2.6.0/lib/puma/server.rb:357:in `process_client'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/puma-2.6.0/lib/puma/server.rb:250:in `block in run'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/puma-2.6.0/lib/puma/thread_pool.rb:92:in `call'
/Users/alex/.rvm/gems/ruby-2.0.0-p247/gems/puma-2.6.0/lib/puma/thread_pool.rb:92:in `block in spawn_thread'
@copiousfreetime
Copy link
Owner

Thanks for reporting this, I'll get this integrated into the next release.

@copiousfreetime
Copy link
Owner

Looks like this is caused by the same usage of MIME::Type.from_array as indicated in #12. This should be fixed with 5381385

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 a pull request may close this issue.

2 participants