I want generate a digital book from Github repository but there's a problem with my command gem or gems from Ruby on Windows 10

huangapple go评论125阅读模式
英文:

I want generate a digital book from Github repository but there's a problem with my command gem or gems from Ruby on Windows 10

问题

I want to generate a digital book from GitHub repository, but there's a problem with my command gem or gems from Ruby on Windows 10.

当我尝试执行示例中的命令在我的目录中时:

bundle install

出现了与 "undefined method untaint" 相关的错误:

undefined method untaint String:Method Error

这是较旧的 Ruby 版本中的错误,但我使用的是 Ruby 版本 2.4.18,而此存储库是使用版本 1.16.5 创建的,因此我的系统安装了 Bundler 1.16.5 版本,这会导致错误。我该如何解决它?

我想要从 GitHub 生成数字书籍,以使用 Ruby 和 Asciidoctor。

I want generate a digital book from Github repository but there's a problem with my command gem or gems from Ruby on Windows 10

英文:

I want to generate a digital book from GitHub repository, but there's a problem with my command gem or gems from Ruby on Windows 10

When I want to execute for example as the repository explain to me on my directory

bundle install

An error occurs related to "undefined method untaint"

undefined method untaint String:Method Error

It's a bug in older ruby versions, but I have a ruby version 2.4.18, but this repository was
created with version 1.16.5, so my system installed the version of Bundler 1.16.5, it's a problem
because generate the bug
How can I solve it?

I want to generate the digital book in GitHub to use ruby and Asciidoctor.

I want generate a digital book from Github repository but there's a problem with my command gem or gems from Ruby on Windows 10

答案1

得分: 0

core/Object:untaint 提到:

> 此方法已被弃用,并将在 Ruby 3.2 中删除。

因此,请双重检查您的 ruby -v 版本。
使用 rbenv 可能有助于确保您的项目使用正确的 Ruby 版本。
然后尝试 gem install bundler -v '1.16.5'

英文:

core/Object:untaint mentions:

> This method is deprecated and will be removed in Ruby 3.2.

So double-check your ruby -v version.
Using rbenv could help to make sure your project is using the right Ruby version.
Then try gem install bundler -v '1.16.5'.

huangapple
  • 本文由 发表于 2023年8月5日 06:53:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76839488.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定