bin/points in points-scraper-0.1.0 vs bin/points in points-scraper-0.1.1

- old
+ new

@@ -14,11 +14,17 @@ module Points::Scraper class App < Thor desc 'tpoint', 'getting current T-POINT from T-SITE.' def tpoint - require 'points-scraper/tpoint' - puts TPoint.new( *auth( 'tsite' ) ).start + begin + require 'points-scraper/tpoint' + puts TPoint.new( *auth( 'tsite' ) ).start + rescue Net::OpenTimeout + $stderr.puts 'T-POINT official site has no response, trying Yahoo! JAPAN.' + require 'points-scraper/tpoint-yahoo' + puts TPointYahoo.new( *auth( 'yahoo-japan' ) ).start + end end desc 'ana', 'getting current ANA Mileage.' def ana require 'points-scraper/anamileage'