ãããã£ããæ®æ®µæ¸ãããã¹ãã Markdown ã°ããã«ãªã£ã¦ãã¾ã£ãã®ã§ããã®æ©ã«ã¯ã¦ãªããã°ã«ç§»è¡ãã¾ãããã¡ãã«ãå ¥ç¤¾ã¨ã³ããªãæ¸ãã¾ããã http://moro.hatenablog.com/entries/2015/08/03ããã®æ©ã«ãã¨ãããªããå®ã¯3å¹´åã«ãã¡ã¤ã³ã¹ã¯ã¯ããã£â¦
æ¬æ¥2015å¹´7æ31æ¥ããã£ã¦ã9 å¹´éå¤ãã¾ããæ ªå¼ä¼ç¤¾æ°¸åã·ã¹ãã ããã¸ã¡ã³ããéè·ãã¾ããå¨è·ä¸ã¯å¤ãã®æ¹ã ã«å©ããããRails ãä¸å¿ã¨ããããããã®ä»äºãããªããè²ã¦ã¦ããã ãã¾ãããåå¥ã®ãæ¨æ¶ãã§ããªãã¦å¤§å¤ç³ã訳ããã¾ããããæ¬å½ã«ãâ¦
ç®æ¬ããã ãã¾ããããããã¨ããããã¾ããæ¬æ¸ã¯ããã¼ã¿ãã¼ã¹è¨è¨ãããã®DBãã¢ããªã±ã¼ã·ã§ã³ããå©ç¨ããéã«ããè¦ãããã¢ã³ããã¿ã¼ã³ããç°¡æ½ãã¤ããããã¨ã¾ã¨ããæ¸ç±ã§ãããã¡ãããåãªããã¹ãããéãã§ã¯ããã¾ããããã®ã¢ã³ããã¿ã¼â¦
ãªãã©ãã®ã¤ãã³ãããªãã©ãåç©«ç¥ãã§æ°äººæè²ã®ãããã¯ã話ãæ©ä¼ããã£ãã®ã§ãããä¸å¹´ã»ã©ä¸ç·ã«ä»äºãã¦ãã(ãããããªã«ãªããã ãªã) id:akiinyoã®äºä¾ãä¸å¿ã«ãä»äºãããã«ããã£ã¦è¥æã«ä¼ããããã¨ãã話ãã¦ãã¾ãããããã¾ã§ããããªæ¹â¦
Plain Old Ruby Objectãªãã ãã©ãã¾ãActiveModelã½ãæ¯èããããã¦ãããããã¨ããããHashã§newããããªããeachãã¦send("#{key}=", v)ããã¨ãããRailsã使ã£ã¦ãã人ãªãããããã±ã¼ã¹ã«ããä½åº¦ãééãã¾ãã£ãã®ã§gemã«ã¾ã¨ãã¾ãããhttps://â¦
æå¹Rubyä¼è°ã¯ãç´ä¸å¹´ã¶ãã«è¨äºãæ¸ãã®ã«ãµããããããã°ãããã¯ã§ãã :-)9/14..9/16ã«è¡ãããæå¹Rubyä¼è°ã«åå ãã¾ãããããããã¾ã§çºè¡¨ã®æ©ä¼ãããã ããã®ã§ããã¤ãçºè¡¨ãã¦ãã¾ãããã¾ãã¯2æ¥ãã®åæ åºæ¼æ ã§ãRails3ã®éã¬ã·ããç´¹ä»ãâ¦
ãã§ã«ãåãã®æ¹ãå¤ãã¨æãã¾ãã(ãè²·ãä¸ãããã ããæ¹ãå¤ãã¨æãã¾ã!! ãããã¨ããããã¾ã!!)ãRails3ã¬ã·ãããã¯ã®PDFçãçºå£²ããã¦ãã¾ããçºå£²è¨å¿µã»ã¼ã«ã¨ãããã¨ã§ãæ¬æ¥11/05ã¾ã§1,800åã§ãè³¼å ¥ããã ãã¾ãããµã ãã¯2,800åãªã®ã§ãâ¦
ã¯ã¦ãªãã³ãã«ã¨ãã«æ¸ãã¦ãã¿ã¾ããããããªgit aliasãä½ã£ããããªããªãå ·åãè¯ãã£ãã®ã§å ¬éãã¾ãã [alias] kokomade = tag -f 'ããã¾ã§èªãã ' origin/master newspaper = log -p --reverse 'ããã¾ã§èªãã '..origin/masterãããªæãã§ä½¿ãæ³â¦
RubyKaigi 2011ã®äºæ¥ç®ãçµããã¾ãããæ¥å ´è ã®çãããã¹ã¿ããã®çãããèª ã«ãããã¨ããããã¾ãã ããããå¿ããã£ãããç·å¼µããããããããã©ãã¨ã¦ã楽ããæéãéããã¦ãã¾ããä¸é£ä¼å®å ¨å¤åºã許容ãã¦ããã妻åã«ããããã¨ãããã¦ãä»æ¥â¦
å æ¥ãã¡ãã«æ¸ããRails3ã¬ã·ãããã¯ã§ãããããããã¾ã§å ã»ã©æ ¡äºããã¨ããé£çµ¡ãããã ãã¾ããã ç®æ¬¡ãå ¥æããã®ã§ããã¡ãã«è²¼ã£ã¦ããã¾ãããã®ãã¡ããããã¹ãã¨ããã«è²¼ãããã¨æãã¾ãããéå ±ã¨ãããã¨ã§ãããã¨ãbit.ly㧠http://amznâ¦
Twitterãªã©ã§ä½åº¦ãç´¹ä»ããã®ã§ãåãã®æ¹ãå¤ãã¨ã¯æãã¾ãããä»åº¦Rails3ã¬ã·ãããã¯ãåºçãã¾ããååããåããã¨ããã3å¹´å(å¨ãçã¾ããç´åã ã£ããæãçµã¤ã®ã¯éããªã)ã«åºçãããRailsã¬ã·ãããã¯ãã®å¾ç¶ã«ãããæ¬ã§ãããã®æ¬ã¯ã社å â¦
ãµã¨æãã¤ããActiveRecordã®ä¾¿å©ãªä½¿ãæ¹ã§ãããã¨ãã°userã¨groupãmembershipãä»ãã¦å¤å¯¾å¤ã§ãã°ã«ã¼ãããæå±ã¦ã¼ã¶ãã²ãé¢é£ã欲ããå ´åãActiveRecordã使ãã¨æ¬¡ã®ããã«æ¸ãã¾ãã class Group < AR::Base has_many :memberthips has_many :usâ¦
ããã¾ã§æ°ããã®ã¢ããªã§ã¯Mongoã使ã£ã¦ããã§ãããè¿é ã«ãªã£ã¦ããããActiveRecordãproductionã§ãããã使ã£ã¦ãã¾ããArelããã§ãããã§ãæ¬é¡ãããããå ´åã«ãattendances.statusãè¦ã¦eventsãçµãè¾¼ã¿ãããããããã£ãããæ¸ãã«ã¯ã©ãããâ¦
ã¹ã¿ããã®ã¿ãªãã¾ãç²ãæ§ã§ãããåå è ã®ã¿ãªãã¾ãããã¨ããããã¾ããã å æ¥Î²ãªãªã¼ã¹ãããã¯ãããï¼Cucumberããé¡æã«ããããå®éã®ããã¸ã§ã¯ãã«ã¯ã©ãé©ç¨ãã¦ããã°ããã®ããã¨ãã話ããã¾ãããBegin cucumber-in-real-worldView more pâ¦
ãã¶ãã®ç°å¢ã¨ãã¦Windowsãããããã¨ã¯ç¨ã§ãããartonããã®æ¸ç±ã®ãã¤ã¹ãã¯å¤§å¥½ããªã®ã§è²·ã£ã¦ã¿ã¾ãããç§ãè¨ãã®ããããã¾ããã§ãããä¿¡é ¼ã¨å®ç¸¾ã®artonã»ã³ã»ã¤ããããè¯æ¸ã§ãã http://www.artonx.org/diary/20101101.html#p01 http://tatsu-â¦
å ã»ã©ããæ°ããã³ã³ãã³ãããæ°ããèªè ã«ãæ°ããé度ã¨ããã»ã¹ã§ãã¨ããç念ãæã£ãé»ååºç社ãé人åºçä¼ã試é¨å ¬éã§ãµã¼ãã¹ã¤ã³ãã¾ãã(http://tatsu-zine.com/)ããã¡ãããåãã®æ¹ãå¤ãã¨æãã¾ãããæ¥æ¬Rubyã®ä¼ä¼é·ã§ãããRailsã¬ã·ãâ¦
ä»å¹´ã®RubyKaigiåå¾ãããRailsåå¼·ä¼@æ±äº¬ã¯ä»å¾ã©ããã¦ãã£ããã®ãã¨ããã®ãæ©ãã§ãã¾ããã ã¨ããã®ã¯ããã¨ãã°æã¡å¯ãæ親ä¼ã§ã³ãã¥ããã£ç´¹ä»ã¨ãã¦å®£ä¼ããã¨ããªããã«ããRails"åå¼·ä¼"ã¯ã¯ããã¦ã³ãã¥ããã£ããå¾ãã®ããã¨èªåèªçããªâ¦
autotest"ã ã"ã§ã¯ãã£ããããªãã¨ãããã¹ã好ãã®Rubyistã®ã¿ãªãã¾ã¸ãhttp://github.com/moro/spe_cukeã³ã¼ããæ¸ããªããã¢ãªã¢ãªã¨ãã¹ããå®è¡ãããå ´åãrake specã§å ¨ä½ãæµãã®ãããªãã«ããã¡ã¤ã«åä½ã¨ãExample/Scenarioåä½ã¨ãã§ãã¹ããâ¦
åå ãã¦ãã ãã£ãæ¹ã ããããã¨ããããã¾ãããç°å¢å¨ãã¸ã®æ³å®ã足ããããã¿ãã¿ãã£ã±ãªã®ä¼ç»ã¨ãªã£ã¦ãã¾ããç³ã訳ãªãæã£ã¦ãã¾ãã ä¸äººã§ãå¤ãã®æ¹ã«ããCucumberã¯ãããã®ã¯(gemã¨ããå ¥ã£ã¦ããããã°)é£ãããªãããã ãªãã¨ãããé°å²â¦
thinã³ãã³ãã§èµ·åãããã¨ããã¨ãthinãrack 1.1.0ãactivateãããã¨ã«Rails 2.3.5ã~>1.0.0ãæ±ããã®ã§è½ã¡ã¾ãã ã¨ã©ã¼ã¡ãã»ã¼ã¸ã ãè¦ãã¨ãrailsã®gemããã¼ããæãªã£ãããã«è¦ããã®ã§æ³¨æãRailså´ãå ã«rackããã¼ãããããã«ãscript/servâ¦
æè¿ã®Railsã¯1.daysã¨ã3.minitusãªã©ã¨ãã£ã便å©ã¡ã½ããããFixnumã§ãªããActiveSupport::Durationãè¿ãããã«ãªã£ã¦ãã¾ããã¿ãªããã便å©ã«ä½¿ã£ã¦ããã¨æãã¾ããããããtimeout()ã¨çµã¿åãããã¨ã²ã©ãç®ã«éãã®ã§æ³¨æãã¦ãã ããã # ãã¡ãªâ¦
ãããµããªããã§ããstep_definitionãè²ã¦ãã!!ããªã©ã¨è¨ã£ã¦ã¾ããããå®éã®ããã¸ã§ã¯ãã§ããã®ã¯ãªããªãé£ãããã¨ãããã¨ã§ãä½ããããµãã¼ãã§ããªããèãã¦ãã¾ããã§ãã¾ã ã³ã³ã»ããã¬ãã«ãªã®ã§ãããstep_definitionãä¸è¦§ãããã¼ã«ãâ¦
å¤ã«æ¸ããã¨ãã¦ããã¾ãè¡ããªãã£ãã®ã§æ¼ä¼ã¿ã«æ¸ãã¦ã¿ã¾ããä»æ¥ã¯ç«ææ¥ãªã®ã§MacBook Proãçºå£²ãããäºå®ã®æ¥ã§ããããããã¨æ¥½ãã¿ã«ãªã£ã¦ãã¾ããããããä»é±ã¯ãæå:確度ã®é«ãæ å ±ããåºã¦ããã®ã§æå¾ ã§ãã¾ããããããã½ã¼ã¹ã¯MacRumorsâ¦
å¨ã®èª¿åã¯ç¸å¤ãããå¾®å¦ã 38âåå¾ã®ç±ããããªãããå æ°ããã«å® å ã§éã³åã£ã¦ã¾ããã å¤ã¯ããããªããç±ãä¸ãã£ã¦ããã®ã§ãææ¥ã¯æ®éã«ä¿è²åãããã¨ãããªãã¨æã£ã¦ã¾ãã
æ¥è¨ãç¶ããã®ããã£ããå¿ãã¦ãã¾ãã¾ãããããã¯æ¨æ¥ã®ã¶ãã å¨ã®ç±ãã¾ã ä¸ãããããªã¾ãå æ°ãªã®ã§æ²¹æãã¡ãã£ã¦ããã§ãããã風éªã§ãå æ°ãªã®ãä¸é·ä¸çã§ãã
cucumber-railsã使ã£ã¦ããã¿ãªãã¾ãWebratã¯500ç³»ã®ãµã¼ãã¨ã©ã¼ãè¿ã£ã¦ããã¨ããµã¼ãå´ã®ãã°ã¨ãã¦PageLoadErrorãããã¦ããã¾ãã ããã¯ãã ãããã«ããã¦ããããããã§ãããç¨ã«ãè¦ä»¶ã¨ãã¦500çªå°ãè¿ããã¨ãæ¤è¨¼ãããã¹ããæ¸ããããªãâ¦
ãã§ã«1é±éããã¦ã¾ãããæ°å¹´åº¦ã§ãããä»å¹´åº¦ããããããé¡ããã¾ããç§äºæ¹é¢ã§ã¯4æããå¨ãä¿è²åå ¥å&妻ãè·å ´å¾©å¸°ã¨ããã¤ãã³ããèµ·ããã¾ããã諸è¬ã®äºæ ã§ä¸¦è¡éç¨æéããªãã£ãã®ã§ãæ £ããä¿è²ã®ããã«ç§ã1é±éã»ã©è²å ä¼æçãªãã®ãã¨ãâ¦
ååã«ç¶ããgihyo.jpã§wwã®è¨äºã®2åç®ãå ¬éããã¾ãããhttp://gihyo.jp/dev/serial/01/ruby/0037ä»åã¯ã(é·ãåããªãçµã¦)ã¤ãã«wwãRSpecã®ä¸ãã使ãæ¹æ³ãç´¹ä»ãã¦ãã¾ãããã¡ãããRSpec以å¤ã§ã使ãã¾ãã ãã¨ãã°Cucumberã§ã¯Before(){ }ããâ¦
èªåã®æ¥è¨ã§ã話ãããã®ãã¡ãã£ã¨é ãã¦ãã¾ãã¾ããããç§ããã³ãã³è¦ã¦åå¼·ããã¦ããã£ã¦ããgihyo.jpã®Ruby Freaks Loungeã«wwã®è¨äºãå¯ç¨¿ãã¾ãããhttp://gihyo.jp/dev/serial/01/ruby/0035ä»åã¯ãww(double-web)ã®ååã®ç±æ¥ã§ããããã«ã¨ãã¢â¦