rubygems

Ruby on Rails Gem & Plugin Overload! Where/how to keep up-to-date?

I'm enjoying Ruby on Rails but one thing that seems overwhelming is the shear number of gems and plugins and their branches that exist out in the wild. Sure I could gem list --remote but that doesn't tell me squat other than confirming that there are hundreds (thousands?) of gems. How are people keeping track of what's hot and what's bee...

How to nuke all Ruby Gems from the system and start over

What's the easiest way to start over with Ruby Gems? I have Ruby 1.8.7 (OSX, ports) installed and I have also installed rails and some other random stuff a while back. Now the gems system seems to be totally dysfunctional and I can't upgrade rails. So is there a way to just nuke the gems so I can reinstall all this stuff with current ver...

Nokogiri/Ruby array question

Hello, I have a quick question. I am currently writing a Nokogiri/Ruby script and have the following code: fullId = doc.xpath("/success/data/annotatorResultBean/annotations/annotationBean/concept/fullId") fullId.each do |e| e = e.to_s() g.write(e + "\n") end This spits out the following text: <fullId>D00...

Ruby gem (FFMPEG) "uninitialized constant"

When trying to use the FFMPEG gem on Mac OS X 10.6, ruby throws a NameError exception like so: NameError: uninitialized constant FFMPEG My code is rather simple: class Parser def initialize(file) require 'ffmpeg'; @video = FFMPEG::InputFormat.new(file); end end I have ruby 1.9.1p378 (2010-01-10 revision 2627...

Do ruby gems ever conflict?

As a ruby newbie, I was wondering, will gems ever conflict with eachother? For example, if 2 gems overrode the << method on array, which would win, or is there something to stop this? Thanks ...

How can I get picasa to work with auto_html in rails?

Is there a way to get auto_html to work with picasa (image hoster)? Actually I need a filter for this...but I do not know how to write it :( Does anyone know any resources? Or a solution? thanks in advance cheers tabaluga ...

Questions about building a new gem using Wycats template

I'm writing a new gem I'm basing off of Yehuda's new gem template and I'm slightly confused. Having a Gemfile with dependencies, and also specifying a gemspec with dependencies seems redundant to me. Can someone explain why this is desirable and if it's truly necessary? Note, this is the first gem I've ever written so I'm new to all o...

Could not find RubyGem mloughran-api_cache (>= 0)

I'm getting this error trying to do a rake db:migrate --> Could not find RubyGem mloughran-api_cache (>= 0) Not I know that's a gem missing, But for some reason I can't find the whereabout of that gem. It's no the gem called api_cache. Or at least if it is, the system does not recognized that it is installed. Any help would be really a...

Which is the best 0auth gem for a rails app?

Hi there, I'm going to add Oauth autenthication to my rails web app. Since I don't want to reinvent the wheel, have you got some ruby gem to suggest to add this kind of feature? TIA Paolo ...

Loop and strings in Ruby/SQLite3

Hello, So I need to run a loop in Ruby to pass some strings into SQLite. Basically I have a table that looks like this: pID Data 1649,1650,1651|Some data 1643,3|some more data 23,4,5,6,7|More data Now in my SQLite queries, I will sometimes need to pass all the pIDs for a given line through as one whole string, which I ca...

Multiple App Support Using APN on Rails Gem

Hello, I have a couple iPhone apps talking to one ruby on rails server. I have been using the apn_on_rails gem by mark bates/PRX (http://github.com/PRX/apn_on_rails) to offer push notifications to both apps. The README specifies how to support one app, but I need to support two apps. Not only that, but I would like to send out these not...

Mysql gem with MAMP

Hi, I'm running MAMP for local development on Snow Leopard (64bit obviously). I'm trying to run a rake task for a ruby on rails application and get the following error: " !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. !!! The bundled mysql.rb driver has be...

Rails Gem or code to have your rails application respond to email and create a record in the database.

I am creating a ruby on rails application and I want my users to be able to email the application and have the application take in the email and create a issue record in the database. Is there a GEM or Code that can be used to have the rails application get the email and parse out the body and stick it into an issue table. ...

Get list of all gems

Hey, What ever happend to Rails.configuration.gems in Rails 3? I guess it has to do with Bundler. But how can I find all gems now? Thanks ...

Discover the file ruby require method would load?

The require method in ruby will search the lib_path and load the first matching files found if needed. Is there anyway to print the path to the file which would be loaded. I'm looking for, ideally built-in, functionality similar to the which command in bash and hoping it can be that simple too. Thanks. ...

Which version of Ruby?

I'm just starting out in Ruby (Rails actually) and the book I'm reading covers Ruby 1.8.6, RubyGems 1.0.1, Rails 2.0.2 and SQLite 3.5.4, but the current stable releases of these are 1.9.1, 2.3.8, 1.3.7 and 3.7.0 respectively, should I still proceed with the book or find another? Also, I couldn't find a recent guide/tutorial to walk me t...

Ruby Gem for intra-site messaging? (think LinkedIn, Facebook, etc.)

Many sites have communication via the site (instead of via email). Examples: LinkedIn: Click "Inbox" at the top of the screen. Facebook: Click "Messages" in the left sidebar. Is there a gem that provides this sort of functionality? Googling hasn't turned up much, because the search terms are so generic - "Rails gem messaging" "Ruby...

"gem install wxruby" but require 'wxruby' won't work

I did gem install wxruby on Win 7 and in Ruby 1.8.6 require 'rubygems' require 'wxruby' but it will say c:/ruby1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- wxruby (LoadError) from c:/ruby1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' f...

What can a ruby gem do?

I'm working on something in ruby and trying to figure out if it can be turned into a gem. I can find documentation on how to make a gem and gem manuals, but I can't find anything that says, "here is what a gem can and cannot do." Let's say I created some code, which of the following can a gem do? 1) Use rails conventions like views and...

Error Installing ruby gem for PostgreSQL

I am trying to configure a rails server to use PostgreSQL, but getting stuck when installing the postgres gem. I have installed PostgreSQL successfully on the machine (and can use it for other applications) but am getting an error when attempting to install the ruby gem for it. I do: sudo gem install postgres And get the following outp...