Skip to the content.

Mather Service (in Ruby)

Simple Ruby gRPC microservice that does math.

Build Status

Features

Usage

From Prebuilt Binaries

Prebuilt binaries are available on the releases page.

From RubyGems

# Install
gem install mather-rb

# Start
mather-rb-server start

From Source

Prerequisites

# Install dependencies
bundle install --path .vendor/bundle

# Clean (optional)
bundle exec rake clean

# Build
bundle exec rake

Start With Toolchain

# Start
bundle exec rake start

Start As Standalone Binary

# Install dependencies (for `rubyc`)
sudo -E env "PATH=$PATH" bundle exec rake rubyc_install_dependencies
sudo -E env "PATH=$PATH" bundle exec rake 'rubyc_rubyc_install[linux,amd64]'
# or
bundle exec rake rubyc_install_dependencies
sudo -E env "PATH=$PATH" bundle exec rake 'rubyc_rubyc_install[darwin,amd64]'

# Build binary (with `rubyc`)
bundle exec rake 'rubyc_binary_build[linux,amd64]'
# or
bundle exec rake 'rubyc_binary_build[darwin,amd64]'

# Install binary (from `rubyc`)
sudo -E env "PATH=$PATH" bundle exec rake 'rubyc_binary_install[linux,amd64]'
# or
sudo -E env "PATH=$PATH" bundle exec rake 'rubyc_binary_install[darwin,amd64]'

# Start
mather-rb-server start

Unit Tests

# Start unit tests
bundle exec rake unit_tests

Integration Tests

# Start integration tests
bundle exec rake integration_tests

Integration Tests (For Standalone Binary)

# Start integration tests (for standalone binary)
sudo -E env "PATH=$PATH" bundle exec rake 'rubyc_binary_integration_tests[linux,amd64]'
# or
sudo -E env "PATH=$PATH" bundle exec rake 'rubyc_binary_integration_tests[darwin,amd64]'

Development

# Start unit tests, start server and restart both if source changed
bundle exec rake dev

License

Mather Service (in Ruby) (c) 2019 Felicitas Pojtinger

SPDX-License-Identifier: AGPL-3.0