You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a problem with RubyVersionReader#environment_manager_load_string returning a format that's not supported by rbenv (or at least it didn't in my machine running rbenv 1.0.0). The environment_manager_load_string returns something like "RBENV_VERSION=ruby-X.Y.Z-pXXX@mygemset". There are two issues with this:
Rbenv does not support gemsets by default, but there are plugins for it. You'd need to specify which plugin this works with or just not include the gemset.
Rbenv references ruby versions just by their version number, e.g. "X.Y.Z-pXXX". No need to include the "ruby-" prefix.
The text was updated successfully, but these errors were encountered:
That's excellent to know Re: rbenv. The code I wrote to handle various ruby environment managers is super rudimentary. Best-case scenario it seems like this library should probably contain sub-classes for various engines, each of which handle the #to_s method appropriately.
Rbenv references ruby versions just by their version number, e.g. "X.Y.Z-pXXX". No need to include the "ruby-" prefix.
Does the presence of the "ruby-" prefix actually break rbenv or is it simply a redundant/unnecessary prefix?
I would make a PR if I knew how to fix it because the plot thickens, turns out rbenv cannot switch out of the current ruby when inside a ruby process. See rbenv/rbenv#121
I have a hack in place , but that only works with exporting the variable(my hack) or creating a wrapper to Bundler.with_clean_env. For now, I think I'll just use my hack locally for theme development 😉
Hey! It's great you made this into a public gem!
I had a problem with RubyVersionReader#environment_manager_load_string returning a format that's not supported by rbenv (or at least it didn't in my machine running rbenv 1.0.0). The environment_manager_load_string returns something like "RBENV_VERSION=ruby-X.Y.Z-pXXX@mygemset". There are two issues with this:
The text was updated successfully, but these errors were encountered: