gem

Web App that uses Webcam...any Rails plugins/gems?

Hello, I;m a developer looking to make an app similar to chat roulette. I'm pretty comfortable with Ruby on Rails as my platform and would like to program it in that. The downside is I have no idea about how to do anything using webcams. Is there a plugin or gem for rails that integrates webcams easily? Some quick browsing brought m...

Using Rake or Gem for building scripts?

I want to build scripts that automatize things for me. Here is an example of what I want to do: Create new rails app (rails new application_name --database=mysql) Jump to folder Initialize git (git init; git add .; git commit -m "first commit"; git remote add name address; git push name master) Create heroku project (heroku create; gi...

Should I host gems in GitHub or RubyGems?

I've read that RubyGems is de-facto hosting for gems. I host all my Rails projects on GitHub. So my questions are: Are there any reasons for hosting my gems on GitHub and not RubyGems? Does RubyGems have private repositories like GitHub? I've read that jeweler is nice for creating gem skeleton. On their webpage it sounds like it uplo...

Gem framework for creating gems with parameter lists?

I want to create some Gems with parameters lists when i run: my_app --help. Just like all the gems (rake, rails etc). Example: Usage: rails new APP_PATH [options] Options: -J, [--skip-prototype] # Skip Prototype files -T, [--skip-test-unit] # Skip Test::Unit files [--dev] # Setup the application ...

How to prevent the second "gem install XXX" from reinstalling?

gem install XXX seems to run the installation process even if the package is already installed. i.e. if I do $ gem install chef ... $ gem list | grep chef chef (0.9.8) $ gem install chef ... the second gem install chef seems to install chef again! How can I get this to result in a noop and the message "chef is already installed", or...

Ruby-mysql gem suddenly broken with uninitialized constant error message

I've been working on a ruby module that interacts with mysql on my server. I need to fetch and write data to the database, and it's been working fine for a while now. However, today I created a new file trying to access the database and it wouldn't run. When I tried to execute it (with command: ruby mysql.rb), I received the following er...

In depth Ruby Gem development resources (book, video, sites)

I'm writing my first Gem for a Rails project, and looking for in depth information about this topic i have found nothing at all. I'm not looking "how to build a gem", but a relevant developer guide or resource on the topic (distributed programming with Ruby and so on). I expect if someone have good reference material ?? Thanks in adva...

Using Ruby on Rail's Authlogic gem, how do I display the login form on all pages?

I followed the tutorial exactly: http://github.com/binarylogic/authlogic_example But I am wondering how can I get the login form to appear on all pages when someone isn't logged in? I searched Google and looked at many forums for answers, but the only solutions I could find require me to define @user_session = UserSession.new for every...

Gem install on Windows 7

Try to install feedzirra gem (http://github.com/pauldix/feedzirra) Do this: gem install pauldix-feedzirra I get the following error: Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing pauldix-feedzirra: ERROR: Failed to build gem native extension. ...

Managing mailing list archives in Rails?

I was wondering if there was a gem for managing and archiving mails on a mailing list. Somewhat like railsarchive but with some additional features like categories likes and trending etc. If not, can somebody help me with the basic architecture? TIA ...

Listing the latest unstable gem version?

When I do: gem search -r rails It shows me: rails (2.3.8) But how do I know the latest unstable version which is 3.0.0.rc so that I can use it: gem install rails --version=3.0.0.rc ...

Can't run "gem list"!

I get an error when i run: vagrant@vagrantup:~$ sudo gem list ERROR: Loading command: list (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::ListCommand Even if I don't use sudo I get the same error message. It's on Ubuntu 10.4 and I have installed zlib...

Invalid date when installing cucumber on Ruby 1.8.6

I'm setting up a continuous integration server for an application that uses cucumber. I'm trying to install cucumber gem on ubuntu linux 10.04 but it doesn't work on ruby 1.8.6. It works on ruby 1.8.7 but it doesn't solve my problem because cruisecontrolrb demands 1.8.6. I have found this link http://www.ruby-forum.com/topic/198581, and ...

Possible to call executable Thor-powered script without calling thor?

I have a thor-based Ruby script, but I want to deploy it as a gem in people's bin directories that people can hit without having to do thor mytool. So instead they'd just use mytool Is this possible? I know it's possible with vanilla optparse but I'd rather use Thor if possible. Update: This is the code I'm using based on the example...

Get repository link from gem?

Is it possible to get the git repository of a gem? Eg the gem thor has repo of http://github.com/wycats/thor.git Could I get this repo link from the thor gem? ...

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

Rails gem: What is the best way to keep all versions of database objects and to save changes linked to a user?

I have a collaborative app environment, where I need to store/log information on who changes what in the system. All versions of every object needs will be saved with user information, and no data can ever be deleted. What should I look at besides extending vestal_versions? ...

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

What is the difference between 'require' and 'config.gem' in a RoR app?

What is the difference between having require 'gem_name' in a controller and config.gem "gem_name" in environments.rb? I'm new to RoR, and am looking through an app and can't work out the difference. Thanks for reading. ...

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