rubygems

after I install a rails gem...I don't see it in /vendor ... where is it?

For only one of my gems, compass, is it showing up in the /vendor subdirectory. 1) Where is it? 2) how do I have it show up in the directory? Part of the reason is that I need to take a closer look at the gem to see what it is doing because the documentation isn't complete. ...

no such file to load -- rubygems (LoadError)

Hello, I recently installed rails in fedora 12. I'm new to linux as well. Everything works fine on Windows 7. But I'm facing lot of problems in linux. Help please! I've installed all the essentials to my knowledge to get the basic script/server up and running. I have this error from boot.rb popping up when I try script/server. Some of ...

Hotcocoa installation path error

I have installed MacRuby 0.6 and then the hotcocoa gem from Github. However, when I try to create a hotcocoa application with eg. hotcocoa demoapp I get the error -bash: /usr/local/bin/hotcocoa: No such file or directory Typing 'which hotcocoa' results in /usr/bin/hotcocoa Other online documentation seems to suggest that this ...

Ruby: invalid byte sequence in UTF-8

I'm writing a Django project that uses the LESS language. I'm using the django-css application to do this. My colleague is getting the following error, but I am not. I suspect that this might be because the encoding is wrong on the file being compiled. The weird thing is that we cloned from the same hg repo so I don't see why his fil...

Rubygems Path Question

I am trying to run the following ruby code from IRB but am unable to require the gmail gem. require 'rubygems' require 'gmail' gmail = Gmail.new("user", "pass") Here's the IRB output: Johnny-Goodmans-MacBook-Pro:gmail johnnygoodman$ irb >> require 'rubygems' => false >> require 'gmail' NameError: uninitialized constant Gmail ...

Ruby gem to obscure data

Anyone know of a gem that will allow you to obscure/sanitize data? Usecase: Download a production database, run some sanitation so that real customers won't get emails, cards charged etc. ...

Problem in Rail Casts Episode 190

After listening to Rails Cast No 190 I sat down to try it So I installed nokogiri with gem install nokogiri on my Windows 7 Ultimate laptop. I use Ruby 1.9 and this is the way i Installed Nokogiri C:\Ruby>gem install nokogiri Successfully installed nokogiri-1.4.2-x86-mingw32 1 gem installed Installing ri documentation for nokogiri...

Can you tell me about a decent ruby gem that I can use for complex joins?

Piggy backing off another question I posted, I have a complex find() that changes whether or not a certain id is nil or not. See here: if self.id.nil? blocks = AppointmentBlock.find(:first, :conditions => ['appointment_blocks.employee_id = ? and ' + '(time_slots.start_at between ? and ? or time_slots.end_at bet...

Viewpoint gem and Exchange resource account

Hi- I'm trying my hand at using the Viewpoint gem (by zenchild @ github) as the base for a meeting scheduling system. It's great at reading calendar information from regular Exchange 2007 accounts, but I got stuck trying to change the SOAP request header to allow me to read resource accounts as a delegate. I came across http://blogs.m...

Writing a Jeweler Rakefile that adds dependencies depending on RUBY_ENGINE (ruby or jruby)

I have a Rakefile that includes this: Jeweler::Tasks.new do |gem| # ... gem.add_dependency('json') end The gemspec that this generates builds a gem that can't be installed on jruby because the 'json' gem is native. For jruby, this would have to be: Jeweler::Tasks.new do |gem| # ... gem.add_dependency('json-jruby') end How ...

Error installing FeedZirra

Hi, I am new to Ruby on Rails. I am excited about Feed parsing but when I install FeedZirra I am getting this error. I use Windows 7 and Ruby 1.8.7. Please help. Thanks in advance. C:\Ruby187>gem sources -a http://gems.github.com http://gems.github.com added to sources C:\Ruby187>gem install pauldix-feedzirra Building native extensio...

Unable to read excel files in Production environment but working in dev environment

Using Spreadsheet GEM, I am able to read xls files in development environement. As I move to production server, application is unable to read xls files. Please help what can be the likely changes I am missing on to make it work in production environment too. Thanks in advance ...

How to build a Weighted Graph with Ruby's RGL or GRATR to perform Dijkstra's algorithm?

I would like to see an example of a Dijkastra search algorithm for a graph built using Ruby's RGL (http://rgl.rubyforge.org/) or GRATR (http://rubyforge.org/projects/gratr/). I know GRATR has Dijkastra support but I'm not really sure how to go about using it, any help would be appreciated. ...

What are the most important things to know about Ruby?

I am new to the language and I need to know what are the top things that are absolutely necessary to know in order to make a fully functional website or web app using the Ruby programming language? Mainly Ruby on Rails with Rake and other tools that mainly use Rake. Update: I know many other languages like C++, Java, PHP, Perl, etc, et...

require 'rubygems' for linux but not in windows. why? and can I fix this?

I'm setting up a Linux development environment. After installing Ruby and RubyGems, I quickly found out that I need to require 'rubygems' in order to use gems, whereas I do not need to do this in Windows Vista. Is there anything I can do to fix this? Should I even be worrying about it? ...

Rubygems on netbeans driving me crazy!

I cant understand why Gems fetching failed, it was always working fine, i can't figure out how to solve this, hopefully somebody can help. Its driving me Crazy. Error: See troubleshooting section in http://wiki.netbeans,org/RubyGems for hep. Follows output of the gem tool: Error: while executing gem.....(Gem::RemoteFetcher::FetchE...

How to remove installed ri and rdoc ?

How can I remove the ri and rdoc of installed gems? Thanks ...

Automatically create tag based on the string

Hello, I am new to ruby on rails. Lets say i have this text.. Ashley Cole and Cheryl Cole Split. Is there a way to automatically tag this above text to Ashley Cole, Cheryl Code, ChelseaFC ( Ashley Cole plays football (Soccer) for that club. Please help.. Also which is the best tagging gem available? Looking forward for your help T...

Don't Require RubyGems in Ruby 1.9

I have Ruby 1.9.1 installed and by default RubyGems is required. As such, my load path has all my gems included. Is there a way to run Ruby 1.9 without having RubyGems required? ...

ruby-on-rails: use vendor/gems on certain machines

I have a couple of different machines I work on: my mac book winxp machine linux server (shared server at hosting corp.) I unpack the gems and dependencies. I use bluecloth. Unpacked Bluecloth on mac & linux works well, no issues. But does not work at all on the winxp box. The only workaround I have is to delete the bluecloth fo...