This forum is no longer active. Please post your questions to our new community site

ri not working?

Subscribe to ri not working? 5 post(s), 2 voice(s)

Avatar rob99 20 post(s)

Hi all,

Why I try ri in my rubystack (1.1 on OSX 10.4.1) it doesn’t work properly. For example ri Hash gives me:
------------ Class: Hash require ‘hpricot’

require ‘hpricot’

Class methods:
-- from_xml

Instance methods:
--—- add_html_class!, environmentize_keys!, except, only, protect_keys!, respond_to?, symbolize_keys!, to_html_attributes, to_mash, to_params, to_xml_attributes, unprotect_keys!

Avatar Manuel 71 post(s)

Hi rob99,

We’ve trying to reproduce your problem without success. But you can try to install the hpricot gem to see if it fixes it.

gem install hpricot

Remember that gem and ri commands should be run inside a rubyconsole.

Avatar rob99 20 post(s)

Hi Manuel,

Just installed hpricot 0.6 ruby and re-tried. Same result as before.

Avatar Manuel 71 post(s)

Hi again,

Can you run the following commands just before trying to run ri Hash and send us the output?

gem list

Thanks rob99

Avatar rob99 20 post(s)

bash-2.05b$ export
declare -x DYLD_LIBRARY_PATH=”/Applications/rubystack-1.0/common/lib:/Applications/rubystack-1.0/sqlite/lib:/Applications/rubystack-1.0/subversion/lib:/Applications/rubystack-1.0/common/lib:/Applications/rubystack-1.0/mysql/lib:/Applications/rubystack-1.0/apache2/lib:/Applications/rubystack-1.0/ruby/lib:”
declare -x GEM_HOME=”/Applications/rubystack-1.0/ruby/lib/ruby/gems/1.8”
declare -x HOME=”/Users/rob”
declare -x LD_LIBRARY_PATH=”/Applications/rubystack-1.0/common/lib:/Applications/rubystack-1.0/sqlite/lib:/Applications/rubystack-1.0/subversion/lib:/Applications/rubystack-1.0/common/lib:/Applications/rubystack-1.0/mysql/lib:/Applications/rubystack-1.0/apache2/lib:/Applications/rubystack-1.0/ruby/lib:”
declare -x LOGNAME=”rob”
declare -x MAGICK_CODER_MODULE_PATH=”/Applications/rubystack-1.0/common/lib/ImageMagick-6.3.4/modules-Q16/coders”
declare -x MAGICK_CONFIGURE_PATH=”/Applications/rubystack-1.0/common/lib/ImageMagick-6.3.4/config:/Applications/rubystack-1.0/common/share/ImageMagick-6.3.4/config”
declare -x MAGICK_HOME=”/Applications/rubystack-1.0/common”
declare -x OLDPWD
declare -x PATH=”/Applications/rubystack-1.0/common/bin:/Applications/rubystack-1.0/sqlite/bin:/Applications/rubystack-1.0/subversion/bin:/Applications/rubystack-1.0/common/bin:/Applications/rubystack-1.0/php/bin:/Applications/rubystack-1.0/mysql/bin:/Applications/rubystack-1.0/apache2/bin:/Applications/rubystack-1.0/ruby/bin:/usr/bin:/bin:/usr/sbin:/sbin”
declare -x PWD=”/Applications/rubystack-1.0/projects”
declare -x RUBYLIB=”/Applications/rubystack-1.0/ruby/lib:/Applications/rubystack-1.0/ruby/lib/ruby:/Applications/rubystack-1.0/ruby/lib/ruby/1.8:/Applications/rubystack-1.0/ruby/lib/ruby/1.8/i686-darwin8.5.3:/Applications/rubystack-1.0/ruby/lib/ruby/1.8/powerpc-darwin8.4.0:/Applications/rubystack-1.0/ruby/lib/ruby/site_ruby:/Applications/rubystack-1.0/ruby/lib/ruby/site_ruby/1.8:/Applications/rubystack-1.0/ruby/lib/ruby/site_ruby/1.8/i686-darwin8.5.3:/Applications/rubystack-1.0/ruby/lib/ruby/site_ruby/1.8/powerpc-darwin8.4.0”
declare -x RUBYOPT=”rubygems”
declare -x RUBY_HOME=”/Applications/rubystack-1.0/ruby”
declare -x SECURITYSESSIONID=”b29980”
declare -x SHELL=”/bin/bash”
declare -x SHLVL=”2”
declare -x TERM=”xterm-color”
declare -x TERM_PROGRAM=””
declare -x USER=”rob”
declare -x __CF_USER_TEXT_ENCODING=”0×1F5:0:0”
bash-2.05b$ gem list


abstract (1.0.0) a library which enable you to define abstract method in Ruby

actionmailer (2.0.2) Service layer for easy email delivery and testing.

actionpack (2.0.2) Web-flow and rendering framework putting the VC in MVC.

activerecord (2.0.2) Implements the ActiveRecord pattern for ORM.

activeresource (2.0.2) Think Active Record for web resources.

activesupport (2.0.2) Support and utility classes used by the Rails framework.

capistrano (2.1.0) Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.

cgi_multipart_eof_fix (2.5.0) Fix an exploitable bug in CGI multipart parsing.

daemons (1.0.9) A toolkit to create and control daemons in different ways

data_objects (0.2.0) The Core DataObjects class

datamapper (0.2.5) An Object/Relational Mapper for Ruby

do_mysql (0.2.3) A DataObject.rb driver for mysql

erubis (2.4.1) a fast and extensible eRuby implementation which supports multi-language

fastthread (1.0.1) Optimized replacement for thread.rb primitives

gem_plugin (0.2.3) A plugin system based on rubygems that uses dependencies only

highline (1.4.0) HighLine is a high-level command-line IO library.

hoe (1.4.0) Hoe is a way to write Rakefiles much easier and cleaner.

hpricot (0.6) a swift, liberal HTML parser with a fantastic library

json (1.1.2) A JSON implementation as a Ruby extension

json_pure (1.1.2) A JSON implementation in Ruby

mailfactory (1.2.3) MailFactory is a pure-ruby MIME mail generator

merb (0.9.1, 0.5.3, 0.5.2) (merb-core + merb-more) all of Merb

merb-action-args (0.9.1) Merb plugin that provides support for ActionArgs

merb-assets (0.9.1) Merb plugin that provides the helpers for assets and asset bundling

merb-builder (0.9.1) Merb plugin that provides Builder support

merb-core (0.9.1) Merb. Pocket rocket web framework.

merb-gen (0.9.1) Merb More: Merb's Application and Plugin Generators

merb-haml (0.9.1) Merb plugin that provides HAML support

merb-mailer (0.9.1) Merb plugin that provides mailer functionality to Merb

merb-more (0.9.1) (merb - merb-core) merb-more. The Full Stack. Take what you need; leave what you don’t.

merb-parts (0.9.1) Merb More: Merb plugin that provides Part Controllers.

merb_datamapper (0.5) Merb plugin that provides DataMapper support for Merb

merb_helpers (0.5) Helper support for merb (similar to the Rails form helpers)

merbful_authentication (0.1.2, 0.1.1) A Merb plugin that is essentially a port of Rick Olsons restful_authentication plugin for rails

mime-types (1.15) Manages a MIME Content-Type that will return the Content-Type for a given filename.

mongrel (1.1.3) A small fast HTTP library and server that runs Rails, Camping, Nitro and Iowa apps.

mongrel_cluster (1.0.5) Mongrel plugin that provides commands and Capistrano tasks for managing multiple Mongrel processes.

needle (1.3.0) Needle is a Dependency Injection/Inversion of Control container for Ruby. It supports both type-2 (setter) and type-3 (constructor) injection. It takes advantage of the dynamic nature of Ruby to provide a rich and flexible approach to injecting dependencies.

net-sftp (1.1.0) Net::SFTP is a pure-Ruby implementation of the SFTP client protocol.

net-ssh (1.1.2) Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.

ParseTree (2.1.1) ParseTree is a C extension (using RubyInline) that extracts the parse tree for an entire class or a specific method and returns it as a s-expression (aka sexp) using ruby’s arrays, strings, symbols, and integers.

rack (0.2.0) a modular Ruby webserver interface

rails (2.0.2) Web-application framework with template engine, control-flow layer, and ORM.

rake (0.8.1) Ruby based make-like utility.

ramaze (0.3.0) Ramaze is a simple and modular web framework

RedCloth (3.0.4) RedCloth is a module for using Textile and Markdown in Ruby. Textile and Markdown are text formats. A very simple text format. Another stab at making readable text that can be converted to HTML.

rmagick (1.15.9) RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries.

rspec (1.1.2) RSpec-1.1.2 (build 20080114022430) – BDD for Ruby

rubigen (1.2.4, 1.1.1) A framework to allow Ruby applications to generate file/folder stubs (like the rails command does for Ruby on Rails, and the ‘script/generate’ command within a Rails application during development).

ruby-debug (0.10.0) Command line interface (CLI) for ruby-debug-base

ruby-debug-base (0.10.0) Fast Ruby debugger – core component

ruby2ruby (1.1.8) ruby2ruby provides a means of generating pure ruby code easily from ParseTree’s Sexps.

rubyforge (0.4.4) A script which automates a limited set of rubyforge operations.

RubyInline (3.6.6) Ruby Inline is an analog to Perl’s Inline::C. Out of the box, it allows you to embed C/++ external module code in your ruby script directly.

sources (0.0.1) This package provides download sources for remote gem installation

sqlite3-ruby (1.2.1) SQLite3/Ruby is a module to allow Ruby scripts to interface with a SQLite3 database.

validatable (1.6.6) Validatable is a library for adding validations.