{"id":19816916,"url":"https://github.com/rvm/gem-wrappers","last_synced_at":"2025-05-01T10:33:18.445Z","repository":{"id":56873858,"uuid":"14987721","full_name":"rvm/gem-wrappers","owner":"rvm","description":"Create gem wrappers for easy use of gems in cron and other system locations.","archived":false,"fork":false,"pushed_at":"2017-09-22T11:26:43.000Z","size":71,"stargazers_count":14,"open_issues_count":2,"forks_count":2,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-19T21:29:46.302Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rvm.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-06T16:32:10.000Z","updated_at":"2021-03-17T21:07:02.000Z","dependencies_parsed_at":"2022-08-20T10:11:00.943Z","dependency_job_id":null,"html_url":"https://github.com/rvm/gem-wrappers","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Fgem-wrappers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Fgem-wrappers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Fgem-wrappers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvm%2Fgem-wrappers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvm","download_url":"https://codeload.github.com/rvm/gem-wrappers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250730342,"owners_count":21477752,"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-11-12T10:11:03.487Z","updated_at":"2025-05-01T10:33:18.193Z","avatar_url":"https://github.com/rvm.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gem wrappers\n\n[![Gem Version](https://badge.fury.io/rb/gem-wrappers.png)](http://rubygems.org/gems/gem-wrappers)\n[![Code Climate](https://codeclimate.com/github/rvm/gem-wrappers.png)](https://codeclimate.com/github/rvm/gem-wrappers)\n[![Coverage Status](https://coveralls.io/repos/rvm/gem-wrappers/badge.png?branch=master)](https://coveralls.io/r/rvm/gem-wrappers?branch=master)\n[![Build Status](https://travis-ci.org/rvm/gem-wrappers.png?branch=master)](https://travis-ci.org/rvm/gem-wrappers)\n[![Dependency Status](https://gemnasium.com/rvm/gem-wrappers.png)](https://gemnasium.com/rvm/gem-wrappers)\n[![Documentation](http://b.repl.ca/v1/yard-docs-blue.png)](http://rubydoc.info/gems/gem-wrappers/frames)\n\nCreate gem wrappers for easy use of gems in cron and other system locations.\n\n## Installation\n\nThis gem should be available in RVM `1.25+`, to install manually:\n\n```bash\ngem install gem-wrappers\n```\n\n## Configuration / Defaults\n\nIn `~/.gemrc` you can overwrite this defaults:\n\n```ruby\nwrappers_path: GEM_HOME/wrappers\nwrappers_environment_file: GEM_HOME/environment\nwrappers_path_take: 1\n```\n\nIt is not yet possible to put variables in the configuration,\nonly relative and full paths will work, open a ticket if you need variables.\n\n## Generating wrappers\n\nBy default wrappers are installed when a gem is installed,\nto rerun the process for all gems in `GEM_HOME` use:\n\n```bash\ngem wrappers regenerate\n```\n\nwrappers will be generated in `$GEM_HOME/wrappers/`.\n\n### Example\n\nInstall popular http server `unicorn`:\n\n```bash\ngem install gem-wrappers # assuming it was not installed already\ngem install unicorn\n```\n\nThe `unicorn` wrapper is located in `$GEM_HOME/wrappers`:\n\n```bash\ngem wrappers show unicorn\n```\n\n```ssh\n/home/mpapis/.rvm/gems/ruby-2.1.0-preview2/wrappers/unicorn\n```\n\nThis script will make sure proper environment is available.\n\n## Generating scripts wrappers\n\nIt is possible to generate wrappers for custom scripts:\n\n```bash\ngem wrappers /path/to/script\n```\n\na wrapper `$GEM_HOME/wrappers/script` will be generated.\n\n## Showing current configuration\n\nTo see paths that are used by gem run:\n\n```bash\ngem wrappers\n```\n\n## Environment file\n\nUser can provide his own `environment` file,\nin case it is not available during generating wrappers it will be created using this template:\n\n```erb\nexport PATH=\"\u003c%= path.join(\":\") %\u003e:$PATH\"\nexport GEM_PATH=\"\u003c%= gem_path.join(\":\") %\u003e\"\nexport GEM_HOME=\"\u003c%= gem_home %\u003e\"\n```\n\nThe `path` elements are calculated using this algorithm:\n\n```ruby\nENV['PATH'].split(\":\").take(Gem.path.size + path_take)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvm%2Fgem-wrappers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvm%2Fgem-wrappers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvm%2Fgem-wrappers/lists"}