em-rubyserial 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -0
- data/lib/em-rubyserial.rb +1 -2
- data/lib/em-rubyserial/version.rb +1 -1
- data/spec/basic_rw_spec.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88a95c0d4298f3d674a1d88f139f611ea58ca703
|
4
|
+
data.tar.gz: dd460258eed2900c9ab05263c81802d12af39690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27282cfd0752526e957e2f216e543686d12748cd04aac1cbc6a160e1bcaed44569f4b94fb8215475eda6df1ea0ab8fb3d828d9217d585c2f4cec983011e5e9fc
|
7
|
+
data.tar.gz: f4f4a3c654f5803a4d9c4bcc0c623d29e89cec0f041029442bd9264386caab5f430def50e320910ad137d12cbdce7bddb579ec348972f07823c818d6f5765deb
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -16,6 +16,8 @@ but replaces the serialport gem with the rubyserial gem, and does some file desc
|
|
16
16
|
|
17
17
|
There is currently as of this writing no license on the em-serialport gem, so hopefully this amount of attribution is satisfactory.
|
18
18
|
|
19
|
+
[CHANGELOG](https://github.com/jcantara/em-rubyserial/blob/master/CHANGELOG.md)
|
20
|
+
|
19
21
|
## Installation
|
20
22
|
|
21
23
|
Add this line to your application's Gemfile:
|
data/lib/em-rubyserial.rb
CHANGED
@@ -47,11 +47,10 @@ module EventMachine
|
|
47
47
|
def self.open(dev, baud, databits)
|
48
48
|
serialport = ::Serial.new(dev, baud, databits)
|
49
49
|
if RUBY_PLATFORM == "java"
|
50
|
-
io =
|
50
|
+
io = FFI::FileDescriptorIO.new(serialport.instance_variable_get(:@fd).to_i)
|
51
51
|
else
|
52
52
|
io = IO.new(serialport.instance_variable_get(:@fd), 'r+')
|
53
53
|
end
|
54
|
-
io.instance_variable_set(:@serialport, serialport) # hang on to our serial port so it doesn't get closed and close our file descriptor
|
55
54
|
self.new(io)
|
56
55
|
end
|
57
56
|
|
data/spec/basic_rw_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-rubyserial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Cantara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyserial
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- .gitignore
|
91
91
|
- .rspec
|
92
92
|
- .travis.yml
|
93
|
+
- CHANGELOG.md
|
93
94
|
- Gemfile
|
94
95
|
- LICENSE.txt
|
95
96
|
- README.md
|
@@ -119,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
120
|
version: '0'
|
120
121
|
requirements: []
|
121
122
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.4.8
|
123
124
|
signing_key:
|
124
125
|
specification_version: 4
|
125
126
|
summary: EventMachine serial port
|