{"id":15552765,"url":"https://github.com/gperilli/palindrome_detector","last_synced_at":"2025-03-16T21:26:00.384Z","repository":{"id":207113401,"uuid":"718459493","full_name":"gperilli/palindrome_detector","owner":"gperilli","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-15T15:17:09.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T08:15:06.532Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gperilli.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}},"created_at":"2023-11-14T05:48:04.000Z","updated_at":"2023-11-14T05:48:51.000Z","dependencies_parsed_at":"2023-11-14T07:22:30.375Z","dependency_job_id":"5a5ebe64-6cba-451e-ba2f-0daa2803703e","html_url":"https://github.com/gperilli/palindrome_detector","commit_stats":null,"previous_names":["gperilli/palindrome_detector"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gperilli%2Fpalindrome_detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gperilli%2Fpalindrome_detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gperilli%2Fpalindrome_detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gperilli%2Fpalindrome_detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gperilli","download_url":"https://codeload.github.com/gperilli/palindrome_detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243934547,"owners_count":20371207,"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-02T14:22:07.305Z","updated_at":"2025-03-16T21:26:00.354Z","avatar_url":"https://github.com/gperilli.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# palindrome_detector\n\nThis is a a simple ruby coding exercise with accompanying rspec tests.\n\n\n\n## Getting the project files\n\nEither do a direct download using the download option from the code button dropdown near the top of this Github page, or use a git clone command:\n```\ngit clone git@github.com:gperilli/fundme.git\n```\n\u003cbr\u003e\n\nFor more information on getting git (version control system) on your local machine, see [this](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).\n\n\n## Running the program\n\nAfter downloading the project files, use `bundle install` from the terminal to install the gems. \n\nRun the ruby method directly from the terminal like this:\n```\nruby palindrome_detector.rb oxo\n```\n\nRun the rspec tests like this:\n```\nbundle exec rspec spec/example_spec.rb\n```\n\n\n### Setting up a Ruby development environment: General Outline\n\nThis is a ruby program, so first set up a ruby development environment on your local machine. If you are using Windows, this may involve setting up [WSL](https://learn.microsoft.com/en-us/windows/wsl/install), Windows subsystem for Linux, [rbenv](https://github.com/rbenv/rbenv), a ruby environment manager, and Ruby. \n\n### More Details on Setting Up Ruby + Git + Github Cli on a Linux Machine\n\n#### git: version manager\nInstall git:\n```\nsudo apt update\nsudo apt install -y git\n```\n\n\n#### Github CLI: command line interface for Github\nInstall github CLI:\n\n```\nsudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C99B11DEB97541F0\nsudo apt-add-repository https://cli.github.com/packages\nsudo apt update\n```\n\nThen:\n```\nsudo apt install -y gh\n```\n\nCheck the version:\n```\ngh --version\n```\n\nConfigure Github CLI\n\n```\ngh auth login -s 'user:email' -w\n```\nFollow the instructions to connect the local Guthub CLI with your Github account.\n\nConfirm Guthub CLI connection with:\n```\ngh auth status\n```\nThis should display: `Logged in to github.com as \u003cYOUR USERNAME\u003e`\n\nConfigure GIthub CLI with SSH:\n```\ngh config set git_protocol ssh\n```\n\n#### Confugure SSH connection with Github\n\nGenerate SSH codes:\n```\nmkdir -p ~/.ssh \u0026\u0026 ssh-keygen -t ed25519 -o -a 100 -f ~/.ssh/id_ed25519 -C \"TYPE_YOUR_EMAIL@HERE.com\"\n```\n\nGive the SSH public key to your Guthub account:\n```\ngh auth refresh -s write:public_key\n```\nRun this to set the SSH key locally:\n```\ngh ssh-key add ~/.ssh/id_ed25519.pub\n```\n\n#### zsh: custom shell\nInstall imagemagick:\n```\nsudo apt install -y zsh curl vim imagemagick jq\n```\n\ninstall zsh\n```\nsh -c \"$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"\n```\n\n#### rbenv: ruby version manager\nCheck if rbenv is installed:\n```\nrvm implode \u0026\u0026 sudo rm -rf ~/.rvm\n```\nThe response should be `zsh: command not found: rvm` if it is absent.\n\nUse this to remove previous installation:\n```\nrm -rf ~/.rbenv\n```\ninstall rbenv using git clone:\n```\ngit clone https://github.com/rbenv/rbenv.git ~/.rbenv\n```\n\nconfigure the shell to load rbenv for Zsh:\n```\necho 'eval \"$(~/.rbenv/bin/rbenv init - zsh)\"' \u003e\u003e ~/.zshrc\n```\nrbenv repository details: https://github.com/rbenv/rbenv#basic-git-checkout\n\n\n#### Ruby\nInstall Ruby version 2.7.4 *(or the version you prefer):\n```\nrbenv install 2.7.4\n```\n\nSet Ruby 2.7.4 as the gloabl default Ruby version:\n\n```\nrbenv global 2.7.4\n```\n\nRestart the terminal, and check the installed Ruby version with:\n```\nruby -v\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgperilli%2Fpalindrome_detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgperilli%2Fpalindrome_detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgperilli%2Fpalindrome_detector/lists"}