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

ruby-changes:63300

From: Hiroshi <ko1@a...>
Date: Thu, 8 Oct 2020 16:45:09 +0900 (JST)
Subject: [ruby-changes:63300] 0f9edf2f48 (master): Promote prettyprint to default gems

https://git.ruby-lang.org/ruby.git/commit/?id=0f9edf2f48

From 0f9edf2f48cf30735dde4fb0e9f357b33f567c7c Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Tue, 6 Oct 2020 21:05:03 +0900
Subject: Promote prettyprint to default gems


diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 7773de7..c936e92 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -44,8 +44,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L44
   _unmaintained_
 [lib/mkmf.rb]
   _unmaintained_
-[lib/prettyprint.rb]
-  Tanaka Akira (akr)
 [lib/rubygems.rb, lib/rubygems/*]
   Eric Hodel (drbrain), Hiroshi SHIBATA (hsbt)
   https://github.com/rubygems/rubygems
@@ -196,6 +194,9 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L194
 [lib/pp.rb]
   Tanaka Akira (akr)
   https://github.com/ruby/pp
+[lib/prettyprint.rb]
+  Tanaka Akira (akr)
+  https://github.com/ruby/prettyprint
 [lib/prime.rb]
   Yuki Sonoda (yugui)
   https://github.com/ruby/prime
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index f4c54fd..9667853 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -11,7 +11,6 @@ description. https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L11
 DEBUGGER__:: Debugging functionality for Ruby
 DRb:: Distributed object system for Ruby
 MakeMakefile:: Module used to generate a Makefile for C extensions
-PrettyPrinter:: Implements a pretty printing algorithm for readable structure
 RbConfig:: Information of your configure and build of Ruby
 Gem:: Package management framework for Ruby
 un.rb:: Utilities to replace common UNIX commands
@@ -62,6 +61,7 @@ Open3:: Provides access to stdin, stdout and stderr when running other programs https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L61
 OpenStruct:: Class to build custom data structures, similar to a Hash
 OpenURI:: An easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP
 PP:: Provides a PrettyPrinter for Ruby objects
+PrettyPrinter:: Implements a pretty printing algorithm for readable structure
 Prime:: Prime numbers and factorization library
 PStore:: Implements a file based persistence mechanism based on a Hash
 Racc:: A LALR(1) parser generator written in Ruby.
diff --git a/lib/prettyprint.gemspec b/lib/prettyprint.gemspec
new file mode 100644
index 0000000..169267f
--- /dev/null
+++ b/lib/prettyprint.gemspec
@@ -0,0 +1,22 @@ https://github.com/ruby/ruby/blob/trunk/lib/prettyprint.gemspec#L1
+Gem::Specification.new do |spec|
+  spec.name          = "prettyprint"
+  spec.version       = "0.1.0"
+  spec.authors       = ["Tanaka Akira"]
+  spec.email         = ["akr@f..."]
+
+  spec.summary       = %q{Implements a pretty printing algorithm for readable structure.}
+  spec.description   = %q{Implements a pretty printing algorithm for readable structure.}
+  spec.homepage      = "https://github.com/ruby/prettyprint"
+  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
+  spec.licenses      = ["Ruby", "BSD-2-Clause"]
+
+  spec.metadata["homepage_uri"] = spec.homepage
+  spec.metadata["source_code_uri"] = spec.homepage
+
+  spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
+    `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
+  end
+  spec.bindir        = "exe"
+  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+  spec.require_paths = ["lib"]
+end
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 1fa08ae..4615125 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -78,6 +78,7 @@ REPOSITORIES = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L78
   "resolv-replace": "ruby/resolv-replace",
   time: "ruby/time",
   pp: "ruby/pp",
+  prettyprint: "ruby/prettyprint",
 }
 
 def sync_default_gems(gem)
-- 
cgit v0.10.2


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

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