diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-05 23:24:00 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-04-07 09:47:10 +0900 |
commit | db3d111c1d1e90b400f1e737ded6a4e4bdf2cec8 (patch) | |
tree | 9855ded7e329418eb40c178d813ffb96904633bb /template | |
parent | 3607657e1c613b1c1988c0a954bf03547978974f (diff) |
Bundled gems are expanded under `.bundle/gems` now
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5774
Diffstat (limited to 'template')
-rw-r--r-- | template/exts.mk.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/template/exts.mk.tmpl b/template/exts.mk.tmpl index 2f37f4480a..964939e365 100644 --- a/template/exts.mk.tmpl +++ b/template/exts.mk.tmpl @@ -25,7 +25,7 @@ macros["old_extensions"] = [] contpat = /(?>(?>[^\\\n]|\\.)*\\\n)*(?>[^\\\n]|\\.)*/ Dir.glob("{ext,.bundle/gems}/*/exts.mk") do |e| - gem = /\Agems(?=\/)/ =~ e + gem = e.start_with?(".bundle/gems/") s = File.read(e) s.scan(/^(extensions|SUBMAKEOPTS|EXT[A-Z]+|MFLAGS|NOTE_[A-Z]+)[ \t]*=[ \t]*(#{contpat})$/o) do |n, v| v.gsub!(/\\\n[ \t]*/, ' ') |