rubygems

How to install gems from RubyForge?

I am trying to install ruby-mp3info as a gem on my computer. Running sudo gem install ruby-mp3info seems to work OK. In my environment.rb file, I added config.gem "ruby-mp3info". When I try to run the server, it fails, claiming I have some missing gems Following the error message's advice: Run `rake gems:install` to install the missing ...

How to determine a repository?

I am trying to install ruby-mp3info. I have the following URL from which I can access the gem in my browser: http://bitbucket.org/moumar/ruby-mp3info/src/ I would like to specify this source while running gem install ruby-mp3info When I run gem install ruby-mp3info --source=http://bitbucket.org/moumar/ruby-mp3info/src, though, I get a me...

Loading a marshaled Ruby object in C#

When you run the command gem outdated -V, the output of the command displays something similar to this: GET http://rubygems.org/latest_specs.4.8.gz 302 Found GET http://production.s3.rubygems.org/latest_specs.4.8.gz 200 OK This will send you a gzip file that contains another file called latest_specs.4.8 which you can Marshal.load with...

What's wrong with my ruby gems setup?

I'm trying to run a ruby file which imports a gem. The ya2yaml gem is installed, yet somehow it is not found: $ cat delme.rb require 'rubygems' require 'ya2yaml' $ ruby delme.rb /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- ya2yaml (LoadError) from /Library/Ru...

Getting rmagick to work with Phusion Passenger

I'm trying to deploy my app using Phusion Passenger on DreamHost and I'm very close ... I've unpacked my gems [ecco]$ rake gems (in /home/myuser/myurl.com/trunk) - [F] authlogic - [R] activesupport - [F] cancan - [F] formtastic - [R] activesupport >= 2.3.0 - [R] actionpack >= 2.3.0 - [F] paperclip - [F] rmagick - [F]...

Facebooker Built In Data Retrieval Methods Return "No info set for this user" error

I've gone through the Facebooker msg archive, google, etc and found a couple messages dealing with this and they basically say "Go look at the Facebook docs and see what is happening". I did that, but I'm still not clear what is going on and why I'm not able to retrieve my profile or status arrays using Facebooker. I'm starting to think ...

Why do 'requires' statements fail when loading (iron)ruby script via a C# program?

IronRuby and VS2010 noob question: I'm trying to do a spike to test the feasibility of interop between a C# project and an existing RubyGem rather than re-invent that particular wheel in .net. I've downloaded and installed IronRuby and the RubyGems package, as well as the gem I'd ultimately like to use. Running .rb files or working i...

Why does my rails project not have the ruby standard lib in $LOAD_PATH on OSX?

I need to do a: require 'generator' Inside of a rails project, but it is not working for me on OSX, because the ruby standard library (which is located in my /usr/lib/ruby/1.8) is not in my $LOAD_PATH once rails boots. If I just run irb outside of rails it is there. Where/What do I need to config? ...

Rails can't find my gems

Hi there, I'm working on a newly configured computer, and can't seem to get rails to play nicely with my gems. Below are some of the errors I'm running into. If I run 'script/console' in a rails project, I get the following error: Missing the Rails gem. Please gem install -v= rails, update your RAILS_GEM_VERSION setting in conf...

How to install a downloaded Ruby gem file ?

How does "gem install" works ? It is not intuitive... My gem is really here : [root@localhost Téléchargement]# ll *.gem -rw-rw-r-- 1 jean jean 16353818 mar 5 11:39 ruby-processing-1.0.9.gem But an idiomatic "gem install" does not see it... [root@localhost Téléchargement]# gem install ruby-processing-1.0.9.gem ERROR: could not fi...

How do I make a ruby gem available to my scripts?

On my web host's system, installing and using gems seems to require installing my own copy of ruby. With their help on a forum, I've gotten that done. I'm trying to use a particular gem (called Image Science) in a Rails app. At this point, if I open irb and type the following, this is what I get: require 'rubygems' #true require 'image...

How do I get ruby gems to include all dependencies of a gem, even ones in BETA?

Ruby gems only seems to include non-beta dependencies. eg. try: gem install ripple --include-dependencies : and you get the message: ERROR: Error installing ripple: ripple requires activesupport (~> 3.0.0.beta, runtime) Update: I found that this isn't possible in ruby gems. This however finally worked. Thanks @levi: gem updat...

Why isn't the composite_primary_keys gem for Rails working?

I've followed the instructions here, installing the composite_primary_keys gem via sudo gem install composite_primary_keys That worked fine. Now when I add the following to my model set_primary_keys :user_id, :group_id and I get undefined method `set_primary_keys' for #<Class:0x1043bfe20> Also, using multiple primary keys in a m...

Why am I getting an error when requiring this gem in environment.rb?

I followed the steps here and installed the composite_primary_keys gem. When I try to require the gem in environment.rb at the very bottom of the file (after 'end') via require 'composite_primary_keys' I get this when starting the server "69125" => Booting Mongrel => Rails 2.3.4 application starting on http://127.0.0.1:3002 /Library/...

Ruby Gems returns "command not found"

Ubuntu 9.10 Just installed newgem gem install newgem and when i try newgem new_project I get adam@adam-ubuntu:~$ newgem newproject newgem: command not found Ive checked my path via echo $PATH adam@adam-ubuntu:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/adam/.gem and my gem en...

Heroku Gem Doesn't work are installing it

I am trying to get heroku running on Unbuntu 9.10 I typed sudo gem install heroku and everything works fine but then when I go to run: heroku list I get heroku: command not found ...

Should I enable RubyGems by default when installing ruby on Windows?

I've decided to have a play around with ruby so I've downloaded the windows one click installer. One of the options in the installer which isn't selected by default is to "Enable RubyGems" which automatically enables RubyGems by pre-appending 'rubygems' to the RUBYOPT environment variable. Being completely new to Ruby I must admit that ...

MD5 wrong number of arguments (1 for 0) Error

Hi All, I have following error on my Server which is working properly on my local on following line . event_id = MD5.new("event-init-flash-#{Asteroid::now}").to_s #line 232 ERROR: wrong number of arguments (1 for 0) /ruby/gems/gems/shooting_star-3.2.7/bin/../lib/shooting_star/server.rb:232:in `initialize' /ruby/gems/gems/shooting_sta...

RSpec and Cucumber with Rails

After running command "ruby script/cucumber" it produces the error as Using the default profile... e:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement e:/Ruby/lib/ruby/gems/1.8/gems/activesup...

Why is Phusion Passenger refusing to recognize my updated RubyGems?

I've updated RubyGems everywhere I can possibly think to update it: but Phusion passenger keeps throwing the same error: There is that one freaking place that shows 1.3.1 as the version, despite the file name of 1.3.6. I've obviously borked things up pretty badly here. That is, I need to update to 1.3.2 or greater and that I curr...