coinbase / coinbase/coinbase-sdk-ruby
Error when loading with irb: "uninitialized constant Coinbase (NameError)"
Open
- Dominant language
- Ruby
- Stars
- 38
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
# 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 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+):
1. Launch IRB.
2. Run `require 'coinbase'`
3. Observe the "uninitialized constant Coinbase (NameError)" error.
Will submit a PR with a suggested fix!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.