From b37fb752e8dfdd26387b1cf07ebd48e7cc622b3e Mon Sep 17 00:00:00 2001 From: Jacob Evelyn Date: Mon, 23 Dec 2024 11:49:01 -0500 Subject: [PATCH] Try load trick for gemspec version --- memo_wise.gemspec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/memo_wise.gemspec b/memo_wise.gemspec index 2817681..9fded84 100644 --- a/memo_wise.gemspec +++ b/memo_wise.gemspec @@ -1,10 +1,13 @@ # frozen_string_literal: true -require_relative "lib/memo_wise/version" +# require_relative "lib/memo_wise/version" +load "lib/memo_wise/version.rb" +gem_version = MemoWise::VERSION +MemoWise.send(:remove_const, :VERSION) Gem::Specification.new do |spec| spec.name = "memo_wise" - spec.version = MemoWise::VERSION + spec.version = gem_version spec.summary = "The wise choice for Ruby memoization" spec.homepage = "https://github.com/panorama-ed/memo_wise" spec.license = "MIT"