bin/lock-gemfile in lock-gemfile-0.1.1 vs bin/lock-gemfile in lock-gemfile-0.1.2
- old
+ new
@@ -24,11 +24,11 @@
# --write gemfile_updater.rb update Gemfile --no-pessimistic
#
# Dependencies:
# - parser - bundler - thor
-require "parser/current"
+require "parser/ruby31"
require "bundler"
require "thor"
require_relative "../lib/lock/gemfile/rewriter"
@@ -71,10 +71,10 @@
# Create a buffer to hold the Gemfile content
buffer = Parser::Source::Buffer.new("(gemfile)")
buffer.source = gemfile_content
# Create a new Ruby parser
- parser = Parser::CurrentRuby.new
+ parser = Parser::Ruby31.new
# Parse the Gemfile content into an Abstract Syntax Tree (AST)
ast = parser.parse(buffer)
# Create a new instance of the Lock::Gemfile::Rewriter
rewriter = Lock::Gemfile::Rewriter.new