hparra / ruby-serialport

ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports
http://rubygems.org/gems/serialport
GNU General Public License v2.0
246 stars 58 forks source link

Various fixes for Ruby 2.0 #32

Closed tenderlove closed 12 years ago

tenderlove commented 12 years ago

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.

hparra commented 12 years ago

I'm just getting connected after a year of traveling. Thanks for this update.

hparra commented 12 years ago

Gem pushed. 1.1.0

tenderlove commented 12 years ago

awesome, thank you very much! :-D

On Fri, May 25, 2012 at 9:19 PM, Hector Guillermo Parra Alvarez reply@reply.github.com wrote:

Gem pushed. 1.1.0


Reply to this email directly or view it on GitHub: https://github.com/hparra/ruby-serialport/pull/32#issuecomment-5944254

Aaron Patterson http://tenderlovemaking.com/