我试图给active_merchant
gem添加一个新的网关,当我尝试从源代码运行它时,出现'require'问题。在修改一个gem时需要求助帮助(active_merchant)
(我觉得我的问题不是active_merchant
特异性,但更多的是普通的Ruby环境问题的,所以我不认为在使用特定的宝石有什么关系。)
这就是我完成:
克隆Git的回购为AM,我的本地目录 “C:\用户\ JB \文档\的Aptana Studio的3工作区\ active_merchant”
走到哪里做的变化“计费/网关“目录(这只是背景我NFO ..)
复制的 “用法示例” 例如在AM的Git的回购协议
C:\Users\jb\Documents\Aptana Studio 3 Workspace\simple_gw_test.rb
,它的开头为:
require 'rubygems'
require 'active_merchant'然 “红宝石simple_gw_test.rb”,并得到了错误消息:
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- active_merchant (LoadError) from <internal:lib/rubygems/custom_require>:29:in 'require' from simple_gw_test.rb:3:in '<main>'
这是可以理解的,因为我没有active_merchant
宝石安装
但是,我想使用样本文件中的下载源,因为我正在不断修改网关源。
我试图
require '/Users/jb/Documents/Aptana Studio 3 Workspace/active_merchant'
然后得到了同样的错误: '从simple_gw_test.rb :2:`<主要>'
<internal:lib/rubygems/custom_require>:29:in
;require': no such file to load -- /Users/jb/Documents/Aptana Studio 3 Workspace/active_merchant (LoadError) from <internal:lib/rubygems/custom_require>:29:in
需要
任何红宝石大师谁都可以流露出一些光芒大大appreaciated!注:我在Windows 7 x64上使用MRI 1.9.2。