2019-01-01ãã1å¹´éã®è¨äºä¸è¦§
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®25æ¥ç®ã®è¨äºã§ãã qiita.com 12/25 ã« Ruby 2.7.0 ããªãªã¼ã¹ããã¾ããï¼ 2.7.0-rc2 ã¨ã® NEWS ã®å·®åãè¦ã¦ã¿ã¾ãã warning ææ¢ãªãã·ã§ã³ Numbered parameter #method, #instance_method ã refinement å¯¾å¿ Range#=â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®24æ¥ç®ã®è¨äºã§ãã qiita.com StringScanner ã¨ã CSV 㯠Ruby ã®æ¨æºã©ã¤ãã©ãªã ãã©æ¬ä½ã®å¤ã§éçºããã¦ãããã¤ã§ãNEWSãè¦ã¦ã詳ããã¯æ¸ãã¦ãªãã£ãã®ã§ã調ã¹ã¦ã¿ã¾ããã StringScanner fixed anchor ã¢ã¼ã opeâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®23æ¥ç®ã®è¨äºã§ãã qiita.com Symbol Symbol#start_with? / #end_with? 追å UnboundMethod UnboundMethod#bind_call 追å OptionParser Did you mean? Symbol Symbol#start_with? / #end_with? 追å Symbol ã« start_with?â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®22æ¥ç®ã®è¨äºã§ãã qiita.com 12/21 ã« 2.7.0-rc2 ãåºãã®ã§ rc1 ã¨ã® NEWS ã®å·®åãè¦ã¦ã¿ã¾ããã Array#minmax 追å Range#minmax 追å Proc#ruby2_keywords 追å Array#minmax 追å 2.6 ã§ã¯ Array#minmax 㯠Enumerabâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®21æ¥ç®ã®è¨äºã§ãã qiita.com Time Time#inspect : å½¢å¼å¤æ´ Time#ceil / Time#floor 追å Date Date.jisx0301, Date#jisx0301 : 令åå¯¾å¿ Time Time#inspect : å½¢å¼å¤æ´ Time#inspect ãå°æ°ç¹ä»¥ä¸ã®ç§æ°ãè¿ãããã«ãªãâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®20æ¥ç®ã®è¨äºã§ãã qiita.com GC.compact 追å Method#inspect : åºåã詳ãã NilClass#to_s / TrueClass#to_s / FalseClass#to_s : åããªãã¸ã§ã¯ããè¿ã Proc#to_s å½¢å¼å¤æ´ RubyVM.resolve_feature_path ã $LOAD_PATâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®19æ¥ç®ã®è¨äºã§ãã qiita.com Encoding::CESU_8 追å Fiber#raise 追å FrozenError#receiver 追å Encoding::CESU_8 追å èªåã¯ç¥ããªãã£ãã®ã§ãããUnicode ã®æåã¨ã³ã³ã¼ãã£ã³ã°ã« UTF-8 ã®äºç¨®ã§ CESU-8 ã¨ããã®â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®18æ¥ç®ã®è¨äºã§ãã qiita.com 12/17 ã« Ruby 2.7.0-rc1 ãåºãã®ã§ã2.7.0-preview3 ã¨ã®éããè¦ã¦ã¿ã¾ãã ãã¿ã¼ã³ãããã³ã°ã§ä¾å¤ Regexp#match? ã« nil ã渡ãã¦ãOK ãã¿ã¼ã³ãããã³ã°ã§ä¾å¤ preview3 æç¹ã§ã¯ casâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®17æ¥ç®ã®è¨äºã§ãã qiita.com Module Module#ruby2_keywords 追å Module#autoload? : inherit å¼æ°è¿½å Module#const_source_location 追å Module#name ãåããªãã¸ã§ã¯ããè¿ã Module Module#ruby2_keywords 追å 3æ¥â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®16æ¥ç®ã®è¨äºã§ãã qiita.com Integer Integer#[] : å¼æ°ã«ç¯å²æå® Complex Complex#<=> 追å Comparable Comparable#clamp : å¼æ°ã« Range æå® Integer Integer#[] : å¼æ°ã«ç¯å²æå® Integer#[] ã¯äºé²æ°ã§æå®ããããâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®15æ¥ç®ã®è¨äºã§ãã qiita.com Dir Dir.glob / Dir.[] : NULæåãå«ãã¨ã¨ã©ã¼ File File.extname : ã.ãã§çµããæååãã.ããè¿ã IO IO.set_encoding_by_bom 追å Pathname Pathname.glob : å¼æ°è¿½å Pathname é¢æ° :â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®14æ¥ç®ã®è¨äºã§ãã qiita.com Array Array#intersection 追å Enumerable Enumerable#filter_map 追å Enumerable#tally 追å Enumerator Enumerator.produce 追å Enumerator::Lazy#eager 追å Enumerator::Yielder#to_proâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®13æ¥ç®ã®è¨äºã§ãã qiita.com irb irb ããã£ã¡ã便å©ã«ãªãã¾ããã ã¾ã㯠Ruby 2.7.0-preview3 ãªãªã¼ã¹ ã®ä¸ã®åç»ãè¦ãã®ãè¯ãã§ãããã readline äºæã® pure Ruby ã©ã¤ãã©ãª reline ãæ¨æºã©ã¤ãã©ãªã¨ãã¦å ãâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®12æ¥ç®ã®è¨äºã§ãã qiita.com rescue ç¯ã®åªå 度 ä»£å ¥æã§å¾ç½® rescue ã使ç¨ããæã«å¤éä»£å ¥ã®æã ãçªé£ãªåãããã¦ã¾ãããã a = raise rescue 123 a #=> 123 a = raise rescue [123, 456] a #=> [123, 456] a = b = â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®11æ¥ç®ã®è¨äºã§ãã qiita.com Unicode 12.1 Unicode 12.1 ã«å¯¾å¿ãã¾ãã(2.6.3 ãã対å¿ãã¦ã¾ã)ã Ruby 2.6.2 p "ã¿".unicode_normalize(:nfkd) #=> "\u32FF" Ruby 2.7 p "ã¿".unicode_normalize(:nfkd) #=> "令å" $SAFâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®10æ¥ç®ã®è¨äºã§ãã qiita.com ã³ã¡ã³ãè¡ãæãã ã¡ã½ããå¼ã³åºã ã¡ã½ããå¼ã³åºãæã«ã¯ . ã®åå¾ã«æ¹è¡ãããã¨ãã§ãã¾ãã "hoge". upcase "hoge" .upcase ã§ããããã®éã«ã³ã¡ã³ãè¡ãæãã¨ã¨ã©ã¼ã«ãªã£ã¦ãã¾ããâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®9æ¥ç®ã®è¨äºã§ãã qiita.com ã...ãã§å ¨å¼æ°æ¸¡ã ã¡ã½ããå ããå¥ã®ã¡ã½ãããå¼ã³åºãéã«ã... ã§ä»ã®ã¡ã½ããã«æ¸¡ãããå¼æ°ãã®ã¾ã¾æ¸¡ããã¨ãã§ããããã«ãªãã¾ããã ãããã¯ãå«ãã¦ãã¹ã¦æ¸¡ããã¾ãã def hogeâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®8æ¥ç®ã®è¨äºã§ãã qiita.com self ã§ã®ãã©ã¤ãã¼ãã¡ã½ããå¼ã³åºã ãã©ã¤ãã¼ãã¡ã½ããã¯ãobj.hoge ã®å½¢å¼ã§å¼ã³åºããã¨ãããæ®éã¯ã¨ã©ã¼ã«ãªãã®ã§ãããself.hoge ã®å ´åã¯ã¨ã©ã¼ã«ãªããªããªãã¾ããã class A â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®7æ¥ç®ã®è¨äºã§ãã qiita.com $;, $, ã®è¨å®ãéæ¨å¥¨ $; 㯠String#split ã§å¼æ°ãçç¥ããæ(ã¾ã㯠nil ãæå®ããæ)ã«ä½¿ç¨ãããããã©ã«ãã®ã»ãã¬ã¼ã¿ã§ãã $; ã®ããã©ã«ãå¤ã¯ nil ã§ããå é ã¨æ«å°¾ã®ç©ºç½ãåãé¤â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®6æ¥ç®ã®è¨äºã§ãã qiita.com å§ç«¯çç¥ Range ãªãã©ã« ç¯å²ã表ã Range ãªãã¸ã§ã¯ãã¯ãªãã©ã«ã§ 3..9 ã®ããã«æ¸ããã¨ãã§ãã¾ãã Ruby 2.6 ã§çµç«¯ãçç¥ãããã¨ãã§ããããã«ãªãã¾ããã range = (3..) range.begiâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®5æ¥ç®ã®è¨äºã§ãã qiita.com ãããã¯ãä¼´ããªã proc / lambda ä»ã¾ã§ãããã¯ãä¼´ããªã proc / lambda ã¯ãã®ã¡ã½ããã®å¼ã³åºãå´ã§æå®ããããããã¯ã Proc ãªãã¸ã§ã¯ãã¨ãã¦è¿ãã¦ãã¾ãããlambda 㯠warning ãâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®4æ¥ç®ã®è¨äºã§ã(ããæ¸ãã¦ãã®ã¯12æ7æ¥ã§ã)ã qiita.com Numbered parameter 2.6 ã¾ã§ã¯ããããã¯ã«æ¸¡ãããå¼æ°ãåãåãããã«ã¯ | ã§æ示çã«å¤æ°ã宣è¨ããå¿ è¦ãããã¾ããã [5, 2, 4, 1, 3].sort { |a, b| a <=â¦
ããã¯ãMySQL ã¢ããã³ãã«ã¬ã³ãã¼ 2019ãã¨ãå¯å£«éã¯ã©ã¦ããã¯ããã¸ã¼ãº ã¢ããã³ãã«ã¬ã³ãã¼ 2019ãã®4æ¥ç®ã®è¨äºã§ãã qiita.com qiita.com MySQL ã®åãã¼ã¸ã§ã³éã®ãã©ã¡ã¼ã¿ã¼ã®éããæ¯è¼ã§ãã MySQL Parameter ã¨ãããã¼ã¸ãå»å¹´å ¬éããâ¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®3æ¥ç®ã®è¨äºã§ãã qiita.com ãã¼ã¯ã¼ãå¼æ° Ruby 㯠2.0 ãã次ã®ãããªæãã§ãã¼ã¯ã¼ãå¼æ°ã使ç¨ãããã¨ãã§ããããã«ãªãã¾ããã def hoge(k: 123) p k end hoge() #=> 123 hoge(k: 456) #=> 456 hoge({k: 789}) #=â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®2æ¥ç®ã®è¨äºã§ãã(æ´æ°ãé ãã®ã¯ä»æ§ã§ã) qiita.com ãã¿ã¼ã³ãããã³ã° ãã¿ã¼ã³ãããã³ã°ã¯ Ruby 2.7 ã§ã®ç®çæ©è½ã¨è¨ã£ã¦ãããã§ãããã ãã ãç¾æç¹ã§ã¯ experimental ã§ã使ç¨ããã¨æ¬¡ã®ã¡ãã»ã¼ã¸ãåºåããã¾â¦
Ruby 2.7 ã¢ããã³ãã«ã¬ã³ãã¼ã®1æ¥ç®ã®è¨äºã§ãã qiita.com Ruby ã¯æ¯å¹´ã¯ãªã¹ãã¹ã«ãã¼ã¸ã§ã³ãä¸ããã¾ãã ä»å¹´ãé 調ã«ããã° 12/25 ã« Ruby 2.7 ããªãªã¼ã¹ãããäºå®ã§ãã 2.7 ããªãªã¼ã¹ãããã¾ã§æ¯æ¥å°ããã¤å¤æ´ç¹ãè¦ã¦ããã¾ãã ã½ã¼ã¹ã¯ â¦
ä½ãããªãã§ç¡éã«å¾ ã¡ç¶ãã pause(2) ã¿ãããªãã¨ãããã³ãã³ããç¡ãããªã¼ã¨æ¢ãããã©ç¡ãããã§ãsleep ã¯ç§æ°æå®ããªãã¨ãããªãã®ããã¾ãã¡ãªãã ãã©ãã¾ã sleep 99999999999999 ã¿ãããªãã¨ããã°ãããã ãã©ãããããã£ãæªããªã¼ã¨æâ¦
MySQLã§ã¯ç°ãªãåãçããã¨è¦ãªããããã¨ãããã¨ãããã¨ãæ¸ãã¾ããã tmtms.hatenablog.com ãã®åãã¯MySQLãç¬èªã«å¤ãªãã¨ããã¦ããããã§ã¯ãªããUnicodeã®è¦åã«å¾ã£ã¦ãã¾ãã MySQL 8.0 ã®ããã©ã«ãã®Collation㯠Unicode 9.0.0ã®Unicode Coâ¦
æ°å å·ãã令åãã«æ±ºã¾ã£ããã¨ãªã®ã§ãMySQLã§ã®æ±ãã«ã¤ãã¦ã®è©±ãã æ®éã®æå ã令ãããåããJIS第ä¸æ°´æºã«å«ã¾ãã¦ããåºæ¬çãªæåãªã®ã§æ®éã«æ¥æ¬èªã使ç¨ã§ããcharsetã§ä½¿ç¨ã§ãã¾ãã mysql> create table t ( utf8mb4 varchar(255) charset â¦
Ubuntu 18.04 ã® Postfix ã§æ¬¡ã®ããã«ã㦠SMTP AUTH ãæå¹ã«ãã¾ããã /etc/postfix/master.cf submission inet n - n - - smtpd -o syslog_name=postfix/submission -o smtpd_sasl_auth_enable=yes -o smtpd_recipient_restrictions= -o smtpd_relay_reâ¦