Skip to content

Commit

Permalink
rails-new 0.5.0 (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
hachi8833 authored and chenrui333 committed Jan 17, 2025
1 parent f533e54 commit 3d42d59
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Formula/r/rails-new.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3d42d59

Please sign in to comment.