{"id":18833723,"url":"https://github.com/vichuge/rubygem","last_synced_at":"2025-07-06T16:02:32.113Z","repository":{"id":124335794,"uuid":"522738163","full_name":"vichuge/RubyGem","owner":"vichuge","description":"This application is a example about how to create a gem on Ruby, the repo contains the example and the readme file the steps to create it","archived":false,"fork":false,"pushed_at":"2022-11-14T14:09:11.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2024-12-30T07:26:05.912Z","etag":null,"topics":["ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"","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/vichuge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-08-08T23:30:32.000Z","updated_at":"2022-08-09T00:02:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"da3fdc03-c842-4755-939a-1a6ed4269827","html_url":"https://github.com/vichuge/RubyGem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vichuge%2FRubyGem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vichuge%2FRubyGem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vichuge%2FRubyGem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vichuge%2FRubyGem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vichuge","download_url":"https://codeload.github.com/vichuge/RubyGem/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239768930,"owners_count":19693764,"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":["ruby","ruby-gem"],"created_at":"2024-11-08T02:02:21.063Z","updated_at":"2025-02-20T03:17:39.594Z","avatar_url":"https://github.com/vichuge.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RubyGem\nThis application is a example about how to create a gem on Ruby, the repo contains the example and the readme file the steps to create it. A ruby gem is a library to add some functionality to the ruby language.\n\n## Before to start\n\n1. Make sure you have installed the ruby language.\n2. Make sure you have installed the bundler gem. (gem install bundler)\n3. Make sure to have a rubygems account\n\n## Steps to create a gem\n\n### To create to local file\n\n1. `bundle gem \u003cname\u003e`\n(To add more functionalities, check the bundle gem [documentation](https://bundler.io/man/bundle-gem.1.html))\n2. `cd \u003cname\u003e`\n3. `bundle install`\n\n### Add the gem code\n\n1. Make changes on `lib/\u003cname\u003e.rb`\n2. Once you made changes, you can change the version on `lib/\u003cname\u003e/version.rb`\n3. To add test, add the test file on `spec/spec_\u003cname\u003e.rb`\n\n### To build the gem\n\n1. `gem build \u003cname\u003e.gemspec`\n(on this part, you could have some warnings on `\u003cname\u003e.gemspec`, just solve them all)\n\n### Testing the gem\n\n1. Test the gem installing on your ruby local system, using `gem install \u003cname\u003e-\u003cversion\u003e.gem`\n2. Once the local gem is installes, open an `irb` session and test the gem, using `require '\u003cname\u003e'`\n3. If you want to use the test files, use `rspec spec` on the command line\n\n### To publish the gem\n\n1. `gem push \u003cname\u003e-\u003cversion\u003e.gem`\n2. Open the page and check if the gem is published\n\n### To remove the local gem and install the remote one\n\n1. To install the remote gem, first we need to uninstall the actual gem using `gem uninstall \u003cname\u003e`\n2. On command line, go to root and use `gem install \u003cname\u003e`\n\n## Author\n\n👤 **Victor Pacheco**\n\n- GitHub: [@vichuge](https://github.com/vichuge)\n- LinkedIn: [LinkedIn](https://www.linkedin.com/in/victor-pacheco-7946aab2/)\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome! \n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\nThanks to [Drifting Ruby](https://www.youtube.com/c/DriftingRuby) for the [video](https://www.youtube.com/watch?v=wYc9HYUAoCQ\u0026t=362s\u0026ab_channel=DriftingRuby) about Ruby gems\n\n## 📝 License\n\nThis project is [MIT](./LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvichuge%2Frubygem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvichuge%2Frubygem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvichuge%2Frubygem/lists"}