{"id":15531930,"url":"https://github.com/mailsg/morse-code","last_synced_at":"2025-03-28T22:26:01.392Z","repository":{"id":183957262,"uuid":"671064357","full_name":"mailsg/Morse-Code","owner":"mailsg","description":"Morse Code Decoder is built with Ruby. It is a tool that allows users to convert a Morse code into human readable text. It takes a string of Morse code as an input. Morse code is a system of communication that uses a series of dots and dashes to represent letters, numbers, and symbols.","archived":false,"fork":false,"pushed_at":"2023-07-26T15:53:52.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-02-03T08:49:50.994Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mailsg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-07-26T13:09:38.000Z","updated_at":"2023-08-13T13:47:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"95bc90cd-65ae-47cc-ab56-9efc426123fb","html_url":"https://github.com/mailsg/Morse-Code","commit_stats":null,"previous_names":["mailsg/morse-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailsg%2FMorse-Code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailsg%2FMorse-Code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailsg%2FMorse-Code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mailsg%2FMorse-Code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mailsg","download_url":"https://codeload.github.com/mailsg/Morse-Code/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246108017,"owners_count":20724647,"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":[],"created_at":"2024-10-02T11:28:40.454Z","updated_at":"2025-03-28T22:26:01.375Z","avatar_url":"https://github.com/mailsg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n# 📗 Table of Contents\n\n- [📖 About the Project](#about-project)\n  - [🛠 Built With](#built-with)\n    - [Tech Stack](#tech-stack)\n    - [Key Features](#key-features)\n- [💻 Getting Started](#getting-started)\n  - [Setup](#setup)\n  - [Prerequisites](#prerequisites)\n  - [Install](#install)\n  - [Usage](#usage)\n- [👥 Authors](#authors)\n- [🔭 Future Features](#future-features)\n- [🤝 Contributing](#contributing)\n- [⭐️ Show your support](#support)\n- [🙏 Acknowledgements](#acknowledgements)\n- [❓ FAQ](#faq)\n- [📝 License](#license)\n\n\u003c!-- PROJECT DESCRIPTION --\u003e\n\n# 📖 [Morse Code Decoder] \u003ca name=\"about-project\"\u003e\u003c/a\u003e\n\n**Morse Code Decoder**  aims to decode messages written in Morse code. With the help of Ruby, we will create methods to decipher individual characters, entire words, and even the entire message hidden in those old bottles. The resulting strings will be presented in uppercase, making it easier to read the messages.\n\n## Project Requirements\n\nTo successfully decode the Morse code messages, we will implement the following methods:\n\n### 1. `decode_char`\n\n- This method takes a Morse code character as a string parameter.\n- It returns the corresponding uppercase alphabetic character.\n- Example: `decode_char(\".-\")` returns \"A\".\n\n### 2. `decode_word`\n\n- This method takes a Morse code word as a string parameter.\n- It returns the string representation of the word, with each character separated by a single space.\n- Example: `decode_word(\"-- -.--\")` returns \"MY\".\n\n### 3. `decode`\n\n- This method takes a Morse code message as a string parameter.\n- It returns the string representation of the entire message, with each word separated by three spaces.\n- Example: `decode(\"-- -.--   -. .- -- .\")` returns \"MY NAME\".\n\n## 🛠 Built With \u003ca name=\"built-with\"\u003e\u003c/a\u003e\n\nRuby\n\n\n### Tech Stack \u003ca name=\"tech-stack\"\u003e\u003c/a\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eRuby\u003c/summary\u003e\n\u003c/details\u003e\n\n\u003c!-- Features --\u003e\n\n### Key Features \u003ca name=\"key-features\"\u003e\u003c/a\u003e\n\n- Decodes a morse character a word and a sentence\n- Returns the decoded message in uppercase\n- Returns the decoded message with spaces between words and characters\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n\n## 💻 Getting Started \u003ca name=\"getting-started\"\u003e\u003c/a\u003e\n\nTo get started with decoding Morse code messages, follow these steps:\n\n### Prerequisites\n\nEnsure you have the following installed:\n\n- Ruby programming language\n- IRB (Interactive Ruby)\n\n### Setup\n\n1. Clone this repository to your local machine:\n   `git clone https://github.com/mailsg/Morse-Code.git`\n\n2. Open your terminal and navigate to the project directory:\n`cd Morse-Code` \n\tand install dependencies by running \n`bundle install`\n\n3. Run IRB to access the Ruby interactive console:\n`irb`\n\n4. To run the project, execute the following command\n`irb`\n`decode_char(\".-\")`\n`decode_word(\"-- -.--\")`\n`decode(\"-- -.--   -. .- -- .\")`\n`decode(\".-   -... --- -..-   ..-. ..- .-.. .-..   --- ..-.   .-. ..- -... .. . ...\")`\n\n5. Now you can use the provided methods to decode Morse code messages. For example:\ndecode_char(\".-\")\n# Output: \"A\"\n\ndecode_word(\"-- -.--\")\n# Output: \"MY\"\n\ndecode(\"-- -.--   -. .- -- .\")\n# Output: \"MY NAME\"\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\u003c!-- AUTHORS --\u003e\n\n## 👥 Authors \u003ca name=\"authors\"\u003e\u003c/a\u003e\n\n\n\n👤 **Sandeep Ghosh**\n\n- GitHub: [@mailsg](https://github.com/mailsg)\n- LinkedIn: [Sandeep Ghosh](https://www.linkedin.com/in/sandeep0912/)\n\n\n👤 **Phelelani Ndlovu**\n- GitHub: [@techmoves](https://github.com/techmoves)\n- LinkedIn: [Phelelani Ndlovu](https://www.linkedin.com/in/phelelani-ndlovu/)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- FUTURE FEATURES --\u003e\n\n## 🔭 Future Features \u003ca name=\"future-features\"\u003e\u003c/a\u003e\n\n- Add support for numbers and punctuation marks\n- Add support for international characters\n- Add support for prosigns\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTRIBUTING --\u003e\n\n## 🤝 Contributing \u003ca name=\"contributing\"\u003e\u003c/a\u003e\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](https://github.com/mailsg/Morse-Code/issues).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- SUPPORT --\u003e\n\n## ⭐️ Show your support \u003ca name=\"support\"\u003e\u003c/a\u003e\n\nIf you like this project, please give it a star. Contact me on LinkedIn. It will be a pleasure to hear from you.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n\n## 🙏 Acknowledgments \u003ca name=\"acknowledgements\"\u003e\u003c/a\u003e\n\nI would like to thank Microverse (microverse.org) for providing the resources and the knowledge to work on projects like this.\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- FAQ (optional) --\u003e\n\n## ❓ FAQ \u003ca name=\"faq\"\u003e\u003c/a\u003e\n\n- **How do I install Ruby?**\n\nYou can download the latest version of Ruby from the official website: https://www.ruby-lang.org/en/downloads/\n\n-**Where can I learn the basics of Ruby?**\n\nCheck out the Ruby documentation and tutorials at https://www.ruby-lang.org/en/documentation/ and https://www.ruby-lang.org/en/documentation/quickstart/\n\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- LICENSE --\u003e\n\n## 📝 License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\nThis project is [MIT](https://github.com/mailsg/Morse-Code/blob/morse-code/LICENSE) licensed.\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailsg%2Fmorse-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmailsg%2Fmorse-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmailsg%2Fmorse-code/lists"}