Skip to content

Commit

Permalink
rails-new 0.5.0 (new formula)
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
hachi8833 authored and chenrui333 committed Jan 18, 2025
1 parent 408dcd6 commit e70a81a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Formula/r/rails-new.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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

def install
system "cargo", "install", *std_cargo_args
end

test do
assert_match version.to_s, shell_output("#{bin}/rails-new --version")

output = shell_output("#{bin}/rails-new testapp 2>&1", 101)
assert_match "failed to fetch metadata", output
end
end

0 comments on commit e70a81a

Please sign in to comment.