1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

common.mk: preserve rest fields of bundled_gems

* common.mk (update-bundled_gems): preserve rest fields other than
  names and versions, for more extensions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-10-21 09:25:05 +00:00
parent 293b9d66af
commit d5b34b5331

View file

@ -1149,7 +1149,9 @@ update-bundled_gems: PHONY
$(Q) $(RUNRUBY) -rrubygems \
-pla \
-e '$$_=Gem::SpecFetcher.fetcher.detect(:latest) {|s|' \
-e 'break "#{s.name} #{s.version}" if s.platform=="ruby"&&s.name==$$F[0]' \
-e 'if s.platform=="ruby"&&s.name==$$F[0]' \
-e 'break [s.name, s.version, *$$F[2..-1]].join(" ")' \
-e 'end' \
-e '}' \
"$(srcdir)/gems/bundled_gems" | \
"$(IFCHANGE)" "$(srcdir)/gems/bundled_gems" -