Proporcione una descripción del problema que está experimentando.
ruby2_keywords
v0.0.3
rompe algo y no está bloqueado en v0.0.2
en la gemspec de faraday 1.3.0ruby2_keywords
a v0.0.2
solucionó el problemaProporcione también el mensaje de excepción / stacktrace o cualquier otro detalle útil.
.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)
Esto afecta a Ruby 2.5 y versiones anteriores.
Compatibilidad con Ruby 2.5 no proporcionada por 0.0.3: https://github.com/ruby/ruby2_keywords/issues/9 : usa la versión de 2 argumentos de un método, el segundo argumento se introdujo en 2.6.
Gracias por plantear esto @silviusimeria , encontré un problema relacionado en ruby2_keyword
: https://github.com/ruby/ruby2_keywords/issues/9
¡Parece que no eres el único afectado y ya hay gente trabajando en una solución!
Le daría unas horas para ver cómo funcionan las cosas, si solucionan el problema y lanzan una v0.0.4, entonces podemos evitar una versión adicional con solo el bloqueo de la versión 😃
Por ahora, si esto es un problema para alguien, bloquee el ruby2_keyword
en su Gemfile como una solución temporal hasta que decidamos qué hacer aquí 👍
Se ha lanzado v0.0.4: https://github.com/ruby/ruby2_keywords/pull/10#issuecomment -762899956
@silviusimeria, la solución indica compatibilidad con Ruby 2.5, pero veo que estás en Ruby 2.4, ¿podrías verificar y confirmar si esto también funciona para ti ahora?
Parece que también funciona con 2.4.
Comentario más útil
Se ha lanzado v0.0.4: https://github.com/ruby/ruby2_keywords/pull/10#issuecomment -762899956