gem

conditionals in Gemfile

Our team uses different databases for each other, and we are using bundler so our Gemfile contains the repo creator's db connector(mysql) I am using pg and due to a bit laziness and fear of breaking something, I don't want to use mysql, so I just add a gem "pg" in our Gemfile. Of course, since we're using git, it will always show as a ...

rails twitter_oauth library uninitialized constant

I'm trying to use the twitter_oauth gem : http://github.com/moomerman/twitter_oauth In my model I have: require 'twitter_oauth' And within a function I have: def example client = TwitterOAuth::Client.new( :consumer_key => 'xxxx', :consumer_secret => 'xxxx', :token => "xxxx", :secret => "xxxx") return client end ...

bundle install error

I'm trying to install this gem: http://github.com/professionalnerd/simple-private-messages with bundle install. And I'm getting the following error message: Updating git://github.com/professionalnerd/simple-private-messages.git Fetching source index for http://rubygems.org/ Could not find gem 'simple-private-messages (>= 0, runtime)'...

How to tell bundler to use installed mswin32 version of a gem?

I did the: gem install hpricot --platform=mswin32 It's correctly listed when I do gem list: *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.0) actionpack (3.0.0) activemodel (3.0.0) activerecord (3.0.0) activeresource (3.0.0) activesupport (3.0.0) arel (1.0.1) builder (2.1.2) bundler (1.0.0) columnize (0.3.1) erubis (2.6.6) hp...

how to add gem dependency with :path and :branch

I am working on a rails gem that has dependency on the following gem 'authlogic', :git => 'git://github.com/odorcicd/authlogic.git', :branch => 'rails3' How can I add this in the gem spec as a dependency? Specifically I need to specifiy the path and branch in the dependency. ...

Problem including installed gems

I'm having issues requiring gems in my rails application, I have tried multiple gems, and I made sure they were installed by issuing "gem list --local", they're there .. they just can't be found, I keep getting this error "Could not find RubyGem twitter4r (= 0.2.0)" for twitter4r gem and a similar one for other ones. I feel that I shoul...

Tell RubyGems to always search remote gems

hi all, is there a way to tell rubygems to always search for remote gems (instead of local)? I tried adding the following line to my ~/.gemrc gem: --remote but the problem is, that when i do gem list i get the following result ~$ gem list *** REMOTE GEMS *** - (1) 10io-jekyll (0.7.0) 1234567890_ (1.0) 2Performant (0.0.8) 360_servi...

How find out gem install options?

Hi I'm trying to install all my gems in ~/.gems. I wanted to install ferret as user but it doesn't work, because ferret need to install in /usr/bin. My question is, how to I find out which options (like install to different bin folder) exists, when I install gems? ...

Can I change the expected Rails version of a Rails application?

I downloaded an archive containing code for a Rails application ( from a book I'm reading ). I'm running Rails 3.0.1 but the application fails to start, because it's looking for 3.0.0beta3. Is there some way of starting it with my version of Rails? ...

How to use a gem temporarily?

I want to build an application using Rails 3.0.1 but do not want to switch permanently from Rails 2.3.8 and thus require to use Rails 3.0.1 only for that specific application. Is using bundles an answer, if yes than how?? Thanks in advance. ...

Ruby cannot find gem (populator) even though it's installed

I am trying to work with the Populator gem. I just installed it, but Ruby is unable to load it. I have only one Ruby installation on my machine and it's Ruby 1.8.7. What can I do? This is the gem that doesn't get loaded. Edit: Here is the trace out. I should have included this earlier. Freenaut:bio-clinical newuser$ rake db:populate ...

Problem installing gem on Windows Vista 32-bit

Good day. I have a problem installing the gem "showoff". For some reason it can't install. The error message is as follows: C:\Ruby>gem install showoff Building native extensions. This could take a while... ERROR: Error installing showoff: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe extconf.rb checking...

Bunder.require does not work for ActiveRecord in my gem

I just created a new gem (using bundler) and want to add Active Record support. So I added s.add_dependency "activerecord", "~> 3.0" to my gemspec. Then I use Bundler.setup and Bundler.require and thought that I have access to Active Record now, but I haven't. I have to explicitly use require "active_record". Any idea why Bunder.require ...

'Could not find gem' error when specifying a forked version of a gem from Github in my gemfile

I am trying to use this forked version of the searchlogic gem. In my gemfile, I have gem "searchlogic", :git => "http://github.com/railsdog/searchlogic.git" when I do bundle install, I get this error: Could not find gem 'searchlogic (>= 0, runtime)' in http://github.com/railsdog/searchlogic.git (at master). Source does not contain an...

I can't install any gem or updates in Leopard

bogon:~ Zhulin$ ruby -v ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0] bogon:~ Zhulin$ rails -v Rails 1.2.6 bogon:~ Zhulin$ gems -v -bash: gems: command not found bogon:~ Zhulin$ sudo gem install heroku Password: ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 302 fetching http://gems.rubyforg...

Getting latest memcached gem to build on Snow Leopard

I've tried everything I can find on every website out there, and I can not get this to build. $ ruby --version ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] Full error: http://gist.github.com/651945 Entire build: http://gist.github.com/651952 ...

Can't Run Delayed Job in the background on ruby 1.9.2

rake jobs:work works just fine But RAILS_ENV=development ./script/delayed_job start (or any of its permutations) doesn't work on 1.9.2. I can run it just fine on 1.9.1. Anyone have a solution for this? ...