~/talk

How does Bundler work anyway?

Talkat RubyConf AU 2017 · on Friday, 2017-02-10· [ruby, developer-experience]
slides:none on file

History of Ruby packaging leads to a concrete claim: Bundler performs install‑time dependency resolution, writes an exact list in Gemfile.lock, and loads those specific versions instead of letting `require` or `gem install` pick them. It solves NP‑complete version graphs with heuristics so most Gemfiles resolve in seconds (some historically took minutes), provides bundle exec to set a correct load path at run time, and generates bundle binstubs so app commands reliably run the intended gem versions.

AI-written summary · about

  1. 0:00how does bundler work, anyway?
  2. 0:35a brief (?) history of dependency management
  3. 2:06let's share ruby code
  4. 2:17Terminal: $ bundle exec foo
  5. 3:19dependency timeline
  6. 4:55run code twice?
  7. 5:57only absolute paths?
  8. 7:10load paths are
  9. 9:43how do setup.rb? ruby setup.rb setup ruby setup.rb config ruby setup.rb install
  10. 10:09Use Ruby libraries 1. Find a cool library 2. Download the library 3. Untar the library 4. Run 'ruby setup.rb all'
  11. 11:01no versions no uninstall
  12. 12:00maybe a little bit incredibly tedious
  13. 12:17what if you could... gem install gem uninstall gem list rails
  14. 16:00Welcome to the team, here's your machine. We expect setting up to take a week
  15. 18:36version conflicts
  16. 18:50activation errors
  17. 20:13wait... how do we resolve at install-time?
  18. 22:03bundle install, my old friend
  19. 23:23or if you're too busy, fund this work.
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.