accodeing / fortnox-api

Gem that abstracts Fortnox's F3 API
GNU Lesser General Public License v3.0
9 stars 8 forks source link

Fixes crash in dry-types #223

Closed ehannes closed 1 year ago

ehannes commented 1 year ago

Without this require, dry-types complains about uninitialized constant Dry::Configurable (NameError)

from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/bundler/gems/fortnox-api-4348fea55f3e/lib/fortnox/api.rb:4:in `<top (required)>'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/bundler/gems/fortnox-api-4348fea55f3e/lib/fortnox/api.rb:4:in `require'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-struct-0.4.0/lib/dry-struct.rb:1:in `<top (required)>'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-struct-0.4.0/lib/dry-struct.rb:1:in `require'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-struct-0.4.0/lib/dry/struct.rb:2:in `<top (required)>'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-struct-0.4.0/lib/dry/struct.rb:2:in `require'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-0.12.3/lib/dry-types.rb:1:in `<top (required)>'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-0.12.3/lib/dry-types.rb:1:in `require'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-0.12.3/lib/dry/types.rb:21:in `<top (required)>'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-0.12.3/lib/dry/types.rb:21:in `require'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-0.12.3/lib/dry/types/errors.rb:1:in `<top (required)>'
from ~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-0.12.3/lib/dry/types/errors.rb:2:in `<module:Dry>'
~/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/dry-types-0.12.3/lib/dry/types/errors.rb:3:in `<module:Types>': uninitialized constant Dry::Configurable (NameError)`
codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit be1f7eba and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 98.3% (0.0% change).

View more on Code Climate.

ehannes commented 1 year ago

Fixed in a newer PR.