rubygems

rails gem programming - How do I try it before pushing to gemcutter?

I'm developing a new gem (fork of nifty-generators). Right now my "deployment" consists on the following: I make changes on the gem's source code I commit to github I update the gemspec lower numer (i.e. go from 0.1.1 to 0.1.2) Build the gem and push it to gemcutter (gem build, gem push) Install the new gem (sudo gem install mygem) Th...

How can I upgrade my Ruby Gems to the latest version "safely"?

Is there any way that I can upgrade my Ruby Gems, and if it doesn't work (on what I'm upgrading them for), than rollback the changes? ...

Mongrel_rails can't find memcache-client

We started to use memcache-client in our rails app and it works just fine with "script/server" but "mongrel_rails start" fails with an error. In environment.rb we define "memcache-client" and version "1.8.1". Gem list shows that the gem is installed: memcache-client (1.8.1). If run with "script/server" everything works but with "mongr...

What's the difference between 'json" gem and 'json_pure' gem?

I need a library to handle JSON objects in Ruby. There are two gems available json and json_pure on http://rubygems.org/search?query=json json_pure is written only in Ruby while json is using C. All I understand is that json is faster because of the usage of C. So is json better for production? Both seem to be easily installed just by ...

Can't install thin by using rubygems on Ubuntu 9.10

How can I fix this error, and install thin or other gems? $ sudo gem install thin Building native extensions. This could take a while... ERROR: Error installing thin: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for rb_trap_immediate in ruby.h,rubysig.h... *** extconf.rb failed *** Could no...

How to bundle a gem in Rails? urgent

HELP!! I need to bundle a gem otherwise a published client's site will stay dead MacBook-Pros-MacBook-Pro:pn macbookpro$ sudo ruby script/generate sanitize Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or ...

rubygem Twitter4R Issues

Hi everyone, I'm trying to get started with twitter4r but I'm having some issues: Why I can't load the gem in IRB? $ sudo gem install twitter4r Successfully installed twitter4r-0.3.2 1 gem installed Installing ri documentation for twitter4r-0.3.2... Installing RDoc documentation for twitter4r-0.3.2... $ irb >> require 'rubygems' => f...

How to install system_timer gem on Windows 7

I got problem "Processing environment.rb: Pre Initialisation Phase (using rails 2.3.5)" "Processing environment.rb: Main Initialisation Phase" C:/Ruby/bin/rake: No such file or directory - svnversion [memcache-client] Could not load SystemTimer gem, falling back to Ruby's slower/unsafe timeout library: no such file to load -- system_tim...

failed to connect to any given host:port - RoR Error?

Hi all I'm very new to Ruby on Rails so please go easy! I've uploaded the whole application to the server (Dreamhost) and gone through the steps. But when I try to run it I get the following error: failed to connect to any given host:port (Mongo::ConnectionFailure) I have installed the Mongo gem; but maybe I haven't got it configur...

Attachment Fu error on MAC OS X and Ubuntu 9.10

Greetings. I am encountering an issue with attachment fu and s3. Details: Production server - Ubuntu - imagemagick, rmagick aws-s3 gems are installed . Error starting app: vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb:173:in `included': undefined method `symbolize_keys' for nil:NilClass (NoMethodE...

Ruby SerialPorts

I'm using the ruby serial port gem. After I open up the port I send the data I want like this. sp.write [200.chr, 30.chr, 7.chr, 5.chr, 1.chr, 2.chr, 0.chr, 245.chr].to_s It doesn't work, but if I put it in a loop of around 200 times: 200.times do sp.write [200.chr, 30.chr, 7.chr, 5.chr, 1.chr, 2.chr, 0.chr, 245.chr].to_s end It ...

How to install ferret gem on Windows 7 ?

Hi, I was trying to run an OpenSource project which requires ferret to be installed. While installing it using gem install ferret, it's giving this error -> Building native extensions. This could take a while... ERROR: Error installing ferret: ERROR: Failed to build gem native extension. C:/Ruby/bin/ruby.exe ext...

Ruby Summer of Code Project Ideas

So, I'm thinking about applying for Ruby Summer of Code. However, I'm not sure what I want to propose. I was wondering if any of you had any good ideas? I've been programming in Ruby for about 3 years. I am primarily a web developer, but I do things related to bit torrent, data mining, and databases as well. I have a bit torrent related...

Configure Cucumber with SentientUser

I have an application using the SentientUser gem to provide the current user to my models. On top of that I'm using default scoping to ensure that a user can only ever access data that they own. So a typical model for me looks something like this: class Location < ActiveRecord::Base validates_presence_of :name, :time_zone, :address ...

Rails LinkedIn gem only gets first name and last name out of profile

I'm currently trying to use this gem http://github.com/pengwynn/linkedin. Everything works fine (i.e. authentication and calling the method which gets the profile), except that the profile object only contains the first name and the last name. I'm trying to get my own profile info through the api, so the necessary information is there....

What would cause native gem extensions on OS X to build but fail to load?

I am having trouble with some of my rubygems, in particular those that use native extensions. I am on a MacBookPro, with Snow Leopard. I have XCode 3.2.1 installed, with gcc 4.2.1. Ruby 1.8.6, because I'm lazy and a scaredy cat and don't want to upgrade yet. Ruby is running in 32-bit mode. I built this ruby from scratch when my MBP ran ...

Rails - asynchronous tasks, forked processes, best practices

I'm using a Observer on my classes. When one of the records is created/updated I need to notfify another service (via a URL call). What is the best way to do this to avoid slowing down my class? Would using a gem liked delayed_job be overkill? In my Observer's after_update() / after_create() I just want to launch a thread that calls the...

regarding CLSID(comclass) for IDotHocManager interface for ad hoc manager

I am trying to create adhoc connection throught program.For this i need to use the interface IDotHocManager , this interface can be instantiated by CoCreateInstance. I am not able to obtain the following parameters of COcreateInstance() for IDotHocManager interface. REFCLSID rclsid, REFIID riid, kindly help me out by giving an idea...

Error installing RedCloth

I'm getting this erron when trying to install RedCloth on openSuse: sudo gem install RedCloth Building native extensions. This could take a while... ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb creating Makefile make sh: make: nie znaleziono polecenia Gem files wil...

xapian-full installed on mac os x snow leopard but failed with dlopen LoadError

Since I have tried to install xapian but failed, I try another alternative with xapian-full. Installation seems goes well, but when I try to write code with that I got toasted with error message again: irb(main):001:0> require 'xapian' LoadError: dlopen(/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/xapian-full-1.1.3.4/lib/_xapian.bundle, ...