Skip to content

Conversation

@larskanis
Copy link
Owner

I would be willing to maintain this gem, because I have some projects which use it. It's the only serial gem, which can query and set the control pins on Linux and Windows.

This merges the fix and polyfill discussed in: https://bugs.ruby-lang.org/issues/20265#note-7

Fixes #78
It isn't running any longer for decades.
Fixes:
  LoadError: cannot load such file -- C:/ruby-serialport/(eval at C:/ruby-serialport/lib/serialport/version (LoadError)
Warning was:
   warning: 'fd' is deprecated: rb_io_descriptor
warning: initialization discards "const" qualifier from pointer target type [-Wdiscarded-qualifiers]
         "/dev/ttyS0"
warning: comparison of integer expressions of different signedness: "int" and "long unsigned int" [-Wsign-compare]
            if (num_port < 0 || num_port > sizeof(ports) / sizeof(ports[0]))
warning: function might be candidate for attribute "noreturn" [-Wsuggest-attribute=noreturn]
warning: "PURGE_RXABORT" redefined
  581 | #define PURGE_RXABORT 0x02
      |         ^~~~~~~~~~~~~
In file included from C:/msys64/ucrt64/include/windows.h:70,
@tardate
Copy link

tardate commented Jun 12, 2025

btw, I can confirm that this branch also works with macOS 15.5 on Apple Silicon with Ruby 3.3.3.

(the released serialport 1.3.2 gem fails to compile, even with compiler flag tricks others have mentioned in the past)

@larskanis
Copy link
Owner Author

I requested to take this project over on #77, but didn't receive an answer.

@hparra , @tenderlove Could you please check if I can get push permissions on rubygems for the serialport gem. I'd like to release the above changes in a new version.

@tardate
Copy link

tardate commented Jun 12, 2025

@larskanis yes, I saw your attempts to sort out the maintenance - thanks for doing this!

As I think others have suggested, I'd recommend put a time limit on this - if no resolution, publish a new gem based on your fork, and get this repo archived/EOL'd.

@tenderlove
Copy link
Collaborator

@larskanis I added you on RG, but it sent you an invite for you to confirm!

@larskanis
Copy link
Owner Author

This is merged to the new repository at https://github.com/larskanis/ruby-serialport . I just released serialport-1.4.0.gem on rubygems fixing compat with ruby-3.4. Issues are still tracked on https://github.com/hparra/ruby-serialport/issues for now.

Thank you @tenderlove for giving the permission!

@larskanis larskanis closed this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants