èæ¯
以ä¸ã®äºã¤ã® gem ãåæã«ä½¿ãå ´åã§ãã
ã¨ã©ã¼
Legato 㧠Google Analytics ã®ãã¼ã¿ãåå¾ãããã¨ããã¨ä»¥ä¸ã®ãããªã¨ã©ã¼ãåºã¦æããã¾ãã
ArgumentError: wrong number of arguments (given 1, expected 0) from /home/foo/bar/vendor/bundle/ruby/2.5.0/gems/midwire_common-0.3.0/lib/midwire_common/string.rb:125:in `camelize'
åé¡ç¹
ã¨ã©ã¼ã¡ãã»ã¼ã¸ã«ãããããã«ãmidwire_common
ã¨ãã gem ãåå ã§ãã
ã¾ãã«è©²å½è¡ã®125è¡ç®ã«ãã camelize ã¡ã½ããã以ä¸ã®ããã«ã³ã¡ã³ãã¢ã¦ãããã°*1 Legato ãæ£ããåä½ãã¾ãã
# rubocop:disable Style/PerlBackrefs ## def camelize ## gsub(/\/(.?)/) { '::' + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase } ## end
Tr4n5l4te ã¸ã®å½±é¿ã¯
ããã¤ã試ãã¦ã¿ãã¨ãã Tr4n5l4te
ã®å®è¡ã«ãç¾å¨ã®ã¨ããå½±é¿ã¯åºã¦ãã¾ãã*2ã