0
我正在尝试使用名为right_scraper的红宝石宝石。我已将宝石添加到我的宝石文件,并且安装正常。我使用的示例代码宝石GitHub的页面(https://github.com/rightscale/right_scraper)尝试使用ruby gem时发生错误 - NameError(未初始化的常量RightScraper :: Scraper)
require 'rubygems'
require 'right_scraper'
scraper = RightScraper::Scraper.new(:basedir => '/tmp', :kind => :cookbook)
scraper.scrape(:type => :git, :url => 'git://github.com/rightscale/right_scraper.git')
运行此代码返回以下错误:
NameError (uninitialized constant RightScraper::Scraper)
有谁知道什么回事?