Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 我如何在我的项目中加入活跃商人的Raymond Law fork?_Ruby On Rails_Paypal_Activemerchant - Fatal编程技术网

Ruby on rails 我如何在我的项目中加入活跃商人的Raymond Law fork?

Ruby on rails 我如何在我的项目中加入活跃商人的Raymond Law fork?,ruby-on-rails,paypal,activemerchant,Ruby On Rails,Paypal,Activemerchant,我正在用Rails 3开发一个基于订阅的网站,我需要使用PayPal Express Checkout(英国)进行定期付款。我发现ActiveMerchant默认情况下不支持它,因此我看到了以下博文: 由于对Rails非常陌生,并且遵循使用Gemfile和bundle安装来安装其他第三方代码的方法,我尝试将以下内容添加到Gemfile中: gem 'active_merchant', :git => 'https://github.com/rayvinly/active_merchant.

我正在用Rails 3开发一个基于订阅的网站,我需要使用PayPal Express Checkout(英国)进行定期付款。我发现ActiveMerchant默认情况下不支持它,因此我看到了以下博文:

由于对Rails非常陌生,并且遵循使用Gemfile和bundle安装来安装其他第三方代码的方法,我尝试将以下内容添加到Gemfile中:

gem 'active_merchant', :git => 'https://github.com/rayvinly/active_merchant.git'
然后运行bundle安装。我得到以下错误:

Updating https://github.com/rayvinly/active_merchant.git
Fetching source index for http://rubygems.org/
Could not find gem 'active_merchant (>= 0)' in https://github.com/rayvinly/active_merchant.git (at master).
Source does not contain any versions of 'active_merchant (>= 0)'
我不确定这是不是将其纳入我的项目的正确方法

我真正想做的是安装最新的ActiveMerchant gem,然后添加Raymond创建的额外网关部分。然而,我似乎无法找到我需要将文件放在我的项目中的什么位置,因为我不确定ActiveMerchant在哪里

有人能给我指出正确的方向吗?这也许是我错过的一件事,但我就是看不到。我的头还在绕轨道转呢!10年的PHP经验


提前感谢您的帮助。

通常,如果存在
.gempec
文件,您只能从
git
repo进行安装。大多数Gem主归档文件都包含这一点,但有些出于任何原因没有,而是在构建Gem之前根据需要生成它。这样做的副作用是很难安装gem的“边缘”版本


您可以通过分叉该存储库并构建自己的活动_merchant.gemspec文件来修复此问题,该文件将使其可从您的分支机构安装。

shopify存储库的最新版本中有一个.gemspec文件,如果您将其拉入您的存储库,则您的gem行需要如下所示:

gem 'activemerchant', :git => 'https://github.com/rayvinly/active_merchant.git'

请注意gem名称中没有下划线。

谢谢您的回复。我最后添加了一个插件: