1.1 ããã®ä¸»ãªå¤æ´å 容ãã¾ã¨ãããã Bundler: The best way to manage Ruby applications ãèªãã§ã®ã¡ã¢ã§ãã
ç´°ããå¤æ´ç¹ã¯ bundler/CHANGELOG.md at 1-2-stable · carlhuda/bundler ãåç §ã®ãã¨(è±èªã§ã)ã
Ruby ã®ãã¼ã¸ã§ã³ãæå®ã§ããããã«ãªã£ã
Gemfile ä¸ã«ãä¸è¨ã®ããã« Ruby ã®ãã¼ã·ã§ã³ãæå®ã§ããããã«ãªãã¾ããã
ruby "1.9.3"
ä¸è¨ã®è¨å®ã¯ã該å½ããã¢ããªã 1.9.3 㨠ABI äºæ㪠Ruby VM ã«ä¾åãã¦ãããã¨ã宣è¨ãã¦ãã¾ãããã¼ã¸ã§ã³ãã§ãã¯ã失æããããBundler ã¯ä¾å¤ãæãã¾ãã :engine 㨠:engine_version ãªãã·ã§ã³ã§ããå ·ä½çã«è¨å®ãããã¨ãåºæ¥ã¾ãã
ruby "1.9.3", :engine => "jruby", :engine_version => "1.6.7"
ãããã¬ãã«ã¾ã§ã¯æå®ã§ããªãã¿ããã§ãã
bundle package ã®å¯¾è±¡ã« :git ã :path ã® gem ãå«ãããã¨ãåºæ¥ãããã«ãªã£ã
ä¸è¨ã®ããã« âall ãªãã·ã§ã³ãä»ããã¨ã:git ã :path ã§æå®ããã gem ã対象ã«å«ãããã¨ãåºæ¥ãããã«ãªãã¾ãããâall ã¯ä¸åº¦ä½¿ãã¨è¨æ¶ããã¾ãã
bundle package --all
ãããã bundle package ã³ãã³ãã£ã¦ãªã«
bundle package
ã³ãã³ãã¯ãgem ã vendor/cache ã«ãã£ãã·ã¥ããã³ãã³ãã§ããä¾ãã° bundle package
ãå®è¡ â vendor/cache ã git ã®ãªãã¸ããªã«è¿½å ã¨ããã¨ãä»ã®ã¦ã¼ã¶ã¯ gem ãå¤é¨ãããã¦ã³ãã¼ããããã¨ãªã bundle install ã§ãã¾ãã
ãã¼ã«ã« git ãªãã¸ããª
ãªã¢ã¼ã git ãªãã¸ããªã«ç½®ãã¦ãã gem ããã¼ã«ã«ã§ä¿®æ£ããªããéçºãããã¨ããªã©ã«æãã使ããè¨å®ãä¾ãã°ä¸è¨ã®ã³ãã³ããå©ã
bundle config local.rack ~/Work/git/rack
Gemfile ã«ä¸è¨ã®ããã«æ¸ã
gem 'rack', :github => 'rack/rack', :branch => 'master'
ããããã¨ããã¼ã«ã«ã§ã¯ ~/Work/git/rack ãåç §ãããããã¤æã«ã¯ github ä¸ã® rack ãåç §ããããã«ãªããã¯ã(æªç¢ºèª)ã