bin/hatena-graph-update in hatenagraphup-1.2.2 vs bin/hatena-graph-update in hatenagraphup-1.2.3
- old
+ new
@@ -9,11 +9,10 @@
begin
require 'rubygems'
rescue LoadError
end
-require 'hatenagraphup'
require 'optparse'
require 'ostruct'
require 'time'
require 'pathname'
require 'yaml'
@@ -42,12 +41,13 @@
opt.on( '-u HATENA_ID', '--user' ) {|v| Opt.user = v }
opt.on( '-p PASSWD', '--passwd' ) {|v| Opt.pass = v }
opt.on( '-d DATE', '--date' ) {|v| Opt.date = Date::parse( v ) }
opt.on( '-a', '--append' ) {|v| Opt.append = true }
opt.on( '-h', '--help' ) do |v|
+ require 'hatena/graph-update'
puts <<-USAGE.gsub( /^\t\t/, '' )
hatena-graph-update: sending data to hatena graph service.
- version #{HatenaGraphUp::VERSION}
+ version #{Hatena::GraphUpdate::VERSION}
usage:
#{File.basename( $0 )} [-u id] [-p pass] [-d date] [-a] graph [data...]
-u id, --user : user ID of hatena service.
-p password, --passwd : password of hatena service.