tiny_tcp_service 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_tcp_service.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0b5f209ab23524835fe2cc63b60e2189b26ad34662ee3af78c6c28b9fa8c721
4
- data.tar.gz: 87f8e1c4b84b09d1ee34afdae890a4886b7f9878631f7d86e8e74fa300611b2e
3
+ metadata.gz: 705433100d134e1b65ea922d21ced51f6429570bdc86aeaba322765c6e4d0cf3
4
+ data.tar.gz: 3ab6c3c0510341c0e3bb26180a6baf0576570c0e96b1f6b12cf0ab4c38357521
5
5
  SHA512:
6
- metadata.gz: c1a76e05e856e23bb33890c9f2fc9c46af0c82b8185501252fa1c1d73f22c1e01115443cebaa97c225c5e1bbd1fcf336bfd6aabb2014bdfa3eb01ae6028b02f0
7
- data.tar.gz: 279da0f3265028f3f528587d3b1783ba9f148c1d228b0f871a5ba4b889c3f4092c4f8bece422fb484c32873d4e7a2587fdf9eaf2cc228c5706159600ee7c41e1
6
+ metadata.gz: 35ca44ed886b5d9edca59455d6a88cc8f43904c0a3c139596d5656f47f0d431dcc621f1329d178cea0be775f2caf19f9fe7db5b850edc99ae4d9860a3c5d01b9
7
+ data.tar.gz: 8b862c075f947a468ce8c42bc6e2fe0de03eb7e37011bed1da0de6bb2af4ece354a6a37ee6aaa09b5af72380b96e56c9093efaffa8d588e471c97cfac8efb209
@@ -90,7 +90,7 @@ class TinyTCPService
90
90
  readable, _, errored = IO.select(@clients, nil, @clients, 1)
91
91
  readable&.each do |c|
92
92
  begin
93
- @msg_handler&.call(c.gets.chomp)
93
+ c.puts(@msg_handler&.call(c.gets.chomp))
94
94
  rescue TinyTCPService::BadClient => e
95
95
  _remove_client!(c)
96
96
  rescue => e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_tcp_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt