gem

Segmentation Fault in rvm'd Ruby on Mac when running RSpec

I was developing something at the uni, saved to my Dropbox intending to continue at home. This is the message that greeted me: $ spec graph_spec.rb /Users/amadan/.rvm/gems/ruby-1.9.2-rc1/gems/PriorityQueue-0.1.2/ext/priority_queue/CPriorityQueue.bundle: [BUG] Segmentation fault ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10...

Could not locate Gemfile

I'm certainly no Ruby developer but I have an application on my server using Ruby, Gems, and Bundler. I am trying to install another Ruby on under a different user account but on the same VPS. When I go to run bundle install I get the following error: Could not locate Gemfile I could remove the contents of the ./bundle director...

gem install mysql is wrong!

OS:     Fedora 13 Question:     The mysql for rails. I inputed the command "gem install mysql" and the request is error. Error:     Error: Error installing musql:     ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb can't find header files for ruby. Gem files will remail installed in /usr/lib/ruby/gems/1.8/gems/m...

Good plugins for rails.

I want to know more plugins or gems which can help to make my rails application more powerful and efficient and easy to handle. Like mysqlplus instead of mysql memcached delayed_job resque capistrano ...

Ruby gems not found, but they're installed.

When I attempt to load the Rails console (or load my website running Apache/Passenger), I get an error that it can't load a gem that I've already installed: > script/console Loading development environment (Rails 2.3.8) no such file to load -- authlogic /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' /usr/lib/...

Bundler puts my gems in my project directory

I have a Rails 3rc app on Ruby 1.9.2 that works fine, but Bundler keeps making a folder named "bandsintown" (bandsintown is a gem I use) in my project directory. From what I can tell, the folder has all my gems in it. I'm pretty sure that this never happened before. Is it normal behavior? I think this might be interfering with running t...

ruby: irb gives NameError attempting to use mechanize gem (ubuntu)

On my ubuntu box, irb (ruby) gives a NameError when I try to use the mechanize gem: $ irb irb(main):001:0> require 'mechanize' => true irb(main):002:0> Mechanize.new NameError: uninitialized constant Mechanize from (irb):2 from :0 gem env shows this: RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.8.7 (2...

Anything better than ruby alchemy for extracting keywords?

I've currently written an algorithm in Ruby based on the arc90 readability code to extract an article from a web page. Now that I have the article, I want to extract keywords and specific information from it (names, author, etc) I heard Alchemy was a great ruby gem for doing this though it consumes a lot of resources. Are there any bet...

How can I install Jekyll on Ubuntu 10.04 Server?

The definitive guide to installing Jekyll seems to be http://wiki.github.com/mojombo/jekyll/install where it says: gem install jekyll I am getting an ERROR: could not find gem jekyll locally or in a repository regardless of whether I run that command as superuser or not. gem env Returns the following: RubyGems Environment: - RU...

Cannot install RCov from Gem

gem install rcov Error: Building native extensions. This could take a while... ERROR: Error installing rcov: ERROR: Failed to build gem native extension. "C:/Program Files/Ruby191/bin/ruby.exe" extconf.rb creating Makefile make Makefile:154: warning: overriding commands for target `C:/Program' Makefile:148: warning: ignoring ...

How to copy file across buckets using aws-s3 gem

The aws-s3 documentation says: # Copying an object S3Object.copy 'headshot.jpg', 'headshot2.jpg', 'photos' But how do I copy heashot.jpg from the photos bucket to the archive bucket for example Thanks! Deb ...

The Zen of Ruby

Hi, I have written a Ruby gem named 'this'. Get it here http://rubygems.org/gems/this. Purpose of 'this' is to show quotes of 'The Zen of Ruby' whenever you "require 'this'". As I could not find any equivalent zen quotes for Ruby, currently I am using 'The Zen of Python' (PEP 20). Extremely sorry for using it :) Can you guys suggest me...

Amazon S3 Gem for Rails 2.3?

Which Amazon s3 gem is compatible with Rails 2.3 ? It needs to be compatible with the Paperclip gem too. ...

getc is obsolete; use STDIN.getc instead

When running rake gems:install I see this message: /opt/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:232: warning: getc is obsolete; use STDIN.getc instead How do I resolve the issue? ...

Password encryption problem in Rails Devise gem

I am now currently changed to use the Gem Devise for user authentication. But I don't know how to match the encryption! I knew that we could write a new encryptor and assign it in initializers, but the point is the encryptor accepts 4 arguments only (password, stretches, salt, pepper). But in my case, I do included the user's email and ...

Gem dependencies versions meaning

Gem dependency version can be specified with prefixes =, <, >, <=, >= and ~>. I understand all except last one, what does ~> mean? ...

warning: getc is obsolete; use STDIN.getc instead

Hello, I'm having a problem with my rails application. When I type script/server I get the following error: /Users/admin/.gem/ruby/1.8/gems/activesupport-2.3.5/ lib/active_support/multibyte/unicode_database.rb:37: warning: getc is obsolete; use STDIN.getc instead This causes the application to hang and not respond. How can I...

gem install mysql failing on libssl

I have installed ruby and gems (both from macport) and have mysql 5.1.49 (see below for full details of version). I get an error on libssl 0.9.8 when I try to install the mysql gem. Any suggestions jcoelh000 ~# mysql --version mysql Ver 14.14 Distrib 5.1.49, for apple-darwin9.8.0 (i386) using readline 5.1 jcoelh000 ~# ruby...

ruby gem flickr-fu license problem

I've trying to get the flickr-fu gem to search correctly only for commercial friendly photos but with no luck. It seems to ignore the parameter altogether. photos = flickr.photos.search(:text => "anything", :tags => 'architecture', #:license_id => '4,6,5', ...

Unable to install sqlite3-ruby gem

I've xcode 3.0 installed. And I need to install sqlite3-ruby gem (for rhosync). When I run: sudo gem install -l sqlite3-ruby I get following error: Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/V...