Skip to content

Commit

Permalink
Replace deprecated/removed File.exists? alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkerz committed Mar 31, 2023
1 parent 413265e commit 4203333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ task :stylesheets => :submodule do
dependencies.each do |dependency|
dependency = dependency.sub(/\.js$/, '')
dependent_stylesheet = "#{dependency}.css"
extra_dependencies << dependency if File.exists?("#{css_dir}/#{dependent_stylesheet}")
extra_dependencies << dependency if File.exist?("#{css_dir}/#{dependent_stylesheet}")
end
extra_dependencies << 'theme'
end
Expand Down
2 changes: 1 addition & 1 deletion testapp/config/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

0 comments on commit 4203333

Please sign in to comment.