rubygems

Rails 2.3.x use bleeding edges gems

In rails 3 you can use bleeding edge gems like: gem "devise", :git => "git://github.com/plataformatec/devise.git". How do you do that with config.gem in rails 2.3.x? ...

How does bundler work (in general)?

Hello, I'm pretty new to Ruby/Rails but I was taking a look at bundler and was wondering how it works exactly. Do you install a full set of gems like normal gem install XYZand then use the Gemfile to pull a certain subset of those gems for use with a specific application? Or do you not install gems normally anymore and just include them ...

How to install a forked gem of LinkedIn?

I want to use the LinkedIn gem But not the one that I get when I type sudo gem install linkedin I want a specific one that somehow has done patches to. It is a fork of the original which is: http://github.com/jbasdf/linkedin I tried: sudo gem install jbasdf-linkedin But not succeed. Any ideas? Thanks. ...

Initialize a Rails 3 plugin gem on installation

I'm creating a RubyGem, and I'm wondering if there's any way I can set it up so that when it's listed in a Gemfile and someone runs bundle install, my gem can copy some files into the Rails path. This would save the user from having to type rails generate blah, where blah is the name of a generator in my gem. Is there a callback that th...

How to install a forked gem on Engine Yard?

I want to use the LinkedIn gem But not the one that I get when I type sudo gem install linkedin I want a specific one that somehow has done patches to. It is a fork of the original which is: http://github.com/jbasdf/linkedin I have downloaded sources from the above link, and use "rake" command to build a gem locally. So everything i...

Can't sudo gem uninstall (you don't have write permissions)

I'm having trouble removing a gem from my system. When i ask gem where RedCloth is installed it says this: pteng01:trunk mike$ gem list -d RedCloth *** LOCAL GEMS *** RedCloth (3.0.4) Author: why the lucky stiff Rubyforge: http://rubyforge.org/projects/redcloth Homepage: http://www.whytheluckystiff....

Ruby-Git g.status always fails

I have been trying to use the ruby-git gem to make commits etc from with in a ruby script however the method to check the current status always throws an error. My understanding is that this code, although not doing too much, should be valid. #gem install git require 'rubygems' require 'git' g = Git.init g.status but it returns: ...

Mechanical Turk: Post file to externalSubmit interface?

I have setup my own custom form for mechanical turk and am posting to their external interface. <form enctype="multipart/form-data" action="https://workersandbox.mturk.com/mturk/externalSubmit" method="post" name="mturk_form" id="mturk_form"> <p> <label for="turk_task_image_image">Upload an image</label><br> ...

Suggestions for Ruby Gem authoring (ie. setup, environment etc)

I've been developing Rails apps now for about a year and am starting on a new project (that's actually 3 projects). I'd like to write some gems that can be shared amongst these projects to maintain a common code-base. They'll likely eventually evolve into Rails engines at some point, but to start, just common libraries that can be incl...

How do I recover from a broken gem?

Hi I've recently started working on my first Sinatra/CouchDB app and kept running into a SystemStackError: stack level too deep error. After a ton of googling, I've discovered that one of the gems I've been using, json-1.4.3, is apparently broken :/ I uninstalled the gem, and installed json-1.4.2 instead, but I'm still getting the erro...

What is the oldest version of rubygems that is supported?

What is the oldest version of rubygems that still allows you to download gems from rubygems.org? ...

Ecommerce Gems for ROR?

I'm working as a project manager on a site with an Etsy-like shopping cart setup (allowing users to sell their products and taking a small percentage of the sale). While I expect my developer to answer this question, I figure it can't hurt to ask if anyone recommends specific gems for such a shopping set-up in RoR or financial reporting....

script/console won't work; reports "Missing the Rails gem. Please `gem install -v= rails`..." even though rails shows as installed

I'm trying to learn RoR, and running script/console fails, returning: Loading development environment (Rails 2.3.5) Missing the Rails gem. Please gem install -v= rails, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version i...

How do I downgrade to an old version of compass using gem install?

I've been using compass from http://compass-style.org/ to manage my sites css for a long time. I just installed the newest version and I get a rather unpleasant error, that has as a side effect corrupted all my css files. How do I downgrade to an older version of this? Thanks, Matt ...

Installing gems tries to load the gems in my custom rake tasks before installing it

I'm developing an application using rails 2.3.5, gitorious and deploy with vlad, the OS is Linux Mint 9 Isadora. vlad:setup and vlad:update are ok. But when I vlad:migrate and have the same error than if I ssh on the server and try a rake gems:install rake aborted! no such file to load -- ya2yaml /var/www/path/to/releases/2010062...

How to check the documents is uploaded to scribd.com using rails scribd-fu gem?

There are 4 methods in scribd-fu for checking the document status, conversion_processing?, conversion_complete?, conversion_successful?, and conversion_error?. So, how can I know is the document uplaoded to scribd.com successfully? Thanks all. :) ...

Creating a Ruby on Rails 3 gem with a generator (incl. namespace)

I am trying to create a gem with a generator for Rails 3 (beta 4). I followed these instructions, and but I couldn't get it running. The problem is that when I am defining a module in the generator file, the generator gets listed with 'rails generate', but can't get executed because the generator isn't found. From the instructions (does...

Good ruby url shortener gems?

What good, reliable ruby gems do you use for shortening URLs? ...

how to display more records on searching with Thinking_sphinx with rails

Hi, I have updated my searching fields records with thinking_sphinx gem and I have configured it. It is working fine but the problem, It is only displaying 20 records which is default. How to change those thing to make more records visible on view.. ...

How to search the pre and post part of the word using Thinking_sphinx gem on rails

Hi, I have created my search part successfully with the thinking_sphinx gem and I have searched a word it is showing correct, But the problem with the search is it need full word to be given to search exact match. I dont want to give exact word instead any particular character or part of words also be taken into account. help me to s...