lib/etht.rb in etht-0.1.3 vs lib/etht.rb in etht-0.1.4

- old
+ new

@@ -1,30 +1,37 @@ # frozen_string_literal: true require 'thor' require 'etht/bigquery' +require 'etht/etherscan' require 'etht/version' # @author Hernani Rodrigues Vaz module Etht ID = `whoami`.chomp class Error < StandardError; end + # class Exception < StandardError + class Exception < StandardError + def initialize(message) + super(message) + end + end # CLI para carregar etherscan comuns no bigquery class CLI < Thor desc 'work', 'carrega/apaga dados do etherscan' option :e, type: :boolean, default: false, desc: 'apaga linha igual' option :m, type: :boolean, default: false, desc: 'apaga linhas existencia multipla' # processa etherscan def work - Bigquery.new({ e: options[:e], m: options[:m], i: true }).processa_etherscan + Bigquery.new({ e: options[:e], m: options[:m], i: true }).processa_eth end desc 'show', 'mostra dados do etherscan' # show etherscan def show - Bigquery.new.processa_etherscan + Bigquery.new.processa_eth end default_task :show end end