Sinatra::Base.middleware ããããã Sinatra::Base ãç¶æ¿ããã¯ã©ã¹ã«ã¯ãã¯ã©ã¹ã¡ã½ããã¨ã㦠Sinatra::Base.middleware ãç¨æããã¦ãããæ示çã« Sinatra::Base.use ã§å©ç¨ã宣è¨ããããã«ã¦ã§ã¢ã¯ããããä¸è¦§ãåå¾ã§ããã + (Object) middleware ã¨ãããã Sinatra ã¢ããªã±ã¼ã·ã§ã³ãå®éã« Rack ã§ãã¹ããããã¢ã¯ã»ã¹ãããéã«ã¯ã use ã§å®£è¨ãã¦ããªãããã«ã¦ã§ã¢ãããããå¼ã°ããããã§ããã®å ¨è²ãç¥ãããå ´åããããã RailsãRamazeãCamping ã¨ãã£ã Rack ã«å¯¾å¿ãããã¬ã¼ã ã¯ã¼ã¯ãªãã°åããããªæ¹æ³ã§ãä¸ãè¦ãããã¨ãå¯è½ãªã¯ãã set_trace_func ã使ã£ã¦ã¿ã Kernel#set_trace_func 㯠profile.rb
â [ruby][rack] 5åã§ãããRack Rackã¯Rubyã®ããã®Webãµã¼ãã¤ã³ã¿ã¼ãã§ã¤ã¹ã ã Rubyã§Webã£ã¦ããã¨Railsãæåã ãã©ãå®ã¯Rails以å¤ã«ãããããªRubyç¨ã®Webã¢ããªç¨ãã¬ã¼ã ã¯ã¼ã¯ãåå¨ããã Ramaze Merb Camping Waves ãªã©ãªã©â¦ã ä¸æ¹Webãå®éã«åããã«ã¯Webãµã¼ããå¿ è¦ã ãRubyã®ããã®Webãµã¼ãããããã¾ãããããªãã®ãããã Apache(CGI, FastCGI..) WEBrick Mongrel Ebb Thin ãªã©ãªã©â¦ã ããã§åé¡ãä¸ã¤ãããã¯ããã¬ã¼ã ã¯ã¼ã¯ãå¢ãããã³ã«ãããããªãµã¼ãããµãã¼ãããããã®ã³ã¼ããå¿ è¦ã«ãªããã£ã¦ã¨ãã ã åãã¬ã¼ã ã¯ã¼ã¯ã®ä½è ãã¿ããªããããã«CGIãMongrelã«å¯¾å¿ããããã®ã³ã¼ããæ¸ãã¦ããªãã¦ãç¡é§ã ã¨æããªããï¼ Rackã¯Webã¢
ã¯ã¦ãªã¾ã¨ã(ä»®)ã¯2012å¹´10æ1æ¥ã«çµäºãã¾ãã 2012å¹´8æ31æ¥ã«ãç¥ããããã¦ããã ããéãããã¯ã¦ãªã¾ã¨ãï¼ä»®ï¼ãã2012å¹´10æ1æ¥ã«ãçµäºããã¦ããã ãã¾ããããæ顧ãããã¨ããããã¾ããã æ¢åã¾ã¨ãã®ç·¨éãããã±ããã¯æ©è½ãåæ¢ããã¦ããã ãã¾ãããããã¾ã§ã¦ã¼ã¶ã¼æ§ã«ä½æãã¦ããã ããã¾ã¨ãã¯ã以ä¸ã®ãã¾ã¨ãä¸è¦§ãããé²è¦§ã§ãã¾ãã ã¯ã¦ãªã¯ããããããæ¢åãµã¼ãã¹ã®ä¸å±¤ã®çºå±ã¨ãæ°ãããµã¼ãã¹ã®æé·ã«ãå ¨åãå°½ããã¦ã¾ããã¾ããä»å¾ãã¯ã¦ãªããããããé¡ããããã¾ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}