Created
June 3, 2013 23:06
-
-
Save kurotaky/5702235 to your computer and use it in GitHub Desktop.
簡単にインストールのバージョンチェックを楽にしたい
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'nokogiri' | |
| require 'open-uri' | |
| require 'tapp' | |
| versions = { | |
| wordpress: '3.5.1', | |
| ec_cube: '2.12.4', | |
| xoops_cube: '2.2.1', | |
| movable_type: '5.2.3', | |
| soy_cms: '1.4.0c', | |
| baser_cms: '2.1.1', | |
| postmail: '6.71' | |
| } | |
| doc = Nokogiri::HTML(open('http://ja.wordpress.org/releases/')) | |
| doc.css('.releases.latest td').tapp.each do |ver| | |
| puts ver | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment