diff --git a/Rakefile b/Rakefile index 4b8686b..06ebdc4 100644 --- a/Rakefile +++ b/Rakefile @@ -20,7 +20,7 @@ task :update_gemfiles do lockfile = "#{gemfile}.lock" - if File.exists? lockfile + if File.exist? lockfile parsed_lockfile = Bundler::LockfileParser.new(Bundler.read_file(lockfile)) # Ensure lockfile has x86_64-linux if parsed_lockfile.platforms.map(&:to_s).none? {|p| p == 'x86_64-linux' } @@ -33,4 +33,4 @@ task :update_gemfiles do raise StandardError.new("Expected #{lockfile} to exist.") end end -end \ No newline at end of file +end