dalli 2.7.3 → 2.7.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of dalli might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/History.md +5 -0
- data/lib/dalli/socket.rb +20 -10
- data/lib/dalli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91e347f30ee656fe31027c0eab1b45885a2adbec
|
4
|
+
data.tar.gz: 55755a2802168338fb9da8507ab8338436994bb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48faaa3c18f65110ec7f7bb826139d0df0ac4662b0b29458fe9a9bdc1b219aaaa838fd933b8c3ca4cf8d4201d68e5f73a9915721f3c5be62402379627bbcd024
|
7
|
+
data.tar.gz: 31494501ba0963d4e6ff62998c9da03a9576659c69ddab17b5f916a0778a7fb0c6f1a3c38ec3c26d6b096fac5e88f9167c53aec911d8567ce42df980b29a1cfa
|
data/History.md
CHANGED
data/lib/dalli/socket.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'rbconfig'
|
2
|
+
|
1
3
|
begin
|
2
4
|
require 'kgio'
|
3
5
|
puts "Using kgio socket IO" if defined?($TESTING) && $TESTING
|
@@ -126,17 +128,25 @@ rescue LoadError
|
|
126
128
|
end
|
127
129
|
end
|
128
130
|
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
131
|
+
if RbConfig::CONFIG['host_os'] =~ /mingw|mswin/
|
132
|
+
class Dalli::Server::KSocket::UNIX
|
133
|
+
def initialize(*args)
|
134
|
+
raise Dalli::DalliError, "Unix sockets are not supported on Windows platform."
|
135
|
+
end
|
136
|
+
end
|
137
|
+
else
|
138
|
+
class Dalli::Server::KSocket::UNIX < UNIXSocket
|
139
|
+
include Dalli::Server::KSocket
|
140
|
+
|
141
|
+
def self.open(path, server, options = {})
|
142
|
+
Timeout.timeout(options[:socket_timeout]) do
|
143
|
+
sock = new(path)
|
144
|
+
sock.options = {:path => path}.merge(options)
|
145
|
+
sock.server = server
|
146
|
+
sock
|
147
|
+
end
|
138
148
|
end
|
139
149
|
end
|
140
|
-
end
|
141
150
|
|
151
|
+
end
|
142
152
|
end
|
data/lib/dalli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dalli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.7.
|
4
|
+
version: 2.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Perham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|