Skip to content

Commit

Permalink
Try load trick for gemspec version
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobEvelyn committed Dec 23, 2024
1 parent 2b48d04 commit b37fb75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions memo_wise.gemspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit b37fb75

Please sign in to comment.