{"id":17467360,"url":"https://github.com/fherrerao/torc-challenge","last_synced_at":"2026-04-24T21:31:54.545Z","repository":{"id":104390627,"uuid":"557860027","full_name":"fherrerao/torc-challenge","owner":"fherrerao","description":"Console app built with Ruby, allows you to add products using a console once the project has run, requires you to enter the name, price, quantity, is it imported? is a book, food, or medical product separating the product by category. When you finish adding all the products, the console will display the product with its price plus tax.","archived":false,"fork":false,"pushed_at":"2022-10-26T20:27:47.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-06-10T09:02:02.030Z","etag":null,"topics":["rspec","rubocop","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fherrerao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-26T12:49:06.000Z","updated_at":"2022-10-26T18:58:29.000Z","dependencies_parsed_at":"2023-03-10T22:30:18.557Z","dependency_job_id":null,"html_url":"https://github.com/fherrerao/torc-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fherrerao/torc-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fherrerao%2Ftorc-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fherrerao%2Ftorc-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fherrerao%2Ftorc-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fherrerao%2Ftorc-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fherrerao","download_url":"https://codeload.github.com/fherrerao/torc-challenge/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fherrerao%2Ftorc-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rspec","rubocop","ruby"],"created_at":"2024-10-18T14:23:50.112Z","updated_at":"2026-04-24T21:31:54.532Z","avatar_url":"https://github.com/fherrerao.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n![](https://img.shields.io/static/v1?label=BY\u0026message=fherrerao\u0026color=purple)\r\n\r\n# Budget challenge\r\n![Rails](https://img.shields.io/badge/ruby-%23CC0000.svg?style=for-the-badge\u0026logo=ruby\u0026logoColor=white)\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./MIT.md)\r\n![ruby version](https://img.shields.io/badge/Ruby-3.1.2-orange)\r\n\r\n## Preview\r\n\r\n\r\n\r\nhttps://user-images.githubusercontent.com/91301423/198111527-055017d8-4f7b-43ab-a7d3-154bc034c0c1.mp4\r\n\r\n\r\n\u003chr\u003e\r\n\r\n## Table of Contents\r\n\r\n- [Description](#description)\r\n- [Built With](#built-with)\r\n- [Getting Started](#getting-started)\r\n  - [Clone Repo](#clone-repo)\r\n  - [Prerequisites](#prerequisites)  \r\n- [Setup](#setup)\r\n  - [System Dependencies](#system-dependencies)  \r\n- [Usage](#usage)\r\n  - [Run script](#run-script)\r\n  - [Testing RSpec](#testing-rspec)\r\n- [How To Contribute?](#how-to-contribute)\r\n- [Collaborators](#collaborators)\r\n- [Show Your Support](#how-your-support)\r\n- [Acknowledgments](#acknowledgments)\r\n- [License](#license)\r\n\u003chr\u003e\r\n\r\n## Description\r\n\u003e Console app built with Ruby, allows you to add products using a console once the project has run, requires you to enter the name, price, quantity, is it imported? is a book, food, or medical product separating the product by category. When you finish adding all the products, the console will display the product with its price plus tax, the total amount of tax, and the total price of all products.\r\n\u003chr\u003e\r\n\r\n## Built With\r\n\r\n- Major languages: Ruby.\r\n- Tools \u0026 Methods: RSpec, Rubocop.\r\n\u003chr\u003e\r\n\r\n## Getting Started\r\n\r\nWe'll need to prepare your computer to handle Ruby an approach you can find in the official [site](https://www.ruby-lang.org/en/documentation/installation/) of Ruby.\r\n\r\n\u003chr\u003e\r\n\r\n## Clone Repo\r\n\r\nFirst clone this repo by running this command in your terminal:\r\n~~~ bash\r\ngit clone https://github.com/fherrerao/torc-challenge.git\r\n# wait a couple seconds for it to download\r\n# ...\r\n# ...\r\n# then move into the new directory\r\ncd torc-challenge\r\n~~~\r\n\r\n\u003chr\u003e\r\n\r\n## Prerequisites\r\n\r\nThe following technologies must be installed before hand in your local machine:\r\n\r\n - Ruby (ruby --version). Should be 3.1.2 or newer. \r\n\r\nThe commands in parenthesis `()` can be used to verify if they are installed and their corresponding versions.\r\n\r\nRefer to this [site](https://www.ruby-lang.org/en/documentation/installation/) for more detailed instructions on how to install this technology.\r\n\r\n\u003chr\u003e\r\n\r\n## Setup\r\n\r\nWe're getting there... trust me ;)\r\n\r\n## System Dependencies\r\n\r\nExecute this command to automatically install all the dependencies needed to view and work on this project:\r\n\r\n~~~ bash\r\ngem install rspec\r\n~~~\r\nor\r\n~~~ bash\r\nbundle install\r\n~~~\r\n\r\nThe full list of dependencies can be found within the [Gemfile](Gemfile).\r\n\r\nThis also installs PostgreSQL, which you'll need for the next step.\r\n\u003chr\u003e\r\n\r\n## Usage\r\nIf you got to this point, congratulations! You now have spent 2 hours in order to toy with my app. I appreciate your effort :P\r\n\r\n## Run Script\r\nPlease open a new terminal.\r\n\r\nThe following command should start the app\r\n\r\n\r\n~~~ bash\r\nruby main.rb\r\n~~~\r\n\r\n`Note:` Be sure to be in the torc-challenge directory\r\n~~~ bash\r\ncd torc-challenge\r\n~~~\r\n\u003chr\u003e\r\n\r\n## Testing RSpec\r\nIf you haven't installed the dependencies yet, please run the following command:\r\n\r\n~~~ bash\r\nbundle install\r\n~~~\r\n\r\nRSpec tests belong in another folder, which is [/spec](/spec/), all thanks to the ruby **magic** called `naming conventions`.\r\nAnyway, to run tests located in the spec folder run:\r\n~~~ bash\r\nbundle exec rspec spec\r\n~~~\r\n\u003chr\u003e\r\n\r\n## How To Contribute?\r\n\r\nAlways remember to commit your contributions on a different branch. You can create a new one by running `git checkout -b \u003cbranchname\u003e`.\r\n\r\nVisit [linters folder](.github/workflows/linters.yml) to learn how to setup linters.\r\n\r\nThen check linters locally before pushing by running:\r\n~~~ bash\r\n# ...\r\n# ...\r\nrubocop --color -A\r\n~~~\r\n\r\nFinally, once your changes have no linter errors and all tests are passing, try to merge your branch into  `development` by running:\r\n~~~ bash\r\ngit checkout development\r\ngit merge \u003cbranchname\u003e\r\n~~~\r\nContinue by solving any merge conflicts that may arise, test the functionality of the app once more, and you're changes are ready to be pushed with `git push origin \u003cbranchname\u003e`\r\n\u003chr\u003e\r\n\r\n# That's all folks!\r\n\r\n## Collaborators\r\n\r\n\u003chr\u003e\r\n\r\n👤 **Fernando Herrera**\r\n\r\nPlatform | Badge |\r\n --- | --- |\r\n **GitHub**  | [@fherrerao](https://github.com/fherrerao)\r\n **Twitter** | [Fernando Herrera](https://www.linkedin.com/in/fherrerao/)\r\n **LinkedIn** | [Fernando Herrera](https://twitter.com/fherrera0206)\r\n\r\n\u003chr\u003e\r\n \r\n## Show your support\r\n\r\nGive a ⭐️ if you like this project!\r\n\u003chr\u003e\r\n\r\n## Acknowledgments\r\n\r\n- The ideas and inspiration from this project are coming from:  [Torc](https://platform.opentorc.com/#/dashboard)\r\n\r\n\r\n\u003chr\u003e\r\n\r\n## 📝 License\r\n\r\nThis project is [MIT](./LICENSE) licensed.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffherrerao%2Ftorc-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffherrerao%2Ftorc-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffherrerao%2Ftorc-challenge/lists"}