rubygems

Rails requires RubyGems >= 0.9.4. Please install RubyGems

I'm deploying to Ubuntu slice on slicehost, using Rails 2.1.0 (from gem) If I try mongrel_rails start or script/server I get error: Rails requires RubyGems >= 0.9.4. Please install RubyGems When I type gem-v i have 1.2.0. Any quick tips on what to look at to fix? ...

Can I run rubygems in ironruby?

Is it currently possible with pre release of ironruby to run rubygems? It seems as if I have to set an environment variable to find them? ...

Problem installing warbler gem on linux

> jruby -S gem install warbler JRuby limited openssl loaded. gem install jruby-openssl for full support. Successfully installed warbler-0.9.11 1 gem installed Installing ri documentation for warbler-0.9.11... Installing RDoc documentation for warbler-0.9.11... > jruby -S warble <snip>/jruby-1.1.4/bin/warble:1: undefined method `warble' f...

Automate a Ruby Gem install that has input

I am trying to install the ibm_db gem so that I can access DB2 from Ruby. When I try: sudo gem install ibm_db I get the following request for clarification: Select which gem to install for your platform (i486-linux) 1. ibm_db 0.10.0 (ruby) 2. ibm_db 0.10.0 (mswin32) 3. ibm_db 0.9.5 (mswin32) 4. ibm_db 0.9.5 (ruby) 5. Skip this...

Getting started with rails? Must have gems?

I'm starting work on a project using Rails, but I'm waiting for the 3rd edition of the pragmatic rails book to come out before I purchase a book. Anyway, my question is a bit more pointed than how do I get started... What are some of the must have gems that everyone uses? I need basic authentication, so I have the restful authenticati...

User Monitoring in Rails

Hi We have an app with an extensive admin section. We got a little trigger happy with features (as you do) and are looking for some quick and easy way to monitor "who uses what". Ideally a simple gem that will allow us to track controller/actions on a per user basis to build up a picture of the features that are used and those that ar...

What are the steps needed to create and publish a rubygem of your own?

So you've created a ruby library. How do you create and publish your rubygem? And what common pitfalls and gotchas are there pertaining to creating and publishing rubygems? ...

Are ruby command line switches -rubygems & -r incompatible?

I recently converted a ruby library to a gem, which seemed to break the command line usability Worked fine as a library $ ruby -r foobar -e 'p FooBar.question' # => "answer" And as a gem, irb knows how to require a gem from command-line switches $ irb -rubygems -r foobar irb(main):001:0> FooBar.question # => "answer" But the...

I have a gem installed but require 'gemname' does not work. Why?

The question I'm really asking is why require does not take the name of the gem. Also, In the case that it doesn't, what's the easiest way to find the secret incantation to require the damn thing!? As an example if I have memcache-client installed then I have to require it using require 'rubygems' require 'memcache' ...

Gem update on Windows - is it broken?

This is a follow-up to this question. When I issue the gem update command on Windows, whenever it gets to a gem whose latest version DOESN'T have Windows binaries, it'll attempt to build the native extension which will, of course, fail. For example: Updating sqlite3-ruby Building native extensions. This could take a while... ERROR: W...

Problem installing RubyGems on Vista

I get the following error when attempting to install RubyGems. I've tried Googling but have had no luck there. Has anybody encountered and resolved this issue before? C:\rubygems-1.3.0> ruby setup.rb . . install -c -m 0644 rubygems/validator.rb C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/validator.rb install -c -m 0644 rubygems/version.rb ...

installing starling on windows

I am trying to install the starling gem on my windows machine. But, whenever I try to install it i get this error: Building native extensions. This could take a while... ERROR: Error installing starling: ERROR: Failed to build gem native extension. c:/ruby/bin/ruby.exe extconf.rb install starling -- --srcdir= c:\ruby-1.8.7...

Rspec - problems with switching from plugins to gems

When dropping the use of rspec and rspec-rails plugins and switching to the gem versions instead, is there anything extra I have to change in spec_helper.rb or something to make the specs in my app see the change? I can no longer get my specs to run successfully anymore after deleting the plugins and installing the gems (1.1.8). More...

Ruby on Vista

I installed Ruby and Ruby on Rails yesterday on Vista 32bit using the directions on this site: http://rubyonrails.org/down so I downloaded the installer, then Gems, then I downloaded rails with Gems. now I can't use the Gem or Ruby commands in the command line... so I assume there's something wrong with the environment variables, but I...

How can I install local gem?

If I download a .gem file to a folder in my computer, can I install it later using gem install? ...

Ruby Daemons will not start

I am using the ruby daemons gem to create a custom daemon for my rails project. The only problem is that when I try to start the daemons ruby lib/daemons/test_ctl start that it fails and will not start. The log file has this output. # Logfile created on Wed Oct 22 16:14:23 +0000 2008 by / *** below you find the most recent exception th...

"gem install" freezes at "updating Gem source index for [..]"

For some weeks now I simply can't run gem install in windows. It sticks on this line: C:\Windows\System32>gem install rails --version 2.1.2 Bulk updating Gem source index for: http://gems.rubyforge.org/ Any ideas what it could be? ...

Good ruby gem sources?

What good ruby gem sources would you recommend, besides http://gems.rubyforge.org/ and http://gems.github.com/? It seems that RubyForge is missing most of the gems I look for these times... ...

How to deploy an RubyGem-based Server

We have built a custom socket server in ruby and packaged it as a gem. Since this is an internal project we can not simply publish it to RubyForge or GitHub. I tried to setup our own gem server but gem would not authenticate over https. Our other deployment is all for standard rails applications that use capistrano and svn for deployme...

Load Paths and Ruby C-Extensions

How do you allow a C-extension to use rb_f_require to require a file from outside the ext directory (e.g. requiring lib/foo/foo.rb from ext/foo.so). ...