@@ -214,15 +214,17 @@ def compute_build_alias(options)
214214 end
215215 # FIXME: We should have a way to specify extensions to be included by users.
216216 # For now, assume all default extensions available in the head revision are available.
217- return {
218- name : "local" ,
219- src : {
220- type : "local" ,
221- path : src_name ,
222- patches : [ ]
223- } ,
224- all_default_exts : RubyWasm ::Packager ::ALL_DEFAULT_EXTS ,
225- }
217+ return (
218+ {
219+ name : "local" ,
220+ src : {
221+ type : "local" ,
222+ path : src_name ,
223+ patches : [ ]
224+ } ,
225+ all_default_exts : RubyWasm ::Packager ::ALL_DEFAULT_EXTS
226+ }
227+ )
226228 end
227229 # Otherwise, it's an unknown source.
228230 raise (
@@ -243,52 +245,56 @@ def self.build_config_aliases(root)
243245 src : {
244246 type : "github" ,
245247 repo : "ruby/ruby" ,
246- rev : "master" ,
248+ rev : "master"
247249 } ,
248250 all_default_exts : RubyWasm ::Packager ::ALL_DEFAULT_EXTS ,
249- wasi_sdk_version : "23.0" ,
251+ wasi_sdk_version : "23.0"
250252 } ,
251253 {
252254 name : "3.4" ,
253255 src : {
254256 type : "tarball" ,
255- url : "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.1.tar.gz" ,
257+ url : "https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.1.tar.gz"
256258 } ,
257- all_default_exts : "cgi/escape,continuation,coverage,date,digest/bubblebabble,digest,digest/md5,digest/rmd160,digest/sha1,digest/sha2,etc,fcntl,json,json/generator,json/parser,objspace,pathname,psych,rbconfig/sizeof,ripper,stringio,strscan,monitor,zlib,openssl" ,
258- wasi_sdk_version : "22.0" ,
259+ all_default_exts :
260+ "cgi/escape,continuation,coverage,date,digest/bubblebabble,digest,digest/md5,digest/rmd160,digest/sha1,digest/sha2,etc,fcntl,json,json/generator,json/parser,objspace,pathname,psych,rbconfig/sizeof,ripper,stringio,strscan,monitor,zlib,openssl" ,
261+ wasi_sdk_version : "22.0"
259262 } ,
260263 {
261264 name : "3.3" ,
262265 src : {
263266 type : "tarball" ,
264- url : "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.3.tar.gz" ,
267+ url : "https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.3.tar.gz"
265268 } ,
266- all_default_exts : "bigdecimal,cgi/escape,continuation,coverage,date,dbm,digest/bubblebabble,digest,digest/md5,digest/rmd160,digest/sha1,digest/sha2,etc,fcntl,fiber,gdbm,json,json/generator,json/parser,nkf,objspace,pathname,psych,racc/cparse,rbconfig/sizeof,ripper,stringio,strscan,monitor,zlib,openssl" ,
267- wasi_sdk_version : "22.0" ,
269+ all_default_exts :
270+ "bigdecimal,cgi/escape,continuation,coverage,date,dbm,digest/bubblebabble,digest,digest/md5,digest/rmd160,digest/sha1,digest/sha2,etc,fcntl,fiber,gdbm,json,json/generator,json/parser,nkf,objspace,pathname,psych,racc/cparse,rbconfig/sizeof,ripper,stringio,strscan,monitor,zlib,openssl" ,
271+ wasi_sdk_version : "22.0"
268272 } ,
269273 {
270274 name : "3.2" ,
271275 src : {
272276 type : "tarball" ,
273- url : "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.gz" ,
277+ url : "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.4.tar.gz"
274278 } ,
275- all_default_exts : "bigdecimal,cgi/escape,continuation,coverage,date,dbm,digest/bubblebabble,digest,digest/md5,digest/rmd160,digest/sha1,digest/sha2,etc,fcntl,fiber,gdbm,json,json/generator,json/parser,nkf,objspace,pathname,psych,racc/cparse,rbconfig/sizeof,ripper,stringio,strscan,monitor,zlib,openssl" ,
276- wasi_sdk_version : "22.0" ,
279+ all_default_exts :
280+ "bigdecimal,cgi/escape,continuation,coverage,date,dbm,digest/bubblebabble,digest,digest/md5,digest/rmd160,digest/sha1,digest/sha2,etc,fcntl,fiber,gdbm,json,json/generator,json/parser,nkf,objspace,pathname,psych,racc/cparse,rbconfig/sizeof,ripper,stringio,strscan,monitor,zlib,openssl" ,
281+ wasi_sdk_version : "22.0"
277282 }
278283 ]
279284
280285 # Set the name in the source config.
281- aliases . each do |config |
282- config [ :src ] [ :name ] = config [ :name ]
283- end
286+ aliases . each { |config | config [ :src ] [ :name ] = config [ :name ] }
284287
285288 # Apply bundled and user-specified `<root>/patches` directories.
286289 aliases . each do |config |
287290 patches_dirs = [ bundled_patches_path , File . join ( root , "patches" ) ]
288- config [ :src ] [ :patches ] = patches_dirs . flat_map do |patches_dir |
289- Dir [ File . join ( patches_dir , config [ :name ] , "*.patch" ) ]
290- . map { |p | File . expand_path ( p ) }
291- end . uniq
291+ config [ :src ] [ :patches ] = patches_dirs
292+ . flat_map do |patches_dir |
293+ Dir [ File . join ( patches_dir , config [ :name ] , "*.patch" ) ] . map do |p |
294+ File . expand_path ( p )
295+ end
296+ end
297+ . uniq
292298 end
293299
294300 # Pin the revisions based on build_manifest.json if available.
0 commit comments