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"