Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sylhare/vermelinho

⚙️ Hands on with Ruby, gems and GitHub actions!
https://github.com/sylhare/vermelinho

gem github-actions ruby

Last synced: about 2 months ago
JSON representation

⚙️ Hands on with Ruby, gems and GitHub actions!

Awesome Lists containing this project

README

        

# Vermelinho

[![Vermilinho unit test](https://github.com/sylhare/Vermelinho/actions/workflows/tests.yml/badge.svg)](https://github.com/sylhare/Vermelinho/actions/workflows/tests.yml) [![vermelinho Ruby Gem](https://github.com/sylhare/Vermelinho/actions/workflows/gem-publish.yml/badge.svg)](https://github.com/sylhare/Vermelinho/actions/workflows/gem-publish.yml)

A simple gem example from [How to make your own gem](https://guides.rubygems.org/make-your-own-gem/)💎 Hands on ruby.

## Get started

In the interactive shell:

```shell
% irb -Ilib -rvermelinho
irb(main):001:0> Vermelinho.hi("english")
=> "hello world"
irb(main):002:0> Vermelinho.hi("spanish")
=> "hola mundo"
```

You can quit the shell with `exit`.
Use the `bin`:

```bash
% ruby -Ilib ./bin/vermelinho
"🤷‍️"

% ruby -Ilib ./bin/vermelinho spanish
"hola mundo"
```

## Tests

Run the tests with:

```shell
rake test
```

## Build gem

Build the gem

```shell
gem build *.gemspec
```