Veuillez fournir une description du problème que vous rencontrez.
ruby2_keywords
v0.0.3
casse quelque chose et elle n'est pas verrouillée sur v0.0.2
dans le gemspec de faraday 1.3.0ruby2_keywords
à v0.0.2
résolu le problèmeVeuillez également fournir le message d'exception/la trace de la pile ou tout autre détail utile.
.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:84:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'faraday'.
Gem Load Error is: wrong number of arguments (given 2, expected 1)
Backtrace for gem load error is:
/gems/ruby-2.4.1@myproject/gems/ruby2_keywords-0.0.3/lib/ruby2_keywords.rb:2:in `private_method_defined?'
/gems/ruby-2.4.1@myproject/gems/ruby2_keywords-0.0.3/lib/ruby2_keywords.rb:2:in `<class:Module>'
/gems/ruby-2.4.1@myproject/gems/ruby2_keywords-0.0.3/lib/ruby2_keywords.rb:1:in `<top (required)>'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/gems/ruby-2.4.1@myproject/gems/faraday-1.3.0/lib/faraday/rack_builder.rb:3:in `<top (required)>'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/gems/ruby-2.4.1@myproject/gems/faraday-1.3.0/lib/faraday.rb:20:in `<top (required)>'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:81:in `require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:81:in `block (2 levels) in require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `each'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `block in require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `each'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler.rb:114:in `require'
/Users/asdf123/myproject/config/application.rb:9:in `<top (required)>'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:92:in `require'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:92:in `preload'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
-e:1:in `<main>'
Bundler Error Backtrace:
(Bundler::GemRequireError)
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:80:in `block (2 levels) in require'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `each'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `block in require'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `each'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `require'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler.rb:114:in `require'
from /Users/asdf123/myptoject/config/application.rb:9:in `<top (required)>'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:92:in `require'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:92:in `preload'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from -e:1:in `<main>'
Just upgrade, bundled and then tried to run the project:
faraday (1.3.0)
faraday-net_http (~> 1.0)
multipart-post (>= 1.2, < 3)
ruby2_keywords
faraday_middleware (1.0.0)
faraday (~> 1.0)
ruby2_keywords (0.0.3)
Cela affecte Ruby 2.5 et avant.
Prise en charge de Ruby 2.5 non fournie par la 0.0.3 : https://github.com/ruby/ruby2_keywords/issues/9 - elle utilise la version à 2 arguments d'une méthode, le 2e argument a été introduit dans la version 2.6.
Merci d'avoir soulevé cette @silviusimeria , j'ai trouvé un problème connexe dans ruby2_keyword
: https://github.com/ruby/ruby2_keywords/issues/9
Il semble que vous ne soyez pas le seul concerné et il y a déjà des gens qui travaillent sur un correctif !
Je lui donnerais quelques heures pour voir comment les choses se passent, s'ils résolvent le problème et poussent une v0.0.4, alors nous pouvons éviter une version supplémentaire avec juste le verrou de version 😃
Pour l'instant, si cela pose un problème à quelqu'un, veuillez verrouiller le ruby2_keyword
dans votre Gemfile en tant que correctif temporaire jusqu'à ce que nous décidions quoi faire ici 👍
La v0.0.4 est sortie : https://github.com/ruby/ruby2_keywords/pull/10#issuecomment -762899956
@silviusimeria le correctif indique la compatibilité avec Ruby 2.5, mais je vois que vous êtes sur Ruby 2.4, pourriez-vous vérifier et confirmer si cela fonctionne également pour vous maintenant?
Semble fonctionner avec 2.4 aussi.
Commentaire le plus utile
La v0.0.4 est sortie : https://github.com/ruby/ruby2_keywords/pull/10#issuecomment -762899956