[DRE-commits] [gem2deb] 02/04: Add exceptions to the foo → ruby-foo naming rules
Antonio Terceiro
terceiro at moszumanska.debian.org
Fri Feb 6 16:26:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit 17f598daecb035b92b2f089655463ed053b13465
Author: Antonio Terceiro <terceiro at debian.org>
Date: Fri Feb 6 14:01:03 2015 -0200
Add exceptions to the foo → ruby-foo naming rules
---
lib/gem2deb/dh_make_ruby.rb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/gem2deb/dh_make_ruby.rb b/lib/gem2deb/dh_make_ruby.rb
index 4b31ed4..cc842ab 100644
--- a/lib/gem2deb/dh_make_ruby.rb
+++ b/lib/gem2deb/dh_make_ruby.rb
@@ -104,8 +104,14 @@ module Gem2Deb
end
end
+ GEM_TO_PACKAGE = {
+ 'rake' => 'rake',
+ 'rails' => 'rails',
+ }
+
def gem_name_to_source_package_name(gem_name)
- 'ruby-' + gem_name.gsub(/^ruby[-_]|[-_]ruby$/, '')
+ map = GEM_TO_PACKAGE
+ map[gem_name] || 'ruby-' + gem_name.gsub(/^ruby[-_]|[-_]ruby$/, '')
end
def gem_dirname
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list