- ãªãªã¼ã¹ãã¼ã
- 主ãªå¤æ´ç¹
- ã³ã³ããã¹ã
- é å¼µã£ããã¨ï¼å¯è½ãªéãå ¨ã¦ã®ã³ãããã移è¡ãã
ãªãªã¼ã¹ãã¼ã
https://github.com/tomykaira/rspec-parameterized/blob/master/CHANGELOG.md#v100-2022-12-31
主ãªå¤æ´ç¹
rspec-parameterizedã®å®è£ ã
- https://github.com/rspec-parameterized/rspec-parameterized-coreï¼
RSpec::Parameterized::TableSyntax
以å¤ï¼ - https://github.com/rspec-parameterized/rspec-parameterized-table_syntax ï¼
RSpec::Parameterized::TableSyntax
ã®ã¿ï¼
ã®2ã¤ã«åå²ãã¾ããã
æ®éã«ãã¼ã¸ã§ã³ã¢ããããã ãã§è¯ããã° bundle update
ããã ãã§ããã¦ã RSpec::Parameterized::TableSyntax
ãå©ç¨ãã¦ããªããã° Gemfile
ã®è¨è¿°ã rspec-parameterized-core
ã«å·®ãæ¿ãããã¨ã§native extensionã¸ã®ä¾åããªãããã¨ãã§ãã¾ãã
詳ãããã¨ã¯ https://github.com/tomykaira/rspec-parameterized/blob/master/UPGRADING.md ãè¦ã¦ãã ãã
ãã¨ã¤ãã§ã«Ruby 2.6æªæºã®ãµãã¼ããå®å ¨ã«åãã¾ããã
bundle gem
ããæã« spec.required_ruby_version = ">= 2.6.0"
ãã¤ãã¦ããã®ãæ¶ããã©ããã¡ãã£ã¨è¿·ã£ããã§ãããã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ããããæãããããå¤ããã¼ã¸ã§ã³ã®ãµãã¼ãããããã¨ãã§ããªã *1 ã®ã§ãã®æ©ä¼ã«Ruby 2.6以ä¸å¿
é ã«ãã¾ãããï¼Ruby 2.5ã®EOLã¯1年以ä¸åãªã®ã§ãããããã«ãããã...ï¼
ã³ã³ããã¹ã
rspec-parameterizedã®Ruby 3.2対å¿ãè¡ã£ãæã« id:joker1007 ãããTableSyntaxã¯ãªãã·ã§ãã«ãªæ©è½ãªã®ã§ãªãã¹ãå©ç¨è ã«native extensionãã³ã³ãã¤ã«ãããããªããã¨ããã³ã¡ã³ããããã¾ããã*2
ãã®å¾railsãrspecã¿ããã«gemãåå²ããã®ã¯ã©ããï¼ã¨ããæ¹éã«é¢ãã¦PRä¸ã§åæãå¾ããã¾ããã
Ruby 3.2 リリースパーティー presented by アンドパッド - connpass ã§joker1007ããã«ä¼ã£ãæã«ç´æ¥è©±ãã¦ãèªåãä½æ¥ãããã¨ã«é¢ããåæãå¾ãããã®ã§gemãåå²ããããã«ãã¾ããã
é å¼µã£ããã¨ï¼å¯è½ãªéãå ¨ã¦ã®ã³ãããã移è¡ãã
ç´ æ´ã«ãããªãgemã®ä¸ã§ä½¿ã£ã¦ãclassãmoduleããã®ã¾ã¾ã³ããããã®ãä¸çªã©ã¯ãªã®ã§ãããããã ã¨æ°ãããªãã¸ããªã§æ´å²ã失ããã¦ãã¾ãã¾ãã
ãã®ããã³ãããããªãã¹ã移è¡ãã¾ããã
å¥ãªãã¸ããªããcherry-pickããæ¹æ³ã¯ç¹ã«åã£ããã¨ã¯ãã¦ãããã bundle gem
ã§æ°ããgemã®ã¹ã±ã«ãã³ãä½ã£ãå¾ã«
git remote add v0-origin [email protected]:tomykaira/rspec-parameterized.git
ã§ä¸æçã«remoteã追å ãã¦å¿ è¦ãªã³ãããã1ã¤ãã¤cherry-pickãã¦ãã¾ãã
以å id:koic ãrubocop-railsãrubocop-performanceã§ä¼¼ããããªãã¨ããã£ã¦ãæ°ãããã®ã§ãã®æã®ç§»è¡ã¹ã¯ãªãããã³ãã³ããè¦ã¤ãããã¨ãã§ããã°ããã£ãã®ã§ãããè¦ã¤ãããªãã£ãã®ã§å¿ è¦ãªã³ããããå ¨ã¦æã§cherry-pickãã¦ã¾ããã¾ããã
幸ããªãã¨ã«rspec-parameterizedã¯200ã³ãããããããããªãã£ãã®ã§æ°åã§ãªãã¨ããã¾ãããï¼ããå°ãã¹ãã¼ããªããæ¹ãããã°ããã£ããã§ããå¥ãªãã¸ããªã«cherry-pickããæã®ã³ã³ããªã¯ãã®è§£æ¶ãçµæ§å¤ãã¦å®å ¨ã«èªååããã®ã¯é£ãããã ã£ã...ï¼
é å¼µã£ã¦cherry-pickãããããã§æ°ããä½ã£ããªãã¸ããªã§ãContributorsãå¼ãç¶ããã¦ãã¾ãã
ããã§ã¯è¯ããå¹´ãï¼
*1:ãã®è¾ºã¯ã¡ã³ããã®å¥½ã¿ã«ãããã§ãããåã¯ãå¤ããã¼ã¸ã§ã³ã®ãµãã¼ããããã = BREAKING CHANGEãã¨èãã¦ãæ´¾ãªã®ã§å¤ããã¼ã¸ã§ã³ã®ãµãã¼ãããããæã¯ã ãããã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ãä¸ãã¦ã¾ã
*2:https://github.com/tomykaira/rspec-parameterized/pull/81#discussion_r1050584335