Skip to content

Commit

Permalink
Promote Exception2MessageMapper to Default gems.
Browse files Browse the repository at this point in the history
  * 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
  • Loading branch information
hsbt committed Jul 25, 2018
1 parent ddb6e1f commit 82f55ba
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
21 changes: 21 additions & 0 deletions lib/e2mmap.gemspec
Original file line number Diff line number Diff line change
@@ -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 = ["[email protected]"]

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 changes: 3 additions & 0 deletions lib/e2mmap/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Exception2MessageMapper
VERSION = "0.1.0"
end
8 changes: 7 additions & 1 deletion tool/sync_default_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit 82f55ba

Please sign in to comment.