Skip to content

Proposition: adding rails-new to homebrew fomula #45

Closed
@hachi8833

Description

I created the following homebrew fomula to make installation easier.
Shall I send the PR to https://github.com/Homebrew/homebrew-core, or do you have any plans to send a PR for that?

# rails-new.rb

# 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.4.1.tar.gz"
  sha256 "d9c11267eb7c7a40a740768d09e5da60e07009d490d6561b734c35ac88095d51"
  license "MIT"

  depends_on "rust" => :build

  def caveats
    <<~TEXT
      You need to install 'docker' in your environment first.
    TEXT
  end

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

  test do
    assert_equal "rails-new 0.4.1\n", shell_output("#{bin}/rails-new --version")
  end
end

Well, brew audit warns just one thing: current version is not 1.0.0 or higher.

$ brew audit --new rails-new
rails-new
  * v0.4.1 is a GitHub pre-release.
  * line 18, col 3: `install` (line 18)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions