Project

mather-rb

0.0
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
Simple Ruby gRPC microservice that does math.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.25
~> 5.13
~> 1.0
~> 1.3
~> 10.0
~> 0.13.0

Runtime

~> 2.0
~> 4.4
~> 1.25
~> 1.8
 Project Readme

Mather Service (in Ruby)

Simple Ruby gRPC microservice that does math.

Build Status

Features

  • Add numbers
  • Subtract numbers

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