Ruby on rails 在Rails gem文件中指定多个gem约束的语法是什么?

Ruby on rails 在Rails gem文件中指定多个gem约束的语法是什么?,ruby-on-rails,capistrano,gemfile,Ruby On Rails,Capistrano,Gemfile,对于多个依赖项,Gemfile的正确语法是什么 尝试使用Capistrano时,我收到一条错误消息: cap aborted! NotImplementedError: unsupported key type `ssh-ed25519' net-ssh requires the following gems for ed25519 support: * rbnacl (>= 3.2, < 5.0) * rbnacl-libsodium, if your system doesn

对于多个依赖项,Gemfile的正确语法是什么

尝试使用Capistrano时,我收到一条错误消息:

cap aborted!
NotImplementedError: unsupported key type `ssh-ed25519'
net-ssh requires the following gems for ed25519 support:
 * rbnacl (>= 3.2, < 5.0)
 * rbnacl-libsodium, if your system doesn't have libsodium installed.
 * bcrypt_pbkdf (>= 1.0, < 2.0)
See https://github.com/net-ssh/net-ssh/issues/478 for more information
Gem::LoadError : "can't activate rbnacl (< 5.0, >= 3.2.0), already activated rbnacl-5.0.0. Make sure all dependencies are added to Gemfile."
cap中止!
NotImplementedError:不支持的密钥类型“ssh-ed25519”
net ssh需要以下gems来支持ed25519:
*rbnacl(>=3.2,<5.0)
*如果您的系统没有安装LibNadium,则为RBNacil LibNadium。
*bcrypt_pbkdf(>=1.0,<2.0)
看见https://github.com/net-ssh/net-ssh/issues/478 更多信息
Gem::LoadError:“无法激活rbnacl(<5.0,>=3.2.0),已激活rbnacl-5.0.0。请确保所有依赖项都添加到Gemfile。”
我将以下内容放入我的文件:

gem 'rbnacl', '>= 3.2, < 5.0', :require => false
gem 'rbnacl-libsodium', :require => false
gem 'bcrypt_pbkdf', '>= 1.0, < 2.0', :require => false
gem'rbnacl','>=3.2,<5.0',:require=>false
gem'rbnacl-libnail',:require=>false
gem'bcrypt_pbkdf','>=1.0,<2.0',:require=>false
GEM(和req false)以前在GEM文件中

当我添加版本要求时,bundle install出现以下错误:

[!] There was an error parsing `Gemfile`: Illformed requirement [">= 3.2, < 5.0"]. Bundler cannot continue.

 #  from /Users/myname/MySite/Gemfile:70
 #  -------------------------------------------
 #    gem 'capistrano-maintenance', '~> 1.0', :require => false
 >    gem 'rbnacl', '>= 3.2, < 5.0', :require => false
 #    gem 'rbnacl-libsodium', :require => false
 #  -------------------------------------------
[!]分析'Gemfile'时出错:错误的需求[“>=3.2,<5.0”]。绑定程序无法继续。
#来自/Users/myname/MySite/Gemfile:70
#  -------------------------------------------
#gem'capistrano维护','~>1.0',:require=>false
>gem'rbnacl','>=3.2,<5.0',:require=>false
#gem'rbnacl-libnail',:require=>false
#  -------------------------------------------

使用数组或仅列出它:

gem 'rbnacl', ['>= 3.2', '< 5.0']
gem 'bcrypt_pbkdf', '>= 1.0', '< 2.0'
gem'rbnacl',['>=3.2','<5.0']
gem'bcrypt_pbkdf','>=1.0','<2.0'
gem安装'rbnacl:
gem install 'rbnacl:<5.0' rbnacl-libsodium 'bcrypt_pbkdf:<2.0'