Giter Club home page Giter Club logo

rrm's Introduction

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 [email protected]:jannewaren/rrm-demo-app-ancient.git,[email protected]:jannewaren/rrm-demo-app-old.git,[email protected]:jannewaren/rrm-demo-app-new.git --patch-latest

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

rrm --urls [email protected]:jannewaren/rrm-demo-app-ancient.git,[email protected]:jannewaren/rrm-demo-app-old.git,[email protected]: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

rrm's People

Contributors

jannewaren avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.