追è¨ï¼2024/07/10ï¼ ãã®åé¡ãä¿®æ£ããã«ã¯ãRuby 3.3.4ã«ã¢ããã°ã¬ã¼ãããå¾ã§bundle update net-popãå®è¡ããå¿ è¦ãããã¾ãããããgemã³ãã³ãã§net-popãæ¢ã«ã¤ã³ã¹ãã¼ã«ããã¦ããã®ã§ããã°ã念ã®ããgem uninstall net-popãå®è¡ããã¨ããã§ãããã åè: net-protocol gets removed with ruby 3.3.3 · Issue #26 · ruby/net-pop çºç«¯ Ruby 3.3.3ããªãªã¼ã¹ããã¾ãã Ruby 3.3.3ããªãªã¼ã¹ãããã®ã§ãèªåã®Railsã¢ããªã®Rubyã3.3.3ã«ã¢ããã°ã¬ã¼ããããã¨ããã¨ããããã¼ã«ã«ã®Dockerã³ã³ããã§ã¯Railsã¢ããªãæ£å¸¸ã«å®è¡ã§ããã«ãããããããHerokuã«ãããã¤ããã¨bundle installã®é¨åã§ä»¥ä¸ãçºçãã¦ã
ããã«ã¡ã¯ãhachi8833ã§ããç¹ã«å¤æ´ããªããã°ãRuby 2.7ãææ¥20132023/03/31ãã£ã±ãã§EOLãè¿ãã¾ããã åè: Ruby Maintenance Branches RubyKaigi 2023ã®ãã±ããã«å¦çåããã£ã¹ã«ã¦ã³ãæ ãã§ãã¾ããã Student discount is now available. https://t.co/XlF5XT9Hq4 #rubykaigi â RubyKaigi (@rubykaigi) March 28, 2023 é±åRailsã¦ã©ããã«ã¤ã㦠åè¨äºåé ã«ã¯ðã§ãã¼ããªã³ã¯ãç½®ãã¦ããã¾ã: 社å ãTwitterã§ã®è°è«ãªã©ã«ã©ãã ãã¤ã£ã¤ããã¤ã¹ãã¯Railsã¦ã©ããå ¬éåãã©ãããï¼éã®ããã«ï¼ç¤¾å æå¿ã§ã¤ã£ã¤ããã¨ãã®ä¼è©±ã®åæ§æã§ãð ãæ°ã¥ãã®ç¹ãããã¾ããã@hachi8833ã¾ã§ã¡ã³ã·ã§ã³
ããã«ã¡ã¯ãå¤ã«åãã¦è ¹çå¼·åä¸ã®Webã¨ã³ã¸ãã¢ãæ¬éã§ãã ã¯ããã«ããã®éçºè ããã°ãéè¨ãã¦ãããåå¹´ãçµéãã¾ããð æ°ã¥ãã°ã¨ã³ããªã¼æ°ã20ãè¶ ããéçºè ããã°ã£ã½ããªã£ã¦ããªã¼ã¨æãã¦ããã¾ãã ãã®å¢ããç¶ãã¦ããããããä¼ç¤¾ã¨ãã¦ãå人ã¨ãã¦ããããããé å¼µã£ã¦ããæåã§ãã 話ã¯å¤ããã¾ãã¦ãä»åã®ããã°ã§ã¯ãRubyã®ã¹ã¬ããã§ä¸¦ååããã®ã«åãã¦ããå¦çããç°¡åã«èª¿ã¹ãã®ã§ãã¡ã¢ãããã«æ®ãã¦ãããã¨æãã¾ãã 調æ»ãå®æ½ããçç±ã¨ãã¦ãããã¯ã°ã©ã¦ã³ãã¸ã§ããåããGemã®1ã¤ã« sidekiq ã¨ããæåãªGemãããã¾ãã ãã®sidekiqã®ç¹å¾´ã®1ã¤ã«ããã«ãã¹ã¬ããã§åä½ãããã¨ãããã®ãããã¾ãã ä¸æ¹ãMRI(CRuby)ã«ã¯GVL(Global VM Lock)ãã¾ãã¯GIL(Global Interpreter Lock)ã¨å¼ã°ããæä»å¶å¾¡ã®
ã¯ããã« CIã§æã£ã¦ããrubocopããã¾ã«ããrubyæ¸ããªã人ã«ã¨ã£ã¦ã¯ãç ©ããã!!ã ã¿ãããªææ³ãæãããå°è±¡ãããã®ã§ãæè¿ã¯æ¥µåã·ã³ãã«ãªã«ã¼ã«ã«ããããã«ãã¦ãã£ã¦ãã¾ãã æè¿rubocopã1.0ã«ãªã£ããããã®ã¨ã³ããªã§ã¯ãããæãã¦ã¿ã¾ãã ã¡ãªã¿ã«rubocopã®ãã¼ã¸ã§ã³ã¯1.3.1(ææ°)ã§ãããã¸ã§ã¯ãã¯railsã¢ããªã®æ³å®ã§ãã .rubocop.yml ã¯ã: # .rubocop.yml inherit_from: .rubocop_todo.yml inherit_mode: merge: - Exclude require: - rubocop-performance - rubocop-rubycw AllCops: DisabledByDefault: true Exclude: - 'gems/**/*' NewCops: enable
æ°ä»ããããã9æã§ããã æè¿ãAWS Lambdaã§ããããã¨éã¶æ©ä¼ããã£ãã®ã§ã¡ã¢ã¨ãã¦æ®ãã¾ãã ã¯ããã« ã¨ããã»ãã¥ãªãã£ã²ã¼ã ã®éå¶ç¨ã«ãSeleniumã§Webã¹ã¯ã¬ã¤ãã³ã°ããã£ã¦ããRubyã®ã¹ã¯ãªãããEC2ã§éç¨ãã¦ããã®ã§ãããHeadless Chromeãæ±ããã大éã«èµ·åããã¨ã¡ã¢ãªé£ã£ã¡ããããã¹ã±ã¼ã«ãããã«ãEC2ã¤ã³ã¹ã¿ã³ã¹ã®AutoScalingçµãã®ãã¡ãã£ã¨ãªããã¨ããã¤ã³ã¹ã¿ã³ã¹ã®èµ·åã¾ã§å¾ ã£ã¦ãããªãããããç¨åº¦å¤ãã«ã¤ã³ã¹ã¿ã³ã¹ãå®è¡ãããããã®ãä½åã«ã³ã¹ããããã 1å®è¡ã«15åãããããªãã¹ã¯ãªããã ããã¨ãããã¨ã§Lambdaã«ç§»è¡ãããã¨ã«ãã¾ããã Lambda Layerã«ã¤ã㦠Headless Chromeãæ±ãå ´åãåç´ã«Functionã®ãããã¤ããã±ã¼ã¸ã«ãã¤ããªãå«ããã¨50MBãè¶ ãã¦ãã¾ããããLambda
railsã®gemã§ããã¿ãããåæè¨å®ãã¡ã¤ã«ãconfig/initializers/foo.rbããã®ãããªåæè¨å®ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãgemå ã«ä½ãå ´åããã£ããã©ããããè¯ãã§ããããã ãããå®æå½¢ã¯ã³ã¬ï¼å®æç³»ã¨ãã¦ãä¸è¨ãæ³å®ãã¦ã¿ã¾ãã # config/initializers/konfig.rb Konfig.configure do |config| config.my_value = 'my configuration value' endconfigureã¡ã½ãããç¨æã¾ãã¯moduleã¨configureã¨ããã¯ã©ã¹ã¡ã½ãããç¨æãã¾ãã module Konfig class << self def configure end end endConfigurationã¯ã©ã¹æ¬¡ã«å®éã®è¨å®å¤ãå ¥ãConfigurationã¯ã©ã¹ãç¨æãã¾ãã class Co
translations Documentation RSpecã¨ã¯BDDã§ä½¿ãç´ æ´ããããã¼ã«ã§ãã(BDDã¨ã¯behavior-driven developmentã®ç¥ã§æ¹åæ§ã人ã®èªããä»æ§ã«æ²¿ã£ã¦éçºãè¡ãéçºæ¹æ³è«ã§ãã) ã¦ã§ãã§æ¢ã«æ²¢å±±ã®ä½¿ãæ¹ã _ä½_ ãã§ãããã説æããRSpecã®æ¸ãè¾¼ã¿ãæ¢ãã¾ãããRSpecã§è¯ããã¹ãã®ä½ãæ¹ã説æããæ¸ãè¾¼ã¿ã¯ãªããªãæ¢ãã¾ããã Better Specsã¯å¤§æµã®ã¬ã¤ãã©ã¤ã³ã®æ¸ãã¦ãªãé¨åãéãããã¨ãã¾ããã- ããã¯éçºè éã®çµé¨ãéãã¦å¦ãã æ¹æ³ã§ãã ã¡ã½ããã®èª¬æããã ä½æä¸ã®ã¡ã½ãããæããã«ãã¾ããããä¾ãã°ãRubyææ¸ã®è¦ç´ã§ã¯ã¯ã©ã¹ã¡ã½ããã®ååã«ã¯.(ãããã¯::)ãã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããã®ååã«ã¯#ã使ã£ã¦ãã¾ãã bad
GitHub Actions㧠Ruby ã使ãããã®ç¾ç¶ã¨å±æï¼2019/01/05æç¹ï¼ - masa寿å¸ã®æ¥è¨ ã®ãã®å¾ã§ãã ååã®è¨äºã¾ã¨ã GitHub Actions㧠Rubyã使ãããã¨ãã«ãå ¬å¼ï¼GitHubï¼ãåºãã¦ãã actons/setup-ruby ã¯æå¾ ããåä½ãããªããã使ããªãã»ãããã VMä¸ã§ç´æ¥Rubyãåä½ãããããªãããã¤ãé¸æè¢ããããã @eregon ãä½ã£ã¦ãã eregon/use-ruby-action ãæ§ã ãªé¢ã§ããããã eregon/use-ruby-action ãåºã¦ããã®ã§ actions/setup-ruby ãæ¹åããããããããªã ç¾å¨ã®ç¶æ³ eregon/use-ruby-action 㯠ruby/setup-ruby ã¸ã¨ç§»ç®¡ãããRubyã³ãã¥ããã£ãå ¬å¼ã«ãµãã¼ã ä»å¾ ruby/setup-ruby
Rubyä¸ç´å ¥é 1. Rubyä¸ç´å ¥é @shokai 2013å¹´8æ5æ¥(ç«) @masuilab 2. ç§ â¢@shokai (ããããã) â¢è¶£å³ï¼æçãglitch 3. ããç¨åº¦å¤§ããªã¢ããªã±ã¼ã·ã§ã³ãä½ ã£ã¦ããã¨ãé¨åã«åå²ããããªã㨠æãã¾ããã¢ããªå ã©ã¤ãã©ãªãgem ã®ä½ãæ¹ã説æãã¾ããRubyã®æ©è½ã æ´»ç¨ãã使ãåæã®è¯ãã©ã¤ãã©ãªã® ãã¶ã¤ã³ã«ã¤ãã¦èãã¾ãã 4. ⢠ã¢ããªå ã©ã¤ãã©ãªã®ä½ãæ¹ã»gemã®ä½ãæ¹ â¢ ãµã³ãã«ã³ã¼ãã¨ãã¹ã ⢠ã©ã¤ãã©ãªã®ãã¶ã¤ã³ ⢠API ⢠DSL ⢠泥èãå°æå ã®æ ⢠ä¾å¤ã»ã¨ã©ã¼ã®éç¥ â¢ ããã¥ã¡ã³ã ã³ã³ãã³ã 5. ã©ã¤ãã©ãªãä½ã ä¾ï¼LeapMotionãèªä½ã¢ããªã«çµã¿è¾¼ãããã® ã¢ããªå ã©ã¤ãã©ãªãä½ã 6. ⢠LeapMotionã¯port 6437ã«WebSocket æ¥ç¶ããã¨JSONã§
ãã¼ãæ°åã®â ,â ¡,â ¢... ã®ä»ã«å²ã¿æå â ,â¡,â¢... ãããããç°ãªããã¤ãåã«ãªãã¾ãã MacJapanese ã使ããã¦ããã¢ããªã±ã¼ã·ã§ã³ ã»ã¨ãã©è¦ãããªãã®ã§ãããçµ¶æ» ãã¦ããããã§ã¯ããã¾ãããMicrosoft Excel ã®ãã¡ã¤ã« *.xls ã¾ã㯠*.xlsx ã Mac ç Office 㧠CSV åºåãã㨠MacJapanese ã«ãªãã¾ããWindows ç Office ã§åãæä½ããã㨠CP932 ã® CSV ãã¡ã¤ã«ãåºåããã¾ããé常ã«ãããããã§ãããã¾ããMac æ¨æºã®ã¡ã¼ã©ã¼ã MacJapanese ã使ã£ã¦ããããã§ãã Ruby ã§ã®åãæ±ã Ruby 㧠Shift_JIS, CP932, MacJapanese ã®ãã¡ã¤ã«ãèªã¿è¾¼ããã¨ãèãã¾ããShift_JIS ã CP932 ã§ããã°ãFile.read("hog
ããã«ã¡ã¯ãé´æ¨ã§ãã ã¢ã¸ã¥ã¼ã«ã® include 㨠extend ã¯æ £ããã¾ã§ã¯ãããããã§ããã ã©ã¤ãã©ãªã使ç¨ããæã«ãæä¾ããã¦ããã¢ã¸ã¥ã¼ã«ã include ããã°è¯ãã®ããextend ããã°è¯ãã®ãè¿·ããã¨ãããã¨æãã¾ãã ããã¼ããé¢åãããï¼ ã¨ãããã¨ã§çã¾ãããã©ããã¯ç¥ãã¾ããããã¢ã¸ã¥ã¼ã«ã«é¢ããé »åºãã¿ã¼ã³ããç´¹ä»ãã¾ãã ãã¢ã¸ã¥ã¼ã«ã include ãããæã«ãã¯ã©ã¹ã¡ã½ããã¨ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããã®ä¸¡æ¹ã追å ãããã¨ããææ³ã§ãã ãã®ææ³ã使ãã¨ãä½ãèããã« include ããã°ä¾¿å©ãªã¯ã©ã¹ã¡ã½ãããã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããã使ããããã«ãªãã¢ã¸ã¥ã¼ã«ãä½ããã¨ãã§ãã¾ãã
ãã®è¨äºã¯ããSpeee Advent Calendar 2016ãã®13æ¥ç®ã§ãã 12æ¥ç®ã¯ã_miyachikããããHAProxyã使ç¨ããæ±ç¨çABãã¹ãåºç¤ã¸ã®ææ¦ãã§ãã Rubyã§HTTPãªã¯ã¨ã¹ãã並ååããããªãã§ããï¼ ä¾ãã°ããªã¯ã¨ã¹ããã¦ããã¬ã¹ãã³ã¹ãè¿ãã¾ã§ã1ãªã¯ã¨ã¹ãã«ã¤ã100msãããã¨ãã¾ãã ãããé 次å®è¡ã§10åè¡ãã¨1000msããã£ã¦ãã¾ãã¾ãã ãã®10åã¯ã»ã¨ãã©CPUã使ç¨ãã¦ãªãã®ã«ãããããããããã¯ããã¦ãã¾ãã®ã§ãä»ãããªã½ã¼ã¹ã使ãããªãéãããªã½ã¼ã¹ãé常ã«ç¡é§ã«ãªããã¡ã§ãã ä¸è¨ã±ã¼ã¹ã«ã¦ãHTTPãªã¯ã¨ã¹ãã並ååããã¨ã10åãªã¯ã¨ã¹ããã¦ã100msã§å ¨ã¦ã®éä¿¡ãå®äºãã¾ãã ã©ããªæã«ä¸¦ååããããªãï¼ microservicesã¸ã®ã¢ã¯ã»ã¹ ã¯ãã¼ã©ã¼ ä»åã¯ã¯ãã¼ã©ã¼ã§ä¸¦ååãããåæã¨ãã¾ãã ä¾ãã°ãã¯ã
å½ç¤¾ã¯Cookieã使ç¨ãã¦ãã客æ§ãå½ç¤¾ã®Webãµã¤ãã§ããè¯ãä½é¨ãå¾ãããããã«ãã¦ãã¾ããå¼ãç¶ãé²è¦§ããå ´åã¯ããã©ã¤ãã·ã¼ããªã·ã¼ã«åæãããã¨ã«ãªãã¾ãã
161227: å 容ãå¤ããªã£ãã®ã§ãæ¸ãç´ãã¾ããã ã¯ããã«# Ruby éçºç°å¢ãæ´ãããã¨ããã£ãã, æ®æ®µãã使ã£ã¦ãã Eclipse ãåºãã«ã¯ã¹ã¯ãªããè¨èªã¯å¤§ããã . ã¹ã¯ãªããè¨èªã¯ã³ã³ã½ã¼ã«ç«¯æ«ã§æ¸ãã«éã. ã¨ããããã§, Emacs 使ããªãããã¨ãã¦ã¯, Emacs ã§ã® Ruby ç°å¢ãæ´ãããã¨ããã£ã. ããããªãµã¤ããåèã«ãã¤ã¤, å°å ¥ãããã®ãåæãã¦ãã. æºå# elip åå¾ã«å¿ è¦ãª package.el ã el-get.el, git ã wget ãªã©ã®ãã¼ã«ã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ã®ãã¨. ç°å¢# Emacs 24.3.1 Ruby 2.1.0 åªãã IDE ã®æ¡ä»¶# åªãã IDE ãåããã¹ãæ©è½ã¯ä»¥ä¸ ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ã/ ã¤ã³ãã³ã ruby-mode æ¤ç´¢ã»ç½®æ iedit, multiple-cursors, helm-ag
Rubyã§HTMLãXMLããã¼ã¹ããæ§æ解æãã¼ã«ã®å®çªã¯ãNokogiriã§ããã¹ã¯ã¬ã¤ãã³ã°ããéã®å¿ éåã§ããªãã¦ã¯ãªããªãã¢ã¸ã¥ã¼ã«ã®ï¼ã¤ã§ãããã è²ã ãªãã¨ãåºæ¥ãåé¢ãã©ãããåããããã°è¯ãã®ã解ãé£ãé¨åãããã¾ããèªç¿ãå ¼ãã¦ãNokogiriæ¦è¦ã¨ä¸»è¦ãªæ©è½ãç´¹ä»ãã¦ã¿ã¾ãã Nokogiriã¨ã¯ä½ãï¼ Reademeã«ããã¨Nokogiriã¨ã¯ããHTMLã¨XMLã¨SAXã¨XSLTã¨Readerã®ãã¼ãµã¼ãã§ãç¹å¾´ã¨ãã¦ã¯ãXPathã¨CSS3ã»ã¬ã¯ã¿ã¼çµç±ã§æ¢ç´¢ããæ©è½ãæã¤ãã¨ã®ããã§ããä»ã«ãHTMLãXMLã®ãã«ãã¼ã®æ©è½ãæã£ã¦ãã¾ãããHTMLã¨XMLã®ãã¼ãµã¼ï¼æ§æ解æå¨ï¼ã¨è¦ãã¦ããã°ããã§ãããã Nokogiriã®ã¯ã©ã¹æ§é Nokogiriã¯ããªããªã巨大ãªã©ã¤ãã©ãªã§ãã10以ä¸ã®ã¢ã¸ã¥ã¼ã«ã¨70以ä¸ã®ã¯ã©ã¹ã§æ§æããã¦ãã¦ãyardã§ãã¤ã¢
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}