我的应用程序使用熊猫进行视频嵌入。我在 config 中创建了 panda.rb 初始化程序和 panda.yml 文件。我能够连接到熊猫(启动 rails 控制台)。当我执行 Panda::Profile.all 时,出现以下错误:
1.8.7-p371 :001 > Panda::Profile.all
Ethon::Errors::InvalidOption: The option: disable_ssl_peer_verification is invalid.
Please try ssl_verifypeer instead of disable_ssl_peer_verification.
from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/lib/ethon/easy.rb:255:in
`set_attributes'
from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/lib/ethon/easy.rb:253:in
`each_pair'
基于https://github.com/typhoeus/typhoeus/issues/226#issuecomment-9919517上针对此错误消息建议的 typhoeus 更改
我在easy.rb(home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/easy.rb)中添加了行需要'typhoeus/adapters/faraday'
但是,当我尝试执行 rails c 时,现在出现以下错误:
/home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/typhoeus-
0.6.2/lib/typhoeus/adapters/faraday.rb:19: undefined method `supports_parallel='
for Faraday::Adapter::Typhoeus:Class (NoMethodError)
from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-.5.10/lib/ethon/easy.rb:11:in
`require'
from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/lib/ethon/easy.rb:11
from /home/vasu/.rvm/gems/ruby-1.8.7-p371/gems/ethon-0.5.10/lib/ethon.rb:9:in
`require'
查看我的应用程序中的 gems 列表显示它正在使用以下内容:ethon (0.5.10) faraday (0.7.6) typhoeus (0.6.2)
我究竟做错了什么?