Skip to content

Commit 33946c1

Browse files
terceirosorah
authored andcommitted
Support skipping an interpreter by setting RUBY_ALL_DEV_SKIP
Note that this is a developer feature, and MUST NOT be used in any packages. Gbp-Dch: full
1 parent b1e3e08 commit 33946c1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

debian/README.Debian

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,13 @@ Specifically:
2424
To programmatically list all the supported versions, install the `gem2deb`
2525
package and run `dh_ruby --print-supported`. To determine which is the default
2626
version, just dereference the /usr/bin/ruby symbolic link.
27+
28+
29+
Skipping some Ruby version when building packages
30+
-------------------------------------------------
31+
32+
To skip building/testing against a specific Ruby version that is listed as
33+
suppotted, you can set e.g. RUBY_ALL_DEV_SKIP=ruby3.2 and get ruby3.2 ignored.
34+
35+
This is a developer feature, intended for very specific use cases, and MUST NOT
36+
be used in any Debian packages to skip tests and whatnot.

ruby_debian_dev.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ module RubyDebianDev
22

33
RUBY_INTERPRETERS = {}
44

5+
def self.skip
6+
@skip ||= (ENV["RUBY_ALL_DEV_SKIP"] || "").split
7+
end
8+
59
def self.has_support_for(ruby)
10+
return if skip.include?(ruby)
611
RUBY_INTERPRETERS[ruby] = yield
712
end
813

0 commit comments

Comments
 (0)