Remove version templating in YARP

This commit is contained in:
Kevin Newton 2023-08-25 17:54:01 -04:00
parent aea7e91828
commit ca9a44795b
Notes: git 2023-08-25 22:21:12 +00:00
12 changed files with 18 additions and 146 deletions

View file

@ -172,10 +172,8 @@ module YARP
# the YARP module.
private_constant :LibRubyParser
library_version = LibRubyParser.yp_version.read_string
if library_version != YARP::VERSION
raise "The YARP library version (#{library_version}) does not match the expected version (#{YARP::VERSION})"
end
# The version constant is set by reading the result of calling yp_version.
VERSION = LibRubyParser.yp_version.read_string
def self.dump_internal(source, source_size, filepath)
LibRubyParser::YPBuffer.with do |buffer|