Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails-new 0.5.0 (new formula) #204565

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2677,6 +2677,7 @@ rabbitmq-c
radamsa
radare2
rage
rails-new
railway
rainfrog
rakudo-star
Expand Down
24 changes: 24 additions & 0 deletions Formula/r/rails-new.rb
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion audit_exceptions/github_prerelease_allowlist.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"joshuto": "all",
"lha": "all",
"libesedb": "20240420",
"polynote": "all"
"polynote": "all",
"rails-new": "0.5.0"
}
Loading