[DRE-commits] [gem2deb] 01/01: Set ruby:Versions to 'all' if possible
Christian Hofstaedtler
zeha at moszumanska.debian.org
Tue Mar 18 00:33:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
zeha pushed a commit to branch all-versions-for-arch-all
in repository gem2deb.
commit 4db638ea0f3cf56b29705cc2231469743fab10b8
Author: Christian Hofstaedtler <zeha at debian.org>
Date: Tue Mar 18 01:27:42 2014 +0100
Set ruby:Versions to 'all' if possible
Packages that ship no binary extensions and build for all Ruby versions
can safely have XB-Ruby-Versions set to 'all'. They already install a
shared gemspec file into the 'all' directory.
---
lib/gem2deb/installer.rb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lib/gem2deb/installer.rb b/lib/gem2deb/installer.rb
index 0852670..c1bb23a 100644
--- a/lib/gem2deb/installer.rb
+++ b/lib/gem2deb/installer.rb
@@ -59,8 +59,14 @@ module Gem2Deb
end
def install_substvars
+ versions =
+ if all_ruby_versions_supported? && !metadata.has_native_extensions?
+ ['all']
+ else
+ ruby_versions
+ end
File.open("debian/#{binary_package}.substvars", "a") do |fd|
- fd.puts "ruby:Versions=#{ruby_versions.join(' ')}"
+ fd.puts "ruby:Versions=#{versions.join(' ')}"
end
end
--
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