File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,13 @@ Specifically:
2424To programmatically list all the supported versions, install the `gem2deb`
2525package and run `dh_ruby --print-supported`. To determine which is the default
2626version, 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments