Skip to content

Commit 9a15b99

Browse files
rake format
1 parent 6f3eefb commit 9a15b99

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Rakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ BUILD_SOURCES = {
1515
rev: "master",
1616
patches: Dir["./patches/*.patch"].map { |p| File.expand_path(p) }
1717
},
18-
"3.2" => { type: "tarball", url: "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz" }
18+
"3.2" => {
19+
type: "tarball",
20+
url: "https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz"
21+
}
1922
}
2023

2124
# Respect revisions specified in build_manifest.json, which is usually generated on GitHub Actions.

lib/ruby_wasm/build/product/ruby_source.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,17 @@ def fetch(executor)
6262
)
6363
when "tarball"
6464
executor.mkdir_p src_dir
65-
tarball_path = File.join(File.dirname(src_dir), File.basename(src_dir) + ".tar.gz")
65+
tarball_path =
66+
File.join(File.dirname(src_dir), File.basename(src_dir) + ".tar.gz")
6667
executor.system("curl", "-L", "-o", tarball_path, @params[:url])
67-
executor.system("tar", "xf", tarball_path, "-C", src_dir, "--strip-components=1")
68+
executor.system(
69+
"tar",
70+
"xf",
71+
tarball_path,
72+
"-C",
73+
src_dir,
74+
"--strip-components=1"
75+
)
6876
when "local"
6977
executor.mkdir_p File.dirname(src_dir)
7078
executor.cp_r @params[:src], src_dir

0 commit comments

Comments
 (0)