carlhuda/bundler — Issue #1709: Allow custom hash/block in Gemfile
Author: mpapis
Created: 2012-03-08 21:57:29+00:00
State: open

Hi, I would like to push further the idea of .ruby-version file https://gist.github.com/1912050

Maybe it would be possible to eliminate it by introducing a custom hash in Gemfile

custom[:ruby_version]="ruby-1.9.3-p125"

or a block:

custom do
ruby_version="ruby-1.9.3-p125"
end

I think the first form would be a lot easier to parse for [ruby environment managers](https://github.com/wayneeseguin/rvm/blob/master/help/alt.md)

I was at first thinking about naming this field "metadata" but it already has it's usage in context of gem files so it could get confusing:

metadata[:ruby_version]="ruby-1.9.3-p125"

there are more uses for it, but I think `ruby_version` is most obvious.