Coder Social home page Coder Social logo

Homebrew Formula about puma-dev HOT 5 CLOSED

puma avatar puma commented on May 22, 2024 2
Homebrew Formula

from puma-dev.

Comments (5)

evanphx avatar evanphx commented on May 22, 2024

An excellent idea! I'll do that today.
On Thu, Jul 28, 2016 at 1:33 AM Kristoffer [email protected] wrote:

Being able to install puma-dev through Homebrew would be great. I'd be
happy to try creating a Homebrew formula that would make this possible, if
we could get a release with the changes from #3
#3 in the .tar.gz file.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#4, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAABy0M3tzqEbH8N506vQ7CBlcM89SEks5qaGltgaJpZM4JW-zJ
.

from puma-dev.

NickLaMuro avatar NickLaMuro commented on May 22, 2024

Well, here is a super janky attempt at simplistic Homebrew formula that you can install manually:

class PumaDev < Formula
  desc "A tool to manage rack apps in development with puma"
  homepage "https://github.com/puma/puma-dev"
  url 'https://github.com/puma/puma-dev.git', :using => :git
  version '0.3.0' # I am taking a stab in the dark with this one here

  depends_on "go" => :build

  def install
    ENV['GOPATH']=buildpath
    system "go", "get", "github.com/constabulary/gb/..."
    system "bin/gb build cmd/puma-dev"
    bin.install "bin/puma-dev"
  end

  test do
    require 'open3'
    puma_dev_bin = "#{bin}/puma-dev"
    ::Open3.popen3("#{puma_dev_bin} -h") do |_, _, stderr|
      assert_equal "Usage of #{puma_dev_bin}:", stderr.readlines.first.strip
    end
  end
end

You can just save that as puma_dev.rb somewhere on your filesystem and run brew install /path/to/puma_dev.rb and it #shouldIReallyHopeItWorksForSomeoneBesidesMe work. This uses the GitDownloadStrategy, and I am not sure if the homebrew team likes using that in the official formula repo, so this probably would not be accepted there. You are welcome to use it if does the trick though.

P.S. I don't "Go" much, so I probably did all sorts of wrong here as far as that is concerned. Bracing for public shaming.

Edit: I consulted the README to snag a somewhat relevant version number

from puma-dev.

denkristoffer avatar denkristoffer commented on May 22, 2024

Turns out Homebrew doesn't want repositories that are newer than 30 days. I'll submit a PR once it's possible.

from puma-dev.

evanphx avatar evanphx commented on May 22, 2024

Ok, done! brew install puma/puma/puma-dev!

from puma-dev.

evanphx avatar evanphx commented on May 22, 2024

The formula is over here: https://github.com/puma/homebrew-puma/blob/master/puma-dev.rb

from puma-dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.