Skip to content

Commit 564fba8

Browse files
committed
(CONT-807) Replacing exists method with exist since exists was deprecated and exist is an equivalent method
1 parent 28fad48 commit 564fba8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Gemfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ group :development do
3939
gem 'yard'
4040
end
4141

42-
# # Evaluate Gemfile.local if it exists
43-
# if File.exists? "#{__FILE__}.local"
44-
# eval(File.read("#{__FILE__}.local"), binding)
45-
# end
46-
47-
# # Evaluate ~/.gemfile if it exists
48-
# if File.exists?(File.join(Dir.home, '.gemfile'))
49-
# eval(File.read(File.join(Dir.home, '.gemfile')), binding)
50-
# end
42+
# Evaluate Gemfile.local if it exists
43+
if File.exist? "#{__FILE__}.local"
44+
eval(File.read("#{__FILE__}.local"), binding)
45+
end
46+
47+
# Evaluate ~/.gemfile if it exists
48+
if File.exist?(File.join(Dir.home, '.gemfile'))
49+
eval(File.read(File.join(Dir.home, '.gemfile')), binding)
50+
end

0 commit comments

Comments
 (0)