hiredis 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Copyright (c) 2009-2010, Salvatore Sanfilippo <antirez at gmail dot com>
3
+ * All rights reserved.
4
+ *
5
+ * Redistribution and use in source and binary forms, with or without
6
+ * modification, are permitted provided that the following conditions are met:
7
+ *
8
+ * * Redistributions of source code must retain the above copyright notice,
9
+ * this list of conditions and the following disclaimer.
10
+ * * Redistributions in binary form must reproduce the above copyright
11
+ * notice, this list of conditions and the following disclaimer in the
12
+ * documentation and/or other materials provided with the distribution.
13
+ * * Neither the name of Redis nor the names of its contributors may be used
14
+ * to endorse or promote products derived from this software without
15
+ * specific prior written permission.
16
+ *
17
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
+ * POSSIBILITY OF SUCH DAMAGE.
28
+ */
29
+
30
+ #ifndef __UTIL_H
31
+ #define __UTIL_H
32
+ #include <stdlib.h>
33
+
34
+ /* Abort on out of memory */
35
+ static void redisOOM(void) {
36
+ fprintf(stderr,"Out of memory in hiredis");
37
+ exit(1);
38
+ }
39
+
40
+ #endif
metadata ADDED
@@ -0,0 +1,115 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hiredis
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Pieter Noordhuis
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-11-05 00:00:00 +01:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rake-compiler
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ - 7
31
+ - 1
32
+ version: 0.7.1
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: redis
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ segments:
44
+ - 2
45
+ - 1
46
+ - 0
47
+ version: 2.1.0
48
+ type: :runtime
49
+ version_requirements: *id002
50
+ description: Ruby extension that wraps Hiredis (blocking connection and reply parsing)
51
+ email: pcnoordhuis@gmail.com
52
+ executables: []
53
+
54
+ extensions:
55
+ - ext/hiredis_ext/extconf.rb
56
+ extra_rdoc_files:
57
+ - COPYING
58
+ files:
59
+ - COPYING
60
+ - Rakefile
61
+ - ext/hiredis_ext/extconf.rb
62
+ - ext/hiredis_ext/connection.c
63
+ - ext/hiredis_ext/hiredis_ext.c
64
+ - ext/hiredis_ext/reader.c
65
+ - ext/hiredis_ext/hiredis_ext.h
66
+ - lib/hiredis/connection.rb
67
+ - lib/hiredis/version.rb
68
+ - lib/hiredis.rb
69
+ - vendor/hiredis/async.c
70
+ - vendor/hiredis/hiredis.c
71
+ - vendor/hiredis/net.c
72
+ - vendor/hiredis/sds.c
73
+ - vendor/hiredis/test.c
74
+ - vendor/hiredis/async.h
75
+ - vendor/hiredis/fmacros.h
76
+ - vendor/hiredis/hiredis.h
77
+ - vendor/hiredis/net.h
78
+ - vendor/hiredis/sds.h
79
+ - vendor/hiredis/util.h
80
+ - vendor/hiredis/COPYING
81
+ - vendor/hiredis/Makefile
82
+ has_rdoc: true
83
+ homepage: http://github.com/pietern/hiredis-rb
84
+ licenses: []
85
+
86
+ post_install_message:
87
+ rdoc_options: []
88
+
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ segments:
97
+ - 0
98
+ version: "0"
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ segments:
105
+ - 0
106
+ version: "0"
107
+ requirements: []
108
+
109
+ rubyforge_project:
110
+ rubygems_version: 1.3.7
111
+ signing_key:
112
+ specification_version: 3
113
+ summary: Ruby extension that wraps Hiredis (blocking connection and reply parsing)
114
+ test_files: []
115
+