Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Fixed filenames for .coffee files that contains dot #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/coffee-rails-source-maps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def compile(script, options = {})
if pathname.nil?
return Source.context.call("CoffeeScript.compile", script, options)
else
clean_name = pathname.basename.to_s.split(".").first
clean_name = File.basename(pathname.basename, File.extname(pathname.basename))

rel_path = if pathname.to_s.start_with?(Bundler.bundle_path.to_s)
Pathname('bundler').join(pathname.relative_path_from(Bundler.bundle_path)).dirname
Expand Down