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

Proposition: adding rails-new to homebrew fomula #45

Closed
hachi8833 opened this issue Jan 5, 2025 · 3 comments
Closed

Proposition: adding rails-new to homebrew fomula #45

hachi8833 opened this issue Jan 5, 2025 · 3 comments

Comments

@hachi8833
Copy link

hachi8833 commented Jan 5, 2025

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)
@rafaelfranca
Copy link
Member

Please go ahead!

@rafaelfranca
Copy link
Member

I don't want to release 1.0 since I want to use the docker API instead of the executable before that.

@hachi8833
Copy link
Author

I close the issue, considering the current status of rails-new and Homebrew's policy.

Homebrew/homebrew-core#204565

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants