-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add guide for Ruby environment(s) #5
Comments
What’s the current consensus on RVM vs. rbenv? |
Not stating a preference, but RailsBridge guides use RVM: For all OSs, check out RailsBridge's paths for all: |
Did an RVM guide, tested in Mac and Ubuntu, at |
I’d love your feedback, @invisiblefunnel—some context in issue #2. |
Might I suggest renaming the file to It seems like RVM is an implementation detail, and unless we're thinking we'd write an (Even if we do want to add instructions for I feel like this will make it really easy for CfA devs to say, "okay, I need to link to How-To's ruby.md and rails.md" and know that these will always be up-to-date, even if the implementation for doing so (eg, rbenv) changes. |
Sounds good. I was making it similar to the Python/Virtualenv one, but the difference is that most people already have a good-enough Python and need Virtualenv, while few people start with a sufficiently-new Ruby. |
If we think virtualenv is a need in most Python environments, do you think we could rename that one to be I just really like the idea of clear dependency-to-name mapping (eg, "my Django app requires Python ( And if there's a clear dependency chain, it could just be Django in the above case (and the top of the Is this overkill? Just thinking about the most sensical dev UX. |
I mostly agree. Ruby-RVM should be renamed Ruby, but Python-Virtualenv would stay the same because it's like a namespace? #dunno.
|
rbenv is the new hotness, but rvm is perfectly fine. Ruby on rails recommends rbenv in turns out. This link also has all of the instructions to get up and running with rails, although there's a bit of clicking around and digging through docs. |
RVM seems to be the standard and most documented tool, but rbenv will work just as well. For more experienced developers, comfortable with Ruby dependency management, ruby-install+chruby is a strong, modular option. Andrew Douglass and Tiffany Chu are set up with ruby-install/chruby and it has been simple enough for them so far. I'll try to document any struggles they have along the way. If it works out, I can incorporate it into this project. Here are some more detailed thoughts on the topic: https://gist.github.com/invisiblefunnel/9538009 |
Thanks! Sounds like Andrew and Tiffany are good to go. For our purposes here, I’d like to recommend a single Ruby installation method and document only that. Where does your ruby-install/chruby method put gems? Systemwide? Local directory? Trying to understand the Virtualenv analogies. |
Ruby versions are installed in $ which ruby
/Users/dannywhalen/.rubies/ruby-2.1.1/bin/ruby
$ bundle show octokit
/Users/dannywhalen/.gem/ruby/2.1.1/gems/octokit-2.7.1 |
I’d like to stick with RVM here due to its long reach. Do you foresee any incompatibilities for people developing their work under one vs. the other, or would experienced developers read “you need Ruby x.x.x” and feel confident that they could move ahead regardless of how they do it? |
I agree that RVM is the right choice here. As long as there is a What do folks think about having a Oh cool, it turns out that RVM already integrates with chruby. |
Would
|
Heroku doesn't check the |
Thanks! Would you recommend adding a note to the Ruby file with this information? |
@invisiblefunnel based on our conversation in the office, it sounds like the Ruby version number should exist in both |
These files don't need to be covered at all in a basic development setup guide. It would become relevant information for a maintainer or someone forking a project. I mentioned them earlier to inform the choice of Ruby version manager. I do think they should be a standard part of our Ruby projects, and would be happy to help document that as well. (apologies for the slow reply, I was out of the office yesterday) |
Thanks Danny, in that case I think we can close out the ticket and call |
No description provided.
The text was updated successfully, but these errors were encountered: