{"action":"created","issue":{"url":"https://api.github.com/repos/rails/sprockets-rails/issues/246","labels_url":"https://api.github.com/repos/rails/sprockets-rails/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/rails/sprockets-rails/issues/246/comments","events_url":"https://api.github.com/repos/rails/sprockets-rails/issues/246/events","html_url":"https://github.com/rails/sprockets-rails/issues/246","id":75217348,"number":246,"title":"Assets with JPEG extensions are compiled or referenced as JPG in 2.3.0","user":{"login":"remomueller","id":316479,"avatar_url":"https://avatars.githubusercontent.com/u/316479?v=3","gravatar_id":"","url":"https://api.github.com/users/remomueller","html_url":"https://github.com/remomueller","followers_url":"https://api.github.com/users/remomueller/followers","following_url":"https://api.github.com/users/remomueller/following{/other_user}","gists_url":"https://api.github.com/users/remomueller/gists{/gist_id}","starred_url":"https://api.github.com/users/remomueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remomueller/subscriptions","organizations_url":"https://api.github.com/users/remomueller/orgs","repos_url":"https://api.github.com/users/remomueller/repos","events_url":"https://api.github.com/users/remomueller/events{/privacy}","received_events_url":"https://api.github.com/users/remomueller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-11T13:14:11Z","updated_at":"2015-05-12T20:04:41Z","closed_at":null,"body":"Hi, I'm running into an issue with sprockets-rails 2.3.0, that does not appear to exist in version 2.2.4 (fixing the version to 2.2.4 in development fixes the issue). Not sure if this is a regression or intended behavior for 2.3.0.\r\n\r\nThe image is labeled with `.jpeg` in `app/assets/images/myapnea/team/member1.jpeg`, however the converted asset seems to be using `.jpg` which causes the following error to show up on the page in development:\r\n\r\n```\r\nSprockets::Rails::Helper::AssetAliasUsed at /team\r\nAsset was linked to from an alias rather than its exact path. Alias resolving may not be available in production.\r\nUse \"myapnea/team/member1.jpg\" instead of \"myapnea/team/member1.jpeg\"\r\n```\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/rails/sprockets-rails/issues/comments/101404652","html_url":"https://github.com/rails/sprockets-rails/issues/246#issuecomment-101404652","issue_url":"https://api.github.com/repos/rails/sprockets-rails/issues/246","id":101404652,"user":{"login":"remomueller","id":316479,"avatar_url":"https://avatars.githubusercontent.com/u/316479?v=3","gravatar_id":"","url":"https://api.github.com/users/remomueller","html_url":"https://github.com/remomueller","followers_url":"https://api.github.com/users/remomueller/followers","following_url":"https://api.github.com/users/remomueller/following{/other_user}","gists_url":"https://api.github.com/users/remomueller/gists{/gist_id}","starred_url":"https://api.github.com/users/remomueller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remomueller/subscriptions","organizations_url":"https://api.github.com/users/remomueller/orgs","repos_url":"https://api.github.com/users/remomueller/repos","events_url":"https://api.github.com/users/remomueller/events{/privacy}","received_events_url":"https://api.github.com/users/remomueller/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T20:04:41Z","updated_at":"2015-05-12T20:04:41Z","body":"We're calling it through image_tag helper in the view, here's the trace:\r\n\r\n```\r\nSprockets::Rails::Helper::AssetAliasUsed in Home#dashboard\r\nShowing /Users/remo/code/ruby/www.myapnea.org/app/views/home/landing.html.haml where line #28 raised:\r\n\r\nAsset was linked to from an alias rather than its exact path. Alias resolving may not be available in production.\r\nUse \"myapnea/testimonials/steve-testimonial-cropped.jpg\" instead of \"myapnea/testimonials/steve-testimonial-cropped.jpeg\"\r\nExtracted source (around line #28):\r\n              \r\n26      = image_tag 'myapnea/team/redline_200x200.jpg', class: 'round-img round-img-orange hidden-xs'\r\n27      = image_tag 'myapnea/testimonials/larry-testimonial-cropped.png', class: 'round-img round-img-blue hidden-xs'\r\n28      = image_tag 'myapnea/testimonials/steve-testimonial-cropped.jpeg', class: 'round-img round-img-orange hidden-xs'\r\n29      = image_tag 'myapnea/testimonials/DEAN.jpg', class: 'round-img round-img-blue hidden-xs'\r\n\r\n/ MISSION\r\n\r\nRails.root: /Users/remo/code/ruby/www.myapnea.org\r\n\r\nApplication Trace | Framework Trace | Full Trace\r\nsprockets-rails (2.3.1) lib/sprockets/rails/helper.rb:134:in `asset_digest_path'\r\nsprockets-rails (2.3.1) lib/sprockets/rails/helper.rb:85:in `compute_asset_path'\r\nactionview (4.2.1) lib/action_view/helpers/asset_url_helper.rb:135:in `asset_path'\r\nsprockets-rails (2.3.1) lib/sprockets/rails/helper.rb:100:in `asset_path'\r\nactionview (4.2.1) lib/action_view/helpers/asset_url_helper.rb:292:in `image_path'\r\nactionview (4.2.1) lib/action_view/helpers/asset_tag_helper.rb:211:in `image_tag'\r\napp/views/home/landing.html.haml:28:in `_app_views_home_landing_html_haml__2617145238734763061_70276208550980'\r\nactionview (4.2.1) lib/action_view/template.rb:145:in `block in render'\r\nactivesupport (4.2.1) lib/active_support/notifications.rb:166:in `instrument'\r\nactionview (4.2.1) lib/action_view/template.rb:333:in `instrument'\r\nactionview (4.2.1) lib/action_view/template.rb:143:in `render'\r\nactionview (4.2.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'\r\nactionview (4.2.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'\r\nactivesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument'\r\nactivesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument'\r\nactionview (4.2.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'\r\nactionview (4.2.1) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'\r\nactionview (4.2.1) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'\r\nactionview (4.2.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template'\r\nactionview (4.2.1) lib/action_view/renderer/template_renderer.rb:14:in `render'\r\nactionview (4.2.1) lib/action_view/renderer/renderer.rb:42:in `render_template'\r\nactionview (4.2.1) lib/action_view/renderer/renderer.rb:23:in `render'\r\nactionview (4.2.1) lib/action_view/rendering.rb:100:in `_render_template'\r\nactionpack (4.2.1) lib/action_controller/metal/streaming.rb:217:in `_render_template'\r\nactionview (4.2.1) lib/action_view/rendering.rb:83:in `render_to_body'\r\nactionpack (4.2.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body'\r\nactionpack (4.2.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body'\r\nactionpack (4.2.1) lib/abstract_controller/rendering.rb:25:in `render'\r\nactionpack (4.2.1) lib/action_controller/metal/rendering.rb:16:in `render'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'\r\nactivesupport (4.2.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'\r\n/usr/local/rvm/rubies/ruby-2.2.2/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'\r\nactivesupport (4.2.1) lib/active_support/core_ext/benchmark.rb:12:in `ms'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'\r\nactiverecord (4.2.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:43:in `render'\r\napp/controllers/home_controller.rb:15:in `dashboard'\r\nactionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'\r\nactionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action'\r\nactionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action'\r\nactionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action'\r\nactionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'\r\nactivesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument'\r\nactivesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'\r\nactivesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument'\r\nactionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'\r\nactionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'\r\nactiverecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\nactionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process'\r\nactionview (4.2.1) lib/action_view/rendering.rb:30:in `process'\r\nactionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch'\r\nactionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'\r\nactionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action'\r\nactionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'\r\nactionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'\r\nactionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'\r\nactionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each'\r\nactionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve'\r\nactionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call'\r\nwarden (1.2.3) lib/warden/manager.rb:35:in `block in call'\r\nwarden (1.2.3) lib/warden/manager.rb:34:in `catch'\r\nwarden (1.2.3) lib/warden/manager.rb:34:in `call'\r\nrack (1.6.1) lib/rack/etag.rb:24:in `call'\r\nrack (1.6.1) lib/rack/conditionalget.rb:25:in `call'\r\nrack (1.6.1) lib/rack/head.rb:13:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call'\r\nrack (1.6.1) lib/rack/session/abstract/id.rb:225:in `context'\r\nrack (1.6.1) lib/rack/session/abstract/id.rb:220:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'\r\nactiverecord (4.2.1) lib/active_record/query_cache.rb:36:in `call'\r\nactiverecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'\r\nactiverecord (4.2.1) lib/active_record/migration.rb:378:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'\r\nactivesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'\r\nrailties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'\r\nrailties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'\r\nactivesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'\r\nactivesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'\r\nactivesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'\r\nrailties (4.2.1) lib/rails/rack/logger.rb:20:in `call'\r\nconfig/initializers/quiet_assets.rb:7:in `call_with_quiet_assets'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'\r\nrack (1.6.1) lib/rack/methodoverride.rb:22:in `call'\r\nrack (1.6.1) lib/rack/runtime.rb:18:in `call'\r\nactivesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'\r\nrack (1.6.1) lib/rack/lock.rb:17:in `call'\r\nactionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call'\r\nrack (1.6.1) lib/rack/sendfile.rb:113:in `call'\r\nrailties (4.2.1) lib/rails/engine.rb:518:in `call'\r\nrailties (4.2.1) lib/rails/application.rb:164:in `call'\r\npassenger (5.0.7) lib/phusion_passenger/rack/thread_handler_extension.rb:89:in `process_request'\r\npassenger (5.0.7) lib/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request'\r\npassenger (5.0.7) lib/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'\r\npassenger (5.0.7) lib/phusion_passenger/request_handler.rb:414:in `block (3 levels) in start_threads'\r\npassenger (5.0.7) lib/phusion_passenger/utils.rb:111:in `block in create_thread_and_abort_on_exception'\r\n```"}}