pg 0.7.9.2008.01.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (12) hide show
  1. data/COPYING +340 -0
  2. data/COPYING.txt +340 -0
  3. data/Contributors +28 -0
  4. data/GPL +340 -0
  5. data/LICENSE +58 -0
  6. data/README +125 -0
  7. data/ext/compat.c +529 -0
  8. data/ext/compat.h +176 -0
  9. data/ext/extconf.rb +80 -0
  10. data/ext/pg.c +3251 -0
  11. data/ext/pg.h +34 -0
  12. metadata +59 -0
@@ -0,0 +1,34 @@
1
+ #include <stdio.h>
2
+ #include <stdlib.h>
3
+ #include <sys/types.h>
4
+ #include <unistd.h>
5
+
6
+ #include "ruby.h"
7
+ #include "rubyio.h"
8
+ #include "libpq-fe.h"
9
+ #include "libpq/libpq-fs.h" /* large-object interface */
10
+
11
+ #include "compat.h"
12
+
13
+ #if RUBY_VERSION_CODE < 180
14
+ #define rb_check_string_type(x) rb_check_convert_type(x, T_STRING, "String", "to_str")
15
+ #endif /* RUBY_VERSION_CODE < 180 */
16
+
17
+ #ifndef RARRAY_LEN
18
+ #define RARRAY_LEN(x) RARRAY((x))->len
19
+ #endif /* RARRAY_LEN */
20
+
21
+ #ifndef RSTRING_LEN
22
+ #define RSTRING_LEN(x) RSTRING((x))->len
23
+ #endif /* RSTRING_LEN */
24
+
25
+ #ifndef RSTRING_PTR
26
+ #define RSTRING_PTR(x) RSTRING((x))->ptr
27
+ #endif /* RSTRING_PTR */
28
+
29
+ #ifndef StringValuePtr
30
+ #define StringValuePtr(x) STR2CSTR(x)
31
+ #endif /* StringValuePtr */
32
+
33
+ void Init_pg(void);
34
+
metadata ADDED
@@ -0,0 +1,59 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.4
3
+ specification_version: 1
4
+ name: pg
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.7.9.2008.01.28
7
+ date: 2008-01-28 00:00:00 -08:00
8
+ summary: Ruby extension library providing an API to PostgreSQL
9
+ require_paths:
10
+ - lib
11
+ email: ruby-pg@j-davis.com
12
+ homepage: http://rubyforge.org/projects/ruby-pg
13
+ rubyforge_project: ruby-pg
14
+ description:
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Yukihiro Matsumoto
31
+ - Eiji Matsumoto
32
+ - Noboru Saitou
33
+ - Dave Lee
34
+ - Jeff Davis
35
+ files:
36
+ - COPYING
37
+ - COPYING.txt
38
+ - Contributors
39
+ - GPL
40
+ - LICENSE
41
+ - README
42
+ - ext/compat.c
43
+ - ext/compat.h
44
+ - ext/pg.h
45
+ - ext/pg.c
46
+ test_files: []
47
+
48
+ rdoc_options: []
49
+
50
+ extra_rdoc_files:
51
+ - ext/pg.c
52
+ executables: []
53
+
54
+ extensions:
55
+ - ext/extconf.rb
56
+ requirements:
57
+ - PostgreSQL libpq library and headers
58
+ dependencies: []
59
+