-
Notifications
You must be signed in to change notification settings - Fork 82
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
Ruby gem overmind #176
Ruby gem overmind #176
Conversation
NOTICE
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this notice file? Why we need it?
# frozen_string_literal: true | ||
|
||
module Overmind | ||
VERSION = "0.1.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep it in sync with overmind itself!
VERSION = "0.1.2" | |
VERSION = "2.4.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
# Class for downloading Overmind binaries. | ||
class OvermindDownloader < BaseDownloader | ||
NAME = "overmind" | ||
DEFAULT_VERSION = "2.4.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use here gem version also (if we keep it in sync with overmind one)
DEFAULT_VERSION = "2.4.0" | |
DEFAULT_VERSION = ::Overmind::VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
packaging/rubygems/RELEASING.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing steps to build tmux and what are pre-requisites (having Overmind itself already released on GitHub, right?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I added to RELEASING.md
packaging/rubygems/Gemfile
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a separate changelog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it
args = args.map { |x| x.include?(" ") ? "'#{x}'" : x } | ||
|
||
# Use prebuild tmux if found | ||
path_with_tmux = File.exist?(TMUX_PATH) ? "#{ENV["PATH"]}:#{TMUX_FOLDER_PATH}" : ENV["PATH"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to always use bundled tmux, its path should be prepended, not appended
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, fixed!
NOTICE
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this should be located in packaging/rubygems
and should be included in the gem. Also, it should contain licenses of tmux deps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
This PR adds the ability to generate gem files that pack the
overmind
library with dependenciestmux
into a gem file for various architectures of theLinux
andmacos
platforms by running a rake taskovermind:build:all.
It also prepares the gem file for
FreeBSD
, but withouttmux
in the boxThe rake task will download the overmind and tmux binaries and package them into a platform-specific gem.
To build the gem files, you need to have
Ruby >= 3.0
.This PR also adds a
NOTICE
file and additional information to the README.md.