rubygems

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

In Rails, having a Gem extending all its methods to application controller, is it a good practice?

Is it actually common practice to extend all methods of a Gem into the application controller in Rails? Because it seems that Facebooker gem doesn't that, and there is no telling whether the method is from the facebooker gem, or from our internal code. So when we need to upgrade to Facebooker2, it is hard to find all methods that are a...

rails3 gem: acts_as_something

I'm trying to extract some common code into a gem. I'm thinking that acts_as_somethingis a good strategy for simple re-use. Is there a good tutorial that discusses this for rails3 gems? I've found several that discuss rails2 (such as http://guides.rubyonrails.org/plugins.html) but that is specific to rails2 here are some of the tuto...

How to change the Bundle Installer Executable and Installation directory.

I have installed RVM and as noted in the install http://rvm.beginrescueend.com/rvm/install/ I was able to get "rvm is a function." A lot of what I've read recommends not to use sudo gem install bundler, but it did not work without sudo (the error said I was not able to write to var/lib/gems/1.8 with gem install bundler) Even after "Su...

RMagick not working

I'd appreciate any help with this - I'm sure it's a simple mistake. The location of my app is C:\sanj\rubyjobs. I have installed ImageMagick successfully in its default location: C:\Program Files (x86)\ImageMagick. I have also installed rmagick the gem by running gem install rmagick --local in C:\sanj\rubyjobs\vendor\RMagick Extract...

Is Rails 2.3.8 or Rails 2.3.10 fully compatible with Ruby 1.9.2? (any reference or source say that?)

because if those Rails versions were not written with 1.9.2 in mind, then there might be slight usage difference that can break Rails. Actually, can any gem command tell a particular gem is dependent on what versions of other gems (and perhaps Ruby version too)? ...

Gem for oAuth2 Consumer AND Provider functionality in Rails 2.3.5

Hi there, I'm struggling finding a usable gem which provides the following for a Rails 2.3.5 application: we want to protect out API with oAuth 2; therefore a Controller for creating access/request Tokens and the models (Client, Token,...) are required we want to consume oAuth2 Services like Facebook and Twitter It would also be nic...

Receiving error on Windows machine when Installing linecache ERROR: Failed to build gem native extension on

When attempting to perform a bundle install of an existing Ruby on Rails project I receive an error when the bundler reaches Installing linecache (0.43) with native extensions. I don't see linecache in the projects Gem file so I can't try bundling without it. I'm running Windows 7 and JetBrains RubyMine 2.0.2. I have tried bundling from ...

Ruby console application using text editor?

Hi there, I'm building a console application in Ruby. One of the things I'd like it to do is edit text files. It strikes me that the most reasonable course of action would be to launch whatever default editor the user has set up -- nano, vi, emacs... let the user decide. I'd like to pass it the name of the file that will be created/edit...

I'm very sad cause migrating to Snow Leopard screwed up my ruby path.

Since I've migrated from Leopard to Snow Leopard I get $ ruby script/server Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again: http://rubygems.rubyforge.org the only way to make it work is: $ /usr/bin/ruby script/server => Booting Mongrel => Rails 2.3.8 application starting on http://0.0.0.0:3000 So I guess s...

Changes to the code are not getting reflected in Rails 3.0

Hi, I have started a project using Rails 3.0. I am using devise for the authentication. Devise includes links to signin and forgot password in the sign up page. These links are loaded by means of a partial.I did not need these links, so I removed them and reloaded the page, but still these links remain. I tried clearing the cache and ...

How to bundle install a git gem behind a proxy?

I am behind a proxy and I have a git gem in my Gemfile. How can I configure bundler to use git with the appropriate proxy parameters? I already have $http_proxy appropriatelly set, as well as my .gemrc . Still, it doesn't work. ...

How to modify a gem?

I have a gem to which I'd like to do few changes. I have it defined in my Gemfile as follows: gem 'mongo_mapper", :git => "git://github.com/jnunemaker/mongomapper", :branch => "rails3" I was not able to find it in /usr/local/ruby/lib/ruby/gems/1.9.1/gems. ...

What does `lib` mean in the config.gem call in environment.rb

I see a command in environment.rb that says config.gem 'thoughtbot-paperclip', :lib => 'paperclip', :source => 'http://gems.github.com' If I wanted to manually do it, it would be gem install thoughtbot-papperclip --source http://gems.github.com Where does the lib fit in to the command line gem call? ...

Unable to run fastri on cygwin: uninitialized constant Gem::Version (NameError)

I'm trying to setup fastri (http://eigenclass.org/hiki/fastri) on emacs running on cygwin in windows. The ruby install is also from cygwin, not the windows version of ruby. After downloading, unpacking the tarball and running setup.rb, when I attempt to run qri or fri, I get the following error message: [/cygdrive/g]$qri /usr/lib/r...

Updgrading to rails 3

I just ran $gem upgrade rails It seemed to go smoothly (updated 23 gems, no errors, etc...) when i run $rails -v It tells me I have 2.3.5. What gives? ...

Error installing mysql2 gem on ruby 1.9.2

I am currently trying to install the mysql2 gem for a ruby on rails application. I am using ruby 1.9.2. Here is the error todd-andrewss-macbook:shiftly toddOld$ gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/toddOld/.rvm/r...

gem_original_require: no such file to load -- spec/rails

Hi All, I have a rails 2.3.8 app with rspec tests (not written by me, just trying to get them running). When I run "rake spec" I get this error: gem_original_require': no such file to load -- spec/rails (MissingSourceFile) I have the following rspec-related gems installed: rails (2.3.8, 2.3.5) rspec (2.0.1, 1.3.0, 1.2.9, 1.2.4) rsp...

Packaging and distributing a QtRuby app as a gem? Or how?

I have finished developing a GUI desktop Ruby application that uses Qt through the qtbindings gem, and I need to release it with a few requirements: The user doesn't have to build or compile anything, especially Qt libraries, installing Ruby and Rubygems is OK, but not more It must run on Mac and Windows, Linux too preferably I've tr...

Nginx Passenger 3.0 "LoadError" in Production

I have been battling with this question for the past couple of days. I have never been fortunate enough to have to install a Rails application on production and have been pulling my hair out over these errors. My application is currently running http://typealoud.com and throwing an exception which basically amounts to a "LoadError" in a ...