Commit graph

255 commits

Author SHA1 Message Date
Jordan Sissel
d2f89ba30d Avoid having 'remote: /some/path' in the gemfile.locks
When using bundler's "gemspec" setting it hardcodes a
local path as the "remote". This causes every 'bundle install' or
similar invocation on any other workstation to change that file simply
because the remote has changed. Not good.

Work around it by evaluating the gemspec ourselves and generating the
gem dependency list from that.

Same effect, better result, I think.
2013-12-05 00:27:41 -08:00
Jordan Sissel
753e533650 Add two more gemfile.locks (ruby 1.9.3 and 2.0.0)
Yes. I know the file is named 1.9.1. I don't have time to explain! GET
IN THE CAR. LETS GO.
2013-12-04 16:00:10 -08:00
Jordan Sissel
eca0afc116 - Add Gemfile.jruby-1.9.lock 2013-12-04 15:20:58 -08:00
Jordan Sissel
a4d41ed64a Try to solve the 'multi ruby' problem in bundler by having each
ruby write to its own Gemfile.<ruby version>.lock file.
2013-12-04 15:20:20 -08:00
Jordan Sissel
bd8caf9874 Use bundler.
'bundle install' when already installed should be faster than the
previous gembag. More importantly, it is also more accurate in terms of
dependencies.

Bonus points that we can do 'clean' which will purge any unknown gems
and keep our gems directory nice and tidy.

The main purpose is to speed up repetitive build invocations. Bundler's
dependency resolver is better than that of the previous gembag.rb, and
its 'clean' feature lets bundler manage the gems listing - even between
builds. This lets not have to 'rm -rf vendor' between builds on jenkins
to ensure quality testing :)

Other changes:
- Hide the Gemfile and Gemfile.lock in the 'tools' directory. This
  should hopefully prevent users from accidentally updating these files
  and thus avoiding merge conflicts later.
- Minor patch to use RbConfig::CONFIG['ruby_version'] instead of
  RUBY_VERSION. Confusing, I know. The former is the 'ruby abi' version,
  it seems, and the latter is the actual ruby implementation version.
  Example, on MRI 1.9.3, the former is 1.9.1 and latter is 1.9.3. On
  JRuby, the former is 1.9 and latter is 1.9.3. COMPUTERS. HELP.
2013-12-02 23:59:19 -08:00