You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the top-level module Coinbase is not defined before the first require_relative 'coinbase/client'. The code in api_client.rb defines module Coinbase::Client. This causes Ruby to fail when trying to access Coinbase::Client because Ruby doesn’t recognize the Coinbase module yet.
To reproduce (using ruby 2.7.5 and 3+):
Launch IRB.
Run require 'coinbase'
Observe the "uninitialized constant Coinbase (NameError)" error.
Will submit a PR with a suggested fix!
The text was updated successfully, but these errors were encountered:
@alex-stone let me know how I can help further here. I've tested the fix locally (with make test and using it with irb) and it looks good. I'm also seeing that other files follow the same syntax (module Coinbase module XXX instead of module Coinbase::XXX).
Description
It appears that the top-level module Coinbase is not defined before the first
require_relative 'coinbase/client'
. The code in api_client.rb defines moduleCoinbase::Client
. This causes Ruby to fail when trying to access Coinbase::Client because Ruby doesn’t recognize the Coinbase module yet.To reproduce (using ruby 2.7.5 and 3+):
require 'coinbase'
Will submit a PR with a suggested fix!
The text was updated successfully, but these errors were encountered: