hiredis-futureproof 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/COPYING +28 -0
- data/Rakefile +53 -0
- data/ext/hiredis_ext/connection.c +611 -0
- data/ext/hiredis_ext/extconf.rb +48 -0
- data/ext/hiredis_ext/hiredis_ext.c +15 -0
- data/ext/hiredis_ext/hiredis_ext.h +44 -0
- data/ext/hiredis_ext/reader.c +124 -0
- data/lib/hiredis/connection.rb +10 -0
- data/lib/hiredis/ext/connection.rb +29 -0
- data/lib/hiredis/ext/reader.rb +2 -0
- data/lib/hiredis/reader.rb +10 -0
- data/lib/hiredis/ruby/connection.rb +316 -0
- data/lib/hiredis/ruby/reader.rb +183 -0
- data/lib/hiredis/version.rb +3 -0
- data/lib/hiredis.rb +2 -0
- data/vendor/hiredis/COPYING +29 -0
- data/vendor/hiredis/Makefile +308 -0
- data/vendor/hiredis/alloc.c +86 -0
- data/vendor/hiredis/alloc.h +91 -0
- data/vendor/hiredis/async.c +892 -0
- data/vendor/hiredis/async.h +147 -0
- data/vendor/hiredis/async_private.h +75 -0
- data/vendor/hiredis/dict.c +352 -0
- data/vendor/hiredis/dict.h +126 -0
- data/vendor/hiredis/fmacros.h +12 -0
- data/vendor/hiredis/hiredis.c +1173 -0
- data/vendor/hiredis/hiredis.h +336 -0
- data/vendor/hiredis/hiredis_ssl.h +127 -0
- data/vendor/hiredis/net.c +612 -0
- data/vendor/hiredis/net.h +56 -0
- data/vendor/hiredis/read.c +739 -0
- data/vendor/hiredis/read.h +129 -0
- data/vendor/hiredis/sds.c +1289 -0
- data/vendor/hiredis/sds.h +278 -0
- data/vendor/hiredis/sdsalloc.h +44 -0
- data/vendor/hiredis/sockcompat.c +248 -0
- data/vendor/hiredis/sockcompat.h +92 -0
- data/vendor/hiredis/ssl.c +526 -0
- data/vendor/hiredis/test.c +1387 -0
- data/vendor/hiredis/win32.h +56 -0
- metadata +128 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
#ifndef _WIN32_HELPER_INCLUDE
|
2
|
+
#define _WIN32_HELPER_INCLUDE
|
3
|
+
#ifdef _MSC_VER
|
4
|
+
|
5
|
+
#include <winsock2.h> /* for struct timeval */
|
6
|
+
|
7
|
+
#ifndef inline
|
8
|
+
#define inline __inline
|
9
|
+
#endif
|
10
|
+
|
11
|
+
#ifndef strcasecmp
|
12
|
+
#define strcasecmp stricmp
|
13
|
+
#endif
|
14
|
+
|
15
|
+
#ifndef strncasecmp
|
16
|
+
#define strncasecmp strnicmp
|
17
|
+
#endif
|
18
|
+
|
19
|
+
#ifndef va_copy
|
20
|
+
#define va_copy(d,s) ((d) = (s))
|
21
|
+
#endif
|
22
|
+
|
23
|
+
#ifndef snprintf
|
24
|
+
#define snprintf c99_snprintf
|
25
|
+
|
26
|
+
__inline int c99_vsnprintf(char* str, size_t size, const char* format, va_list ap)
|
27
|
+
{
|
28
|
+
int count = -1;
|
29
|
+
|
30
|
+
if (size != 0)
|
31
|
+
count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
|
32
|
+
if (count == -1)
|
33
|
+
count = _vscprintf(format, ap);
|
34
|
+
|
35
|
+
return count;
|
36
|
+
}
|
37
|
+
|
38
|
+
__inline int c99_snprintf(char* str, size_t size, const char* format, ...)
|
39
|
+
{
|
40
|
+
int count;
|
41
|
+
va_list ap;
|
42
|
+
|
43
|
+
va_start(ap, format);
|
44
|
+
count = c99_vsnprintf(str, size, format, ap);
|
45
|
+
va_end(ap);
|
46
|
+
|
47
|
+
return count;
|
48
|
+
}
|
49
|
+
#endif
|
50
|
+
#endif /* _MSC_VER */
|
51
|
+
|
52
|
+
#ifdef _WIN32
|
53
|
+
#define strerror_r(errno,buf,len) strerror_s(buf,len,errno)
|
54
|
+
#endif /* _WIN32 */
|
55
|
+
|
56
|
+
#endif /* _WIN32_HELPER_INCLUDE */
|
metadata
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hiredis-futureproof
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Pieter Noordhuis
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '10.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '10.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake-compiler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.7.1
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.7.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 5.5.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 5.5.1
|
55
|
+
description: Ruby wrapper for hiredis (protocol serialization/deserialization and
|
56
|
+
blocking I/O)
|
57
|
+
email:
|
58
|
+
- machty@gmail.com
|
59
|
+
executables: []
|
60
|
+
extensions:
|
61
|
+
- ext/hiredis_ext/extconf.rb
|
62
|
+
extra_rdoc_files: []
|
63
|
+
files:
|
64
|
+
- COPYING
|
65
|
+
- Rakefile
|
66
|
+
- ext/hiredis_ext/connection.c
|
67
|
+
- ext/hiredis_ext/extconf.rb
|
68
|
+
- ext/hiredis_ext/hiredis_ext.c
|
69
|
+
- ext/hiredis_ext/hiredis_ext.h
|
70
|
+
- ext/hiredis_ext/reader.c
|
71
|
+
- lib/hiredis.rb
|
72
|
+
- lib/hiredis/connection.rb
|
73
|
+
- lib/hiredis/ext/connection.rb
|
74
|
+
- lib/hiredis/ext/reader.rb
|
75
|
+
- lib/hiredis/reader.rb
|
76
|
+
- lib/hiredis/ruby/connection.rb
|
77
|
+
- lib/hiredis/ruby/reader.rb
|
78
|
+
- lib/hiredis/version.rb
|
79
|
+
- vendor/hiredis/COPYING
|
80
|
+
- vendor/hiredis/Makefile
|
81
|
+
- vendor/hiredis/alloc.c
|
82
|
+
- vendor/hiredis/alloc.h
|
83
|
+
- vendor/hiredis/async.c
|
84
|
+
- vendor/hiredis/async.h
|
85
|
+
- vendor/hiredis/async_private.h
|
86
|
+
- vendor/hiredis/dict.c
|
87
|
+
- vendor/hiredis/dict.h
|
88
|
+
- vendor/hiredis/fmacros.h
|
89
|
+
- vendor/hiredis/hiredis.c
|
90
|
+
- vendor/hiredis/hiredis.h
|
91
|
+
- vendor/hiredis/hiredis_ssl.h
|
92
|
+
- vendor/hiredis/net.c
|
93
|
+
- vendor/hiredis/net.h
|
94
|
+
- vendor/hiredis/read.c
|
95
|
+
- vendor/hiredis/read.h
|
96
|
+
- vendor/hiredis/sds.c
|
97
|
+
- vendor/hiredis/sds.h
|
98
|
+
- vendor/hiredis/sdsalloc.h
|
99
|
+
- vendor/hiredis/sockcompat.c
|
100
|
+
- vendor/hiredis/sockcompat.h
|
101
|
+
- vendor/hiredis/ssl.c
|
102
|
+
- vendor/hiredis/test.c
|
103
|
+
- vendor/hiredis/win32.h
|
104
|
+
homepage: http://github.com/redis/hiredis-rb
|
105
|
+
licenses:
|
106
|
+
- BSD-3-Clause
|
107
|
+
metadata: {}
|
108
|
+
post_install_message:
|
109
|
+
rdoc_options: []
|
110
|
+
require_paths:
|
111
|
+
- lib
|
112
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
requirements: []
|
123
|
+
rubygems_version: 3.3.3
|
124
|
+
signing_key:
|
125
|
+
specification_version: 4
|
126
|
+
summary: Ruby wrapper for hiredis (protocol serialization/deserialization and blocking
|
127
|
+
I/O)
|
128
|
+
test_files: []
|