hybridgroup-serialport 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MANIFEST +1 -0
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/hybridgroup-serialport.gemspec +4 -3
- data/lib/oscheck.rb +5 -0
- data/lib/serialport.rb +3 -5
- metadata +5 -2
data/MANIFEST
CHANGED
data/Rakefile
CHANGED
@@ -12,10 +12,10 @@ begin
|
|
12
12
|
gemspec.description = "Ruby/SerialPort is a Ruby library that provides a class for using RS-232 serial ports."
|
13
13
|
gemspec.email = "serialport@hybridgroup.com"
|
14
14
|
gemspec.homepage = 'http://github.com/hybridgroup/ruby-serialport/'
|
15
|
-
gemspec.authors = ['Guillaume Pierronnet', 'Alan Stern', 'Daniel E. Shipton', 'Tobin Richard', 'Hector Parra', 'Ryan C. Payne']
|
15
|
+
gemspec.authors = ['Guillaume Pierronnet', 'Alan Stern', 'Daniel E. Shipton', 'Tobin Richard', 'Hector Parra', 'Ryan C. Payne', 'Adrian Zankich', 'Ron Evans']
|
16
16
|
gemspec.has_rdoc = true
|
17
17
|
gemspec.extensions << 'ext/native/extconf.rb'
|
18
|
-
gemspec.version = "1.2.
|
18
|
+
gemspec.version = "1.2.1"
|
19
19
|
gemspec.files = [
|
20
20
|
"CHANGELOG",
|
21
21
|
"CHECKLIST",
|
@@ -30,13 +30,13 @@ begin
|
|
30
30
|
"ext/native/serialport.h",
|
31
31
|
"ext/native/win_serialport_impl.c",
|
32
32
|
"lib/serialport.rb",
|
33
|
+
"lib/oscheck.rb",
|
33
34
|
"hybridgroup-serialport.gemspec",
|
34
35
|
"test/miniterm.rb",
|
35
36
|
"test/set_readtimeout.rb"
|
36
37
|
]
|
37
38
|
|
38
39
|
Rake::ExtensionTask.new "serialport", gemspec do |ext|
|
39
|
-
#ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
|
40
40
|
ext.ext_dir = "ext/native"
|
41
41
|
end
|
42
42
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.1
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "hybridgroup-serialport"
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Guillaume Pierronnet", "Alan Stern", "Daniel E. Shipton", "Tobin Richard", "Hector Parra", "Ryan C. Payne"]
|
12
|
-
s.date = "2013-01-
|
11
|
+
s.authors = ["Guillaume Pierronnet", "Alan Stern", "Daniel E. Shipton", "Tobin Richard", "Hector Parra", "Ryan C. Payne", "Adrian Zankich", "Ron Evans"]
|
12
|
+
s.date = "2013-01-14"
|
13
13
|
s.description = "Ruby/SerialPort is a Ruby library that provides a class for using RS-232 serial ports."
|
14
14
|
s.email = "serialport@hybridgroup.com"
|
15
15
|
s.extensions = ["ext/native/extconf.rb", "ext/native/extconf.rb"]
|
@@ -31,6 +31,7 @@ Gem::Specification.new do |s|
|
|
31
31
|
"ext/native/serialport.h",
|
32
32
|
"ext/native/win_serialport_impl.c",
|
33
33
|
"hybridgroup-serialport.gemspec",
|
34
|
+
"lib/oscheck.rb",
|
34
35
|
"lib/serialport.rb",
|
35
36
|
"test/miniterm.rb",
|
36
37
|
"test/set_readtimeout.rb"
|
data/lib/oscheck.rb
ADDED
data/lib/serialport.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
require 'oscheck'
|
2
|
+
|
3
|
+
if OsCheck.is_osx?
|
2
4
|
require 'serialport.bundle'
|
3
5
|
else
|
4
6
|
require 'serialport.so'
|
@@ -49,7 +51,3 @@ class SerialPort
|
|
49
51
|
return sp
|
50
52
|
end
|
51
53
|
end
|
52
|
-
|
53
|
-
def is_osx?
|
54
|
-
return (RUBY_PLATFORM.split("-")[1] == ('darwin')) ? true : false
|
55
|
-
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hybridgroup-serialport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,10 +11,12 @@ authors:
|
|
11
11
|
- Tobin Richard
|
12
12
|
- Hector Parra
|
13
13
|
- Ryan C. Payne
|
14
|
+
- Adrian Zankich
|
15
|
+
- Ron Evans
|
14
16
|
autorequire:
|
15
17
|
bindir: bin
|
16
18
|
cert_chain: []
|
17
|
-
date: 2013-01-
|
19
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
18
20
|
dependencies: []
|
19
21
|
description: Ruby/SerialPort is a Ruby library that provides a class for using RS-232
|
20
22
|
serial ports.
|
@@ -39,6 +41,7 @@ files:
|
|
39
41
|
- ext/native/serialport.h
|
40
42
|
- ext/native/win_serialport_impl.c
|
41
43
|
- hybridgroup-serialport.gemspec
|
44
|
+
- lib/oscheck.rb
|
42
45
|
- lib/serialport.rb
|
43
46
|
- test/miniterm.rb
|
44
47
|
- test/set_readtimeout.rb
|