You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
json 1.8.6 produces a deprecation on ruby 2.7 #399
This line produces the following deprecation message:
<snip>/json-1.8.6/lib/json/common.rb:155: warning: Using the last argument as keyword parameters is deprecated
It'd be nice to get a patch-level bump to silence this particular deprecation.
Reacted by Ricardo Amendoeira, Andrew Kress, Julien DeFrance, Marian Mrózek, Aldo Solís, elly millican, Dillon Welch, Junya Ogura, Steven Williamson, Bryan Petty and 54 more
This same problem occurs in version 2.2. What is strange is that it appears to be immune to setting RUBYOPT='-W:no-deprecated -W:no-experimental' - the deprecation messages print like crazy anyway (and I have seen it suppress the same messages from every other source that was producing them.)
Reacted by Chris Ward, Steve Sloan, Andrii Andrieiev, Cristian Miranda, Dean Lin, Gabriela Moreira, Hashim G, andreaswidjaya, Liron Beniash Hacohen, Christian Nadeau and 21 more
Reacted by Loren Lundgren , jm3, Mohammedsalim Shivani, Roger Garza, Parikshit Singh and Francois
Reacted by Joe Sak, Scott Goodell, Luciano Santobuono, Faizan Ahmed, Oksana Kaliniouk, Parikshit Singh, Mayuresh Srivastava and Francois
Reacted by Miguel Peniche, Andrii Andrieiev, andreaswidjaya, Alexander Tsirel, Mohammedsalim Shivani, Parikshit Singh and Francois
Activity
mike-loopvoc commentedon Mar 16, 2020
This same problem occurs in version 2.2. What is strange is that it appears to be immune to setting RUBYOPT='-W:no-deprecated -W:no-experimental' - the deprecation messages print like crazy anyway (and I have seen it suppress the same messages from every other source that was producing them.)
leoplct commentedon Jun 8, 2020
+1 It appears everywhere
rdp commentedon Jun 24, 2020
Please it's so chatty...
hsbt commentedon Jun 25, 2020
I'm not sure what maintenance status about v1.8 by flori as primary owner.
At least, I have no plan to maintain json-1.8.x in 2020. I suggest to upgrade json-2.3.0
Don't require specific version of json gem
updating json in order to fix "export RUBYOPT='-W:no-deprecated'"
miguelpeniche commentedon Oct 14, 2020
Any solutions?
hsbt commentedon Oct 14, 2020
Use json-2.x.
joevandyk commentedon Oct 22, 2020
There's a lot of gems that still require json ~> 1.8... would be very nice to have a 1.8.7 that fixes this particular warning.
airblade commentedon Nov 27, 2020
Using Rails, this seems to get rid of the warnings:
joemsak commentedon Feb 23, 2021
@airblade For me, your solution was no dice :(
Do not specify "json" gem's version
Do not specify "json" gem's version
Do not specify "json" gem's version
Do not specify "json" gem's version
andregit1 commentedon Mar 18, 2021
you're solutions really saved my day !
Explicitly convert hash to keyword arguments
Explicitly convert hash to keyword arguments
Fix json v1.8.6 common.rb warning
Fix json v1.8.6 common.rb warning
Prevent deprecation message, see here: ruby/json#399
Upgrade Faraday
gentaro-sakamoto commentedon Apr 19, 2023
ref.
Fix kwargs handling for ruby 3
Fix kwargs handling for ruby 3
Fix kwargs handling for ruby 3
Fix kwargs handling for ruby 3
Fix kwargs handling for ruby 3
v1.8.6 with ruby 3.0.X compatibility (#2)