rubygems

Getting started with gems and jeweler

With Jeweler I created a gem folder structure with ease. However, I still have some questions: Why are params like --gemcutter and --rubyforge still available for Jeweler. Aren't these replaced by RubyGems? Do I have to specify anything to create a gem for RubyGems? In the Rakefile I have information about the gem, and when I run "rak...

Can't access rdocs via gem server for my gems - how to make this happen?

I have several gems that contain rdoc, specifically a README (but also rdoc in the code), and I'd like them to be available via the gem server command, however they are not. Even when I do gem rdoc mygem it churns and indicates it's writing to the correct location, however nothing ends up there. Almost every other gem I have installed ...

How to use i18n_routing gem with rails2

Hello all, I installed the following gems in addition to rails 2.3.5: i18n (0.4.1) i18n_routing (0.3.7) In environment.rb I added require i18n_routing Inserted the following lines in routes.rb: map.localized(I18n.available_locales, :verbose => true) do map.resources :users map.resource :contact end but when I restart the se...

Why does my Sproutcore development server drop connections with "invalid byte sequence in US-ASCII"?

Here's the stack: Sproutcore 1.0.1046. Ruby 1.9.1, in RVM. Thin 1.2.7. Thor 0.13.8. Rack 1.2.1. Eventmachine 0.12.10. Erubis 2.6.6. When I start the sc-server on any application, my first request to this server produces this in the console log: ArgumentError: invalid byte sequence in US-ASCII ...followed by this stack trace. (I've li...

Variable scope with in different ruby file

hello sir, i am autpmating a web site that have different function page. i am making differnt modules for each function. the problem is that i have a login page Login.rb that has the below code :- $IE = Watir::IE.new_process module Login def Login.login(url) $IE.goto("url") sleep (4) $IE.maximize #$IE.span(:class =...

BlueCloth isn't working with Rails 3

Is BlueCloth compatible with Rails 3? I can't make it work, maybe someone uses it? There is supposed to be a helper called 'markdown' available in the views after requiring 'bluecloth', but this doesn't seem to be available. ...

Installing mysql2 gem for Rails 3

Hi guys, I am having some problems when trying to install mysql2 gem for Rails 3. When I try to install it by issuing "bundle install" command or "gem install mysql2" it gives me following error "Error installing mysql2: ERROR: Failed to build gem native extension." Did anyone have any luck with this? Thanks! ...

jssh telnet fails even after installing the add-on on Linux

Hi, I am working with ruby gem "firewatir (1.6.5)" and mozilla Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.5.9-1.fc11 Firefox/3.5.9.<\i> I have installed the jssh.*.xpi extension for mozilla 3.5 for Linux and it works for sometime. But the problem is that after running some scripts I get the error ...

Ruby Gems with flexible gem dependencies?

I'm about to extract major functionality of a larger project into a ruby gem. The little framework I created uses a few additional gems, for different import/export options. Ie. FasterCSV (for ruby 1.8) for csv import/export Nokogiri for csv import/export GraphViz for graph ... PDF ... I don't want users of the gem to install and l...

How to remove an item from gem PATH?

I was trying to update Rails and I ran gem install rails from my home directory and I now have a .gem directory in my home dir. I eventually was able to update Rails properly, and deleted the .gem folder, but I now have this extra PATH in my GEM PATHS that I wanted to get rid of: - GEM PATHS: - /Library/Ruby/Gems/1.8 - /Us...

User membership pattern rails

In the .Net world we have the Membership provider, with this we can fully automate user registration and management. Does such a gem exist for the Ruby on Rails community. I am looking for something that would allow a user to register, retrieve lost password, modify password and login. ...

Rails reinstalls every time I push to heroku

When I write git push heroku master my app is successfully pushed to heroku, but it takes about 30sec to a minute because it says it is "Installing gem rails 2.83" and that "Rails is not declared in either .gems or Gemfile." How do I fix this? What exactly is the .gems file and where does it live? Thanks a lot. I am completely new to ...

Rails Gems Symbolic Links Setup on Mac OS X

I have Rails 3, and have been using a Gemfile to install several gems like annotate and rspec-rails Problem is in all the tutorials, it says to type things like "annotate" in the command line but it doesn't work "command not found" this make me believe that Symbolic Links are not in place to allow me to run/use the gems in terminal. Ho...

ruby gems under rvm on Ubuntu (failing to) install in the wrong location

I'm running Ubuntu 10.04 and originally installed ruby 1.9.1 (from source). I've just decided to try out ruby 1.9.2 and rails 3, and it seemed like a good time to use rvm to deal with the multiple ruby installs and gemsets. rvm installed and seems to be working, I installed ruby 1.9.2 in rvm and made that my default ruby. However, ev...

Rails/Passenger: no such file to load -- money (MissingSourceFile)

I am attempting to deploy a Rails application (which works fine in development) onto a production server. I have installed and configured Apache, Passenger, and the necessary gems. After I restart apache and navigate to the server, I get the following error: Exception PhusionPassenger::UnknownError in PhusionPassenger::Railz::Applicatio...

In Ruby on Rails, what's the difference between installing something as a gem or as a plugin?

On http://github.com/collectiveidea/delayed_job it says: To install as a gem, add the following to config/environment.rb: config.gem 'delayed_job' Run rake gems:install versus To install as a plugin: script/plugin install git://github.com/collectiveidea/delayed_job.git What is the difference between installing i...

Who decides what goes into "gem install <gem_name>" and how do you decide which fork to use?

Such as for delayed_job, there is tobi's version and collectiveidea's version. http://github.com/tobi/delayed_job http://github.com/collectiveidea/delayed_job Who decides what goes into gem install delayed_job? (Does rubygems.org's contain all the official ones?) And if we use anything directly from GitHub, how do we decide w...

unable to install gems using `sudo`

I have just setup a new Ubuntu 10.04 PC and am trying to install some gems. gerhard@superserver:~$ sudo gem install rake ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem rake locally or in a repository gerhard@superserver:~$ I thought it was because my HTTP_PROXY was set incorrectly (I a...

gems/plugins for affiliate system?

Hello, guys. Do you remember any gems/plugins out there to support an affiliate (referral, partner) like system? e.g the 37signals affiliate program Any help/links would be appreciated. ...

Can i use rak command inside rake task ?

I have install gem rak i want to use rak command inside rake task ... How may i use that ?? I know how to use it on command prompt ... This is working fine on command prompt ... rak RAILS_ENV ...