We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f35b6f + da348e7 commit f5ab769Copy full SHA for f5ab769
lib/synvert/core/rewriter/gem_spec.rb
@@ -27,7 +27,7 @@ def initialize(name, comparator)
27
# @raise [Synvert::Core::GemfileLockNotFound] raise if Gemfile.lock does not exist.
28
def match?
29
gemfile_lock_path = File.join(Configuration.instance.get(:path), 'Gemfile.lock')
30
- if File.exists? gemfile_lock_path
+ if File.exist? gemfile_lock_path
31
parser = Bundler::LockfileParser.new(File.read(gemfile_lock_path))
32
if spec = parser.specs.find { |spec| spec.name == @name }
33
Gem::Version.new(spec.version).send(OPERATORS[@operator], @version)
0 commit comments