maid
maid copied to clipboard
Brew installer for MacOS
Like https://github.com/benjaminoakes/maid/issues?utf8=✓&q=is%3Aissue+installer
So you could install with:
brew install maid
It would need to include a watcher or cron based sample.
I'd be for this feature, but I'm unlikely to implement it myself.
@benjaminoakes love to help with this issue. Looks like this has been a year and nobody has touched this issue.
Here is the documentation for creating a new Formula in home brew.
https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md#formula-cookbook
Brew does have the ability to install rubygems as homebrew formulae. You just need to install the brew-gem formula with:
brew install brew-gem
After that you can install Ruby gems through homebrew with (to install maid for example):
brew gem install maid
Otherwise, if people are more in favor of an actual Homebrew formula for installing, the Brew formula should be rather simple (since the formula will use gem to install Maid). Something like this, to start with:
require 'formula'
class BrewMaid < Formula
homepage 'https://github.com/benjaminoakes/maid/'
def initialize(*args)
@name = "maid"
@version = "0.7.0"
super
end
def install
system "gem", "install", name, "--version", version, "--install-dir", prefix
end
end
I'm working on the latter idea: installing as a formula, and encountering a rather complex beast of ruby versions and gem install locations. I suspect there's a more correct thing to do (which is to install to ruby's location, rather than to homebrew. But then I encounter rights to install issues).
@bensleveritt I know it has been awhile, are you still experiencing the problem? In terminal what does ruby --version
return? Without knowing beforehand, I suspect that Homebrew is attempting to install using your system default Ruby. If you post the errors you're getting after running it through Homebrew, I can try and help troubleshoot.
Going over old issues and triaging.
Is there still interest for this?
I would find this helpful. It would be nice to have some use of something like "traveling Ruby" because it's actually kind of hard to get started with Maid
https://phusion.github.io/traveling-ruby/
https://phusion.github.io/traveling-ruby/
That looks pretty cool
Traveling Ruby is abandoned, and portable-ruby is stuck at version 2.6.8. Will need to look into this again when there is a stable release, because homebrew doesn't accept unstable or old versions (0.7.0 is from 2015)
Oh, that's too bad. I wonder what the best way is to distribute Ruby applications to users who aren't deep into the Ruby ecosystem. (Is that a barrier to entry?)
I think Brew would be a possibility but first we need a recent, stable version (unless we want to do a Tap)
And then there is the question of embedding Ruby which I don't fully understand: does the formula need to package its own portable Ruby or can we specify which version it needs and then brew installs it (there are Ruby formulas)?
For an AppImage I'm pretty sure we need to embed a Ruby binary and I'm not very clear on how to do that.
I think Brew would be a possibility but first we need a recent, stable version
Well, should we revisit this after a stable release is out?
Definitely.
This issue has been open for 30 days without any activity. Remove no-issue-activity
label or comment to avoid automatic closure in 7 days.
Would love this personally!
Bump :)