Skip to content

Commit

Permalink
Replace Rack::File with Rack::Files
Browse files Browse the repository at this point in the history
`Rack::Files` exists since Rack 2.1.
  • Loading branch information
tricknotes committed Feb 1, 2024
1 parent bcf653a commit a150553
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ember_cli/deploy/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def mountable?
end

def to_rack
Rack::File.new(app.dist_path.to_s, rack_headers)
Rack::Files.new(app.dist_path.to_s, rack_headers)
end

def index_html
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/ember_cli/deploy/file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
end

describe "#to_rack" do
it "creates a Rack::File instance" do
it "creates a Rack::Files instance" do
deploy = EmberCli::Deploy::File.new(build_app)

rack_app = deploy.to_rack
Expand Down

0 comments on commit a150553

Please sign in to comment.