rdoc

error installing RDoc documentation: incompatible encoding regexp match

落爺英雄遲暮 提交于 2019-12-03 06:34:41
Over the last week, on a few gem install or gem update operations, I've received an error similar to these: ERROR: While generating documentation for sinatra-1.3.1 ... MESSAGE: error generating C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/doc/sinatra-1.3.1/rdoc/README_de_rdoc.html: incompatible encoding regexp match (UTF-8 regexp with IBM437 string) (Encoding::CompatibilityError) similarly: ERROR: While generating documentation for rest-client-1.6.7 ... MESSAGE: error generating C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/doc/rest-client-1.6.7/rdoc/README_rdoc.html: incompatible

ERROR: 'rake/rdoctask' is obsolete and no longer supported

醉酒当歌 提交于 2019-12-01 13:09:29
Out of the blue, I started getting the following error message: (in /Users/me/.rvm/gems/ruby-1.9.3-p125@mysql2/gems/rails-0.9.5) rake aborted! ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead. /Users/me/.rvm/gems/ruby-1.9.3-p125@mysql2/gems/rails-0.9.5/Rakefile:3:in `<top (required)>' When I do rails s (in my development environment terminal - Mac Mountain Lion). This application is in production, so I went to the production environment, did a bundle show, and modified my Gemfile, to harcode the gems versions. Here's what I have now

ERROR: 'rake/rdoctask' is obsolete and no longer supported

有些话、适合烂在心里 提交于 2019-12-01 12:02:58
问题 Out of the blue, I started getting the following error message: (in /Users/me/.rvm/gems/ruby-1.9.3-p125@mysql2/gems/rails-0.9.5) rake aborted! ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead. /Users/me/.rvm/gems/ruby-1.9.3-p125@mysql2/gems/rails-0.9.5/Rakefile:3:in `<top (required)>' When I do rails s (in my development environment terminal - Mac Mountain Lion). This application is in production, so I went to the production

Rails: how do I resolve the 'rake/rdoctask'' is deprecated' warning?

半城伤御伤魂 提交于 2019-11-29 10:46:58
Just a forewarning: I'm a rails noob. When I run: rake db:migrate I get this deprecation warning: WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. at /Users/username/Code/rails/appname/rake/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/rdoctask.rb I'm using: Rails 3.0.1 Rake 0.9.2.2 RSpec 2.0.1 RDoc 3.12 If I uninstall rake 0.9.2.2 and use 0.8.7 there's no warning, but I rather not count that as a solution. After a google search, many sites say I need to update a line in my Rakefile (basically changing require ‘rake/rdoctask’ to require ‘rdoc

no such file to load — rdoc/task

萝らか妹 提交于 2019-11-29 02:27:21
问题 When I run rake db:create I receive this error rake aborted! no such file to load -- rdoc/task (See full trace by running task with --trace) Here is the --trace /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' /home/tpeg/rails_apps/Test/Rakefile:8 /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load' /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_module.rb:25

Can you install documentation for existing gems?

萝らか妹 提交于 2019-11-29 01:47:17
Rubyinside mentioned a blog post on how to speed up gem installation by not installing RI or RDoc. Is it possible to install a gem and subsequently install documentation at a later date, so you can hack in haste and RTFM at leisure? > gem help rdoc Usage: gem rdoc [args] [options] Options: --all Generate RDoc/RI documentation for all installed gems --[no-]rdoc Include RDoc generated documents --[no-]ri Include RI generated documents -v, --version VERSION Specify version of gem to rdoc Arguments: GEMNAME gem to generate documentation for (unless --all) Summary: Generates RDoc for pre-installed

How do I generate RDOC for (all of) Rails?

半世苍凉 提交于 2019-11-28 17:06:42
I can do sudo gem rdoc activerecord --no-ri and sudo gem rdoc actionpack --no-ri both of which give me good docs. But sudo gem rdoc rails --no-ri gives me pretty much nothing, as the Rails gem itself is really just a holder for the others. How can I generate the equivalent of http://api.rubyonrails.org/ ? sudo gem rdoc --all --overwrite The easiest I found was to just download them from railsapi.com and unpack the file into /Library/Ruby/Gems/1.8/doc/rails-2.3.3/rdoc/ If you installed rails with the rdoc (sudo gem install rails) You can access it via gem server Below is my attempt to clarify

Rails: how do I resolve the 'rake/rdoctask'' is deprecated' warning?

会有一股神秘感。 提交于 2019-11-28 04:07:44
问题 Just a forewarning: I'm a rails noob. When I run: rake db:migrate I get this deprecation warning: WARNING: 'require 'rake/rdoctask'' is deprecated. Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead. at /Users/username/Code/rails/appname/rake/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/rdoctask.rb I'm using: Rails 3.0.1 Rake 0.9.2.2 RSpec 2.0.1 RDoc 3.12 If I uninstall rake 0.9.2.2 and use 0.8.7 there's no warning, but I rather not count that as a solution. After a google search, many sites

Why does my Ruby 'ri' tool not return results in command prompt? [duplicate]

为君一笑 提交于 2019-11-28 03:35:16
Possible Duplicate: ruby 1.9 ri problem When I try to use Ruby's ri tool in a command prompt window to get help about classes, methods, etc. it seems to always fail. For example if I type: ri Array I get a message saying: Updating class cache with 0 classes... Nothing known about Array I am using Vista 64 with Ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32] installed. What should I do to configure ri to work? Although this question is old, nobody has yet provided a proper solution. I just ran into the same issue, and found the solution: If you are using RVM : rvm docs generate-ri # <

Nothing known about… when trying ri String#upcase Ruby

天涯浪子 提交于 2019-11-27 12:21:12
I have just installed the RVM and I am reading The Well-Grounded Rubyist book. In the first chapter I am supposed to try ri String#upcase to view documentation on the upcase method, however I get a message saying: Nothing known about String#upcase I found some posts here on SO telling me that it probably is because RDoc is not installed. However I do not understand how to fix it. I am using Mac OSX 10.6, and latest RVM. I have only installed 1.9.2, in addition to the standard Ruby interpreter which come along with the Developer kit from Apple. Casper Did you generate the docs? rvm docs