From 82f55bae8697645505b386c04619df353e14938f Mon Sep 17 00:00:00 2001 From: hsbt Date: Wed, 25 Jul 2018 12:26:41 +0000 Subject: [PATCH] Promote Exception2MessageMapper to Default gems. * lib/e2mmap.gemspec: Added initial gemspec. * lib/e2mmap/version.rb: Added Exception2MessageMapper::VERSION for gemspec. * tool/sync_default_gems.rb: Support Exception2MessageMapper. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/e2mmap.gemspec | 21 +++++++++++++++++++++ lib/e2mmap/version.rb | 3 +++ tool/sync_default_gems.rb | 8 +++++++- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 lib/e2mmap.gemspec create mode 100644 lib/e2mmap/version.rb diff --git a/lib/e2mmap.gemspec b/lib/e2mmap.gemspec new file mode 100644 index 00000000000000..126637c756ac05 --- /dev/null +++ b/lib/e2mmap.gemspec @@ -0,0 +1,21 @@ +require_relative "e2mmap/version" + +Gem::Specification.new do |spec| + spec.name = "e2mmap" + spec.version = Exception2MessageMapper::VERSION + spec.authors = ["Keiju ISHITSUKA"] + spec.email = ["keiju@ruby-lang.org"] + + spec.summary = %q{Module for defining custom exceptions with specific messages.} + spec.description = %q{Module for defining custom exceptions with specific messages.} + spec.homepage = "https://github.com/ruby/e2mmap" + spec.license = "BSD-2-Clause" + + spec.files = [".gitignore", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "bin/console", "bin/setup", "e2mmap.gemspec", "lib/e2mmap.rb", "lib/e2mmap/version.rb"] + spec.bindir = "exe" + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.require_paths = ["lib"] + + spec.add_development_dependency "bundler", "~> 1.16" + spec.add_development_dependency "rake", "~> 10.0" +end diff --git a/lib/e2mmap/version.rb b/lib/e2mmap/version.rb new file mode 100644 index 00000000000000..c459aeace302ce --- /dev/null +++ b/lib/e2mmap/version.rb @@ -0,0 +1,3 @@ +module Exception2MessageMapper + VERSION = "0.1.0" +end diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index b48a2ed7ed7bd7..0bf1867062e74d 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -33,6 +33,7 @@ # * https://github.com/ruby/shell # * https://github.com/ruby/forwardable # * https://github.com/ruby/thwait +# * https://github.com/ruby/e2mmap # $repositories = { @@ -68,7 +69,8 @@ tracer: 'ruby/tracer', shell: 'ruby/shell', forwardable: "ruby/forwardable", - thwait: "ruby/thwait" + thwait: "ruby/thwait", + e2mmap: "ruby/e2mmap" } def sync_default_gems(gem) @@ -178,6 +180,10 @@ def sync_default_gems(gem) `rm -rf lib/thwait*` `cp -rf ../thwait/lib/* lib` `cp -rf ../thwait/thwait.gemspec lib` + when "e2mmap" + `rm -rf lib/e2mmap*` + `cp -rf ../e2mmap/lib/* lib` + `cp -rf ../e2mmap/e2mmap.gemspec lib` when "strscan" `rm -rf ext/strscan test/strscan` `cp -rf ../strscan/ext/strscan ext`