bin/ebooks in twitter_ebooks-3.1.2 vs bin/ebooks in twitter_ebooks-3.1.3

- old
+ new

@@ -91,11 +91,13 @@ pathes.each do |path| filename = File.basename(path) shortname = filename.split('.')[0..-2].join('.') + FileUtils.mkdir_p(File.join(APP_PATH, 'model')) outpath = File.join(APP_PATH, 'model', "#{shortname}.model") + Ebooks::Model.consume(path).save(outpath) log "Corpus consumed to #{outpath}" end end @@ -118,11 +120,11 @@ end HELP.append = <<-STR Usage: ebooks append <model_name> <corpus_path> - Process then append the provided corpus to the model + Process then append the provided corpus to the model instead of overwriting. STR def self.append(name, path) if !name || !path @@ -131,12 +133,12 @@ end Ebooks::Model.consume(path).append(File.join(APP_PATH,'model',"#{name}.model")) log "Corpus appended to #{name}.model" end - + HELP.jsonify = <<-STR Usage: ebooks jsonify <tweets.csv> [tweets.csv2] [...] Takes a csv twitter archive and converts it to json. STR @@ -207,10 +209,15 @@ Downloads a json corpus of the <username>'s tweets. Output defaults to corpus/<username>.json Due to API limitations, this can only receive up to ~3000 tweets into the past. + + The first time you run archive, you will need to enter the auth + details of some account to use for accessing the API. This info + will then be stored in ~/.ebooksrc for later use, and can be + modified there if needed. STR def self.archive(username, outpath=nil) if username.nil? help :archive @@ -298,10 +305,10 @@ HELP.version = <<-STR Usage: ebooks version Shows you twitter_ebooks' version number. STR - + def self.version require File.expand_path('../../lib/twitter_ebooks/version', __FILE__) log Ebooks::VERSION end