From 3d42d59d855a86ee9a5f2c1cf71ece454b5825d2 Mon Sep 17 00:00:00 2001 From: hachi8833 Date: Fri, 17 Jan 2025 11:42:32 +0900 Subject: [PATCH] rails-new 0.5.0 (new formula) --- Formula/r/rails-new.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/r/rails-new.rb diff --git a/Formula/r/rails-new.rb b/Formula/r/rails-new.rb new file mode 100644 index 00000000000000..a66ddd88214c27 --- /dev/null +++ b/Formula/r/rails-new.rb @@ -0,0 +1,25 @@ +# typed: false + +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" + + depends_on "rust" => :build + + def install + system "cargo", "install", *std_cargo_args + end + + def caveats + <<~TEXT + You need to install 'docker' in your environment first. + TEXT + end + + test do + assert_equal "rails-new 0.5.0\n", shell_output("#{bin}/rails-new --version") + end +end