Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

File.exists? is removed in Ruby 3.2 #150

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ end

task 'before_build' do
signing_key = File.expand_path("~/.gem/librato-private_key.pem")
if File.exists?(signing_key)
if File.exist?(signing_key)
puts "Key found: signing gem..."
ENV['GEM_SIGNING_KEY'] = signing_key
else
Expand Down
2 changes: 1 addition & 1 deletion lib/librato/rails/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(options={})

# detect and load configuration from config file or env vars
def load_configuration
if self.config_file && File.exists?(self.config_file)
if self.config_file && File.exist?(self.config_file)
configure_with_config_file
else
self.config_by = :environment
Expand Down