{"id":15405146,"url":"https://github.com/fnando/gem-open","last_synced_at":"2025-04-09T22:17:16.774Z","repository":{"id":873921,"uuid":"615214","full_name":"fnando/gem-open","owner":"fnando","description":"Open gems into your favorite editor by running a specific gem command","archived":false,"fork":false,"pushed_at":"2021-05-06T09:53:13.000Z","size":37,"stargazers_count":69,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T22:17:11.148Z","etag":null,"topics":[],"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/fnando.png","metadata":{"files":{"readme":"README.rdoc","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}},"created_at":"2010-04-17T16:48:32.000Z","updated_at":"2021-05-06T08:43:10.000Z","dependencies_parsed_at":"2022-08-16T11:15:25.773Z","dependency_job_id":null,"html_url":"https://github.com/fnando/gem-open","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fgem-open","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fgem-open/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fgem-open/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fgem-open/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnando","download_url":"https://codeload.github.com/fnando/gem-open/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119287,"owners_count":21050755,"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-01T16:15:13.516Z","updated_at":"2025-04-09T22:17:16.755Z","avatar_url":"https://github.com/fnando.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= GemOpen\n\nOpen gems into your favorite editor by running a specific gem command.\n\nTo install it just run\n\n  sudo gem install gem-open\n\nThen add the following lines to your \u003ctt\u003e~/.bash_profile\u003c/tt\u003e file.\n\n  export GEM_EDITOR=\"mate\"\n\nIt will default to \u003ctt\u003eENV[\"EDITOR\"]\u003c/tt\u003e, though.\n\nFinally, run \u003ctt\u003egem open GEMNAME\u003c/tt\u003e to open that gem.\n\n== Usage\n\nTo open the most recent version you just need to type the gem name.\n\n  $ gem open activesupport\n\nIf you want to open a specific version you'll have to type the full name.\n\n  $ gem open activesupport-3.0.0.beta3\n\n== Bash completion\n\nWant some completion? Add this snippet to your \u003ctt\u003e~/.bash_profile\u003c/tt\u003e file.\n\n  _gemopencomplete() {\n      local cmd=${COMP_WORDS[0]}\n      local subcmd=${COMP_WORDS[1]}\n      local cur=${COMP_WORDS[COMP_CWORD]}\n\n      case \"$subcmd\" in\n          open)\n              words=`ruby -rubygems -e 'puts Dir[\"{#{Gem::Specification.dirs.join(\",\")}}/*.gemspec\"].collect {|s| File.basename(s).gsub(/\\.gemspec$/, \"\")}'`\n              ;;\n          *)\n              return\n              ;;\n      esac\n\n      COMPREPLY=($(compgen -W \"$words\" -- $cur))\n      return 0\n  }\n\n  complete -o default -F _gemopencomplete gem\n\n== License\n\n(The MIT License)\n\nCopyright © 2010:\n\n* Nando Vieira - http://nandovieira.com.br\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fgem-open","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnando%2Fgem-open","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fgem-open/lists"}