我仍然不赞成rake / rdoctask [英] I have still rake/rdoctask deprecated warning

查看:90
本文介绍了我仍然不赞成rake / rdoctask的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经进行了捆绑软件更新,现在在运行rake命令后仍然不赞成rake / rdoctask的警告。

 警告: 'require'rake / rdoctask'已过时。请改为使用要求 rdoc /任务(在RDoc 2.4.2+中)。 
/home/cheetah/.rvm/gems/ruby-1.8.7-p302@tobiska/gems/rake-0.9.2.2/lib/rake/rdoctask.rb

我试图阅读此提示 http://matthew.mceachen.us/blog/howto-fix-rake-rdoctask-is-deprecated-use-rdoc- task-instead-1169.html ,但我的Rakefile没问题。



我不知道如何解决此问题。有小费吗?非常感谢。



马丁

解决方案

您可以有多个版本您可以通过运行

  $ gem list 
=>查看它们。耙

(0.9.2.2,0.9.2,0.8.7)
定义版本,请在Gemfile中将其定义为

  gem'rake','0.8.7'

然后运行

  bundle update rake 

您的项目版本现在已在Gemfile中指定,并且您的警告也消失了。 / p>

I've made bundle update a now I have still rake/rdoctask deprecated warning after running rake command.

WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /home/cheetah/.rvm/gems/ruby-1.8.7-p302@tobiska/gems/rake-0.9.2.2/lib/rake/rdoctask.rb

I tried to read this tip http://matthew.mceachen.us/blog/howto-fix-rake-rdoctask-is-deprecated-use-rdoc-task-instead-1169.html but my Rakefile is OK.

I have no idea, how to solve this problem. Any tips? Thanks a lot.

Martin

解决方案

You can have multiple versions of rake on your system and you can view them by running

$ gem list
=> rake

(0.9.2.2, 0.9.2, 0.8.7) To define a version in my project, define it in the Gemfile as

gem 'rake', '0.8.7'

then run

bundle update rake

Your project version is now as specified in the Gemfile and your WARNING is now gone.

这篇关于我仍然不赞成rake / rdoctask的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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