Download - "Vendor Everything" still applies

Transcript
Page 1: "Vendor Everything" still applies

“Vendor Everything”Still Applies

Ryan McGearyhttp://ryan.mcgeary.org

@rmm5t

Page 2: "Vendor Everything" still applies
Page 3: "Vendor Everything" still applies

vendor/g

ems

config.g

em

Page 4: "Vendor Everything" still applies

WHY?

Page 5: "Vendor Everything" still applies

Check in your.rvmrc

rvm ruby-1.9.2

Page 6: "Vendor Everything" still applies

RVM Gemsets Are Overrated

Page 7: "Vendor Everything" still applies

Let Bundler Follow the --path

$ bundle install --path vendor$ echo 'vendor/ruby' >> .gitignore

Page 8: "Vendor Everything" still applies

Package Your Gems in vendor/cache

$ bundle package

Page 9: "Vendor Everything" still applies

Help!

alias b="bundle"alias bi="b install --path vendor"alias bu="b update"alias be="b exec"alias binit="bi && b package && ignore_vendor_ruby"

Page 10: "Vendor Everything" still applies

.!"" .gitignore!"" .rvmrc!"" Gemfile!"" Gemfile.lock#"" vendor !"" cache $   !"" coffee-script-2.2.0.gem $   !"" coffee-script-source-1.1.0.gem $   !"" execjs-0.4.0.gem $   #"" multi_json-1.0.2.gem #"" ruby #"" 1.9.1 !"" bin !"" cache !"" doc !"" gems #"" specifications

Page 11: "Vendor Everything" still applies

.!"" .gitignore!"" .rvmrc!"" Gemfile!"" Gemfile.lock#"" vendor !"" cache $   !"" coffee-script-2.2.0.gem $   !"" coffee-script-source-1.1.0.gem $   !"" execjs-0.4.0.gem $   #"" multi_json-1.0.2.gem #"" ruby #"" 1.9.1 !"" bin !"" cache !"" doc !"" gems #"" specifications

Page 12: "Vendor Everything" still applies

.!"" .gitignore!"" .rvmrc!"" Gemfile!"" Gemfile.lock#"" vendor !"" cache $   !"" coffee-script-2.2.0.gem $   !"" coffee-script-source-1.1.0.gem $   !"" execjs-0.4.0.gem $   #"" multi_json-1.0.2.gem #"" ruby #"" 1.9.1 !"" bin !"" cache !"" doc !"" gems #"" specifications

Page 13: "Vendor Everything" still applies

.!"" .gitignore!"" .rvmrc!"" Gemfile!"" Gemfile.lock#"" vendor !"" cache $   !"" coffee-script-2.2.0.gem $   !"" coffee-script-source-1.1.0.gem $   !"" execjs-0.4.0.gem $   #"" multi_json-1.0.2.gem #"" ruby #"" 1.9.1 !"" bin !"" cache !"" doc !"" gems #"" specifications

bundle ins

tall --pat

h vendor

Page 14: "Vendor Everything" still applies

.!"" .gitignore!"" .rvmrc!"" Gemfile!"" Gemfile.lock#"" vendor !"" cache $   !"" coffee-script-2.2.0.gem $   !"" coffee-script-source-1.1.0.gem $   !"" execjs-0.4.0.gem $   #"" multi_json-1.0.2.gem #"" ruby #"" 1.9.1 !"" bin !"" cache !"" doc !"" gems #"" specifications

bundle pac

kage

Page 15: "Vendor Everything" still applies

Ryan McGearyryan.mcgeary.org @rmm5t [email protected]

McGeary Consulting Group