From c49833fd909bba3ac80567c6460833b0fd47ce1c Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Wed, 7 Feb 2024 08:46:46 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Adding=20dry-monads=20as?= =?UTF-8?q?=20development=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 `' ./spec/test_app/config/environment.rb:4:in `require_relative' ./spec/test_app/config/environment.rb:4:in `' ./spec/rails_helper.rb:8:in `' ./spec/parsers/bulkrax/xml_parser_spec.rb:3:in `' ``` 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: - https://github.com/samvera/bulkrax/pull/900#discussion_r1480995354 - https://github.com/samvera/bulkrax/pull/900 --- bulkrax.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/bulkrax.gemspec b/bulkrax.gemspec index db56602c..3da1cb15 100644 --- a/bulkrax.gemspec +++ b/bulkrax.gemspec @@ -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'