Skip to content

Commit

Permalink
⚙️ Adding dry-monads as development dependency
Browse files Browse the repository at this point in the history
Without the previously committed `require 'dry-monads'` we encounter the
following error:

```
bundle exec rspec

NameError:
  uninitialized constant Dry::Monads::Result::Transformer
 ./spec/test_app/config/application.rb:15:in `<top (required)>'
 ./spec/test_app/config/environment.rb:4:in `require_relative'
 ./spec/test_app/config/environment.rb:4:in `<top (required)>'
 ./spec/rails_helper.rb:8:in `<top (required)>'
 ./spec/parsers/bulkrax/xml_parser_spec.rb:3:in `<top (required)>'
```

The error repeats everywhere.

When I add the development dependency and remove the require, I see the
same error.

So, to be clear about this development dependency, I've added it to the
gemspec.

See:

- #900 (comment)
- #900
  • Loading branch information
jeremyf committed Feb 7, 2024
1 parent cb666ee commit c49833f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bulkrax.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Gem::Specification.new do |s|
s.add_dependency 'rubyzip'
s.add_dependency 'simple_form'

s.add_development_dependency 'dry-monads'
s.add_development_dependency 'sqlite3', '~> 1.3.13'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'redis', '~> 4.2'
Expand Down

0 comments on commit c49833f

Please sign in to comment.