From 4a950f335fe06d4c937b77b12584daf71f766de8 Mon Sep 17 00:00:00 2001 From: Awesome Code Date: Sun, 17 Jan 2021 01:40:32 +0000 Subject: [PATCH] Auto corrected by following Lint Ruby Lint/DeprecatedClassMethods --- lib/synvert/core/rewriter/gem_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/synvert/core/rewriter/gem_spec.rb b/lib/synvert/core/rewriter/gem_spec.rb index 6d5ad45c..83462aca 100644 --- a/lib/synvert/core/rewriter/gem_spec.rb +++ b/lib/synvert/core/rewriter/gem_spec.rb @@ -27,7 +27,7 @@ def initialize(name, comparator) # @raise [Synvert::Core::GemfileLockNotFound] raise if Gemfile.lock does not exist. def match? gemfile_lock_path = File.join(Configuration.instance.get(:path), 'Gemfile.lock') - if File.exists? gemfile_lock_path + if File.exist? gemfile_lock_path parser = Bundler::LockfileParser.new(File.read(gemfile_lock_path)) if spec = parser.specs.find { |spec| spec.name == @name } Gem::Version.new(spec.version).send(OPERATORS[@operator], @version)