ãã¹ãã«ã³ã±ã度ã«ã·ã¼ã¶ã¼ãæ»ã¬ä»çµã¿ãä½ãã¾ãã
ã¿ã¤ãã«ã¯é£ãã§ãã
App::WithSound ããªãªã¼ã¹è´ãã¾ããã
https://github.com/moznion/App--WithSound
https://metacpan.org/module/MOZNION/App-WithSound-v1.0.2/with-sound
(2013.03.06 追è¨)
App::WithSound ã¯v1.1.0 ã«ãã¼ã¸ã§ã³ã¢ãããã¾ããã
ã³ãã³ãã®æåã»å¤±ææã ãã§ãªããã³ãã³ãã®å®è¡ä¸ã«ãé³å£°ãåçåºæ¥ãããã«ãªã£ã¦ãã¾ãã
https://metacpan.org/module/MOZNION/App-WithSound-v1.1.0/with-sound
(追è¨ããã¾ã§)
App::WithSound?
ã³ãã³ããæåããã失æãããã«ãã£ã¦ããã®çµæã«å¯¾å¿ããé³å£°ãæµããã¢ããªã±ã¼ã·ã§ã³ã§ããã¾ãããã®ã¢ã¸ã¥ã¼ã«ã¯mpg123 ãmpg321 ãafplay ãäºãã¤ã³ã¹ãã¼ã«ããã¦ãããã¨ãè¦æ±ããã®ã§ã
ããããã¤ã³ã¹ãã¼ã«ãã¾ããããï¼afplay ã¯Mac OS X ããå©ç¨ã®æ¹ã ã¨æåããå ¥ã£ã¦ããã®ã§æ¥½ã¡ãã§ããï¼
ã§ãApp::WithSound ãcpan ã¨ãcpanm ã¨ãã§ã¬ãã³ï¼ï¼æãã¯ã´ãªãï¼ï¼ã¨ã¤ã³ã¹ãã¼ã«ãã¦ããã
$ with-sound cmdã¿ãããªæãã§ã³ãã³ããå©ãã¨ä½¿ãã¾ãã
ãªããããªãã®ãï¼ï¼ï¼
ããã¹ãã®ã¢ããã¼ã·ã§ã³ãæãªããªãããã«ãã¨ããç®ç㧠(å½åã¯) éçºãã¦ãã¾ããããã¹ããæ¸ããã¨ã¯éè¦ã¨ããããã¯ãå¿ é ã§ãããããã«ãã£ã¦å¾ãããã®ã¯ããã¸ã§ã¯ãå ¨ä½ã®å©çã§ãã£ã¦ã
ãã¹ããæ¸ããå人ã«ãå¬ãããããåã³ãã¿ãããªãã®ãç´æ¥çã«ãã£ã¼ãããã¯ãããã±ã¼ã¹ã¯ããã»ã©å¤ããªãããã«æãã¾ãã
(ãã¹ããããäºã«ããæ©æµã¯ç¢ºãã«ããã®ã ããã©ããªãã ããããå®æã§ããªãã¯ãã¿ãããªãã¾ãããªããªã£ã¦ããæ°ã¥ããã§ããã© *1 )
人éã¯çµæ§åç´ãªã®ã§è¤ããããã°ããæ°ãæç¶ããããè¤ããããªããã°ããæ°ã¯ã©ãã©ãæãªããã¦ããã¨æã£ã¦ãã¦ã
ããã¹ããéãã°è¤ãããã¦ããã¹ããã³ã±ããå±ã¾ãããä»çµã¿ãããã°ç¥ãããªãï¼ã
çãªäºãid:nkgt_chkonkãããè¨ãåºãã¦ãããããã¼é¢ç½ããã ãªã¼ãã¨ãããã¨ã§å®è£ ããã®ãã³ã¬ã§ãã
(æ¬å½ã¯App::WithSound ã®åã«App::Prove::WithSound ã¨ããåããããã§ããã©ãApp::WithSound ã«åã£ã¦ä»£ãããã¾ãã)
ãããã¸ãã®çµç·¯ã¯ä»¥ä¸ããåç §ä¸ããã
テストに通ったら伊藤かな恵さんに褒められる環境を作って捗る話 - life.should be_happy # => 1 examples, ? failures
Hachioji.pm #26 に参加して参りました - その手の平は尻もつかめるさ
ãã¹ããã³ã±ã度ã«ã·ã¼ã¶ã¼ãæ»ã¬
ä¾ãã°ã$ with-sound proveã¿ããã«ãã¦ããã¨prove ãæ®éã«èµ°ãã¾ãã
ãã®å ´åã¯ãã¹ããéã£ããæåæã®é³å£°ããã³ã±ãã失ææã®é³å£°ãæµãã¾ãã
ãããªæãâ
ãã¹ããã³ã±ãã¨ã·ã¼ã¶ã¼ãæ»ãã§ã¸ã§ã»ããæ²ããï¼ï¼ï¼
ã©ãã§ãããããã以ä¸ãã¹ããã³ã±ããã訳ã«ã¯ãããªãã¨ãããè¦æããåºæ¥ã¦ããã§ãããï¼ï¼ï¼
ãã®ä»ã®ä½¿ãæ¹
with-sound ã¯æ±ç¨çãªã®ã§ããã¡ãã$ with-sound rspecã¿ãããªã³ãã³ããå®è¡å¯è½ã§ãã®ã§RSpec-er ã®ãããã人éãæºè¶³ï¼ãã£ã¦æãã§ããã
ãã¨ã
$ with-sound lsã¨ã
$ with-sound whoamiã¨ãããã¨ã常ã«é³ã«æº¢ããå å®ããçæ´»ãéããã®ã§å¤§å¤è¯ãã®ã§ã¯ç¡ãã§ããããã
NO MUSIC, NO LIFE *2
ããããåä¸äººã§ã¤ãã£ãããããªãã§ã
App::WithSound ã¯id:nkgt_chkonk ããã¨å ±åã§ä½ãã¾ããããããå ±åã§ä½ã£ãã£ã¦ããããåããããã¼ã«æ¸ãæ£ããããã³ã¼ããid:nkgt_chkonk ãããè¯ãæãã«è¨è¨ããªããã¦
åå®è£ ãã¦ãããã®ã§ããããããææ©ãåãä½ã£ããã£ã¦è¨ããªãããããï¼ãã¿ãããªæãã®å ±åä½æ¥ã§ããã
åã¯ãã®éãç²¾ç¥çãè¶ãã¿ãã¨ç§°ãã¦ãã¹ãã³ã¼ãã¨ããã¡ã¾ã¡ã¾æ¸ãã¦ããã§ããã©ãçµç¤ã«ãªã£ã¦ããã¨ãã¹ãã±ã¼ã¹ãã
id:nkgt_chkonk ãããæ¸ãå§ããã®ã§ãã@moznion ã¨ã¯ä¸ä½ãªãã ã£ãã®ããã£ã¦æããå¦ããªãã§ããï¼ *3
æ¬å½ã«ãããã¨ããããã¾ãï¼
ã¾ããid:syohex ããã«ã¯è²ã ã¨pull-request ãéã£ã¦ããã ãã¦ãé常ã«å©ããã¾ããã
大å¤æçãªpull-request ã§ãããåå¼·ã«ãªãã¾ãããããé°ã§App::WithSound ãè¯ãæãã«ãªãã¾ããã
ãã®å ´ãåãã¦æè¬ãããã¾ãã
ããã§ã¯ãApp::WithSound ã§åªé ãªãã¹ãã©ã¤ããã楽ãã¿ãã ããï¼ï¼ï¼ï¼ï¼ï¼
(åã¯alias prove='with-sound prove'ã«ãã¾ããï¼ï¼ï¼ï¼)