gem

gem which cannot find gem despite it being installed

Hi, I've built my first gem but I don't seem to be able to get it to install correctly. I can issue the command sudo gem install ceilingfish-toto Which produces the output Successfully installed ceilingfish-toto-0.3.6 1 gem installed But when I then type gem which ceilingfish-toto. I get the output Can't find ruby library file or ...

How do I fix this error? config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file.

I get this error when launching my Mongrel server... $ script/server --debugger => Booting Mongrel => Rails 2.3.5 application starting on http://0.0.0.0:3000 config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. => Debugger enabled => Call with -d to detach => Ctrl-...

gems: difference between sqlite3 and sqlite3-ruby?

I accidentally ran: sudo gem install sqlite3 instead of: sudo gem install sqlite3-ruby So now when I run gem list I get: gem list *** LOCAL GEMS *** sqlite3 (0.0.7) sqlite3-ruby (1.2.5) What is the difference between the two? And do I need both? ...

I think my rails gem is broken.

So I'm working on one computer with some ruby/rails code and its working fine. On another computer however I'm having a problem when trying to create a model or run the server and it looks like the same problem. look at this output: $>script/generate /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:in `require_frameworks...

Where does the Rails initializer go in a gem?

I'm trying to extract some functionality from my existing app into a gem. The existing functionality uses an initializer to load up a config file when Rails starts up... config/initalizers/myinitializer.rb Where should this initializer go in the gem? Do I mirror the path structure inside the gem or put it somewhere else? This will be ...

Have you replaced makefiles with ruby scripts?

I appreciate makefiles and make in all their glory, but I wonder if there isn't a more intuitive way to maintain my c/c++ builds. Has anyone tried replacing their makefiles with ruby scripts to allow for complex and adaptive builds without sacrificing readability? Are there gems that make this easier? ...

Having Issues with Curb gem on Mac Snow Leopard

This has consumed hours of my time. in the console i run: require 'curb' i get the error: LoadError: dlopen(/usr/local/lib/ruby/gems/1.8/gems/taf2-curb-0.5.4.0/lib/curb_core.bundle, 9): no suitable image found. Did find: /usr/local/lib/ruby/gems/1.8/gems/taf2-curb-0.5.4.0/lib/curb_core.bundle: mach-o, but wrong architecture - /usr/lo...

Cucumber and WebRat in Selenium mode: Can't start mongrel_rails when using gem bundle

I'm using gem bundler (v.0.9.6) and Rails 2.3.5, rubygems 1.3.6 and ruby 1.8.7 (On Snow Leopard). My Gemfile looks like this: source :rubyforge source "http://gems.github.com" gem "rails", "2.3.5" gem "ruby-debug" gem "activemerchant", :require => 'active_merchant' gem "hpricot" gem "nokogiri" gem "state_machine" gem "fastercsv" gem "y...

ruby gems on xampp help

i have googled in the last 3 hours but i can't seem to find any precise info. All i know is PHP, i don't know anything about ruby or ror, I need to run this open source project management app http://www.redmine.org/wiki/redmine/RedmineInstall on my xampp, but can anyone tell me how to do things properly i mean install stuff with my xampp...

rake aborted help

hi, i don't really know what ruby,gems, or ror is, my objective is make this web application run in my local and after that push it on live. the problem is, when I perform this command rake db:migrate i am getting an error saying rake aborted! Could not find RubyGem rack (~) 1.0.1) what should I do ? please help me ...

configuring .gems file (rails apps on Heroku)

Hi all, I'm learning how to deploy RoR (v2.3.4) on Heroku. Last night was my first attempt at pushing an app with an external gem (active_merchant). What is the URL format for configuring the .gems file? (My last attempt was 'active_merchant --source github.com/Shopify/active_merchant'.) Any inputs would be great. Thanks. -BrianP. (b...

Is Cassandra production ready for Ruby on Rails?

I'm working on a project that is considering using Cassandra as a database. We would like to eventually migrate to Cassandra even if we use MySQL to start with, given its scalability. I know that big companies like Facebook, Digg, and recently Twitter is using Cassandra, but I don't believe any of those sites run off Rails. My questio...

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...

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...

gem install mysql error on solaris

[root@zhaoonline-data sbin]# gem install mysql Building native extensions. This could take a while... ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /opt/ruby/bin/ruby extconf.rb checking for mysql_ssl_set()... no checking for rb_str_set_len()... no checking for rb_thread_start_timer()... no chec...

MySQL bindings for Rails 2.3.5 on Mac OS X 10.5.8

I have a rails environment which I set-up with macports. I recently updated macports which seems to have had the side effect of breaking rails. When I try to boot a rails server I get: $ ./script/server => Booting WEBrick => Rails 2.3.5 application starting on http://0.0.0.0:3000 /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/...

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...

Rails: class' object_id changes after I make a request

I really can't explain this behavior, notice how after I make a request the class' object id has changed, and therefore my is_a? evaluation returns false. any ideas? I'm not even sure how to debug this. Also, this isn't related to making a request from the command line. The same behavior is exhibited on the web server as well, it's just...

Sqs vs SqsGen2 using RightScale right_aws GEM

I'm trying to use the right_aws (1.10.0) GEM with Rails, and I've reduced my problem to a 3-line irb session. The following works require 'rubygems' require 'right_aws' sqs = RightAws::Sqs.new("xxxxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") while this fails require 'rubygems' require 'right_aws' sqs = RightAws::SqsGen2.new("xxxx...