Code Monkey home page Code Monkey logo

enumerable-methods's Introduction

Enumerable class

The Microverse 5th project for the Ruby module that consists of reproducing some of the methods from the Enumerable class with the Ruby programming language and testing this methods with the rspec framework.

Built With

  • Ruby programming language
  • VS Code
  • Rubocop
  • Rspec

Authors

Author1

Author2

Author2

Getting Started

You can clone this code anytime and run it with the Ruby interpreter in the Windows console or Unix terminal by typing 'ruby bin/main.rb' or it can run in Unix OS by typing 'bin/main.rb' in the terminal, without the 'ruby' interpreter command, since the main file has the shebang instruction at the top that makes it an executable file.

Setup

You can either copy the code with git clone or with any other method and run it on your local environment. The commands to clone it and then run the game are:

Run tests

Run the tests for the linters.yml and rubocop and everything passes. The instructions to setup this tests are at this repository: Rubocop instructions

For the linters, this tests runs once you make a PR, if you have it in the respective folder. In order to have this tests, after cloning this project:

  • cd enumerable-methods
  • From the root of this project create the folders .github/workflows
  • Add a copy of .github/workflows/tests.yml to the .github/workflows

To download rubocop and run the tests on your local environment, this are the commands to type in the Linux, Mac terminal or Windows cmd:

  • gem install rubocop
  • cd enumerable-methods
  • copy this file .rubocop.yml in the root directory of the project
  • type in the terminal 'rubocop'

The commands to install and run rspecs in the Linux, Mac terminal or Windows cmd are:

  • gem install rspec
  • cd enumerable-methods
  • rspec

Acknowledgments

Appreciate the Ruby Team, and a special acknowledgment to Microverse for pushing us further to increase our knowledge.

📝 License

This project is MIT licensed.

Show your support

Give a ⭐️ if you like this project!

enumerable-methods's People

Contributors

jose-abel avatar t-yanick avatar alvarorf avatar

Stargazers

Hadj H. avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.