{"id":15101687,"url":"https://github.com/vitor0p9f/ruby-substrings","last_synced_at":"2025-09-26T22:31:44.708Z","repository":{"id":213711652,"uuid":"734023181","full_name":"vitor0p9f/ruby-substrings","owner":"vitor0p9f","description":"Project suggested by The Odin Project platform: https://www.theodinproject.com/lessons/ruby-sub-strings","archived":true,"fork":false,"pushed_at":"2024-01-19T20:52:18.000Z","size":408,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-26T18:28:05.291Z","etag":null,"topics":["rspec","ruby","string","substring"],"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/vitor0p9f.png","metadata":{"files":{"readme":"README.en.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":"2023-12-20T17:14:43.000Z","updated_at":"2024-01-19T20:52:33.000Z","dependencies_parsed_at":"2024-09-20T05:30:30.193Z","dependency_job_id":"2a0d44ea-6649-4019-9f2b-e785f68cbb86","html_url":"https://github.com/vitor0p9f/ruby-substrings","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.4782608695652174,"last_synced_commit":"c217ce0ee2fd45dc568546e7afe7e7890c7e284c"},"previous_names":["vitor0p9f/ruby-substrings"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitor0p9f%2Fruby-substrings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitor0p9f%2Fruby-substrings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitor0p9f%2Fruby-substrings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitor0p9f%2Fruby-substrings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitor0p9f","download_url":"https://codeload.github.com/vitor0p9f/ruby-substrings/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234356527,"owners_count":18819381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","ruby","string","substring"],"created_at":"2024-09-25T18:28:23.651Z","updated_at":"2025-09-26T22:31:44.379Z","avatar_url":"https://github.com/vitor0p9f.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align = \"center\"\u003e\n  \u003cp\u003eThis README is available in the following languages:\u003c/p\u003e\n  \u003cbr/\u003e\n  \n  \u003ca href = \"https://github.com/vitor0p9f/ruby-substrings/blob/main/README.md\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Language-Portuguese-green\"/\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \n  # Study Repository - Ruby substrings\n\u003c/div\u003e\n\nThis project was developed for the practice of basic concepts of the Ruby language and other tools and design patterns.\n\n## :movie_camera: Project demonstration\n\nhttps://github.com/vitor0p9f/ruby-substrings/assets/153991573/3f92eeee-1973-4bb0-8525-d4a30f36ca45\n\n## :gem: Used Gems\n\n* Rspec\n\n## :page_facing_up: Used Design Patterns\n\n* TDD (_Test Driven Development_)\n* Conventional commits\n\n## :pushpin: Acquired Knowledge\n\n* How to apply TDD to projects.\n* How to use Docker to create application containers.\n* Writing better commit messages with conventional commit standards.\n* Basic string manipulation methods in Ruby.\n* Input and output of information in Ruby.\n\n## :triangular_flag_on_post: Challenges Encountered\n\n* During development, it was observed that the special character '\\n', present at the end of a string when enter is pressed in the terminal, was impacting the code's functionality.\n\n## :rocket: Running the Project \n\n### 1. Clone the repository to your machine\n\nOnce the repository is on your machine, enter the newly cloned directory.\n\nTo run this project on your own machine, you can choose between the options:\n\n* Run the project using Docker.\n* Run the project by installing the dependencies.\n\n### :whale2: Using Docker\n\n#### :construction: Requirements\n\n* Have Docker installed and configured on your machine.\n\n#### 2. Build a project image using the following command:\n\n```bash\ndocker build -t ruby-substrings .\n```\n\nThe created image will have the same name as the project.\n\n#### 3. Create a container based on the newly created image using the command:\n\n```bash\ndocker run -it --name ruby-substrings ruby-substrings\n```\n\nThe above command will use the previously created image to create a container with the project name.\n\nAfter running the above command, the container's terminal should automatically open, already executing the project code.\n\nTo run the project again without creating a new container, simply run the following command:\n\n```bash\ndocker start -i ruby-substrings\n```\n\n### :link: Installing Dependencies\n\n#### :construction: Requirements\n\n* Have Ruby installed on your machine.\n* I recommend using tools like RVM or rbenv to allow the installation of Gems without administrator permission.\n\n#### 2. Install project dependencies by running the command:\n\n```bash\nbundle install\n```\n\n#### 3. Run the project by executing the command:\n\n```bash\nruby substrings.rb\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitor0p9f%2Fruby-substrings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitor0p9f%2Fruby-substrings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitor0p9f%2Fruby-substrings/lists"}