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
This commit is contained in:
hsbt 2018-07-25 12:26:41 +00:00
Родитель ddb6e1f712
Коммит 82f55bae86
3 изменённых файлов: 31 добавлений и 1 удалений

21
lib/e2mmap.gemspec Normal file
Просмотреть файл

@ -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

3
lib/e2mmap/version.rb Normal file
Просмотреть файл

@ -0,0 +1,3 @@
module Exception2MessageMapper
VERSION = "0.1.0"
end

Просмотреть файл

@ -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 @@ $repositories = {
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`