2018-01-01ãã1ã¶æéã®è¨äºä¸è¦§
RuboCop ã§ã®ã¬ãã¥ã¼ã§ hoge ã¨ããååã使ã£ã¦ããã®ãè¦æãã¦ã以åèªåã使ã£ãå¾ã«ç¢å¼µãæ¥æ¬ãã¼ã«ã«ã ã¨ãããã¨ãæãåºãã¦ã³ã¡ã³ããã¦ãããããã 調ã¹ãã¨ã¤ã³ã¿ã¼ãããã§ããããã¨åºã¦ããããWikipedia 調ã¹ã ã¨ãªã³ã¯å ã®ã¨ããã ãã®â¦
ææ¥ãããã«æåºããäºå®ã
表é¡ã«ã¤ã㦠muryoimpl ã¡ã³ãã¼ãåºãã¦ããã¦ãã PR ã«ã³ã¡ã³ãããã¦ãããããã github.com
nå¹´ã¶ãã«ç¤¼æã«èº«ãã¨ããã¦ååãã¦ãããããã§ããä¼ã§ãããããã§ã¨ããããã¾ãã
ç¹ã«æ©è½æ¡å¼µãªã©ãããã¨ããªãã®ã§ããã¼ã¸ã§ã³ã 1.0.0 ã«ãã¦ãããã github.com
2018å¹´æåã® Rails / OSS ãããä¼ã ã£ãã Rails ã®ã³ã¢ãªäººãã¡ãåå ãã¦ãããåã§ã®ãããã¤ãã®äºæã®ã¡ã¢ã yahonda ãã㨠kamipo ãããåå ãã¦ããã¦ãActive Record ã¾ããã®è©±ãã Oracle enhanced adapter 㧠Identity Column (ANSI æºæ ã® Iâ¦
èªåãä½ã£ã RuboCop ã® cop ã§ãããã¢ã§ã®ä»ã®ããã¸ã§ã¯ãã§ã¤ã¾ã¥ãã¦ãããããªã®ã§è©±ããããã¦ããããã®æ¥ã®æ¥è¨ã«ã¾ã¨ããæéããªãã®ã§ãå¥ã®æ¥ã«æ¸ãæ°æã¡ã
å¤ã«ã¡ãã£ã¨ããæã¡åããã«è¡ã£ãããã¦ããã pixiv ããã«æã¡åããã«æ¥ã¦ãã pic.twitter.com/Vb3poR8nOCâ Koichi ITO (@koic) 2018å¹´1æ24æ¥
Rails Developers Meetup 2018 ã§è©±ããã¼ãåè£ã3ã¤ã»ã©æãã¦ããã®ä¸ã§èå³ã®ãããã¼ããååã«ãã¢ãªã³ã°ããç¶ãããã¦ãããã段éçã«ãªãã·ã§ã³ã追å ãã Layout/EmptyComment cop ã«ä¸ã¤ç®ã®ã¨ã³ãã³ã¹ããã¦ãããããã github.com æè¿ã® Gitâ¦
Layout/TrailingBlankLines ã¨ãã Cop ã« EnforcedStyle: final_blank_line ã¨ãããã¡ã¤ã«æçµè¡ã空è¡ã¨ããè¬è¨å®ãããã ä»æèµ·ããããã¼ã¸ããã¦ãã Layout/EmptyComment cop ã®å®è£ ã®ä»ã«é±æ«ã¯ãã®ãããã®æ´å²ççµç·¯ã調ã¹ã¦ãã¦ãä¸è¦ (æ¶ãã¦â¦
ããå®è£ è ã®ã¢ã¯ãã£ããã£ããªãã¦ã¯ãã¼ãºããã¦ãã Layout/EmptyComment ã¸ã®å®è£ ãåéãã¦ããããçæãå§ãã¦ãã (å ã¤ã·ã¥ã¼ã¨ã¯ãã¼ãºããã¦ãã PR ã§ã®ããåãã®ç解ã主) ã®ã¯ä»é±ã®æ¨æãããã§é±æ«ã« PR ã¾ã§æã£ã¦è¡ããã¨æã£ã¦ããã¨ãâ¦
æ¨æ¥ã®æ¥è¨ã®ç¶ãã«ãªãããå æ¥ Rails ã«é©ç¨ããã¦ãã RuboCop ã®ã«ã¼ã«ã Gem ã«åãåºããã¨æã£ã¦ãä½ããªãåå㯠rubocop-rspec ã«å£ã£ã¦ rubocop-rails ãè¯ãã ãã㨠RubyGems.org ãè¦ãããã§ã«ãè¿æã§ä½ããã¦ããã github.com å æ¥ Rails â¦
rails/rails ã§ã® var = if ... else ... end ãªã©ã«é¢ãã autocorrect ããã¾ãåãã¦ããªãã¨ãã話ãããLayout/EndAlignment ãªã©ã®è¨å®ã追å ãã PR ãå æ¥åºãã¦ããã github.com rails/rails ã§ã¯ EnforcedStyleAlignWith: variable ãæå¹ã«ãã¦â¦
Rails 5.2 ã«å¯¾å¿ãã Oracle enhanced adapter ãã cursor_sharing ã®ããã©ã«ãã force ãã Oracle ããã©ã«ãã® exact ã«å¤æ´ã«ãªã (å³å¯ã«è¨ã㨠config/database.yml ã¸ã® cursor_sharing ã®è¨å®ããªãå ´åã® force ã¸ã®å¤æ´ããªããªããããOracleâ¦
RuboCop å ¨ä½ã§å®è¡ããã¨é ããããgit ã§ãã¼ã«ã«ã®å·®åããããã®ã ããå®è¡ãããã¨ããã¤ã·ã¥ã¼ãæãã£ã¦ããã github.com ã·ã§ã«èªä½ã®æ¸ãæ¹ã¯ããã¤ãããã¨æããããã®ã¤ã·ã¥ã¼ã§ã¯ git diff --name-only ã¨çµã¿åããã¦ã以ä¸ã®ããã«ããã¨è¯â¦
ãGinza.rb 第55å ãããããã£ã¦ããï¼Rails5.2ãè¦ã¦ããããã«è¡ã£ããä¼å ´ã¯ã¿ããªã®ã¦ã§ãã£ã³ã°ããã ginzarb.doorkeeper.jp Rails 5.2 ã® Major Features ã«ã¤ã㦠y-yagi ãããã¾ã¨ãã¦ãããã¹ã©ã¤ããå ã«é²è¡ãã¦ããã https://y-yagi.githubâ¦
å ã ã¯å¤åå ã®ã¹ãã³ãµã¼æ ã§åå ããäºå®ã ã£ãã¨ãããã¹ãã³ãµã¼ãã±ãããæ¯æ¸ãããã¨ãã Ruby è²¢ç®è æ ã§ç³ãè¾¼ãã ã ç³ãè¾¼ã¿æã®è²¢ç®å 容ã®ããã¹ãã¯ä»¥ä¸ã Ruby 2.3 ã§å°å ¥ããã squiggly heredoc ã«ã¤ãã¦ã® irb ã¸ã®ããããéãã¾ãããã¾â¦
RuboCop ã®ã¤ã·ã¥ã¼ã 280 ãçªç ´ãã¦ããã®ã§ãã¤ã·ã¥ã¼ã®æ°ãæ¸ããã®ã« bug ã©ãã«ãè¦ã¦ããããã ã¡ããã©ä»¥ä¸ã2ã¤åã®ã¤ã·ã¥ã¼ãæ¸ãããæãã ã£ãã®ã§å¯¾å¿ãã¦ããããçµæã¨ãã¦ã¬ãã¼ãããã ããã1å¹´è¶ããããã®å¯¾å¿ã«ãªã£ã¦ããã github.coâ¦
Saitama.rb ã§ä½ã£ã¦ããã£ã½ãæ§åæ°è¬¹è£½ã® Gem ãå°ãè¦ã¤ã¤1åä¼ã¿ã github.com å ãã¿ã¯ y-yagi ãã謹製㮠Gem ã£ã½ãã github.com minitest vs RSpec ï¾ï½§ï½²ï½¯ï½¯ï½¯æããã
ã¤ã·ã¥ã¼ã®å 容ã¯ã¨ãããã起票ãã¦ã人ã METALLICA ã® T ã·ã£ããçã¦ããã¢ã¤ã³ã³ã ã£ãã®ã§æ°ã«ãªã£ã¦ããã®ãè¦ã¦ãã github.com jq ã³ãã³ã㨠RuboCop::PathUtil.smart_path ã«ã¤ãã¦ç¥ãè¯ãæ©ä¼ã«ãªã£ãã ã㨠RuboCop::PathUtil.smart_path ãâ¦
æ°ãã¤ãããé³æºã¨ãããã®ããã¾ãæ¿ã§è²·ããªããªã£ã¦ãã æ¡è±å¿æ³å¸ã¢ã¼ãã£ã¹ã: é°é½åº§åºç社/ã¡ã¼ã«ã¼: ãã³ã°ã¬ã³ã¼ãçºå£²æ¥: 2018/01/10ã¡ãã£ã¢: CDãã®ååãå«ãããã°ãè¦ã
Ruby 2.5.0 ã§å°å ¥ããã Kernel#yield_self ã使ãããããã©ã諸è¬ã®äºæ 㧠Ruby 2.5.0 ã«ã¢ããã°ã¬ã¼ãã§ãã¦ããªã人ãã¡åãã« backport_yield_self ã¨ãã Gem ããªãªã¼ã¹ãããååã®ã¨ãã Kernel#yield_self ã®ããã¯ãã¼ã㧠Ruby 2.2 ãã Ruby â¦
å»å¹´ã®æ®ãã«ãªãªã¼ã¹ããã Devise 4.4.0 ã§ãDevise ã§çºçãã¦ãã Ruby 2.5.0 ã§ã®ã·ã³ã¿ãã¯ã¹ã¨ã©ã¼ã解決ããã¦ã以ä¸ã® koic/devise ã使ããªãã¦ã Ruby 2.5.0 㧠Devise ã使ããããã«ãªã£ãã koic.hatenablog.com
ä»æ¥ããããã«ä¸¦ã³ã¤ã¤ AR ã SQL ã«é¢ããè¨äºãèªãã ããã¦éããã¦ããã æ´»ããã°ãªã«ããã¹ã¿ã¼ãå ããããã¹ã¼ãç¾å³ð¦ð pic.twitter.com/o40mxH7LAQâ Koichi ITO (@koic) 2018å¹´1æ8æ¥
æå¾æ¥ãããã°ãããä¼ã¿ã«ãªããããã«è¡ã£ãããActive Record ã¾ããã®ã¨ã³ããªãèªã¿æ¼ã£ã¦ããããã¦ãããã㧠1åä¼ã¿ã ããã°ãª16ããã®ã¹ã¼ããªãã»ã©ð pic.twitter.com/HB65MDjIaSâ Koichi ITO (@koic) 2018å¹´1æ7æ¥
ããããå¹´æ«å¹´å§ä¼æãçµãããã®é ãæ®æ®µä½¿ãã®éå ·ã OS X Mavericks ãã macOS High Sierra ã«ã¢ããã°ã¬ã¼ãããã¨ãã«åºä¼ã£ã Rails 㨠Oracle 11g ã®çµã¿åããã§ã®ã¨ã©ã¼ã«ã¤ãã¦æ¸ãè¨ãã¦ããããªãæ¬çã§ãªã OS ã®ã¢ããã°ã¬ã¼ãèªä½ã®è©±ã¯å²â¦
å»å¹´ã®æ®ãã«ã¢ãªã¹ããã« iPhone X ãç´¹ä»ãã¦ããã£ã¦è²ã ã¨è¯ãããã ã£ãã®ã§ãäºå®ã©ããå¹´æ«å¹´å§ã®ãã¡ã«éãè °ãä¸ãã¦æ©ç¨®äº¤æãè¡ãªã£ãã ããã¾ã§ã iPhone 5s ã§ã¢ããªãèµ·åãã¦ãã㨠30 åãããã§ããããªã¼ãåããã¨ããç¶æ ã ã£ãã®ã§ãâ¦
iPhone X ã«å¤ãããã¨æã£ã¦ãããã®ã®ä¸æ¥å¯ã¦ãã¦ãåºã«è¡ãã1åä¼ã¿ã èµ·ããã RuboCop ã®ããã¤ãã® PR ã§ã¡ã³ã·ã§ã³ãæ¥ã¦ããã®ã§ãç¹ã«è¿ä¿¡ãå¿ è¦ãããªã®ã£ã¬ããã® PR ã§ã®ããã¥ã¡ã³ãã¼ã·ã§ã³ã¾ããã®ç¸è«ã«ã³ã¡ã³ãããã¦ãããããã githubâ¦
1æ gtm_rails ã¨ãã Gem ãä½ã£ãã https://github.com/koic/gtm_rails ãã¨ã㨠google-tag-manager-rails ã¨ãã Gem ã使ã£ã¦ããããGoogle Tag Manager ã®ããã¥ã¡ã³ãã¨ç°ãªã JavaScript ã®åãè¾¼ã¿æ¹ãããããç»é¢ã®å½¹å²ã«å¿ã㦠container ID â¦
å»å¹´ã® RuboCop ã®ããã¥ã¡ã³ãä¿®æ£ããã®æµãã§è¡ãªã£ã¦ãã Supported styles ã®æ´åã¾ãããå°ãé²ãããããã github.com å½ç¶æä½æ¥ã§è¦ã¤ãããããªãã®ã§ã¯ãªãã®ã§ãæå ã§ã¯ç¢ºèªç¨ã®ãã¸ãã¯ãå ¥ã£ã¦ãããã©ã³ããããããã§ããããæ®ã 15 copsâ¦