Sha256: c6e5ce1021fd5b00900a452b8ad65f945540691e30c755659aaf80681ffd7b20
Contents?: true
Size: 455 Bytes
Versions: 2
Compression:
Stored size: 455 Bytes
Contents
#!/usr/bin/env ruby unless ARGV[0] puts 'Usage: payoneer_csv /path/to/transaction_list.pdf' exit end payoneer_csv_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(payoneer_csv_dir) unless $LOAD_PATH.include?(payoneer_csv_dir) require 'payoneer_csv' file_path = File.expand_path(ARGV[0]) reader = PayoneerCsv::PdfReader.new(file_path) csv_string = PayoneerCsv::Csv.new(reader.read).generate puts csv_string
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
payoneer_csv-0.1.1 | bin/payoneer_csv |
payoneer_csv-0.1.0 | bin/payoneer_csv |