socketry 0.5.0 → 0.5.1

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: 294dcb634b53400b9dbf5d7ea235dc90edac0112
4
- data.tar.gz: cda272965c718f2e3bbf40d53b8f2e24f5fd817a
3
+ metadata.gz: c946ff077911e96715c6ed49e1f05d68048c5ce1
4
+ data.tar.gz: fc23762cd7df18e38aa1b256fa8043455d15e76c
5
5
  SHA512:
6
- metadata.gz: fc8b7123299b7044881fa4164f586bac63da56d85605ff0cb1b1402ba41d1d5dc5fd163379410f5ffcbe48e4fcd4a5b64695ce095ef2b38aa4e23732afa7a2a5
7
- data.tar.gz: 82278d2ed2b89ede744d2c257473a1284d5c4505d356102cb799d02b08ff741771d22092c53e8234ae6ff76d67d03b589fdde2f2e2dec68c9d3dfdebcfb65c0f
6
+ metadata.gz: b2e079c8d3765b5279a8fccaed3315ffdb18697350a248318539a0e06e366c3e1d11b8ff7806b457c1c003e91a8e35cbed0a5bb1244c64fcaae4beda73f21913
7
+ data.tar.gz: 9dcc209420f1d8db8486dbd6ab89a7213689256fc3f12f1d7e82a04ff97f6fe1cc75ad35b7655bec3949a7876612ce7c72db76af14adc30223b67cf1dc415b41
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5.1 (2016-11-26)
2
+
3
+ * Fix regression in Socketry::SSL::Socket#close
4
+
1
5
  ## 0.5.0 (2016-11-26)
2
6
 
3
7
  * Require Ruby 2.2.6+ (earlier 2.2 versions had async I/O bugs)
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Socketry [![Gem Version][gem-image]][gem-link] [![Build Status][build-image]][build-link] [![Code Climate][codeclimate-image]][codeclimate-link] [![Coverage Status][coverage-image]][coverage-link] [![MIT licensed][license-image]][license-link]
1
+ # ![Socketry](https://raw.github.com/socketry/socketry/master/logo.png)
2
+
3
+ [![Gem Version][gem-image]][gem-link] [![Build Status][build-image]][build-link] [![Code Climate][codeclimate-image]][codeclimate-link] [![Coverage Status][coverage-image]][coverage-link] [![MIT licensed][license-image]][license-link]
2
4
 
3
5
  [gem-image]: https://badge.fury.io/rb/socketry.svg
4
6
  [gem-link]: https://rubygems.org/gems/socketry
@@ -76,7 +78,7 @@ This library aims to support and is [tested against][travis] the following Ruby
76
78
  versions:
77
79
 
78
80
  * Ruby 2.2.6+
79
- * Ruby 2.3.x
81
+ * Ruby 2.3.0+
80
82
  * JRuby 9.1.6.0+
81
83
 
82
84
  If something doesn't work on one of these versions, it's a bug.
@@ -163,8 +163,10 @@ module Socketry
163
163
  #
164
164
  # @return [true, false] true if the socket was open, false if closed
165
165
  def close
166
- @ssl_socket.close rescue nil
167
- super
166
+ return false unless super
167
+ @ssl_socket.close
168
+ @ssl_socket = nil
169
+ true
168
170
  end
169
171
 
170
172
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Socketry
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
Binary file
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.required_ruby_version = ">= 2.2.6"
25
25
 
26
- spec.add_runtime_dependency "hitimes", ">= 1.2"
26
+ spec.add_runtime_dependency "hitimes", "~> 1.2"
27
27
 
28
28
  spec.add_development_dependency "bundler", "~> 1.0"
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socketry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: hitimes
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
@@ -69,6 +69,7 @@ files:
69
69
  - lib/socketry/udp/datagram.rb
70
70
  - lib/socketry/udp/socket.rb
71
71
  - lib/socketry/version.rb
72
+ - logo.png
72
73
  - socketry.gemspec
73
74
  homepage: https://github.com/socketry/socketry/
74
75
  licenses:
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  version: '0'
91
92
  requirements: []
92
93
  rubyforge_project:
93
- rubygems_version: 2.4.8
94
+ rubygems_version: 2.5.2
94
95
  signing_key:
95
96
  specification_version: 4
96
97
  summary: High-level wrappers for Ruby sockets with advanced thread-safe timeout support