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

ruby-changes:58612

From: Hiroshi <ko1@a...>
Date: Thu, 7 Nov 2019 16:47:58 +0900 (JST)
Subject: [ruby-changes:58612] 3b0bd34001 (master): Promote pstore to default gems

https://git.ruby-lang.org/ruby.git/commit/?id=3b0bd34001

From 3b0bd34001bbb7ba98e9594278a8fcbb7b734af9 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 7 Nov 2019 11:17:12 +0900
Subject: Promote pstore to default gems


diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 1a02f5e..cf13ad6 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -84,8 +84,6 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L84
   Tanaka Akira (akr)
 [lib/prettyprint.rb]
   Tanaka Akira (akr)
-[lib/pstore.rb]
-  _unmaintained_
 [lib/resolv-replace.rb]
   Tanaka Akira (akr)
 [lib/resolv.rb]
@@ -218,6 +216,10 @@ Zachary Scott (zzak) https://github.com/ruby/ruby/blob/trunk/doc/maintainers.rdoc#L216
 [lib/prime.rb]
   Yuki Sonoda (yugui)
   https://github.com/ruby/prime
+[lib/pstore.rb]
+  _unmaintained_
+  https://github.com/ruby/pstore
+  https://rubygems.org/gems/pstore
 [lib/racc.rb, lib/racc/*]
   Aaron Patterson (tenderlove), Hiroshi SHIBATA (hsbt)
   https://github.com/ruby/racc
diff --git a/doc/standard_library.rdoc b/doc/standard_library.rdoc
index fc301d6..a18d6ea 100644
--- a/doc/standard_library.rdoc
+++ b/doc/standard_library.rdoc
@@ -30,7 +30,6 @@ OpenURI:: An easy-to-use wrapper for Net::HTTP, Net::HTTPS and Net::FTP https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L30
 OptionParser:: Ruby-oriented class for command-line option analysis
 PP:: Provides a PrettyPrinter for Ruby objects
 PrettyPrinter:: Implements a pretty printing algorithm for readable structure
-PStore:: Implements a file based persistence mechanism based on a Hash
 RbConfig:: Information of your configure and build of Ruby
 resolv-replace.rb:: Replace Socket DNS with Resolv
 Resolv::  Thread-aware DNS resolver library in Ruby
@@ -82,6 +81,7 @@ Mutex_m:: Mixin to extend objects to be handled like a Mutex https://github.com/ruby/ruby/blob/trunk/doc/standard_library.rdoc#L81
 Open3:: Provides access to stdin, stdout and stderr when running other programs
 OpenStruct:: Class to build custom data structures, similar to a Hash
 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.
 RDoc:: Produces HTML and command-line documentation for Ruby
 REXML:: An XML toolkit for Ruby
diff --git a/lib/pstore/pstore.gemspec b/lib/pstore/pstore.gemspec
new file mode 100644
index 0000000..408af0a
--- /dev/null
+++ b/lib/pstore/pstore.gemspec
@@ -0,0 +1,29 @@ https://github.com/ruby/ruby/blob/trunk/lib/pstore/pstore.gemspec#L1
+begin
+  require_relative "lib/pstore/version"
+rescue LoadError # Fallback to load version file in ruby core repository
+  require_relative "version"
+end
+
+Gem::Specification.new do |spec|
+  spec.name          = "pstore"
+  spec.version       = PStore::VERSION
+  spec.authors       = ["Yukihiro Matsumoto"]
+  spec.email         = ["matz@r..."]
+
+  spec.summary       = %q{Transactional File Storage for Ruby Objects}
+  spec.description   = spec.summary
+  spec.homepage      = "https://github.com/ruby/pstore"
+  spec.license       = "BSD-2-Clause"
+
+  spec.metadata["homepage_uri"] = spec.homepage
+  spec.metadata["source_code_uri"] = "https://github.com/ruby/pstore"
+
+  # Specify which files should be added to the gem when it is released.
+  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
+  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/lib/pstore/version.rb b/lib/pstore/version.rb
new file mode 100644
index 0000000..0e7a3fb
--- /dev/null
+++ b/lib/pstore/version.rb
@@ -0,0 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/lib/pstore/version.rb#L1
+class PStore
+  VERSION = "0.1.0"
+end
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 8e16903..3c52a72 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -36,6 +36,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L36
 # * https://github.com/ruby/singleton
 # * https://github.com/ruby/open3
 # * https://github.com/ruby/getoptlong
+# * https://github.com/ruby/pstore
 #
 
 require 'fileutils'
@@ -79,6 +80,7 @@ $repositories = { https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L80
   singleton: "ruby/singleton",
   open3: "ruby/open3",
   getoptlong: "ruby/getoptlong",
+  pstore: "ruby/pstore",
 }
 
 def sync_default_gems(gem)
-- 
cgit v0.10.2


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

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