From a4dd01f7d22b813f6fde720c437bf2f0daae0624 Mon Sep 17 00:00:00 2001 From: hachi8833 Date: Fri, 17 Jan 2025 11:42:32 +0900 Subject: [PATCH 1/2] rails-new 0.5.0 (new formula) Signed-off-by: Rui Chen rails-new: update test Signed-off-by: Rui Chen --- .github/autobump.txt | 1 + Formula/r/rails-new.rb | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Formula/r/rails-new.rb diff --git a/.github/autobump.txt b/.github/autobump.txt index 021a8f3bd1ea2..e74dbdd715703 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -2677,6 +2677,7 @@ rabbitmq-c radamsa radare2 rage +rails-new railway rainfrog rakudo-star diff --git a/Formula/r/rails-new.rb b/Formula/r/rails-new.rb new file mode 100644 index 0000000000000..bb5e011797075 --- /dev/null +++ b/Formula/r/rails-new.rb @@ -0,0 +1,24 @@ +class RailsNew < Formula + desc "Create Rails projects with Ruby installed" + homepage "https://github.com/rails/rails-new" + url "https://github.com/rails/rails-new/archive/refs/tags/v0.5.0.tar.gz" + sha256 "9a309ea0d3f7b7c10327aba30e919bab30efc3bdffc2fcedaa54ce23d9e4ae42" + license "MIT" + head "https://github.com/rails/rails-new.git", branch: "main" + + depends_on "rust" => :build + depends_on "docker" => :test + + def install + system "cargo", "install", *std_cargo_args + end + + test do + ENV["DOCKER_HOST"] = "unix://#{testpath}/invalid.sock" + + assert_match version.to_s, shell_output("#{bin}/rails-new --version") + + output = shell_output("#{bin}/rails-new testapp 2>&1", 101) + assert_match "Cannot connect to the Docker daemon", output + end +end From 0eca7d461cf5fce573c3ee5a4ede784f06f0b364 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 16 Jan 2025 22:04:12 -0500 Subject: [PATCH 2/2] audit_exceptions/github_prerelease_allowlist: add rails-new 0.5.0 Signed-off-by: Rui Chen --- audit_exceptions/github_prerelease_allowlist.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audit_exceptions/github_prerelease_allowlist.json b/audit_exceptions/github_prerelease_allowlist.json index 6e2b7ca4383e8..136d758f7636c 100644 --- a/audit_exceptions/github_prerelease_allowlist.json +++ b/audit_exceptions/github_prerelease_allowlist.json @@ -7,5 +7,6 @@ "joshuto": "all", "lha": "all", "libesedb": "20240420", - "polynote": "all" + "polynote": "all", + "rails-new": "0.5.0" }