tcp-client 0.0.8 → 0.0.9

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
  SHA256:
3
- metadata.gz: f139f1f90fcb6d8c32a0d0fab85b4c96eab70b2a08845e9cdb26c5de8acfd184
4
- data.tar.gz: f703e1c0c6f5edb4d732284ba983e31820c1e116cff1329cb7458a642b4ec1af
3
+ metadata.gz: 5bfc192ce3217cf36198c5b1455a16e4be9cca061f984f62d8803b88b6aca24c
4
+ data.tar.gz: 427adb5f70cf966da45adaf84a9aec99d88f1091dc1fd7ae398ea58f43f736f9
5
5
  SHA512:
6
- metadata.gz: a19cf4e0ba023fd6a52a7470d1304b6718250c1dc28b49cefa07dc6c1fca6c52d35797bd6e769a80cd9d96feba09d48ebfcbc45273b2718f2fea8fda1de6d749
7
- data.tar.gz: 1e0444b2cf3169b4d3e31af9ea072f0c44a98c88983f8f657f7917e1d4ee7d245599d7a640183acbb7bcbded8a319f2eed677c4f3aca8bdd15138c04acd13895
6
+ metadata.gz: f57ba3c454f390504717a88c2d42d409ed82e3967f730a10d414c9781c2a5a38ffd4518b421fe2dec5b00f95a89f587c00aa980507cf3d75db6feaf536010b04
7
+ data.tar.gz: 6bb29528b348b60de418de060067e9f55937107290901fb53cd6cdffbad42fe35050c12d2257c2410144ea936b35b511338697fecf444523ca5546d6a2aab47e
data/README.md CHANGED
@@ -47,7 +47,7 @@ To install the gem globally use:
47
47
  $ gem install tcp-client
48
48
  ```
49
49
 
50
- After that you need only a single line of code in your project code to have all tools on board:
50
+ After that you need only a single line of code in your project to have all tools on board:
51
51
 
52
52
  ```ruby
53
53
  require 'tcp-client'
@@ -35,7 +35,7 @@ module IOTimeoutMixin
35
35
  private
36
36
 
37
37
  def read_all(nbytes)
38
- return '' if 0 == nbytes
38
+ return '' if nbytes.zero?
39
39
  result = ''
40
40
  loop do
41
41
  unless read = yield(nbytes - result.bytesize)
@@ -48,7 +48,7 @@ module IOTimeoutMixin
48
48
  end
49
49
 
50
50
  def write_all(data)
51
- return 0 if 0 == (size = data.bytesize)
51
+ return 0 if (size = data.bytesize).zero?
52
52
  result = 0
53
53
  loop do
54
54
  written = yield(data)
@@ -1,3 +1,3 @@
1
1
  class TCPClient
2
- VERSION = '0.0.8'.freeze
2
+ VERSION = '0.0.9'.freeze
3
3
  end
@@ -10,5 +10,5 @@ Rake::TestTask.new(:test) do |t|
10
10
  end
11
11
 
12
12
  task :default do
13
- exec("#{$0} --tasks")
13
+ exec("#{$PROGRAM_NAME} --tasks")
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tcp-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Blumtritt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-20 00:00:00.000000000 Z
11
+ date: 2018-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: 1.3.6
105
105
  requirements: []
106
- rubyforge_project: tcp-client
107
- rubygems_version: 2.7.7
106
+ rubygems_version: 3.0.1
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: A TCP client implementation with working timeout support.