Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
**Master**

- Preserve caller paths when inserting a pipeline. [Oskar Eichler](https://github.com/OskarEichler)

Get upgrade notes from Sprockets 3.x to 4.x at https://github.com/rails/sprockets/blob/master/UPGRADING.md

# 4.4.1
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -714,3 +714,5 @@ Please see the [CHANGELOG](https://github.com/rails/sprockets/tree/master/CHANGE

## License
Sprockets is released under the [MIT License](MIT-LICENSE).

Inserting a pipeline leaves the caller path unchanged and accepts frozen paths.
2 changes: 1 addition & 1 deletion lib/sprockets/path_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def join(base, path)
# Returns string path with pipeline parsed in
def set_pipeline(path, mime_exts, pipeline_exts, pipeline)
extension, _ = match_path_extname(path, mime_exts)
path.chomp!(extension)
path = path.chomp(extension)
pipeline_old, _ = match_path_extname(path, pipeline_exts)
path.chomp!(pipeline_old)

Expand Down