Skip to content

Commit ae2e6af

Browse files
takaokoujiclaude
andcommitted
Add csv gem dependency for Ruby 3.4+ support
Ruby 3.4 removed csv from the default gems, requiring it to be explicitly added as a dependency. The gem is used in three places: - lib/jsonapi/basic_resource.rb:734 - parsing filter values - lib/jsonapi/request.rb:353 - parsing included resources - lib/jsonapi/request.rb:415 - parsing sorts Without this dependency, Ruby 3.4 fails with: cannot load such file -- csv (LoadError) Adding csv as a runtime dependency is safe for all Ruby versions as it's available in the standard library for older versions. Fixes Ruby 3.4 CI failures. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 013f87a commit ae2e6af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

jsonapi-resources.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
3030
spec.add_dependency 'activerecord', '>= 5.1'
3131
spec.add_dependency 'railties', '>= 5.1'
3232
spec.add_dependency 'concurrent-ruby'
33+
spec.add_dependency 'csv' # Required for Ruby 3.4+ (no longer a default gem)
3334
end

0 commit comments

Comments
 (0)