2014-01-01ãã1å¹´éã®è¨äºä¸è¦§
@miyohide ããã®ååã«ãããã©ã³ãã ã§æ¥æ¬äººã®ååãè¿ã gem Gimei ãä½æã«å¯¾å¿ãã¾ããã次ã®ããã«ããã¨ãããã£ã½ãä½æãè¿ãã¾ãã address = Gimei.address address.kanji # => 岡山ç大島é¡å¤§åæ稲æ¨çº address.to_s # => 岡山ç大島é¡å¤§åæâ¦
æ¨æ¥ã第17åç®ã® ginza.rb ãã¼ãã¢ãããéå¬ãã¾ããã Ginza.rb 第17å äºæ¬ç«ã¦ï¼Rackãµã¼ãæ¯è¼ï¼Awesome Ruby - Ginza.rb | Doorkeeper Rackãµã¼ãæ¯è¼ Rackãµã¼ãã«é¢ããè¨äºãããã¤ãèªãã§ææ³ã話ãã¦ããã1æéãã£ã¨ããéã«ãã£ã¦ãã¾ã£ãâ¦
respond_to ã«ã¤ãã¦ã®ä»¥ä¸ã®è¨äºãèªãã ã respond_to without all the pain - Weissblog 詳ããã¯åæè¦ã¦æ¬²ãããã©ãç¨æãã¦ããªããã©ã¼ãããã«ã¢ã¯ã»ã¹ãããã¨ãã«ã©ã®ããã«æ¯ãèããã«ã¤ãã¦æ¸ããã¦ããã ããã¾ã§ãç¨æãã¦ããªããã©ã¼ããâ¦
ä»æ¥éå¬ãããæ¸è°·Rubyä¼è°ã§ãã³ãã¥ããã£ãã¼ã¯ã¨ã㦠ginza.rb ã®ããã¾ã§ã®åãçµã¿ã®ç´¹ä»ãããã¦ããã ãã¾ããããªãã¨30åã®æ ãããã£ã¦ããã®ã§ãã¹ã©ã¤ãã®å 容ã ãã§ã¯å¤§å¹ ã«æéãä½ããæ®ãã®æéã§ååã®ginza.rbãã¼ãã¢ããã§ãã£ããRaiâ¦
kindle çã¯ä»æ¥ãããepub çã¯ææ¥(11/1)ããè³¼å ¥ã§ããããã§ããããã¾ã§ãç´ãªã®ã§è³¼å ¥ããããã£ã¦ããæ¹ã¯ã©ãããã®æ©ä¼ã«ãè²·ãæ±ããã ããm(__)m ãã¼ãã§ã¯ãRuby on Rails | Gihyo Digital Publishing ãã¼ãã§ã¯ãRuby on Railsposted with amâ¦
åã主å¬ãã¦ããã³ãã¥ããã£ã®ä¸ã¤ã«ããã¶ã¤ã³ãã®ãã¼ãºã¨ããããã¶ã¤ã³åå¿è ãã¡ãéã¾ã£ã¦ãã¶ã¤ã³ãåå¼·ãããã®ãããã¾ãã ãããªãã¶ã¤ã³ãã®ãã¼ãºã®ãã¼ãã¢ããã«ãGeekroidï¼ä»®ï¼ ããããåæãå ¥ãã¾ãããèªåããã£ã¦ãæ´»åãããããªâ¦
heroku ã¯ããã©ã«ãã§ã¯ naked domain (ãµããã¡ã¤ã³ããªããã¡ã¤ã³)ã¯ä½¿ãã¾ããããããã EC2 ã®å¶ç´ï¼ã®ã¯ããDNS ã«ãã£ã¦ã¯æãéãããã®ã§ãããroute53 ã§ã¯åé¿ãã§ãã¾ããã route53 ã ã¨ãç¾ç¶ã§ã¯ãnaked domain ã«ã¢ã¯ã»ã¹ããã www ã®ãµãâ¦
RubyHiroba 2014 ã«ã¦ãpronto ã¨ãããHound ã£ã½ããã¨ãã§ãã gem ã®ç´¹ä»ããã¾ãããHound ã£ã¦ä½ï¼ã¨ããæ¹ã¯ãã¡ãã®ã¨ã³ããªãåèã®ãã¨ã HoundCIã§ãªãã¸ããªã«çªç¬ã飼ãã - blog.takuyan.com pronto ã¯ã¨ã¦ããã gem ãªã®ã§ããã°ã«ãããªãâ¦
åã¯å人ã§ã³ãã³ãã¨webãµã¼ãã¹ãä½ã£ã¦ããã®ã§ãããå®éã¯ãã¼ã ã§éçºããã»ãã好ãã§ããGitHub ä¸ã§ããµã¯ã寿å¸ãããè²¼ã£ããããã£ããã§æ©è½ã®ç¸è«ãããããéè«ãããããªããéçºãé²ããããã£ããã¨ããã人ãªãããã£ã¨ãã®æ¥½ãããç解â¦
nuhackã¨ããããã«ã½ã³ã¤ãã³ãã«åå ãã¦ãã¾ãããçµç·¯ãã©ããªæãã®ã¤ãã³ãã ã£ããã¯ä¸çªä¸ã®ãªã³ã¯ãã辿ã£ã¦ããã ããã°ãããã¨æãã¾ãã ææ è³ããå°½ãããã ãã¯ã·ãããããã®ä¼å ´ï¼ããªã¼ããªã³ã¯ï¼ããªã¼ãèåã®æä¾ã欧æå°å·ããããâ¦
ã¿ãªããã¯ã©ããã¦ãã¾ãããå人çã«ã¯ããã¼ã«ã«ã®éçºç°å¢ã§ããã°ã°ãã¼ãã«ã«ã¤ã³ã¹ãã¼ã«ãã¡ãã£ã¦ãåé¡ãªãæ°ããã¦ãã¦ãã¾ãã ãã£ã¨ç¿æ £ã§ bundle install âpath vendor/bundle ã£ã¦ãã¦ããã©ãå¥ã«ã°ãã¼ãã«ãªæãã§ã¤ã³ã¹ãã¼ã«ãã¡ãã£ã¦â¦
bundle install 㧠nokogiri ã®ã¤ã³ã¹ãã¼ã«ã«å¤±æãã¦ããããããã£ããã¨ã®ã¡ã¢ã§ãã ã¨ãããã libxml2 㨠libxslt å ¥ããã brew install libxml2 libxslt ããã§ããã¡ã ã£ãã®ã§Nokogiriã®ããã¥ã¡ã³ããè¦ãã¨ããlibiconv ãã½ã¼ã¹ããå ¥ãããã¨â¦
Rails 㧠assets é¢é£ã®ã©ã¤ãã©ãªã使ãéãæ°å¹´åã¾ã§ã¯æå¿ãä½ã£ã gem ãå©ç¨ãã(ä¾: twitter-bootstrap-rails ãªã©)ã®ã主æµã§ããããããããã ã¨ãgem ã®ä½è ãããã«ããã¯ã«ãªã£ã¦ãã¾ããã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ããªããªãä¸ãããªãã£ãããã¾â¦
gem search rails ã¨ãããã¨ãé¨åä¸è´ã§æ¤ç´¢ããã¦çµæãããããã§ã¾ããå®å ¨ä¸è´ããgemã®æ å ±ã®ã¿æ¬²ããã¨ãã¯æ¬¡ã®ããã«ãã¾ãã gem search ^rails$ ãããæ¯å^ã$ãæã¤ã®ã¯ã ããã§ããâ¦ãããã§ç°¡åãªã·ã§ã«ã¹ã¯ãªãããæ¸ãã¦ã¿ã¾ããã-dã¯è©³ç´°â¦
HTML2Hamlã¨ããããã©ããã¡ãã¡URLéãã¦ã³ãããã¦â¦ã¨ãé¢åã§ãããã次ã®ã³ãã³ãã§èªåå¤æã§ãã¾ããzipç´åãããHTMLãHamlã«ç´ãã¨ããªã©ã«ã©ããã åææ¡ä»¶ Mac gem i html2haml pbpaste | html2haml --unix-newlines | pbcopy
åãä½ã£ã gem ã®ä¸ã§ããã³ããã«ãã¦ã³ãã¼ãæ°ãå¤ã rake_shared_context ã¨ãã gem ã®ãã¼ã¸ã§ã³ã 0.2.1 ã«ä¸ãã¾ããã0.1.0 ã«ãã¼ã¸ã§ã³ã¢ããããã¨ããã8000ãã¦ã³ãã¼ããããããã¦ãã¿ãããªãã§ããããã®éä½ããã£ããã§ãããâ¦ã 0.2.1â¦
é ãã°ããªãããã ããããããªæµãã§å¤æ´ãã¾ãã brew install cask 㧠cask ãã¤ã³ã¹ãã¼ã« palletã使ã£ã¦ãpackage.el çµç±ã§å ¥ã£ã¦ããããã±ã¼ã¸ä¸è¦§ã Cask ãã¡ã¤ã«ã«ç§»ã ããã¾ã§ã® package.el ã§å ¥ãããã¡ã¤ã«ãåé¤ init.el ã«æ¬¡ã追è¨ãã¦ãâ¦
éå¬ãã¾ãããä¹ ãã¶ãã«ã³ã¼ããªã¼ãã£ã³ã°ãå°å³ãªãé¡ã®ããã«äººæ°ã¯éå»æå¤ã ã£ãããããã¼ãã§ã¯ã Ruby on Railsãè²·ãã¾ããï¼ã¨è¨ã£ã¦ããã人ãå¤ããã¦å¬ããã£ãã§ãï¼ï¼ Ginza.rb 第12å 帰ã£ã¦ããã³ã¼ããªã¼ãã£ã³ã° ï½ Rails 4.1 Action Mâ¦
ã¿ãªãã㯠~/.railsrc 使ã£ã¦ã¾ããï¼ rails new ããã¨ãã®ãªãã·ã§ã³ãæ¸ãã¦ããããã¡ã¤ã«ã§ããRails 3.2 ãã使ãã¾ãã å㯠test-unit ãåºæ¬çã«ä½¿ããªãããrails new ã®ã¿ã¤ãã³ã°ã§ bundle install ãèµ°ãã®ãå«ãªã®ã§æ¬¡ã®ããã«è¨å®ãã¦ãã¾ãâ¦
waffle.io vs Zenhub.ioã¨ããã¨ã³ããªãæ¸ããã¨ãããHuBoardããããï¼ã¨ã³ã¡ã³ããããæ¹ãå± ãã®ã§è©¦ãã¦ã¿ã¾ããã private ã¯ææ 1ã¦ã¼ã¶æ7ãã« organizationã ã¨æ24ãã« waffle.io ã¨åãå°ç¨ãã¥ã¼å æ¤ç´¢ããã£ã«ã¿ãªã³ã°ãã¢ãµã¤ã³ãªã©ã®ãã¿â¦
å ¬å¼ã§ã¯ä»ã®ã¨ãã(2014/6/15)æªãµãã¼ãã¿ãããcapybara-webkitã§ã¯ page.driver.alert_messages ãªã©ã¨ã㦠alert ã®ã¡ãã»ã¼ã¸å 容ãè¦ãããIssue è¦ãæããã³ããã¿é£ã¯ãªã½ã¼ã¹ãªãã®ã§ãã«ãªã¯å¾ ã¡ãªæ¨¡æ§ã https://github.com/teampoltergeist/poâ¦
waffle.io ZenHub.io ã²ã¨ãããã¸ã§ã¯ãã®ã¿ã¹ã¯ãã©ã®ããã«ç®¡çããããã¨èãã¦ãwaffle.io 㨠Zenhub.io ã試ãã¦ã¿ã¾ãããwaffle.io 㨠Zenhub.io ã¯ã©ã¡ãã Github issues ãããã¯ã¨ã³ãã«ãã¦ãã«ã³ãã³æ¹å¼ã§ã¿ã¹ã¯ç®¡çãã§ããããã«ãããã¼ã«â¦
rspec-railsã3.0.1 ããªãªã¼ã¹ããã¦ãã¾ãããã¤ã³ã¹ãã¼ã«ã㦠rails g rspec:install ã¨ããã¨ãspec/rails_helper.rb ã¨ããè¦æ £ããªããã¡ã¤ã«ãä½æããã¾ããããã¯ä¸ä½ä½ã§ããããã rspec-rails ã®READMEãèªãã¨ããããã㯠spec/rails_helper.â¦
å¾ã¥ãã§ã«ã¦ã³ã¿ã¼ãã£ãã·ã¥ã®ã«ã©ã ã追å ããå ´åãåæå¤ãè¨å®ãã¦ãããªãã¨ããã¾ãããããåã¯ãã¤ã°ã¬ã¼ã·ã§ã³ä¸ã«æ¬¡ã®ããã«æ¸ãã¾ããã class AddCommentsCountToIdeas < ActiveRecord::Migration def change add_column :ideas, :comments_coâ¦
ãã¼ãã§ã¯ãRuby on Rails ä¸ã®ç¬¬6ç« ã§åãæ±ã£ã¦ããé¡æãã¤ãã³ãéå¬æ¯æ´ç³»ã®Railsã¢ããªã±ã¼ã·ã§ã³ awesome_events ã®ã½ã¼ã¹ã³ã¼ãã Github ä¸ã§å ¬éãã¾ããã ã½ã¼ã¹ã³ã¼ãã¯æè¡è©è«ç¤¾ããã®ãµãã¼ããã¼ã¸ãããã¦ã³ãã¼ããããã¨ãã§ãã¾ãããâ¦
ããã¡ã¤ã«ã®å¤æ´ãæ¤ç¥ãã¦ãªã«ããããã¼ã«ãã®ããã¡ã¯ãã¹ã¿ã³ãã¼ããguardãã¿ãªããããã£ã¨ä½¿ã£ã¦ã¾ãããï¼ guard ã¯ãããã¹ããèªåã§å®è¡ãããã®ã«ä½¿ããã¾ããä¿®æ£ãæ¤ç¥ãã¦èªåã§ãã¹ããå®è¡ãã¦ãããã ãã§ã便å©ã§ããããã¹ãã®çµæãâ¦
åå¿è Rubyã³ãã¥ããã£ã¨ãã¦æåãªãã¡ãã¡.rbãåã¯åå è³æ ¼ã¯ãªãã®ã§ããã主å¬è ã§ãããããããã«ãé¡ããã¦è¦å¦ããã¦ãããã¾ããã åã¯ãã¶ã¤ã³ãã®ãã¼ãºã¨ããããã¶ã¤ã³åå¿è ã®åå¼·ä¼ã主å¬ãã¦ãã¾ãã主å¬ã®èªåã¯ãã¶ã¤ã³ã§ããªãã®ã§ãâ¦
常é§ã®ãä»äºããã¦ããªãããªã¼ã©ã³ã¹ã¯ãæåºç¤¾ããªãã¦ããã®ã§çæ´»ãªãºã ãã©ãã©ãå´©ãã¦ããã¾ããå人çã«ã¯ãçæ´»ãªãºã ãå´©ããã¨è½çãè½ã¡ããããã¾ããããã¨ãªãã§ãããã¨è¨ã£ã¦èªåã®æå¿ã ãã§ææ©ãèµ·ããã®ã¨ãä¸å¯è½ã ããã§Morning Haâ¦
Vagrantã使ã£ã¦ä»®æ³ãã·ã³ãç«ã¡ä¸ããã ããªããé©å½ã«ã°ã°ã£ã¦ã³ãã³ã2ã¤(vagrant init 㨠vagrant up)å©ãã ãã§ã§ãã¾ããVagrant ã¡ããç°¡åããªã®ã§ç°¡æçãªä½¿ãæ¹ãããåã«ã¯æ¸ç±ã¨ãèªãå¿ è¦ã¯ãªãã§ããã§ããVagrantã£ã¦ä½ãã©ãã¾ã§ã§ããã®ãâ¦
rspec-rails ã 3.0.0.rc1 ã«ã¢ãããã¼ãããã¨ããã£ã¨ãã¹ããããã¾ããããã«ãªãã¯ãããããªæ㯠spec_helper.rb ã«æ¬¡ã®è¨å®ã足ãã¦ããã¦ãã ããã config.infer_spec_type_from_file_location! ããã¾ã§ã® rspec-rails ã¯ãä¾ãã° spec/controlleâ¦