2018-08-07 08:32:29 -04:00
|
|
|
begin
|
|
|
|
require_relative "lib/prime"
|
|
|
|
rescue LoadError
|
2018-10-12 15:58:11 -04:00
|
|
|
# for Ruby core repository
|
2018-08-07 08:32:29 -04:00
|
|
|
require_relative "prime"
|
|
|
|
end
|
2018-06-02 19:05:45 -04:00
|
|
|
|
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
spec.name = "prime"
|
|
|
|
spec.version = Prime::VERSION
|
2020-12-09 01:24:16 -05:00
|
|
|
spec.authors = ["Marc-Andre Lafortune"]
|
|
|
|
spec.email = ["ruby-core@marc-andre.ca"]
|
2018-06-02 19:05:45 -04:00
|
|
|
|
|
|
|
spec.summary = %q{Prime numbers and factorization library.}
|
|
|
|
spec.description = %q{Prime numbers and factorization library.}
|
|
|
|
spec.homepage = "https://github.com/ruby/prime"
|
2020-08-18 07:15:59 -04:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2018-06-02 19:05:45 -04:00
|
|
|
|
2020-12-09 01:24:16 -05:00
|
|
|
spec.files = [".gitignore", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/prime.rb", "prime.gemspec"]
|
2018-06-02 19:05:45 -04:00
|
|
|
spec.bindir = "exe"
|
|
|
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
|
2020-04-08 01:33:22 -04:00
|
|
|
spec.required_ruby_version = ">= 2.5.0"
|
2020-12-01 05:09:06 -05:00
|
|
|
|
|
|
|
spec.add_dependency "singleton"
|
|
|
|
spec.add_dependency "forwardable"
|
2018-06-02 19:05:45 -04:00
|
|
|
end
|