Project

rrm

0.0
No release in over 3 years
Low commit activity in last 3 years
Makes updating Gemfile and friends easy for a lot of projects at once.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 11.0
~> 10.0
~> 3.0
~> 0.17.0
~> 5.0
~> 3.6

Runtime

~> 1.34
~> 1.5
~> 2.0
~> 1.10
~> 4.6
 Project Readme

rrm - Ruby Repository Manager

Trying to make the repetitive task of updating Ruby (and gem dependencies) for multiple projects a bit less painful.

What does it do?

Give it some URL's to git repositories, and rrm will:

  • Clone each repository
  • Update to the latest patch, minor or major version of Ruby by updating
    • Dockerfile
    • Gemfile
    • Gemfile.lock (by running bundle via Docker)
    • .gitlab-ci.yml
    • .rubocop.yml
    • .travis.yml
  • Updates gems to latest versions if you choose to
  • Push changes in a new branch to remote

Staying up to date with new Ruby versions on tens of projects should be easier than ever!

DEMO!

Running it

Requirements

  • Ruby
  • Docker

Tested on macOS Mojave with Ruby 2.6.2 and Docker 18.09.2.

Usage

Install:

gem install rrm

Update all projects to the latest available patch version:

rrm --urls git@github.com:jannewaren/rrm-demo-app-ancient.git,git@github.com:jannewaren/rrm-demo-app-old.git,git@github.com:jannewaren/rrm-demo-app-new.git --patch-latest

Update all projects to the latest available minor version, with gems updated as well:

rrm --urls git@github.com:jannewaren/rrm-demo-app-ancient.git,git@github.com:jannewaren/rrm-demo-app-old.git,git@github.com:jannewaren/rrm-demo-app-new.git --patch-latest --update-gems

Run rrm --help to see all available options.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jannewaren/rrm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

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

Code of Conduct

Everyone interacting in the Rrm project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

TODO

  • Interactive mode with some fancy ncurses dialogs etc
  • Only update gems in selected groups (to easily update development dependencies more often for example)
  • Ways to limit or increase output (--quiet mode and --verbose mode)
  • Make proper documentation and refactor all the classes so it could be used as a gem/library inside other projects. For example a Slack bot to update things?
  • Is it okay to just pollute the users /tmp/ files like this?
  • Add an option to automatically create merge requests / pull requests in Gitlab/Github