#!/usr/bin/env ruby # encoding: UTF-8 require "pathname" bin_file = Pathname.new(__FILE__).realpath # vendored gems path gem_dir = File.expand_path("../../vendor/gems", bin_file) # vendored gems? if Dir.exists?(gem_dir) Dir["#{gem_dir}/**/lib"].each do |libdir| $:.unshift libdir end else require 'rubygems' end # add self to libpath $:.unshift File.expand_path("../../lib", bin_file) require 'quandl/command/compatibility_check' require 'quandl/command' require 'commander/import' require 'commander/command/quandl_ext' include Quandl::Command