Skip to content

I updated this to be compatible with the latest event machine #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
.bundle
Gemfile.lock
pkg/*

.idea/*
em-serialport.iml
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
em-serial
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.1.0
2 changes: 1 addition & 1 deletion em-serialport.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Gem::Specification.new do |s|
s.executables = ['serial-monitor']
s.require_paths = ["lib"]

s.add_dependency "eventmachine", "0.12.10"
s.add_dependency "eventmachine"
s.add_dependency "serialport"
end
2 changes: 1 addition & 1 deletion lib/em-serialport.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$eventmachine_library = :pure_ruby
require 'eventmachine'
require 'em/pure_ruby'
require 'serialport'

%w(serial_port connection).each do |file|
Expand Down
2 changes: 1 addition & 1 deletion lib/em-serialport/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Em
module Serialport
VERSION = "0.0.2"
VERSION = "0.0.3"
end
end
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The gem comes with a simple command line Serial Monitor. Launch it as:

bundle exec serial-monitor /dev/tty.usbserial-xxxxxxxx

Here is a working example, tested with an [https://github.com/railsbob/arduino-examples/tree/master/echo_server](arduino echo server). It simply reads and writes data to serial port from command line.
Here is a working example, tested with [arduino echo server](https://github.com/railsbob/arduino-examples/tree/master/echo_server). It simply reads and writes data to serial port from command line.

Serial monitor initialized. Enter data followed by a newline character.
Ctrl-C to stop
Expand All @@ -36,4 +36,4 @@ Here is a working example, tested with an [https://github.com/railsbob/arduino-e
received: ery long
received: sentence