mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Clean File.exists? deprecation warning
This API has been deprecated in Ruby 2.1, so use the File.exist? API.
This commit is contained in:
parent
401c910154
commit
0fd61f6aac
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class Pry
|
||||||
# Load the Command line options defined by this plugin (if they exist)
|
# Load the Command line options defined by this plugin (if they exist)
|
||||||
def load_cli_options
|
def load_cli_options
|
||||||
cli_options_file = File.join(spec.full_gem_path, "lib/#{spec.name}/cli.rb")
|
cli_options_file = File.join(spec.full_gem_path, "lib/#{spec.name}/cli.rb")
|
||||||
require cli_options_file if File.exists?(cli_options_file)
|
require cli_options_file if File.exist?(cli_options_file)
|
||||||
end
|
end
|
||||||
# Activate the plugin (require the gem - enables/loads the
|
# Activate the plugin (require the gem - enables/loads the
|
||||||
# plugin immediately at point of call, even if plugin is
|
# plugin immediately at point of call, even if plugin is
|
||||||
|
|
Loading…
Reference in a new issue