ruby
Rubyãã¼ããããã人ãé£ããã¨æãããã¤ã³ãã£ã¦ã©ããªãã ããâ OK Goo (feat. Red Tape Ghost) (@tomohi_ro) 2021å¹´11æ23æ¥ Ruby / Ruby on Rails ã®ãå°ãã¨ãã½ã¼ããå¾ ã¡ãã¦ã¾ããâ OK Goo (feat. Red Tape Ghost) (@tomohi_ro) 2021å¹´11æ23æ¥ ãâ¦
github.com ãªãããªãå ¼ãã¦ã¡ãã£ã¨æ¬²ããã£ã Gem ãä½ã£ã¦ã¿ã¾ããã ä½ãå§ããåã«èª¿ã¹ã¦ããã¤ããã ã£ãã®ã ããã© ã¢ããã¶ããã¦ããGem ããã§ã«åå¨ãã¦ååãã¾ã£ããä¸ç·ã ã£ãã®ã§è«¦ã㦠simple ã¿ãããªç¡æå³ãªååã«ãªã£ã¦ãã¾ã£ãã ããâ¦
å ¥ç¤¾ãã¦æåã®ããã«ãã£ãã®ãRuby 2.6ç³»ã§åãã¦ããRuby on Railsã®ãµã¼ãã¹ã2.7.2ã¾ã§ä¸ããä»äºã ã£ãã æ©è½éçºã«å ¥ããã»ã©æ £ãã¦ãªãã¦ããã¼ã ã«ãã£ã¤ãå ¥ãããç¬ç«ãã¦åããæ¹ãããããã¤ããµã¼ãã¹å ¨ä½ãè¦æ¸¡ãã®ã«ã¡ããã©è¯ãæãã®ã¿ã¹â¦
macOSã®ã©ã³ãã£ã¼ã¨ã㦠Quicksilver ãæ» ã³ã¦1ãã Alfred ããã£ã¨ä½¿ã£ã¦ãã¦ãWorkflowãèªåç¨ã®å°ããã®ãæ¸ããããã¦ã¹ããã«æ®ããã¦ããã meta::cpan ããæ¤ç´¢ããã®ã¯ alfred-metacpan-workflow ã使ã£ã¦ããããRubyGems.org ããæ¤ç´¢ããã®ã¯â¦
ä»å¹´ãã¯ãªã¹ãã¹ã«ãªãªã¼ã¹ããã¾ãããæ¯å¹´ç´ æµãªãã¬ã¼ã³ãããããã¨ããããã¾ãï¼ github.com Moduleã refine åºæ¥ãããã«ãªã£ã¦ã¹ããã§ããã module Moconize refine Comparable do def clamp(min, max) if (min..max).include? self '' else supâ¦
Ruby 2.3ã®preview1ããªãªã¼ã¹ãããã¯ãªã¹ãã¹ã®è¶³é³ãèããã¦ããæ¨ä»ãã¿ãªãã¾ããããéããã§ããããã é§ãè¾¼ã¿ã§ããã¤ãã®æ©è½ãåãè¾¼ã¾ãã¦ãã¾ããããã®ãªãã§ãArrayãHashãStructã«å®è£ ãããdigãããããã¦æ°ã«å ¥ã£ã¦ãã¾ãã ãã¹ããâ¦
ä¹ ãã¶ãã« Ruby é¢è¥¿ã®åå¼·ä¼ã«åå ãã¦ãLT ããã¦ãã¾ããã å»å¹´ã¯å¹³æ¥éå¬ãå¤ãã£ãã®ã§åå åºæ¥ãªãã£ãã®ã§ãããåææ¥ã ã¨åå åºæ¥ãã®ã§å¬ããã https://rubykansai.doorkeeper.jp/events/18820 ä»åã¯çºè¡¨è ãå¤ããå 容ãå¤å²ã«æ¸¡ã£ã¦ããã®ã§â¦
ãªãªã¼ã¹ï¼ ããã»ã©å¾ ã¡ã«å¾ ã£ã Ruby 2.2.0 ããªãªã¼ã¹ããã¾ããã é¢ä¿è ã®ã¿ãªããããã°ãããã¯ãªã¹ãã¹ãã¬ã¼ã³ãããããã¨ããããã¾ãï¼ https://www.ruby-lang.org/en/news/2014/12/25/ruby-2-2-0-released/ å¤æ´ç¹ã«ã¤ãã¦ã¯ preview1 ã®ã¨ãã«â¦
追è¨ï¼ Gem ã«ããã®ã§ãæ´»ç¨ãã ããï¼ http://rubygems.org/gems/guard-notifier-blink1 blink(1) ã id:hxmasaki ãã1å°è²ã£ã¦ããã£ãã®ã§ Guard ã§èµ°ããã¦ãããã¹ãã®çµæãéç¥ããããã«ããã(ä¸ã¶æãããæ¾ç½®ãã¦ãã¾ã£ã¦ãã®ãä»æ¥ãã£ã¨è§¦ãâ¦
ä»äºã§ä½¿ã£ã¦ãã Gem ã Ruby 2.2.0-preview1 ã§åããã¨ä»¥ä¸ã®ãããªè¦åãåºãããã«ãªã£ãã Comparable#== will no more rescue exceptions of #<=> in the next release. Comparable#== 㯠<=> ã®å®ç¾©ã使ã£ã¦ãªãã¸ã§ã¯ããåä¸ãã調ã¹ãã<=> ã 0 â¦
ã¯ããã« RubyKaigi 2æ¥ç®ãçµäºãã¾ãããå»å¹´åå åºæ¥ãªãã£ãã®ã§3å¹´ã¶ãã®RubyKaigiã§ãã ãã¦ã9/18(æ¨) ã« Ruby 2.2.0-preview1 ããªãªã¼ã¹ããã¦ããã®ã§è©¦ãã¦ã¿ã¾ããã ãã¤ãã®ããã« NEWS ããåã®åããé¨åã ããç´¹ä»ãã¾ãã see also: rbenâ¦
Happy Birthday Ruby 20å¨å¹´ã®è¨å¿µæ¥ã§ãã 2æ24æ¥(æ¥) ã«ã¤ãã« Ruby 2.0.0-p0 ããªãªã¼ã¹ããã¾ããã(NEWS) ã³ã¢ãã¼ã ã®ã¿ãªãããã³ã³ããªãã¥ã¼ã¿ã®ã¿ãªãããå ¨ã¦ã®é¢ä¿è ã®ã¿ãªããã«æè¬ããããã¨ããããã¾ãã ã¤ã³ã¹ãã¼ã« ãã§ã« @hsbt ãã(â¦
https://gist.github.com/Sixeight/4771462 ã©ãã2.0ããDL moduleãobsoleteã«ãªã£ã¦ãFiddleã代ãã«ä½¿ãããã«ãªã£ã¦ããã @tenderlove ããã«è³ªåãããç°¡åãªåé¡ã§ã¯ãªãã¨ãã¤ã¤ããspring ã«ãããæ¸ãã¦ãã ãã£ã¦ã¨ããããã¯è§£æ±ºã https://gitâ¦
(::) (::) (::) (::) (::) (::) (::) ãã ããæ¼ç®åã§ãã (::) (::) (::) (::) (::) (::) (::) #!./ruby1.9 ary = [ 5, 4, 8, 1, 3, 2, ] hoge = ary.sort! {|a, b| b (::) a } p hoge #=> [8, 5, 4, 3, 2, 1] (::) Index: parse.y ======================â¦
ï¼ï¼æï¼ï¼æ¥ï¼åï¼ã京é½å¥³å大å¦ã§éå¬ããã Ruby/Railsåå¼·ä¼@é¢è¥¿#38ã«åå ãã¦ãã¾ãã åã¯RSpecã®ãããã£ãæ·¡ã ã¨ç´¹ä»ããã®ã§ãããã¢ã³ã±ã¼ãã§ã¯ãã¨ã¦ãéãã£ãããéããã¦æå³ãããããªãã£ããã¨çµ¶è³ã®å£°ãé ãã¾ãããKOFã®LTã§ã¯æã¡åâ¦
RSpecã§ãã¹ããæ¸ãã¦ãã¦ãã hoge.instance_variable_get(:@piyo).should == 'hehehe' ã¨ãæ¸ãã¾ãããæ¯åindtance_variable_getãæ¸ãã®ãé¢åãªã®ã§ãããã£ã«ãã¦ããã¨ç°¡åã«ãã¹ãã§ãã¾ã Rspec::Matcher.define :be_in do |name, val| match do â¦
id:hitode909 ããã¨ãid:masa138 ãããå ããï¼äººä½å¶ã§ãããããã¹ããæ¸ãã¾ãã çµæãã¨ããããã«ãã¬ãã¸ã100%ã«è¦ããããã«ãªãã¾ããSixeight/termtter · GitHubã¹ã©ã¤ãã«ãæ¸ããããã«ãã«ãã¬ãã¸ã¯ãããã§ããã¾ãããããéã«å ¨ãå¿ è¦ã®â¦
$ gem query -ran <gemã®ååãæ£è¦è¡¨ç¾ã§> -r ãªã¢ã¼ããªãã¸ããªãã -a ãã¹ã¦ã®ãã¼ã¸ã§ã³ -n æ£è¦è¡¨ç¾ã«ãããããgem</gemã®ååãæ£è¦è¡¨ç¾ã§>
http://jp.rubyist.net/?KansaiWorkshop36ä»æ´ã§ããã¨ã³ããªæ¸ãã¦ãªãã£ãã®ã§ã¹ã©ã¤ãã ãè²¼ãä»ãã¦ããã¾ãã¡ãªã¿ã«ææ¥ã¯#37ã京é½å¥³å大å¦ã§éå¬ããã¾ã http://jp.rubyist.net/?KansaiWorkshop37Haml/Sassã使ã£ã¦å±¥æ´æ¸ãæ¸ãããã®nåã®æ¹æ³View â¦
http://jp.rubyist.net/?KansaiWorkshop35RubyKaigi2009ï¼ã®å¾¡æè¦æ¿ï¼ã§ã大人æ°ã ã£ã京é½å¥³å大å¦ã§ã®éå¬ã§ãã åã¯RubyKaigi 2009å ±åä¼ã§LTãããã¦ããã ãã¾ãã çºè¡¨å 容ã¯ä»ã®çããã«ä»»ãã¦éå¶ã®çããã®ãã¤ã¹ãã¬ã¤çãªé¨åãç´¹ä»ãæ©å£ã§ãâ¦
http://jp.rubyist.net/?KansaiWorkshop34[追è¨] ã¹ã©ã¤ãã¢ãããã¼ããã¾ãã http://www.slideshare.net/Sixeight/sinatra-1658721 [ããã¾ã§]ï¼é±éåã§ãã7/20(å)ã«éå¬ããã¾ããRubyåå¼·ä¼ã«åå ãã¦ãã¾ãã Sinatra äºå§ã by å Webhooks (real-â¦
å¾è¼©ã®ä½ã£ããµã¼ãã¹ã«ãã°ããããã§ãã¾ã£ã件IE7 ã«ãããã¡ã¤ã«ã¢ãããã¼ãæã®ãã«ãã¹ã®éä¿¡ - èã£ã±æ¥è¨ã«ããã¨IE6ãããã¯åæè¨å®ã®IE7ã ã¨Content-Dispositionãããã®filnameããã«ãã¹ã«ãªã£ã¦ããã®ã§ãã®ã¾ã¾ä½¿ãã¨c:\fxxk\ie.txtã¨ãã«ãªâ¦
Rubygemsã§gemãã¤ã³ã¹ãã¼ã«ããéã«sudoãã¤ãå¿ãããããã¨~/.gem以ä¸ã«é ç½®ããã¦ãã¾ã£ã¦æ°æã¡æªã ç´ ç´ã«gemã³ãã³ãã§å ¥ããã¨ãã«ã¯å¿ãããã¨ã¯ãªãããã ããRailsã§rake gems:installããã¨ãã¯æ¯åsudoãå¿ãã¦ããããå¿ãããã¨ã«æ°ã¥ããªãâ¦
ããã°ãã¯ãæè¿ã¯Typhoeusã¨ãSinatraã§éãã§ãã¾ããLingrããµã¼ãã¹ãçµäºãã¦ãã¾ã£ãã®ã§ãæä½éåå¼·ä¼ã§ãã°ãæ®ããã£ãããããããã«ã¨ãCometãåå¼·ãã¦Chatãæ¸ãã¦ããã®ã§ãããããã®ãã¹ãç¨ã«ãã¼ã¢ã³ãä½ãããã£ãã®ã§èª¿ã¹ã¾ããã ãâ¦
Thin 1.2.1ãrack (>= 1.0.0)ãªã®ã«å¯¾ãã Sinatra 0.9.1.1ãrack (>= 0.9.1, $ ruby app.rb -s mongrelã¨ãããªãã¨åããªããªãgems.github.comã«Rack1.0.0対å¿ã®ãã¬ãªãªã¼ã¹çãããã®ã§ããã使ãã¨è¯ã $ sudo gem uninstall sinatra $ sudo gem instaâ¦
http://rubyforge.org/frs/?group_id=7796Ruby温æ³ãã¨termtterå宿ã®ææã§ããããã¼ã¸ã§ã³1.0.0ããªãªã¼ã¹ããã¾ããã ããããå¤ãã£ãã®ã§ä½¿ã£ã¦ã¿ã¦ãã ãããfrom æ¹è¥¿ç·
http://atnd.org/events/388åå ãã¾ãã 温æ³ã«å ¥ããï¼
Ruby has some division method but I don't know that the fastest one. I wanna know that.I did the benchmark as bellow, require 'benchmark' aset = (1..1000).to_a Benchmark.bmbm do |x| x.report('/') { aset.each_cons(2) {|x, y| y./ x.to_f } } â¦
class, module, defãã¼ã¯ã¼ãã¨evalç³»ã使ããªãã¯ã©ã¹ã¡ã½ããå®ç¾©ããããï¼èå³çãªæå³ã§ï¼ class_method = Module.new { define_method(:foo) { :foo } } klass = Class.new.extend class_method p klass.foo #=> :foo ããä¸çªå®æãªæ段ã ã¨æãã®ã â¦
http://jp.rubyist.net/magazine/?0025-RubiMaGolfå1 p $<.readlines.uniq #=> ["hoge fuga hige\n", "foo\n", "bar\n", "baz\n", "fuga hoge\n"] 20Bå2 p $<.readlines.map(&:split).flatten.uniq #=> ["hoge", "fuga", "hige", "foo", "bar", "baz"] 41Bâ¦