httparty icon indicating copy to clipboard operation
httparty copied to clipboard

csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0

Open diei opened this issue 1 year ago • 1 comments
trafficstars

After update to Ruby 3.3.0 I get following information:

~/.rvm/gems/ruby-3.3.0/gems/httparty-0.21.0/lib/httparty.rb:10: warning: csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add csv to your Gemfile or gemspec. Also contact author of httparty-0.21.0 to add csv into its gemspec.

diei avatar Mar 07 '24 13:03 diei

Here for the same reason. Other gems have resolved adding the gems to the gemspec, in this case csv.

here an example: https://github.com/thinreports/thinreports-generator/pull/134/files

wmanica avatar Mar 28 '24 16:03 wmanica

#796 has already been merged, so all that remains is for the new version to be released.

mishina2228 avatar Apr 24 '24 13:04 mishina2228

Whoops! I thought I released new version. Looks like I forgot. I'll do that now.

jnunemaker avatar Apr 29 '24 12:04 jnunemaker

0.22 is out.

jnunemaker avatar Apr 29 '24 12:04 jnunemaker

Just an observation regarding this: this possibly breaks using the existing default gem without require "csv" for everyone with this gem in dependencies (uninitialized constant SomeClass::CSV) – I guess in Rails only.

krystof-k avatar May 10 '24 07:05 krystof-k

@krystof-k can you explain how come Rails is not requiring the "csv" gem that is now in our Gemfile like it does with any other gem ? 🤔

wJoenn avatar Jun 03 '24 09:06 wJoenn

@wJoenn I have no idea. Rails 🪄🎩.

krystof-k avatar Jun 03 '24 12:06 krystof-k