0.01
The project is in a healthy, maintained state
Modulorails is the common base for the Ruby on Rails project at Modulotech (https://www.modulotech.fr/). It registers each application using it on the company's intranet, provides templates for the common configurations and defines common dependencies.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.7, >= 1.7.0
>= 0.13.3
>= 0.9.5
>= 4.2.0
>= 1.28.2
>= 2.14.2
 Project Readme

Modulorails Build Status

Modulorails is the common base for the Ruby on Rails project at Modulotech.

It registers each application using it on the company's intranet, provides templates for the common configurations and defines common dependencies.

Installation

Add this line to your application's Gemfile:

gem 'modulorails'

And then execute:

$ bundle install

Usage

To work the gem needs to be configured. Add an initializer config/modulorails.rb:

Modulorails.configure do |config|
  config.name 'The usual name of the application'
  config.main_developer 'The email of the main developer/maintainer of the application'
  config.project_manager 'The email of the project manager of the application'
  config.endpoint 'The url to the intranet'
  config.api_key 'The API key'
  config.review_base_url 'The base url for the review environments' # optional
  config.staging_url 'The url for the staging environment'          # optional
  config.production_url 'The url for the production environment'    # optional
end

Development

There are tests in spec. To run tests:

  • Build Docker images using docker compose build.
  • You can run tests on all supported Ruby versions using docker compose up.
  • Or you can run test on a specific Ruby version using one of the following commands:
    • Ruby 2.5: docker compose run ruby25
    • Ruby 2.6: docker compose run ruby26
    • Ruby 2.7: docker compose run ruby27
    • Ruby 3.0: docker compose run ruby30
    • Ruby 3.1: docker compose run ruby31

Appraisal is used to test the gem against many supported Rails versions:

  • Rails 5.2, 6.0 and 6.1 on Ruby 2.5 and 2.6.
  • Rails 5.2, 6.0, 6.1 and 7.0 on Ruby 2.7, 3.0 and 3.1.

Travis CI is configured to automatically run tests in all supported Ruby versions and dependency sets after each push.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/moduloTech/modulorails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the 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 Modulorails project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.