hparra/ruby-serialport — pull request #32 by tenderlove (2012-05-22 15:37:19+00:00)
Title: Various fixes for Ruby 2.0

I've added rake-compiler to the Rakefile, so when you want to compile and test, just do `rake compile`, and the shared object will be copied to your lib folder.

I've removed the `RUBY_1_9` preprocessor directive in favor of using directives from `ruby.h`. We can tell if `ruby/io.h` is available based on preprocessor directives set in `ruby.h`. More importantly, we don't have to do version detection on the particular version of ruby people are running.

These commits make the gem work on Ruby 2.0.

Thanks.