Sha256: 9b606e3a8b0001274f56aef2e4fc30bbfa4397324d3a9c2a9ccb09531be78140

Contents?: true

Size: 1.21 KB

Versions: 16

Compression:

Stored size: 1.21 KB

Contents

# coding: utf-8
require "json"
require "openssl"
require "base64"
require 'macaddr'
require 'byebug'
require 'logger'
require 'bigdecimal'
require 'bigdecimal/util'
require 'rest-client'

require "rock_fintech/version"

require "rock_fintech/version"
require "rock_fintech/utils"
require "rock_fintech/extensions"
require "rock_fintech/sign/md5"
require "rock_fintech/sign/sign"
require "rock_fintech/encrypt/rsa"
require "rock_fintech/http/request"
require "rock_fintech/http/response"

# 自动加载所有 api
Dir["#{File.dirname(__FILE__)}/rock_fintech/api/**/*.rb"].each { |file| require file }
# 自动加载所有 form
Dir["#{File.dirname(__FILE__)}/rock_fintech/form/**/*.rb"].each { |file| require file }
# 自动加载所有 http error code
Dir["#{File.dirname(__FILE__)}/rock_fintech/http/error_code/**/*.rb"].each { |file| require file }

require "rock_fintech/client"

module RockFintech

  class << self
    def logger
      @logger ||= default_logger
    end

    def default_logger
      _logger = Logger.new(STDOUT)
      _logger.level = Logger::INFO
      _logger
    end

    def logger=(log)
      @logger = (log ? log : Logger.new('/dev/null'))
    end
  end

end

require 'rock_fintech/railtie' if defined?(::Rails)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rock_fintech-0.19.0 lib/rock_fintech.rb
rock_fintech-0.18.4 lib/rock_fintech.rb
rock_fintech-0.18.1 lib/rock_fintech.rb
rock_fintech-0.17.0 lib/rock_fintech.rb
rock_fintech-0.16.0 lib/rock_fintech.rb
rock_fintech-0.15.0 lib/rock_fintech.rb
rock_fintech-0.14.0 lib/rock_fintech.rb
rock_fintech-0.13.0 lib/rock_fintech.rb
rock_fintech-0.12.0 lib/rock_fintech.rb
rock_fintech-0.11.0 lib/rock_fintech.rb
rock_fintech-0.10.0 lib/rock_fintech.rb
rock_fintech-0.9.0 lib/rock_fintech.rb
rock_fintech-0.8.0 lib/rock_fintech.rb
rock_fintech-0.7.0 lib/rock_fintech.rb
rock_fintech-0.6.0 lib/rock_fintech.rb
rock_fintech-0.5.0 lib/rock_fintech.rb