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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d251aba11eb6809a22a244864c5d8d509347dac9
4
- data.tar.gz: 5d3cb28222688e09fc202179a7bc98b2546268d6
3
+ metadata.gz: 91e347f30ee656fe31027c0eab1b45885a2adbec
4
+ data.tar.gz: 55755a2802168338fb9da8507ab8338436994bb6
5
5
  SHA512:
6
- metadata.gz: 6741b307e4311f199c8bcbaf8981838f5e3a82f920e37d138663f35fc96900b5f5f040be67358381c3b4b90893cb7e30e8871b0a6bd5fe0c10d604741d0e5a1e
7
- data.tar.gz: 40f41b7bfb6d9de9e99cf4fcafc06112c3776c297bfe52f9525ef45209ff92e3aa52ee8831de66ea4e07f2ab3165481dae8c8d03175a0e3bda78453df4145845
6
+ metadata.gz: 48faaa3c18f65110ec7f7bb826139d0df0ac4662b0b29458fe9a9bdc1b219aaaa838fd933b8c3ca4cf8d4201d68e5f73a9915721f3c5be62402379627bbcd024
7
+ data.tar.gz: 31494501ba0963d4e6ff62998c9da03a9576659c69ddab17b5f916a0778a7fb0c6f1a3c38ec3c26d6b096fac5e88f9167c53aec911d8567ce42df980b29a1cfa
data/History.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Dalli Changelog
2
2
  =====================
3
3
 
4
+ 2.7.4
5
+ ==========
6
+
7
+ - Restore Windows compatibility (dfens, #524)
8
+
4
9
  2.7.3
5
10
  ==========
6
11
 
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
- class Dalli::Server::KSocket::UNIX < UNIXSocket
130
- include Dalli::Server::KSocket
131
-
132
- def self.open(path, server, options = {})
133
- Timeout.timeout(options[:socket_timeout]) do
134
- sock = new(path)
135
- sock.options = {:path => path}.merge(options)
136
- sock.server = server
137
- sock
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
@@ -1,3 +1,3 @@
1
1
  module Dalli
2
- VERSION = '2.7.3'
2
+ VERSION = '2.7.4'
3
3
  end
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.3
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-14 00:00:00.000000000 Z
11
+ date: 2015-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest