rubygems

Error on rake : The platform 'i386-mingw32' is unsupported.

I have Ruby 1.9 and rails 2.3.5 installed. After creating a rails app when I run rake db:create, I get i386-mingw32 error. I have both msysgit and cygwin on my windows machine. rake db:create (in C:/mydirectory) ==== UNSUPPORTED PLATFORM ====================================================== The platform 'i386-mingw32' is unsupported....

gem install error, index not found, ruby on rails

Problem: Cannot install any gem, any type. But I want to install riddle if that matters. When I run sudo gem install "gem_name" I get the following error: WARNING: RubyGems 1.2+ index not found for: RubyGems will revert to legacy indexes degrading performance. Bulk updating Gem source index for: http://gems.rubyforge.org/ What to d...

Can't install do_mysql gem?

I'm trying to install the do_mysql on my Snow Leopord system Macbook Pro 13", but I keep getting this error: n216-160:~ myself$ sudo gem1.9 install do_mysql Password: Building native extensions. This could take a while... ERROR: Error installing do_mysql: ERROR: Failed to build gem native extension. /opt/local/bin/ruby1.9 extconf...

Ruby - Socks4 proxy with WWW::Mechanize and NET::HTTP::GET

Hey, I searched on google and read in the ruby manuals, but I couldn't find a way to use WWW::Mechanize and NET::HTTP::GET over a socks4 proxy. I read, that WWW::Mechanize is a subclass of the UserAgent module, and that therefore the ->proxy() method would work. But the manual only talks about http, ftp and gopher proxy. Any ideas how ...

How to correctly uninstall Ruby 1.9.1

Hi:) I have manually set Ruby 1.9.1. I have installed it via ./configure --prefix=/opt make make install The target 'uninstall' does not exist in generated Makefile ... How to do uninstallation correctly? PS: I also believe that it is necessary to remove all the gems. For this I use #!/bin/sh gem list --local | grep [^\*] | cut -d '...

vimeo ruby gem auth_token example for oAuth?

Anyone know what the correct syntax to get an auth_token from Vimeo using the recently updated vimeo gem (http://github.com/matthooks/vimeo) using oAuth? I'm trying this: def authorize base = Vimeo::Advanced::Base.new(VIMEO_API_KEY, VIMEO_SECRET) redirect_to base.web_login_link("delete") end #end method --- get redirected to vime...

including rake tasks in gems

1) Is there a 'best' place for rake tasks inside of gems? I've seen them in /tasks, /lib/tasks, and I've seen them written as *.rb and *.rake -- not sure which (if any) is 'correct' 2) How do I make them available to the app once the gem is configured in the environment? ...

Installing Rake: invalid gem format

I installed Ruby on WinXP. Used rubyinstaller-1.8.6-p383-rc1.exe. Ran gem install rake Get error: Error installing rake: invalid gem format for C:/Ruby/lib/ruby/gems/1.8/cache/rake-0.8.7.gem I've tried deleting the cache folder but i keep getting the same error. Tried with Ruby 1.9.1 too. Same error. What am i doing wrong? ...

how to fix getting 'invalid gem format' for every gem

I've been googling this for awhile. The most relevant post seems to be this: http://www.ruby-forum.com/topic/200151 I've updated gem to 1.3.5 and installed (from local) the rubygems-update-1.3.5.gem and then ran gem update --system. The update gem said it installed successfully and the gem update --system command returns with 'Nothing ...

no such file to load -- rubygems

I'm newly switched over to the mac. I installed Passenger today. I installed the Passender preferences pane tool which required RubyCocoa. Now script/console won't run. The error message is: no such file to load -- rubygems Prior to installing the passenger-related files this seems to have worked fine. Any ideas? James ...

Install rails 2.3.5 mac os 10.6 (snow leopard)

Hi guys, My website is developed with ruby on rails 2.0.2. So I want to update this version to 2.3.5. Unfortunately, the new rails version doesn't include mysql so I install the mysql gem like this tutorial said => install rails But and it's my problem, when I launch my server (webrick), mysql crash (segmentation fault). I don't find ...

Am I missing something by not installing ri and rdoc for gems?

Hi, I've never seen the point of installing the ri and rdoc for gems and my .gemrc file has --no-ri and --no-rdoc set. Since every gem includes ri and rdoc info, I just wondered if I'm missing something? Is there any advantage to installing the ri and rdoc for a gem? Thanks Chris Summary If you don't install the ri and rdoc, you don...

how can my gem know the path to its repository directory?

My gem semantictext has a bunch of test data that it reads for regression testing. Here's the project: http://github.com/dafydd/semantictext Here's an example test that I want to be able to run directly from the gem: http://github.com/dafydd/semantictext/blob/master/test/test%5Fdocument.rb (look for text "SANDBOX") I normally develop...

RSS feed from MySQL table using either Ruby or Rails or Gems

I have a MySQL table and I want to pick certain columns to create RSS Feed from it. How to do it using Ruby or Rails or Gems? ...

Installing gems from behind a corporate firewall

I suspect that the corporate firewall is preventing gems from getting installed. I have HTTP_PROXY defined and I'm able to view remote gems via the following command: jruby -S gem list -r But when I go to install a gem, I get a 404: jruby -S gem install rails Is there a good workaround for resolving this issue other than maintainin...

Validating an Excel file in a Rails app

I have a Rails app which allows users to upload Excel files which need to be validated according to some pre-defined rules. For eg. sheet 1 contains two columns, a numerical id and a name; sheet 2 contains three other columns etc.. Are there any Ruby gems/libraries that can help in doing these validations? ...

TeamCity returns No such file to load -- rubygems (LoadError) but terminal runs fine

I've just setup 3 osx agents to run the CI for our ruby project. 2 of these agents are running our specs perfectly, starting their agents correctly etc. The third machine constantly returns No such file to load -- rubygems (LoadError). I have navigated to the work folder (the check out folder for the project) and i can run the commands i...

Local Install of capistrano

This question is specific to capistrano, but it's a general gem question too. I have to download and then install gems - no remote connection available. I went to github and downloaded capistrano as tarball. I get the file thoughtbot-capistrano-d1229b2.tar.gz To install do I now... - rename the tarball with a .gem extension and run ...

Has anyone gotten the LinkedIn Ruby Gem to work at all?

The ruby gem for LinkedIn that I'm using is here: http://github.com/pengwynn/linkedin When calling LinkedIn::Client.new with a valid API Key and Secret, I get this: undefined method `tap' for # Other people have had the same problem, see http://developer.linkedin.com/message/2363 Don't think anyone has proposed a solution yet. ...

auto page breaks when printing long pages with ruby on rails

hi all I have a rails app that creates quotations with information and images on that can be very different in size and the data they display. Each quote contains many setions of varying sizes. I need to find a way to auomatically put page breaks into the quote when printing so that none of th sections are cut into printing on 2 pages...