summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-11-07 11:17:12 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-11-07 16:36:14 +0900
commit3b0bd34001bbb7ba98e9594278a8fcbb7b734af9 (patch)
tree3e0dbea9b2fd91a859657e6e61b2a8deb1993de9
parent6797c3e371c3e91a2796f2ec1f3b4a3f24edf1d6 (diff)
Promote pstore to default gems
-rw-r--r--doc/maintainers.rdoc6
-rw-r--r--doc/standard_library.rdoc2
-rw-r--r--lib/pstore/pstore.gemspec29
-rw-r--r--lib/pstore/version.rb3
-rw-r--r--tool/sync_default_gems.rb2
5 files changed, 39 insertions, 3 deletions
diff --git a/doc/maintainers.rdoc b/doc/maintainers.rdoc
index 1a02f5ea80..cf13ad6588 100644
--- a/doc/maintainers.rdoc
+++ b/doc/maintainers.rdoc
@@ -84,8 +84,6 @@ Zachary Scott (zzak)
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)
[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 fc301d6ab4..a18d6ea001 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
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
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 0000000000..408af0a078
--- /dev/null
+++ b/lib/pstore/pstore.gemspec
@@ -0,0 +1,29 @@
+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@ruby-lang.org"]
+
+ 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 0000000000..0e7a3fbd15
--- /dev/null
+++ b/lib/pstore/version.rb
@@ -0,0 +1,3 @@
+class PStore
+ VERSION = "0.1.0"
+end
diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index 8e169038f4..3c52a72640 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -36,6 +36,7 @@
# * 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 = {
singleton: "ruby/singleton",
open3: "ruby/open3",
getoptlong: "ruby/getoptlong",
+ pstore: "ruby/pstore",
}
def sync_default_gems(gem)