让gcal4ruby宝石工作 [英] Getting gcal4ruby gem to work

查看:93
本文介绍了让gcal4ruby宝石工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我发现了一个名为gcal4ruby的gem,它好像是做的。

我试图创建一个RoR网络应用程序,允许用户连接到他们的账户到google日历。正确的事情基于查看示例代码和文档。



我运行了gem install,cmd宣称安装正常。



然而,当我将gem添加到我的gemfile时,然后尝试再次运行服务器,我得到:
在任何gem源中找不到'gcal4ruby(= 0.0.5,runtime)'
尝试运行'bundle install'。

然后我尝试了bundle install,它基本上让我知道上面的消息和一行:
获取源索引for http://rubygems.org/
找不到'gcal4ruby(= 0.0.5,runtime)'在任何宝石来源中



然而,当我输入gem list -dg时,gcal4ruby(0.5.5)出现在列表中。
我已经试过添加require和include,但是这只是让我初始化常量错误。



其他可能相关的细节:
ruby​​ 1.8 .7
rails 3.0.1

gem check --alien return:
mysql-2.8.1-x86-mingw32有1个问题
.require_paths:
额外文件
*注意:当我做任何事情时,这似乎不会对我产生负面影响。



如果可能,请提供带有工作代码样本的教程/网站。



干杯,
Zigu

解决方案

您可以发布您的gemfile吗?



我猜你的Gemfile读取的是

  gem'gcal4ruby' ,'0.0.5'

这意味着它只会查找特定的版本。所以有两种方法可以解决这个问题。
$ b


  1. 将其更改为最低版本语法

    gem'gcal4ruby' ,'> = 0.0.5'

  2. ','0.5.5'


希望有帮助


I'm trying to create a RoR web application that allows people to connect to their accounts to google calendar.

I found a gem called gcal4ruby that seemed to do the right things based on looking at sample code and its documentation.

I ran gem install and the cmd claimed the installation was ok.

However, when I added the gem to my gemfile then try to run the server again I get: Could not find 'gcal4ruby (= 0.0.5, runtime)' in any of the gem sources Try running 'bundle install'.

Then I tried bundle install which basically gets me the message above and a line: Fetching source index for http://rubygems.org/ Could not find 'gcal4ruby (= 0.0.5, runtime)' in any of the gem sources

Yet when I type in "gem list -d g", gcal4ruby (0.5.5) appears on the list. I've tried adding in requires and includes but that just gets me uninitialized constant errors.

Other details that may be relevant: ruby 1.8.7 rails 3.0.1

gem check --alien returns: mysql-2.8.1-x86-mingw32 has 1 problems .require_paths: Extra file *Note: This doesn't seem to negatively impact me when I'm doing anything though.

If possible, please supply tutorials/sites with samples of working code.

Cheers, Zigu

解决方案

Could you post your gemfile please?

I'm guessing your Gemfile reads

gem 'gcal4ruby', '0.0.5'

which means it will only look for that specific verison. So there are two ways to fix this.

  1. Change it to minimum version syntax

    gem 'gcal4ruby', '>= 0.0.5'

  2. Change to correct specific gem version

    gem 'gcal4ruby', '0.5.5'

Hope that helps

这篇关于让gcal4ruby宝石工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆