-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathmemo_wise.gemspec
More file actions
52 lines (45 loc) · 2.19 KB
/
memo_wise.gemspec
File metadata and controls
52 lines (45 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# frozen_string_literal: true
Gem::Specification.new do |spec|
spec.name = "memo_wise"
# After loading the `VERSION` constant, save it to a variable to use in this
# gemspec and then undefine it. This allows benchmarks to compare multiple
# versions of MemoWise against each other without inadvertently sharing the
# same `VERSION` constant.
# NOTE: In future Ruby versions, we can avoid this complexity and the use of
# `GemBench` in `benchmarks.rb` by using namespaces. For more context, see:
# https://bugs.ruby-lang.org/issues/21311
# NOTE: It's important that we use `load` instead of `require_relative`
# because the latter only loads a file once, and so by undefining the
# `VERSION` constant we can make it difficult to access that value again
# later. For more context, see: https://github.com/panorama-ed/memo_wise/pull/370#issuecomment-2560268423
# NOTE: We fully qualify `Kernel` here because Rubygems defines its own
# `load` method, which is used by default when this code is executed by
# `gem build memo_wise.gemspec`. That `load` method does not support the
# optional "wrap" parameter we pass through as `mod`. For more context, see:
# https://github.com/simplecov-ruby/simplecov/issues/557#issuecomment-2630782358
spec.version = Module.new.tap { |mod| Kernel.load("#{__dir__}/lib/memo_wise/version.rb", mod) }::MemoWise::VERSION
spec.summary = "The wise choice for Ruby memoization"
spec.homepage = "https://github.com/panorama-ed/memo_wise"
spec.license = "MIT"
spec.authors = [
"Panorama Education",
"Jacob Evelyn",
"Jemma Issroff",
"Marc Siegel",
]
spec.email = [
"engineering@panoramaed.com",
"jacobevelyn@gmail.com",
"jemmaissroff@gmail.com",
"marc@usainnov.com",
]
spec.required_ruby_version = Gem::Requirement.new(">= 3.1.0")
# Specify which files should be added to the gem when it is released.
spec.files = Dir.glob("{CHANGELOG.md,LICENSE.txt,README.md,lib/**/*.rb}")
spec.require_paths = ["lib"]
spec.metadata = {
"rubygems_mfa_required" => "true",
"changelog_uri" => "https://github.com/panorama-ed/memo_wise/blob/main/CHANGELOG.md",
"source_code_uri" => "https://github.com/panorama-ed/memo_wise"
}
end