-
Conditional gems in ruby without breaking Gemfile.lock
Do you want ruby/bundler to skip a gem install on a certain platform, but any other platform needs that gem? The obvious answer would be the following, which would result in also clobbering your Gemfile.lock if bundling on macOS: gem “openssl”, “= 3.2.0” if RUBY_PLATFORM !~ /darwin/ But bundler has its own method, install_if , to accomplish such a…
-
Quiet “Don’t run bundler as root” warnings, Bundler >= 2.3.7
Silence “Don’t run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.” warning
-
I forgot how much setup was required to…
I forgot how much setup was required to go from a base Ubuntu install to bundling and running ruby things: “mkmf.rb can’t find header files for ruby” and other header files messages with bundler… new to also install ruby-dev with your ruby package install in Ubuntu On Ubuntu… need the following: apt-get install -y ruby…