No commit activity in last 3 years
No release in over 3 years
Auto-installs versions of ruby missing from the system
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
~> 10.0
~> 3.0

Runtime

~> 0.20.3
 Project Readme

RubyAutoInstaller

RubyAutoInstaller is designed to be run automatically (cronjob, startup, etc) and install Ruby versions. This saves the downtime of waiting for new Ruby versions to download an compile.

Installation

$ gem install ruby_auto_installer

Usage

Usage:
  ruby_auto_installer update

Options:
  -n, [--manager-name=MANAGER_NAME]  # Manager to use (asdf/rbenv/rvm)
  -v, [--verbose]                    # Verbose output
  -g, [--greedy]                     # Install all versions, not just latest patch
  -m, [--min-version=MIN_VERSION]    # Minimum Ruby version to consider (i.e."2.0")
  -d, [--dry_run]                    # List versions that would be installed, but do not install 

By default only the latest patch version will be installed

Cron

To run the gem as a cronjob, you can do something like this in your crontab:

PATH=<output from `echo $PATH`>

0 4 * * * /bin/bash -l -c 'ruby_auto_installer update --manager_name=asdf -m 2.1'

This will run at 4a.m. every day and install the latest patch version for Ruby 2.1+ (using asdf manager).

Customise the above as required.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mc-squared/ruby_auto_installer.

License

The gem is available as open source under the terms of the MIT License.