1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Promote Prime library to default gems.

* Its upstream is https://github.com/ruby/prime.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2018-06-02 23:05:45 +00:00
parent 1dd4321844
commit 8ce71b6160
4 changed files with 28 additions and 3 deletions

View file

@ -102,8 +102,6 @@ Zachary Scott (zzak)
Tanaka Akira (akr)
[lib/prettyprint.rb]
Tanaka Akira (akr)
[lib/prime.rb]
Yuki Sonoda (yugui)
[lib/profile.rb]
_unmaintained_
[lib/profiler.rb]
@ -213,6 +211,8 @@ Zachary Scott (zzak)
https://github.com/ruby/fileutils
[lib/logger.rb]
Naotoshi Seo (sonots)
[lib/prime.rb]
Yuki Sonoda (yugui)
[lib/rdoc.rb, lib/rdoc/*]
Eric Hodel (drbrain), Hiroshi SHIBATA (hsbt)
https://github.com/ruby/rdoc

View file

@ -40,7 +40,6 @@ OptionParser:: Ruby-oriented class for command-line option analysis
OpenStruct:: Class to build custom data structures, similar to a Hash
PP:: Provides a PrettyPrinter for Ruby objects
PrettyPrinter:: Implements a pretty printing algorithm for readable structure
Prime:: Prime numbers and factorization library
profile.rb:: Runs the Ruby Profiler__
Profiler__:: Provides a way to profile your Ruby application
PStore:: Implements a file based persistence mechanism based on a Hash
@ -93,6 +92,7 @@ CMath:: Provides Trigonometric and Transcendental functions for complex numbers
CSV:: Provides an interface to read and write CSV files and data
FileUtils:: Several file utility methods for copying, moving, removing, etc
Logger:: Provides a simple logging utility for outputting messages
Prime:: Prime numbers and factorization library
RDoc:: Produces HTML and command-line documentation for Ruby
REXML:: An XML toolkit for Ruby
RSS:: Family of libraries that support various formats of XML "feeds"

22
lib/prime.gemspec Normal file
View file

@ -0,0 +1,22 @@
require_relative "prime"
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"
spec.files = [".gitignore", ".travis.yml", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "lib/prime.rb", "lib/prime/version.rb", "prime.gemspec"]
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "test-unit"
end

View file

@ -95,6 +95,9 @@ end
# has many prime factors. e.g. for Prime#prime? .
class Prime
VERSION = "0.1.0"
include Enumerable
include Singleton