Rails 4.0.beta1 ã§ã¢ããªä½ã£ã¦ã¿ããã¨ãã¦ãéä¸ã§ bundle install --binstubs
ã¨ãããããªãã rails generate
ãªã©ã®ã³ãã³ããå¹ããªããªã£ã¦ãã¾ãã¾ããããããã¯ãRails 4.0 ãçæãã bin/rails
ã bundler ããªã¼ãã©ã¤ããã¦ãã¾ã£ããã¨ãåå ã§ããåã«ä½å¦ãã§ãbundler 1.3 㯠bin/rails
ãåå¨ãã¦ããããªã¼ãã©ã¤ãããªãããã«ãããã¿ãããªãã¨ãèªãã æ°ãããã®ã§ãããããã¯ã©ããããã¨ã ã£ãã®ã ããâ¦ã¨ããããããããªãã§ãªã¼ãã©ã¤ããããä¸å
·åèµ·ããã®ï¼ï¼ã¨æã£ãã®ã§ã¡ãã£ã¨èª¿ã¹ã¦ã¿ã¾ãããããã¦ãå¤åãããããã¨ãªãã ãããªããã¨ããã¨ããã¾ã§æ¥ãã®ã§ã¾ã¨ãã¦ã¿ã¾ããæ¨æ¸¬ãæ··ãã£ã¦ãã®ã§ééã£ã¦ããæãã¦ãã ããã
Rails 4.0 ã§ã®å¤æ´
Rails 4.0 ãã㯠script/rails
ããã㦠bin/rails
ã«ãããã¤ãã§ã« bin/rake
㨠bin/bundle
ãããã©ã«ãã§ä½ããrails console
ãªã©ã®ã³ãã³ããå®è¡ãããã¨ãã®é¸æè¢ããããããã£ã¦ãããã«ããã®ãä¸æ¬åããã®ãçç±ããªï¼
rails console
bundle exec rails console
script/rails console
ã¤ãã§ã« rails
ã³ãã³ãã®æåãå¤ãããgem i rails
ã§å
¥ã rails
ã³ãã³ã㯠rails new
å°ç¨ã«ãªã£ãã(Rails 3 ã¾ã§ã¯ rails
ã³ãã³ãã Rails ããã¸ã§ã¯ãä¸ã§å®è¡ããããã©ããã調ã¹ã¦ãrails
ã³ãã³ããã®ãã®ãå®è¡ããã script/rails
ãå®è¡ããããåãæ¿ãã¦ãã)
bundler ã§ã®å¤æ´
bundle install --binstubs
ã®æåããbundler 1.3 ã§ãã¡ã¤ã«ãæ¢ã«åå¨ãã¦ããããªã¼ãã©ã¤ãããªãããã«ããä»æ§ãæ¤è¨ãæçµçã«ã¯å¾æ¹äºææ§ãèãå¤æ´ããã
代ããã«ï¼ bundle binstubs
ã³ãã³ããæ°ããä½ããããããã¯æ¢ã«ãã¡ã¤ã«ããã£ãããªã¼ãã©ã¤ãããªãããã ãä¸åº¦ã«ä¸ã¤ã® gem ããæå®ã§ããªãã®ã§ãããããã®ã³ãã³ãã bin/
é
ä¸ã«ç½®ãããã¨ãã¯ããã©ã
ãããä¸ä¾¿ãããï¼ãªãã¨ããã¦ããã¨ãã人éã issue ã«æ¸ãè¾¼ã
https://github.com/carlhuda/bundler/issues/2253
bundler ã bin/rails
ãä¸æ¸ããã¦ãããRails 4 㯠bundle install --binstubs
ãµãã¼ããã¦ãªããããã使ã£ã¡ããã¡ã ããã¨åºåãã pull request ãæãããã âã¤ãã³ã³ï¼
https://github.com/rails/rails/pull/9843
ã¾ã¨ã
Rails 4.0 ã§ã¯ãã¾ã®ã¨ãã
bundle install --binstubs
ã¯ä½¿ããªãbin/
é ä¸ã«ã³ãã³ãç½®ãããæã¯ãé½åº¦bundle binstubs hogehoge
ã¨ãã
ã¨ãããããªããããã¡ãã£ã¨ããã©ãã§ããä»æ¹ãªãã®ããªã
追è¨
@onk ããããã¡ã³ã·ã§ã³é ãã¾ããã
@netwillnet --binstubs=bundle_bin ã¨ãé©å½ã«ãã£ã¬ã¯ããªå¤ããã®ãªã¹ã¹ã¡
— Takafumi ONAKAãã (@onk) 2013å¹´4æ1æ¥
ã¨ãããã¨ã§ãbin 以å¤ã®ãã£ã¬ã¯ããªã使ãæ段ãããã¾ããï¼