ruby-client/lib/bitpay_sdk.rb
Paul Daigle ad3a68e009 Change namespace of Client to SDK::Client
And bumps gem version, deletes redundant files, removes redundant
requires.
2015-01-07 10:46:46 -05:00

32 lines
925 B
Ruby

# license Copyright 2011-2014 BitPay, Inc., MIT License
# see http://opensource.org/licenses/MIT
# or https://github.com/bitpay/php-bitpay-client/blob/master/LICENSE
libdir = File.dirname(__FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
require 'bitpay/client'
require 'bitpay/version'
module BitPay
# Location of SSL Certificate Authority File
# As sourced from http://curl.haxx.se/ca/cacert.pem
CA_FILE = File.join File.dirname(__FILE__), 'bitpay','cacert.pem'
# Location of API
API_URI = 'https://bitpay.com'
TEST_API_URI = 'https://test.bitpay.com'
CLIENT_REGISTRATION_PATH = '/api-access-request'
# User agent reported to API
USER_AGENT = 'ruby-bitpay-sdk '+VERSION
MISSING_PEM = 'No pem file specified. Pass pem string'
class BitPayError < StandardError; end
class ArgumentError < ArgumentError; end
class ConnectionError < Errno::ECONNREFUSED; end
end