VirtualBoxã«ã¤ã³ã¹ãã¼ã«ããCentOSã®ç°å¢ã§ Rubyã§ã¯ã¦ãªã®ããã¯ãã¼ã¯ã®APIãå©ç¨ãã ãµã³ãã«ããã°ã©ã ãä½æãã¦ã¿ãã äºåæºå Rubyãªã©å¿ è¦ãªãã®ãã¤ã³ã¹ãã¼ã«ãã¦ããã $ sudo yum -y install ruby rubygems ruby-devel gcc $ ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] Ruby1.8ã«ã¯jsonã®ãã¼ãµã¼ãæ¨æºã§å ¥ã£ã¦ãªããããªã®ã§å ¥ããã $ sudo gem install json ããã°ã©ã ä½æ ããã¯ãã¼ã¯æ å ±ãåå¾ããããã°ã©ã ãä½æããã $ vi sample.rb require "rubygems" require "json" require "open-uri" if not ARGV[0] puts '
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}