wj-em-rubyserial 0.0.4 → 0.0.6

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
- SHA1:
3
- metadata.gz: c868982a739ea09b1021f117cc94e501f9dd9b43
4
- data.tar.gz: 37868149710dba49c1ee5ef29b3c015ab9cfe12b
2
+ SHA256:
3
+ metadata.gz: 991d18c88948f365b7aa812159781f83ad8eba407f2475e13a410d17ea22b2b4
4
+ data.tar.gz: 434eee7068940f76dc11e939de5dc962620429145d6bf173192d3a9cb9bcdf53
5
5
  SHA512:
6
- metadata.gz: 2f7b76d675ae98033b5b168ebd87d74d4e6c9697a46a8b80c59aa928df2c6f42cc7822d2d86359610e0249e7b69ec3476876721475183809754e552f4ea69fd6
7
- data.tar.gz: ec682073cb2bc5c55f9072df078408bbfeed5408c11bec9cdf22043acc92861a74af270a338a5655538c53c37d659c1d7e77496b403f1ce7d78d6b7a5cc7ea3b
6
+ metadata.gz: e5b9c5ee1bd54646efc939ed12558a8e2c13ed1bb961d2a027590f754193eb8ea1c486d64842cbcc1baf9620828171c1140c92a135c5d71484cde9afb034044f
7
+ data.tar.gz: 25906c8d59e14906ebef2d41826e2717cec83e1725451c127031a4f717b4519468d5cfda48fcd49fe3fed351553c6c1e652ce58d813472197b8761ac5cd84821
data/.gitignore CHANGED
@@ -1,9 +1,7 @@
1
- *.gem
2
1
  *.rbc
3
2
  .bundle
4
3
  .config
5
4
  .yardoc
6
- Gemfile.lock
7
5
  InstalledFiles
8
6
  _yardoc
9
7
  coverage
data/Gemfile CHANGED
@@ -2,3 +2,6 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in em-rubyserial.gemspec
4
4
  gemspec
5
+
6
+ #gem 'eventmachine', git: 'https://github.com/wordjelly/eventmachine.git', branch: 'fix_timer_delete_issue'
7
+ gem 'bundler'
@@ -0,0 +1,41 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ wj-em-rubyserial (0.0.5)
5
+ rubyserial
6
+ wj_eventmachine
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ diff-lcs (1.4.4)
12
+ ffi (1.14.2)
13
+ rake (13.0.3)
14
+ rspec (3.10.0)
15
+ rspec-core (~> 3.10.0)
16
+ rspec-expectations (~> 3.10.0)
17
+ rspec-mocks (~> 3.10.0)
18
+ rspec-core (3.10.1)
19
+ rspec-support (~> 3.10.0)
20
+ rspec-expectations (3.10.1)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.10.0)
23
+ rspec-mocks (3.10.0)
24
+ diff-lcs (>= 1.2.0, < 2.0)
25
+ rspec-support (~> 3.10.0)
26
+ rspec-support (3.10.1)
27
+ rubyserial (0.6.0)
28
+ ffi (~> 1.9, >= 1.9.3)
29
+ wj_eventmachine (1.3.0.dev.1)
30
+
31
+ PLATFORMS
32
+ ruby
33
+
34
+ DEPENDENCIES
35
+ bundler
36
+ rake
37
+ rspec (~> 3)
38
+ wj-em-rubyserial!
39
+
40
+ BUNDLED WITH
41
+ 2.0.2
data/README.md CHANGED
@@ -4,11 +4,13 @@ EventMachine serial port functionality that should work on all* ruby flavors (in
4
4
 
5
5
  The original gem fails on virtually all versions of EventMachine, due to a weird rbtree errors. I fixed this, by fixing what looks like an erroneous require statement.
6
6
 
7
+ Locked em version
8
+
7
9
  ## Installation
8
10
 
9
11
  Add this line to your application's Gemfile:
10
12
 
11
- gem 'em-rubyserial'
13
+ gem 'wj-em-rubyserial'
12
14
 
13
15
  And then execute:
14
16
 
@@ -16,7 +18,7 @@ And then execute:
16
18
 
17
19
  Or install it yourself as:
18
20
 
19
- $ gem install em-rubyserial
21
+ $ gem install wj-em-rubyserial
20
22
 
21
23
  ## Usage
22
24
 
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_runtime_dependency "rubyserial"
22
- spec.add_runtime_dependency "eventmachine"
22
+ spec.add_runtime_dependency "wj_eventmachine"
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.6"
24
+ #spec.add_development_dependency "bundler", "~> 1.6"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec", "~> 3"
27
27
  end
@@ -0,0 +1,21 @@
1
+ require "em-rubyserial"
2
+
3
+ module EchoServer
4
+ def post_init
5
+ puts "-- someone connected to the echo server!"
6
+ end
7
+
8
+ def receive_data data
9
+ send_data ">>>you sent: #{data}"
10
+ close_connection if data =~ /quit/i
11
+ end
12
+
13
+ def unbind
14
+ puts "-- someone disconnected from the echo server!"
15
+ end
16
+ end
17
+
18
+ # Note that this will block current thread.
19
+ EventMachine.run {
20
+ EventMachine.start_server "127.0.0.1", 8081, EchoServer
21
+ }
@@ -1,5 +1,5 @@
1
1
  require "em-rubyserial/version"
2
- require 'eventmachine'
2
+ require 'em/pure_ruby'
3
3
  require 'rubyserial'
4
4
 
5
5
  module EventMachine
@@ -1,5 +1,5 @@
1
1
  module Em
2
2
  module Rubyserial
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wj-em-rubyserial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bhargav Raut
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-01 00:00:00.000000000 Z
11
+ date: 2020-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyserial
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: eventmachine
28
+ name: wj_eventmachine
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '1.6'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '1.6'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -92,10 +78,12 @@ files:
92
78
  - ".travis.yml"
93
79
  - CHANGELOG.md
94
80
  - Gemfile
81
+ - Gemfile.lock
95
82
  - LICENSE.txt
96
83
  - README.md
97
84
  - Rakefile
98
85
  - em-rubyserial.gemspec
86
+ - error.rb
99
87
  - lib/em-rubyserial.rb
100
88
  - lib/em-rubyserial/version.rb
101
89
  - spec/basic_rw_spec.rb
@@ -119,8 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
107
  - !ruby/object:Gem::Version
120
108
  version: '0'
121
109
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.6.14.4
110
+ rubygems_version: 3.2.3
124
111
  signing_key:
125
112
  specification_version: 4
126
113
  summary: EventMachine serial port