Where to put ruby .gem files so that Shoes.setup can find them?

女生的网名这么多〃 提交于 2019-12-05 17:54:31

The code looks fine. For example, this is just peachy:

Shoes.setup do
  gem 'RedCloth'
end

require 'RedCloth'

Shoes.app do
  para RedCloth.new('*awesome*').to_html
end

As to where the gems are installed, _why himself answers this:

By putting your gem list in the Shoes.setup block, you’ll end up encountering the Shoes popup seen above if any of the gems happens to be absent. Gems are installed in ~/.shoes, to avoid needing superuser rights. (And just to keep Shoes away from messing with your normal Ruby stuff.)

Anytime you have trouble checking whether shoes is able to find the gem or not, You can see the gems available to shoes at ~/.shoes/+gem/gems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!