sanderjd-rmodbus 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +3 -0
- data/CHANGES +12 -0
- data/LICENSE +675 -0
- data/README +49 -0
- data/Rakefile +49 -0
- data/VERSION.yml +4 -0
- data/lib/rmodbus.rb +13 -0
- data/lib/rmodbus/client.rb +247 -0
- data/lib/rmodbus/exceptions.rb +47 -0
- data/lib/rmodbus/tcp_client.rb +72 -0
- data/lib/rmodbus/tcp_server.rb +160 -0
- data/spec/client_spec.rb +57 -0
- data/spec/ext_spec.rb +27 -0
- data/spec/rtu_client_spec.rb +13 -0
- data/spec/tcp_client_spec.rb +48 -0
- data/spec/tcp_server_spec.rb +107 -0
- metadata +20 -4
- data/ext/extconf.rb +0 -13
data/ext/extconf.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'mkmf'
|
2
|
-
|
3
|
-
printf("checking for OS... ")
|
4
|
-
STDOUT.flush
|
5
|
-
os = /-([a-z]+)/.match(RUBY_PLATFORM)[1]
|
6
|
-
puts(os)
|
7
|
-
$CFLAGS += " -D#{os}"
|
8
|
-
|
9
|
-
if !(os == 'mswin' or os == 'bccwin')
|
10
|
-
exit(1) if not have_header("termios.h") or not have_header("unistd.h")
|
11
|
-
end
|
12
|
-
|
13
|
-
create_makefile("serialport")
|