Skip to content

Commit

Permalink
include cache (coingecko#1409)
Browse files Browse the repository at this point in the history
fix gem error when included in Rails
  • Loading branch information
wongy91 authored Mar 6, 2019
1 parent 86b4ea8 commit 3b01f87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 5 additions & 4 deletions lib/cryptoexchange.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require "cryptoexchange/version"
require "cryptoexchange/credentials"
require "cryptoexchange/client"
require "cryptoexchange/lru_ttl_cache"
require "cryptoexchange/helpers/string_helper"
require "cryptoexchange/helpers/numeric_helper"
require "cryptoexchange/helpers/hash_helper"
Expand All @@ -14,16 +13,18 @@
require "cryptoexchange/services/trade_stream"
require "cryptoexchange/services/order_book_stream"
require "cryptoexchange/services/authentication"
require "cryptoexchange/config"

path_files = Dir[File.join(File.dirname(__dir__), 'lib', 'cryptoexchange', '**', '*.rb')]

path_files.sort_by!{ |file_name| file_name.downcase }.each do |path|
require_relative path
end

Cryptoexchange.reset_config

require "http"
require "lru_redux"
require "websocket-eventmachine-client"
require "cryptoexchange/config"
require "cryptoexchange/lru_ttl_cache"
require "cryptoexchange/cache"

Cryptoexchange.reset_config
2 changes: 0 additions & 2 deletions lib/cryptoexchange/cache.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require "pry"

module Cryptoexchange
class Cache
attr_accessor :cache_instance
Expand Down

0 comments on commit 3b01f87

Please sign in to comment.