Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
Posted by zzak and hone on 1 Jul 2014 Translated by makimoto 延é·ããã¦ãã Ruby 1.8.7 ããã³ 1.9.2 ã®ã¡ã³ããã³ã¹ã2014å¹´7æ31æ¥ã«çµäºãã¾ãã 詳細 æ¨å¹´12æãRuby 1.8.7 㨠1.9.2 ã®ãµãã¼ãæéã6ã¶æ延é·ãã¾ããã Heroku ã® Bamboo ã¹ã¿ãã¯ã¨ Cedar ã¹ã¿ãã¯ã®é¡§å®¢ããµãã¼ãããããããã®å»¶é·ã¯ Heroku ã«ãã£ã¦æ¯æ´ããã¦ãã¾ããã(詳細) ããããã¯ãã®ãµãã¼ãæéãçµäºããããã¨ãã¦ãã¾ãã Ruby 1.8.7 ã¯2008å¹´6æã«èªçãã6æ³ãè¶ãã¾ããã Ruby 1.9.2 ã¯2010å¹´8æã«èªçããã¾ããªã4æ³ã§ãã æãçµã¦ããããã®ã³ã¼ããã¼ã¹ã«ããã¯ãã¼ããã»ãã¥ãªãã£ãããã®ã¡ã³ããã³ã¹ãè¡ãªããã¨ã¯å¾ã ã«å°é£ã«ãªã£ã¦ãã¾ããã Rub
èæ¯ æè¿ã§ã¯RubyDoc.infoãªã©ã®ãªã³ã©ã¤ã³ããã¥ã¡ã³ãããDashãªã©ã®ãã¼ã«ã使ã£ã¦èªã人ãå¤ããlocalã«documentãinstallããæéãçãæ¹ãå¤ãã¨æãã¾ãã ããã§ããããããªããã°è¨äºãèªã¿ã.gemrcã«--no-riã¨--no-rdocã®èª¬æã®é¨åãã³ãããã¦ä½¿ã£ã¦ãæ¹ãå¤ãã¨æãã¾ããç§ããããã¦ã¾ããã ããããRubyGems.orgã®gem-installãã¿ãã¨ããªãã¨--no-riã¨--no-rdocãdeprecatedã«ãªã£ã¦ãã¾ãã 表é¢ä¸åé¡ããªãããã«è¦ããã§ãããããrubygemsã®versionãããããä¸ä¸ãããã®optionããªããªã£ãã¨ããæ¥ã«documentãinstallãããããã«ãªããgemã®installæéã¯é·ããªããstackoverflowã«ã¯helpã®è¨äºãèãã®ã§ã¯ãªãã§ããããã ãã®ããã«æ ã¦
Rubyã¯ãã®ããè¨èªã§ããRubyã触ã£ã¦ããã¨ããã¥ã¢ã«ã«ãæ¸ãã¦ããªããå°ããªçºè¦ãã«ééãããã¨ãããããã¾ãããã®ãããªãçºè¦ãã¯ãããã°ã©ã ã®è³ªãå¹çã®æ¹åã«ã¯ç´çµããªãããããã¾ããããããããããã¼ã ããã°ã©ãã³ã°ã§ã¯å¦¨ãã«ãªãå¯è½æ§ããããã¾ããããããã®ä¸æ¹ã§ãè¨èªèªä½ãèªåã®ç¥ããªãé åãæã¡ç¶ãã¦ãããã¨ãããã®å¯¾è±¡ã«å¯¾ããèå³ã失ãããªãããã®å¤§ããªè¦å ã§ãããã¨ããã®ãã¾ãçãã®ãªãäºå®ãªã®ã§ããã¤ã¾ããçºè¦ãã¯ãã®ããã«ç´çµãã¦ããã®ã§ãã ãã®ããã°ã«ããã¦ãç¥ã£ã¦å¾ããRubyã®ããªãã¢ãªè¨æ³ãã¨ããã¿ã¤ãã«ã§ãä»ã¾ã§ï¼åè¨äºãæ¸ãã¾ããã âç¥ã£ã¦å¾ãã21ã®Rubyã®ããªãã¢ãªè¨æ³â â第ï¼å¼¾ï¼ç¥ã£ã¦å¾ãã12ã®Rubyã®ããªãã¢ãªè¨æ³â â第ï¼å¼¾ï¼ç¥ã£ã¦å¾ãã12ã®Rubyã®ããªãã¢ãªè¨æ³â ãããã®ããªãã¢ã«ã¯ããããæ¤ç´¢ã§è¦ã¤ãããã®ãTwitt
â [ruby] joined ruby-core team. I joined ruby-core team in Feb.23. I'll work follow topics: build checking and testing major application such as rails and fluentd in 2.1.0, 2.0.0 and 1.9.3. maintain to pure ruby library support Mac OS X maintain bugs.ruby-lang.org maintain www.ruby-lang.org maintain more developer tools of ruby commiter. I'm looking forward to working with ruby-core team. 2013/02/
Thereâs a Portugese translation by Rodrigo Martins if you prefer. A quick summary of some of the new features of Ruby 2.0.0: Language Changes Keyword arguments 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 # Ruby 1.9: # (From action_view/helpers/text_helper.rb) def cycle(first_value, *values) options = values.extract_options! name = options.fetch(:name, 'default') # ... end # Ruby 2.0: def
ããã³ã¾ãã¯ãRuby ã«é¢ããæè¡è¨äºã¯ãã¡ããã®ãã¨ãRubyist ã¸ã®ã¤ã³ã¿ãã¥ã¼ãã¨ãã»ã¤ããã®ä»ããå±ãããã¦ã§ãéèªã§ãã Rubyist Magazine ã«ã¤ã㦠ãRubyist Magazineããç¥ãã¦ããã³ã¾ãã¯ãæ¥æ¬ Ruby ã®ä¼ã®æå¿ã«ãã Rubyist ã® Rubyist ã«ãããRubyist ã¨ããã§ãªã人ã®ããã®ã¦ã§ãéèªã§ãã ææ°å· Rubyist Magazine 0058 å· ããã¯ãã³ãã¼ Rubyist Magazine 0058 å· RubyKaigi 2018 ç´åç¹éå· Rubyist Magazine 0057 å· RubyKaigi 2017 ç´åç¹éå· Rubyist Magazine 0056 å· Rubyist Magazine 0055 å· Rubyist Magazine 0054 å· æ±äº¬ Ruby ä¼è° 11 ç´
RubyãRailsã§å¤é¨APIãå©ç¨ããã½ããã¦ã§ã¢ãéçºãã¦ããã¨ãã«ããã¹ãã§å®éã«ä½åº¦ãAPIã«åãåããã«ããã¦ããããé ãã¦è©±ã«ãªãã¾ãããã¾ãã¦ããå¤é¨APIãã¡ã³ããã³ã¹ãªãã¦ãã¨ã«ãªã£ãããéçºãæ¢ã¾ã£ã¦ãã¾ãã¾ãã ããã§ãwebmockãªã©ãå©ç¨ãã¦ãHTTPãªã¯ã¨ã¹ããã¬ã¹ãã³ã¹ã®mockãä½æãããã¨ãæã¾ããã§ãã vcrãçµã¿åããã¦å©ç¨ããã°ãååã ãå®éã«HTTPãªã¯ã¨ã¹ãã¨ã¬ã¹ãã³ã¹ãè¨é²ãã¦ã2åç®ä»¥éã¯è¨é²ãããã¼ã¿ããmockã¨ãã¦ãã¼ã¿ãè¿ãããã«ç°¡åã«ã§ãã¾ãã webmockã¨vcrã®ã¤ã³ã¹ãã¼ã«æ¹æ³Gemfileã«ä»¥ä¸ã®ããã«è¨è¿°ãã group :development, :test do gem 'webmock' gem 'vcr' endgemãã¤ã³ã¹ãã¼ã«ãã $ bundletest/test_helper.rbã«VCRã«é¢ãã
I talked about Rails4 (Edge Rails) at this event with @a_matsuda. matsuda-san talked about the overview of Ruby 2.0 and Rails4 and I did more details into Edge Rails toward the coming Rails4. We worked together well in spite of not planning in advance. Here's my slides: The font used in the slides above is Movavi Font. This additional statement appears because I was asked by someone what font the
WEB+DB PRESSã®Rubyããããããã§ãç´¹ä»ãããtappã®ãã¹ãã«ã¤ãã¦ã¯ç¤¾å ã§ãå®æçã«ä¸ãã話é¡ã§ãããå°ãåºãæå³ã§èããã¨ãæ¨æºåºåãæ±ãã¢ããªã®ãã¹ããã©ããããã¨ãã話ã«ãªã£ããããã®ã§ããã tappã®åä½ãã¹ãã£ã¦ãªãããã£ããããªããã æ¨æºåºåã«åºãã ãã ãã ããããã°ãvim-ruby-refactoringã£ã¦ããVimãã©ã°ã¤ã³ã®ãã¹ããCucumberã§æ¸ãã¦ãããã§ãã ããããã°ãjnicklaså çã®æ°ä½Turnipã£ã¦ããã®ããã£ã¦â¦ ãã使ã£ã¦ã¿ã¾ããã ã¨ããæãã§Turnipã使ã£ã¦Acceptance Testãæ¸ãã¦ã¿ã¾ããã Turnipã®ç¹å¾´ã¯ãããªæãã§ãã è¨æ³ã¯Cucumberã¨åãGherkin Stepã®å®ç¾©ã«æ£è¦è¡¨ç¾ã使ããã«ããã ã®æååã¨ããã®ä¸ã«ã³ãã³(:)ããã¬ãã£ãã¯ã¹ã¨ãããã¬ã¼ã¹ãã«ãã§å¤æ°ãæ±ã S
The following is a post I had recently sent the Bangalore Ruby User Group. It has been slightly modified to address a larger audience. There were many Ruby beginners in last week's meetup, and the common question we heard was 'after the very basics, what next?' The best way to learn Ruby best practices is to pair with an experienced dev; the way I learned was by inheriting a reasonably small, but
ååã¾ã§ã®saykanjiã³ãã³ãã®è½åã¯ãæ¼¢åã»ä»®åã»è±åèªæ··ããã®æç« ãè¾ããã¦æ£èªã¿ããã¬ãã«ã§ãã£ããã¯ã£ããè¨ã£ã¦ããªãä¸èªç¶ã ãè¨èã®ãã¤ã¢ã¯ã»ã³ãã¯ãã¹ã¦ç¡è¦ããã¦ãããã¾ãã§ããçµãèªã¿ä¸ãããããªæãã saykanaã³ãã³ãã®æ§è½ãå¼ãåºãã¹ããããèªç¶ãªæ¥æ¬èªã§ã®èªã¿ä¸ããç®æãã¦ã¿ãï¼ é¢é£ãã¼ã¸ ããã¸ã§ã¯ãã³ã¼ã http://gist.github.com/119641 éå»ã®æ¥è¨ saykanjiã³ãã³ããå®ç¾©ãã¦æ¼¢åä»®åæ··ããæãèªã¿ä¸ãã ãã¤ãªã³ã¬ã«ãªsaykanjiã«ãã¦ãã saykanaã³ãã³ãã®ãã¤ãã£ãã¹ãã¼ã«ã¼ã¶ã æ°åã®èªã¿ä¸ã æ°åãNUMKã¿ã°ã«å¤æãããã¨ã«ããã COUNTERå±æ§ãå©ç¨ãããããå©æ°è©è¾æ¸ãä½æããã ããã§ã10åããããã ã£ã·ããã¨çºé³ããããï¼ä»ã¾ã§ã¯ããã¡ãããµããã ã£ãï¼ ã¢ã¯ã»ã³ãã®ä»ä¸ ã¢ã¯ã»ã³ãä»
ãããããªãã¢ã¤ãã¢ãã²ããããã®ã§ããï¼ãããå®ç¾ããããã«ï¼Rubyã§ã¬ã¼ãã³ã·ã¥ã¿ã¤ã³è·é¢ã¨ï¼ãã®è·é¢ã§ãããã¨ã確èªã§ããï¼æååå¤åã®ç³»åãæ±ããã³ã¼ããæ¸ãã¦ã¿ã¾ããï¼ åèã«ãããã®ã¯ä»¥ä¸ã®ã¨ããï¼ Wikipedia:ã¬ã¼ãã³ã·ã¥ã¿ã¤ã³è·é¢ ç·¨éè·é¢ (Levenshtein Distance) - naoyaã®ã¯ã¦ãªãã¤ã¢ãªã¼ ruby ã§ã¬ã¼ãã³ã·ã¥ã¿ã¤ã³è·é¢ï¼ç·¨éè·é¢ï¼ã®è¨ç® - Îάδι ÎιÏÏÎ±Ï RAA Search (Levenshtein)*1 #!/usr/bin/env ruby # -*- coding: utf-8 -*- # levenshtein-distance.rb class LevenshteinDistance def initialize(str1, str2) @before, @after = str1, str2 analyz
DPçã¦ã¼ã¶ã¼ã¨ãã¦å èµ°ã£ã¦3ã¶æåãã使ã£ã¦ãã¾ããããã¶ãä¿®æ£ãããªãã§ãããåé¡ããã£ãã®ã§ãããã«æ¸ãã¦ããã¾ãã MacPortsãRubygemsãæªããæåã示ããã§ãããMacPortsãä¾åã解決ããã«ä¸æããããgems ã ã¢ãã«ãã£ã¡ãrequireã§ããªãã£ããã»ã»ã»ããã®äºã¤ãéçºè ã«ã¨ã£ã¡ãè´å½çãªåé¡ãMacPortsã¯pkgã®ãã¼ã¸ã§ã³ãã§ãã¯ã§ãããã®ã§èªåã§ãã«ããããã§ããããããæªãã®ãã¨æã£ã¦èª¿ã¹ã¦ããã¨ãããæµ·å¤ã®æ¹ã«æ¢ã«å ±åããã¦ãã¾ããã(æ¥æ¬ã ã¨å ¨ãæ å ±ãããã¾ããã§ãã) åè evolution - Snow Leopard with legacy macports and rubygems è¶ è¨³ Leopardã®ã¦ã¼ã¶ã¼ã¯ããããOSã«è¼ã£ã¦ããæ¨æºã®Rubyã使ã£ã¦ãã¦ãæ¢ã«å¤§éã®macportsã¨rubygemsããããã¨ã ã¨æ
ãã¤ã¯ããã©ã¼ããã ããã¾ã§ã«å®è£ ãããã¥ã¼ã«ã¯ã¡ãã¥ã¼ã® ID ãå称ã«å¯¾ãã¦æ確ãªãã¼ã¯ã¢ããããªããã¦ãããããã®ã¾ã¾ã§ã¯ã¯ã©ã¤ã¢ã³ãããã®æä½ã¯å°é£ã§ãããã®åé¡ã解決ããããã« ãã¤ã¯ããã©ã¼ããã ã使ããã¨ãã§ãã¾ãã ãã¤ã¯ããã©ã¼ããã ã¨ã¯äººãèªãã§ç解ã§ããæ å ±ã«ãã¼ã¯ã¢ãããä»å ããæ段ã§ãããã¤ã¯ããã©ã¼ããã ã使ç¨ãããã¨ã«ãããããã¥ã¡ã³ãã«åãè¾¼ã¾ãããã¼ã¿ã«å¯¾ããã½ããã¦ã§ã¢ããã®æä½ãããç°¡åã«ãªãã¾ãã ã«ã¬ã³ãã¼ãä½æãªã©æ±ãæ å ±ã®ç¨®é¡æ¯ã« ãã¤ã¯ããã©ã¼ããã ã®ä»æ§ãçå®ããã¦ãã¾ããä»åã¯ã¡ã¤ã³ã¡ãã¥ã¼ã¨ãµã¤ãã¡ãã¥ã¼ã®ååã表ç¾ããããã«ã製åæ å ±ç¨ã® ãã¤ã¯ããã©ã¼ããã ã§ãã hProduct ãæ¡ç¨ãããã¨ã«ãã¾ãã ããã§ã¯ hProduct ã«å¾ã£ã¦ãã¡ã¤ã³ã¡ãã¥ã¼ããµã¤ãã¡ãã¥ã¼ã確èªãã¼ã¸ã®ãã³ãã¬ã¼ããå¤æ´ãã¾ãããã
以åãCSRFã«ã¤ãã¦ã®ã¨ã³ããªãæ¸ãã¾ããã CSRFã«ã¤ã㦠- ããããWEBãµã¼ãã¹éçºæ¥è¨ ä¸è¨ã¨ã³ããªã§ã¯CSRFã®æ¦å¿µã«ã¤ãã¦æ¸ãã¾ããããããå°ãã¤ã£ããã§èª¿ã¹ãå¿ è¦ãåºã¦ãã¾ããã調ã¹ããã¨ãæ¸ãã¦ããã¾ãã åºç¤ application.rb(ãªããé©å½ãªController)ã«protect_from_forgeryã¡ã½ãããå®ç¾©ããã°ãrailsãèªåçã«CSRF対çããã¦ããã¾ããã¨ããããããã©ã«ãã§application.rbã«ä¸è¨ã®ããã«æ¸ãã¦ããã®ã§ãç¹ã«ä½ãããã¨ãCSRF対çã¯ããããªãªã®ã§ãã protect_from_forgery # :secret => '8ff3ed33f86a431662d8dfe255acdb4a' railsã¯ãget以å¤ã®åè©ã®ãªã³ã¯ã«ãauthenticity_tokenã¨ãããã©ã¡ã¼ã¿ãèªåçã«ä»ãå ãã¾ããge
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}