[前][次][番号順一覧][スレッド一覧]

ruby-changes:51354

From: hsbt <ko1@a...>
Date: Sun, 3 Jun 2018 08:05:52 +0900 (JST)
Subject: [ruby-changes:51354] hsbt:r63560 (trunk): Promote Prime library to default gems.

hsbt	2018-06-03 08:05:45 +0900 (Sun, 03 Jun 2018)

  New Revision: 63560

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63560

  Log:
    Promote Prime library to default gems.
    
      * Its upstream is https://github.com/ruby/prime.

  Added files:
    trunk/lib/prime.gemspec
  Modified files:
    trunk/doc/maintainers.rdoc
    trunk/doc/standard_library.rdoc
    trunk/lib/prime.rb
Index: doc/maintainers.rdoc
===================================================================
--- doc/maintainers.rdoc	(revision 63559)
+++ doc/maintainers.rdoc	(revision 63560)
@@ -102,8 +102,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L102
   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/ruby/blob/trunk/doc/maintainers.rdoc#L211
   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
Index: doc/standard_library.rdoc
===================================================================
--- doc/standard_library.rdoc	(revision 63559)
+++ doc/standard_library.rdoc	(revision 63560)
@@ -40,7 +40,6 @@ OptionParser:: Ruby-oriented class for c https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L40
 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 Trans https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L92
 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"
Index: lib/prime.gemspec
===================================================================
--- lib/prime.gemspec	(nonexistent)
+++ lib/prime.gemspec	(revision 63560)
@@ -0,0 +1,22 @@ https://github.com/ruby/ruby/blob/trunk/lib/prime.gemspec#L1
+require_relative "prime"
+
+Gem::Specification.new do |spec|
+  spec.name          = "prime"
+  spec.version       = Prime::VERSION
+  spec.authors       = ["Yuki Sonoda"]
+  spec.email         = ["yugui@y..."]
+
+  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
Index: lib/prime.rb
===================================================================
--- lib/prime.rb	(revision 63559)
+++ lib/prime.rb	(revision 63560)
@@ -95,6 +95,9 @@ end https://github.com/ruby/ruby/blob/trunk/lib/prime.rb#L95
 #   has many prime factors. e.g. for Prime#prime? .
 
 class Prime
+
+  VERSION = "0.1.0"
+
   include Enumerable
   include Singleton
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]