Project
Ruby
Priority
Normal
Type
Feature
Fix versions
RubyMine 2.0.2
State
Fixed
Assignee
Roman Chernyatchik
Subsystem
RubyGems
Affected versions
RubyMine 2.0.2 RC
Fixed in build
93.164  
  • Created by   Roman Chernyatchik
    2 years ago (23 Mar 2010 22:49)
  • Updated by   Roman Chernyatchik
    2 years ago (12 Apr 2010 17:25)
 
RUBY-5848 Rvm: add support for gem lists
10
Issue is visible to: All Users
  The issue is visible to the selected user group only
Comments (10)
 
History
 
Linked Issues (?)
 
jc
  jc
26 Mar 2010 00:02
2 years ago
Hey Roman. One thing to keep in mind is the gemset separator is now configurable. See this thread:
http://groups.google.com/group/rubyversionmanager/browse_thread/thread/db3b4f4e4f9cc05c

Feel free to MSG me on Freenode (jacquesc), or hop on the #rvm channel if you have any questions. Thanks!!
Roman Chernyatchik
  Roman Chernyatchik
26 Mar 2010 00:07
2 years ago
Jacques, thanks. I'm going to add some simple support in the next 2.0.2 rc
Andre Lewis
  Andre Lewis
26 Mar 2010 01:23
2 years ago
Excited to see support for gem lists, thanks Roman.
Brandon Hays
  Brandon Hays
26 Mar 2010 10:41
2 years ago
I'm redoing my environment around RVM. It'd be awesome to see gemset support in RubyMine. Thanks!
Roman Chernyatchik
  Roman Chernyatchik
26 Mar 2010 17:14
2 years ago
Hello Jacques,
I have several questions related to gemset separator. Where is rvm_gemset_seperator usually stored? In ~/.rvmrc ? Is it possible that 2 different projects defines different gemset separators in project rvmrc file?
Roman Chernyatchik
  Roman Chernyatchik
29 Mar 2010 14:26
2 years ago
Hi guys,

The way I work with RVM is I have gemsets for each environment, and often for each project (defined in .rvmrc). This allows me to have a nice isolated gem environment


Please explain me real difference between using gemsets and bundler gem. As far as I understand both approaches allow to specify named "gem-sandbox" for your application. More over bundler is a cross-platform solution. RM already supports bundler and gemsets support requires lot's of internal changes in RM architecture. It seems gemsets are easier to use, but I'm not sure that gemsets approach won't be replaced with bundler in future.
jc
  jc
30 Mar 2010 03:49
2 years ago
Hi Roman. RVM gemsets and bundler work together. Gemset is just a way to partition rubygem collections, and bundler installs on top of it. They both do similar things, but Bundler works on top of RVM. It can't work alone without RubyGems and rvm gemsets is just a way to partition rubygems.

I really do think its worth having support in RM for both.

For the rvm_gemset_separator, it's only defined in ~./rvmrc and can not be per project. However, I think there should be a way to list the gemset paths without having to care about the rvm gemset separator so you can call one command. I will get confirmation from wayne on this.
Roman Chernyatchik
  Roman Chernyatchik
30 Mar 2010 13:45
2 years ago
can call one command

Calling external scripts/commands isn't fast, so we usually try to avoid it
jc
  jc
30 Mar 2010 13:52
2 years ago
Ah, ok. That makes sense. Best bet then (i think) is to read the RVM environment variable "rvm_gems_path" and then inside that folder, list out the result folders. These are the names of the gemsets.

When setting the rvm gemset, you'll need to set GEM_HOME, GEM_PATH, and BUNDLE_PATH to the full path of the folder that is selected out of "rvm_gems_path".

I verified with wayne that this will do everything you need. In this case, I dont think you even need to worry about rvm_gemset_separator since the folder already have them in the name.

Let me know if you have any questions. Thanks!
Roman Chernyatchik
  Roman Chernyatchik
12 Apr 2010 14:30
2 years ago
Build #93.162. RM supports rvm >= 0.1.25
Related Changes
Resolved Date
2 years ago (12 Apr 2010 14:30)
State
In ProgressFixed
Fixed In build
<lost change>