rubygems

Can't install any gems...

Ok here is the background, I have been doing JavaScript and some Erlang for around 6 months and I haven't done any rails programming lately. Today on my new PC I went to install rails but got this error: gem install rails WARNING: RubyGems 1.2+ index not found for: http://gems.rubyforge.org/ RubyGems will revert to legacy inde...

Understanding RubyGems, Macports, and /opt/ versus /Library/

I'm not looking to keyword spam here, and this question is in the least tangential to a previous question of mine that's currently pending. Caveat emptor. Most references to Ruby on the Mac have things set up with the conventions mentioned in this question. Stored in /Library/, that is. My whole setup is somehow stored like this: I'...

I am unable to install rails through gem on windows 7, how do i install it?

I am following these instructions provided here. But i am unable to do the second step, that is installing rails with gem. i use the code that they provide and my cmd does nothing. It just stays there without doing anything. ...

When -exactly- does the Rails3 application get initialized?

I've been fighting left and right with rails 3 and bundler. There are a few gems out there that don't work properly if the rails application hasn't been loaded yet. factory_girl and shoulda are both examples, even on the rails3 branch. Taking shoulda as an example, when trying to run rake test:units I get the following error: DEPRECATION...

Ruby gems gone after after jruby install

Today I installed jruby by downloading it, extracting it to /home/james/jruby-1.4.0 and adding the following line to .bashrc export JRUBY_HOME=/home/james/jruby-1.4.0 export PATH=$JRUBY_HOME/bin:$PATH And then I installed some jruby gems via jruby -S gem install ... Jruby works fine, but this seemed to have cause two problems: 1) W...

Graph Database in ruby ?

Are there any graph database in ruby . i have heard of neo4j in Jruby , Are there any pure implementation of graph database in ruby ? ...

Require a specific version of ActiveRecord

I have both Rails 2.3.4 and Rails 3.0.0.beta installed on my local machine. I am using ActiveRecord in a stand alone ruby script and when I do require 'active_record' 3.0.0.beta is loaded. How can I force it to require 2.3.4 instead? (without uninstalling 3.0.0.beta) ...

Extend RedCloth gem

Hi, I want to put a new textile tag like h1. , but its name will be map. So I found the following article but it doesn`t work on RedCloth 4.2.2 Thanks ...

Why am I getting "Rails requires RubyGems >= 1.3.2" when I have 1.3.6 installed?

I've Google around and haven't found much... I'm trying to run script/server for my Rails project, and I get Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again: http://rubygems.rubyforge.org gem --version Shows 1.3.6. Rails and all gems were installed using sudo. I'm on Mac OSX 10.6. ...

RVM Ruby 1.9.1 troubles

Trying to get Ruby 1.9.1 up and running with RVM on a fresh install(fedora). So after doing rvm install 1.9.1, the rubygems error logs show that zlib can't be located no such file to load -- zlib (LoadError) However both the zlib runtime and development libraries are installed and up-to-date, So I'm kinda stumped on this one at ...

Failed to install nokogiri and webrat on Mac OS X

Hi, I was trying to install webrat on my Mac, but I've got the error, that the iconv.h is missing. Here is the log: Building native extensions. This could take a while... ERROR: Error installing webrat: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb ch...

gem2rpm includes all dependencies instead of including only runtime dependencies

Version 0.6.0 of gem2rpm includes all (development and runtime) dependencies for a given Gem. Example: Rack Gem (http://rubygems.org/gems/rack) Version 1.1.0 has no runtime dependencies, but six development dependencies. Console output of gem2rpm --dependencies rack-1.0.1.gem is: rubygem(test-spec) >= 0 rubygem(camping) >= 0 rubygem(...

collaborative filtering in rails

I'm looking for a solution for collaborative filtering in rails or even possible examples. So far I have only found acts_as_recommendable which looks useful but I noticed it hasn't had any updates in the last 2 years. Does anyone know of any other solutions and/or examples? ...

Installing unpacked ruby gem.

Hey there, I am trying to install the cairo ruby gem on OSX 10.6. There seems to be a bug in the extconf.rb, which I've patched, but now I don't know how to create a gem, so I can install it... gem build folder won't work because there is no gemspec file or whatever (I've got absolutely no experience with gems^^), and gem install wants ...

Problem running gems in OS X

I'm running Snow Leopard, and installed a custom built Ruby according to the guide here: http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard . My ruby binary lives in usr/local/bin/ruby and my gems are installed in /usr/local/bin/gem . My gem env looks like so: RUBY VERSION: 1.8.7 (2008-08-11 patchlevel ...

Ruby on Rails function grapher

Hi, I'm looking for a function grapher that I can use in a small Rails application I'm working on for my university. Is there anything out there? If it needs the values (points) is not a problem but it would be better if it just parsed the equation. The functions will be 100% in ruby format (for example Math.exp(3*x))... Thanks a lot! ...

Iterate over Ruby FFI Struct layout

I am using the really awesome ruby ffi library to access functions in a c library in ruby. Is there a way to iterate over the layout of a Ruby FFI::Struct? example FFI::Struct: class Example < FFI::Struct layout :name, string, :desc, :string, :type, :int, :value, :string end this doesn't seem to work but...

Cucumber can't find installed gems

environment/cucumber.rb: ... # gem dependencies config.gem 'cucumber-rails', :lib => false, :version => '>=0.3.0' unless File.directory?(File.join(Rails.root, 'vend config.gem 'database_cleaner', :lib => false, :version => '>=0.5.0' unless File.directory?(File.join(Rails.root, 'vend config.gem 'webrat', :lib => false, :versi...

strange bundler error: tar_input.rb:49:in `initialize': not in gzip format (Zlib::GzipFile::Error) on bundle pack

i am getting a strange bundler error when running bundle pack with bundler 0.9.12 any ideas? (see pastie for a better formatted code: http://pastie.org/881328 ) /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:49:in `initialize': not in gzip format (Zlib::GzipFile::Error) from /opt/ruby-ente...

Force ruby to use dbi Gem instead of dbi in site_ruby

I'm using: Windows 7 Ruby 1.8.6 One-Click Installer DBI version 0.4.3 installed using RubyGems What I see when executing these commands: C:>ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] C:>gem -v 1.3.1 C:>ruby -r rubygems -r dbi -e "puts DBI::VERSION" 0.2.2 C:>gem list dbi *** LO...