Table of Contents

Features

Requirements

  1. Ruby
  2. Ruby on Rails

Setup

First, one-time setting adding your github PAT (with repo read/write access):

bundle config https://rubygems.pkg.github.com/nedap USERNAME:TOKEN

Then:

source 'https://rubygems.pkg.github.com/nedap' do
  gem 'healthcare-infra'
end

Usage

Mount the engine:

mount Healthcare::Infra::Engine, at: '/infra_task'

Development

To contribute, run:

git clone https://github.com/rodzyn/healthcare-infra.git
cd healthcare-infra
bin/setup

You can also use the IRB console for direct access to all objects:

bin/console

Tests

To test, run:

bundle exec rake

Versioning

Read Semantic Versioning for details. Briefly, it means:

  • Major (X.y.z) - Incremented for any backwards incompatible public API changes.
  • Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
  • Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.

See https://github.com/svenfuchs/gem-release#gem-bump, example:

gem bump -v minor

Releasing

I am using https://github.com/svenfuchs/gem-release as an experiment I am releasing to github package registry as an experiment

First you need to do one-time setup. Create or modify:

~/.gem/credentials

with data:

---
:github: Bearer TOKEN

If you are more interested into this area, read more here: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry

Release sequence:

gem bump
gem tag
rake release
rake changelog
git commit -m 'Update the CHANGELOG' CHANGELOG.md
git push origin main