em-rubyserial 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9ff7490d9899a710525d8f06be80350b3ddde3c
4
- data.tar.gz: 6c811ac5335b4540df4b131249239ca52a3eaa17
3
+ metadata.gz: 88a95c0d4298f3d674a1d88f139f611ea58ca703
4
+ data.tar.gz: dd460258eed2900c9ab05263c81802d12af39690
5
5
  SHA512:
6
- metadata.gz: 8e5c06b96a41c1b67677f451a162f23b69b186c72ba185c8d49a813347b5a166bdd2f81e3902e8ba14977fe47c38db2c16980c6208f02c62efbc1679e753ce5f
7
- data.tar.gz: c254e875c319f3a72e705b46438ac60b5a467092fc2fe3249b9e22b8649522a8c8a6676161ad1f44036642e6d8c5596818b1397d04bee681a550174a344da909
6
+ metadata.gz: 27282cfd0752526e957e2f216e543686d12748cd04aac1cbc6a160e1bcaed44569f4b94fb8215475eda6df1ea0ab8fb3d828d9217d585c2f4cec983011e5e9fc
7
+ data.tar.gz: f4f4a3c654f5803a4d9c4bcc0c623d29e89cec0f041029442bd9264386caab5f430def50e320910ad137d12cbdce7bddb579ec348972f07823c818d6f5765deb
@@ -0,0 +1,5 @@
1
+ ## 0.0.2 (2015-09-17)
2
+
3
+ Bugfixes:
4
+
5
+ - Fix "Errno::EBADF - Bad file descriptor" error under jruby that would occur after some time of working
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:
@@ -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 = IO.new(FFI::IO.for_fd(serialport.instance_variable_get(:@fd)).to_i, 'r+')
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
 
@@ -1,5 +1,5 @@
1
1
  module Em
2
2
  module Rubyserial
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -32,7 +32,7 @@ describe "basic reading and writing" do
32
32
  serial = EventMachine.open_serial(@ptys[0][0], 9600, 8)
33
33
 
34
34
  serial.on_data do |data|
35
- expect(data).to eq "hello\x00"
35
+ expect(data).to eq "hello"
36
36
  EM.stop_event_loop
37
37
  end
38
38
  end
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.1
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: 2014-10-24 00:00:00.000000000 Z
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.1.9
123
+ rubygems_version: 2.4.8
123
124
  signing_key:
124
125
  specification_version: 4
125
126
  summary: EventMachine serial port