Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature rbenv gemset options #66

Closed
wants to merge 3 commits into from
Closed

Feature rbenv gemset options #66

wants to merge 3 commits into from

Conversation

neovatar
Copy link

Added option file and option parsing:

  • rbenv-gemset now can use an option file .rbenv-gemset-options
  • the option file can contain options in the following form:
this-is-an-option=value
this-is-another-option=another_value
  • new command: rbenv-gemset-optionfile which returns an option file (similar to rbenv-gemset-file)
  • new command: rbenv-gemset-option <optionname> which returns the value of the option if set in an option file, if option is not set, it will return an empty string

Added options which can be set in option file:

  • disable-global-gemset=yes this will disable the automatic usage of the global gemset
  • exclude-default-gempath=yes this will disable the usage of the default gem path, resulting in an minimal gemset and using only the gems included in your Ruby and gemsets you added via rbenv-gemset

Thomas Seliger and others added 3 commits March 18, 2014 23:23
…nv/ruby-build@76b6328)

- removed the default inclusion of the 'global' gemset, rbenv-gemset is a tool for clearly defined gemsets, so no gemset should be "enforced". If the user really wants the global gemset included, it's easy to do so by including 'global' gemset in either the .rbenv-gemsets file or in the RBENV_GEMSETS env variable (fixes #59)
…"global" are not matched

- removed forgotten debug output
  - rbenv-gemset now can use an option file `.rbenv-gemset-options`
  - the option file can contain options in the following form:
```
this-is-an-option=value
this-is-another-option=another_value
```
  - new command: `rbenv-gemset-optionfile` which returns an option file (similar to rbenv-gemset-file)
  - new command: `rbenv-gemset-option <optionname>` which returns the value of the option if set in an option file, if option is not set, it will return en empty string

- Added options which can be set in option file:
  - `disable-global-gemset=yes` this will disable the automatic usage of the `global` gemset
  - `exclude-default-gempath=yes` this will disable the usage of the default gem path, resulting in an minimal gemset and using only the gems included in your Ruby and gemsets you added via rbenv-gemset
@jf
Copy link
Owner

jf commented Apr 20, 2014

Note for any followers: I am closing this. For further discussion and my comments, pls see #59 (comment) onwards.

@jf jf closed this Apr 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants