2018-08-07 15:32:29 +03:00
|
|
|
begin
|
|
|
|
require_relative "lib/prime"
|
|
|
|
rescue LoadError
|
2018-10-12 22:58:11 +03:00
|
|
|
# for Ruby core repository
|
2018-08-07 15:32:29 +03:00
|
|
|
require_relative "prime"
|
|
|
|
end
|
2018-06-03 02:05:45 +03:00
|
|
|
|
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
spec.name = "prime"
|
|
|
|
spec.version = Prime::VERSION
|
|
|
|
spec.authors = ["Yuki Sonoda"]
|
|
|
|
spec.email = ["yugui@yugui.jp"]
|
|
|
|
|
|
|
|
spec.summary = %q{Prime numbers and factorization library.}
|
|
|
|
spec.description = %q{Prime numbers and factorization library.}
|
|
|
|
spec.homepage = "https://github.com/ruby/prime"
|
|
|
|
spec.license = "BSD-2-Clause"
|
|
|
|
|
2020-04-08 08:33:22 +03:00
|
|
|
spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/prime.rb", "prime.gemspec"]
|
2018-06-03 02:05:45 +03:00
|
|
|
spec.bindir = "exe"
|
|
|
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
|
2020-04-08 08:33:22 +03:00
|
|
|
spec.required_ruby_version = ">= 2.5.0"
|
2018-06-03 02:05:45 +03:00
|
|
|
end
|