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 '
{{#tags}}- {{label}}
{{/tags}}