~/talk

Ruby's Environment Variable API

Talkat RubyConf 2015 · 2015-11-15..11-17· [ruby, devops-and-delivery]
links:none on file
slides:none on file

Shows exactly how Bundler RVM rbenv chruby and RubyGems control Ruby by mutating environment variables and load paths, with live experiments: GEM_PATH/GEM_HOME gets a temp gemdir and gem install lands there, RUBYLIB and -I add entries to $LOAD_PATH, and a strace demo proves require simply iterates the LOAD_PATH looking for .rb or .so. Explains that bundle exec sets RUBYOPT -> -rbundler/setup and prepends LOAD_PATH entries so requires resolve, so it’s practical debugging you can reproduce.

AI-written summary · about

  1. 0:00Start
  2. 20:01$LOAD_PATH
  3. 25:44How to use the right version of a gem?
  4. 27:37How Bundler works
  5. 30:09Flags
  6. 33:07What Ruby cares about
  7. 34:33What Bundler cares about
~/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.