ruby-postgres 0.7.1.2005.12.20 → 0.7.1.2005.12.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/postgres.c +3 -2
  2. data/ruby-postgres.gemspec +1 -1
  3. metadata +3 -5
  4. data/Makefile +0 -139
  5. data/mkmf.log +0 -154
data/postgres.c CHANGED
@@ -547,7 +547,7 @@ pgconn_exec(argc, argv, obj)
547
547
  result = PQexecParams(conn, StringValuePtr(command), len, NULL, values, NULL, NULL, 0);
548
548
  #else
549
549
  for (i = 0; i < len; i++) {
550
- rb_ary_push(params, pgconn_s_quote(rb_cPGconn, rb_ary_entry(params, i)));
550
+ rb_ary_store(params, i, pgconn_s_quote(rb_cPGconn, rb_ary_entry(params, i)));
551
551
  }
552
552
  result = PQexecParams_compat(conn, command, params);
553
553
  #endif
@@ -1287,7 +1287,8 @@ fetch_pgrow(self, fields, row_num)
1287
1287
  VALUE row = rb_funcall(rb_cPGrow, rb_intern("new"), 1, fields);
1288
1288
  int field_num;
1289
1289
  for (field_num = 0; field_num < RARRAY(fields)->len; field_num++) {
1290
- rb_ary_push(row, fetch_pgresult(result, row_num, field_num));
1290
+ /* don't use push, PGrow is sized with nils in #new */
1291
+ rb_ary_store(row, field_num, fetch_pgresult(result, row_num, field_num));
1291
1292
  }
1292
1293
  return row;
1293
1294
  }
@@ -5,7 +5,7 @@ SPEC = Gem::Specification.new do |s|
5
5
  s.name = 'ruby-postgres'
6
6
  s.rubyforge_project = 'ruby-postgres'
7
7
  s.version = "0.7.1.#{Date.today}".tr('-', '.')
8
- s.summary = 'Ruby extension for PostgreSQL database coordination'
8
+ s.summary = 'Ruby extension library providing an API to PostgreSQL'
9
9
  s.author = 'Yukihiro Matsumoto, Eiji Matsumoto, Noboru Saitou, Dave Lee'
10
10
  s.email = 'davelee.com@gmail.com'
11
11
  s.homepage = 'http://ruby.scripting.ca/postgres/'
metadata CHANGED
@@ -3,9 +3,9 @@ rubygems_version: 0.8.10
3
3
  specification_version: 1
4
4
  name: ruby-postgres
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.1.2005.12.20
7
- date: 2005-12-20
8
- summary: Ruby extension for PostgreSQL database coordination
6
+ version: 0.7.1.2005.12.21
7
+ date: 2005-12-21
8
+ summary: Ruby extension library providing an API to PostgreSQL
9
9
  require_paths:
10
10
  - "."
11
11
  email: davelee.com@gmail.com
@@ -32,9 +32,7 @@ files:
32
32
  - doc
33
33
  - extconf.rb
34
34
  - libpq-compat.c
35
- - Makefile
36
35
  - MANIFEST
37
- - mkmf.log
38
36
  - postgres.c
39
37
  - README
40
38
  - README.ja
data/Makefile DELETED
@@ -1,139 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- #### Start of system configuration section. ####
5
-
6
- srcdir = .
7
- topdir = c:/mingw/ruby/lib/ruby/1.8/i386-mingw32
8
- hdrdir = $(topdir)
9
- VPATH = $(srcdir);$(topdir);$(hdrdir)
10
-
11
- DESTDIR = c:
12
- prefix = $(DESTDIR)/mingw/ruby
13
- exec_prefix = $(DESTDIR)/mingw/ruby
14
- sitedir = $(prefix)/lib/ruby/site_ruby
15
- rubylibdir = $(libdir)/ruby/$(ruby_version)
16
- archdir = $(rubylibdir)/$(arch)
17
- sbindir = $(exec_prefix)/sbin
18
- datadir = $(prefix)/share
19
- includedir = $(prefix)/include
20
- infodir = $(prefix)/info
21
- sysconfdir = $(prefix)/etc
22
- mandir = $(prefix)/man
23
- libdir = $(DESTDIR)/mingw/ruby/lib
24
- sharedstatedir = $(prefix)/com
25
- oldincludedir = $(DESTDIR)/usr/include
26
- sitearchdir = $(sitelibdir)/$(sitearch)
27
- bindir = $(exec_prefix)/bin
28
- localstatedir = $(prefix)/var
29
- sitelibdir = $(sitedir)/$(ruby_version)
30
- libexecdir = $(exec_prefix)/libexec
31
-
32
- CC = gcc
33
- LIBRUBY = lib$(LIBRUBY_SO).a
34
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
35
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
36
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
37
-
38
- CFLAGS = -g -O2 -Wall
39
- CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir) -DHAVE_LIBPQ_FE_H -DHAVE_LIBPQ_LIBPQ_FS_H -DHAVE_PQSETCLIENTENCODING -DHAVE_PG_ENCODING_TO_CHAR -DHAVE_PQFREEMEM -DHAVE_PQESCAPESTRING -DHAVE_PQEXECPARAMS -Ic:/apps/POSTGR~1/8.1/include
40
- CXXFLAGS = $(CFLAGS)
41
- DLDFLAGS = -Wl,--enable-auto-import,--export-all
42
- LDSHARED = gcc -shared -s
43
- AR = ar
44
- EXEEXT = .exe
45
-
46
- RUBY_INSTALL_NAME = ruby
47
- RUBY_SO_NAME = msvcrt-ruby18
48
- arch = i386-mingw32
49
- sitearch = i386-msvcrt
50
- ruby_version = 1.8
51
- ruby = c:/mingw/ruby/bin/ruby
52
- RUBY = $(ruby)
53
- RM = rm -f
54
- MAKEDIRS = mkdir -p
55
- INSTALL = /bin/install -c
56
- INSTALL_PROG = $(INSTALL) -m 0755
57
- INSTALL_DATA = $(INSTALL) -m 644
58
- COPY = cp
59
-
60
- #### End of system configuration section. ####
61
-
62
- preload =
63
-
64
- libpath = c:/apps/POSTGR~1/8.1/lib $(libdir)
65
- LIBPATH = -L"c:/apps/POSTGR~1/8.1/lib" -L"$(libdir)"
66
- DEFFILE =
67
-
68
- CLEANFILES =
69
- DISTCLEANFILES =
70
-
71
- extout =
72
- extout_prefix =
73
- target_prefix =
74
- LOCAL_LIBS =
75
- LIBS = $(LIBRUBYARG_SHARED) -lpq -lwsock32
76
- SRCS = postgres.c
77
- OBJS = postgres.o
78
- TARGET = postgres
79
- DLLIB = $(TARGET).so
80
- STATIC_LIB =
81
-
82
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
83
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
84
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
85
-
86
- TARGET_SO = $(DLLIB)
87
- CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
88
- CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
89
-
90
- all: $(DLLIB)
91
- static: $(STATIC_LIB)
92
-
93
- clean:
94
- @-$(RM) $(CLEANLIBS:/=\) $(CLEANOBJS:/=\) $(CLEANFILES:/=\)
95
-
96
- distclean: clean
97
- @-$(RM) Makefile extconf.h conftest.* mkmf.log
98
- @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES:/=\)
99
-
100
- realclean: distclean
101
- install: install-so install-rb
102
-
103
- install-so: $(RUBYARCHDIR)
104
- install-so: $(RUBYARCHDIR)/$(DLLIB)
105
- $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
106
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
107
- install-rb: pre-install-rb install-rb-default
108
- install-rb-default: pre-install-rb-default
109
- pre-install-rb pre-install-rb-default: $(RUBYLIBDIR)
110
- $(RUBYARCHDIR):
111
- $(MAKEDIRS) $@
112
- $(RUBYLIBDIR):
113
- $(MAKEDIRS) $@
114
-
115
- site-install: site-install-so site-install-rb
116
- site-install-so: install-so
117
- site-install-rb: install-rb
118
-
119
- .SUFFIXES: .c .m .cc .cxx .cpp .o
120
-
121
- .cc.o:
122
- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
123
-
124
- .cxx.o:
125
- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
126
-
127
- .cpp.o:
128
- $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
129
-
130
- .c.o:
131
- $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
132
-
133
- $(DLLIB): $(OBJS)
134
- @-$(RM) $@
135
- $(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o $@ $(OBJS) $(LOCAL_LIBS) $(LIBS)
136
-
137
-
138
-
139
- $(OBJS): ruby.h defines.h
data/mkmf.log DELETED
@@ -1,154 +0,0 @@
1
- have_library: checking for main() in -lpq... -------------------- yes
2
-
3
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lmsvcrt-ruby18-static -lpq -lwsock32 "
4
- checked program was:
5
- /* begin */
6
-
7
- /*top*/
8
- int main() { return 0; }
9
- int t() { main(); return 0; }
10
- /* end */
11
-
12
- --------------------
13
-
14
- have_header: checking for libpq-fe.h... -------------------- yes
15
-
16
- "gcc -E -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -o conftest.i"
17
- checked program was:
18
- /* begin */
19
- #include <libpq-fe.h>
20
- /* end */
21
-
22
- --------------------
23
-
24
- have_header: checking for libpq/libpq-fs.h... -------------------- yes
25
-
26
- "gcc -E -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -o conftest.i"
27
- checked program was:
28
- /* begin */
29
- #include <libpq/libpq-fs.h>
30
- /* end */
31
-
32
- --------------------
33
-
34
- have_library: checking for main() in -lcrypto... -------------------- no
35
-
36
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lpq -lmsvcrt-ruby18-static -lcrypto -lpq -lwsock32 "
37
- c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lcrypto
38
- collect2: ld returned 1 exit status
39
- checked program was:
40
- /* begin */
41
-
42
- /*top*/
43
- int main() { return 0; }
44
- int t() { main(); return 0; }
45
- /* end */
46
-
47
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lpq -lmsvcrt-ruby18-static -lcrypto -lpq -lwsock32 "
48
- c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lcrypto
49
- collect2: ld returned 1 exit status
50
- checked program was:
51
- /* begin */
52
- #include <windows.h>
53
- #include <winsock.h>
54
-
55
- /*top*/
56
- int main() { return 0; }
57
- int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
58
- /* end */
59
-
60
- --------------------
61
-
62
- have_library: checking for main() in -lssl... -------------------- no
63
-
64
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lpq -lmsvcrt-ruby18-static -lssl -lpq -lwsock32 "
65
- c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lssl
66
- collect2: ld returned 1 exit status
67
- checked program was:
68
- /* begin */
69
-
70
- /*top*/
71
- int main() { return 0; }
72
- int t() { main(); return 0; }
73
- /* end */
74
-
75
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lpq -lmsvcrt-ruby18-static -lssl -lpq -lwsock32 "
76
- c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lssl
77
- collect2: ld returned 1 exit status
78
- checked program was:
79
- /* begin */
80
- #include <windows.h>
81
- #include <winsock.h>
82
-
83
- /*top*/
84
- int main() { return 0; }
85
- int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
86
- /* end */
87
-
88
- --------------------
89
-
90
- have_func: checking for PQsetClientEncoding()... -------------------- yes
91
-
92
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lpq -lmsvcrt-ruby18-static -lpq -lwsock32 "
93
- checked program was:
94
- /* begin */
95
-
96
- /*top*/
97
- int main() { return 0; }
98
- int t() { PQsetClientEncoding(); return 0; }
99
- /* end */
100
-
101
- --------------------
102
-
103
- have_func: checking for pg_encoding_to_char()... -------------------- yes
104
-
105
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lpq -lmsvcrt-ruby18-static -lpq -lwsock32 "
106
- checked program was:
107
- /* begin */
108
-
109
- /*top*/
110
- int main() { return 0; }
111
- int t() { pg_encoding_to_char(); return 0; }
112
- /* end */
113
-
114
- --------------------
115
-
116
- have_func: checking for PQfreemem()... -------------------- yes
117
-
118
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lpq -lmsvcrt-ruby18-static -lpq -lwsock32 "
119
- checked program was:
120
- /* begin */
121
-
122
- /*top*/
123
- int main() { return 0; }
124
- int t() { PQfreemem(); return 0; }
125
- /* end */
126
-
127
- --------------------
128
-
129
- have_func: checking for PQescapeString()... -------------------- yes
130
-
131
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lpq -lmsvcrt-ruby18-static -lpq -lwsock32 "
132
- checked program was:
133
- /* begin */
134
-
135
- /*top*/
136
- int main() { return 0; }
137
- int t() { PQescapeString(); return 0; }
138
- /* end */
139
-
140
- --------------------
141
-
142
- have_func: checking for PQexecParams()... -------------------- yes
143
-
144
- "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include -g -O2 conftest.c -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib" -lpq -lmsvcrt-ruby18-static -lpq -lwsock32 "
145
- checked program was:
146
- /* begin */
147
-
148
- /*top*/
149
- int main() { return 0; }
150
- int t() { PQexecParams(); return 0; }
151
- /* end */
152
-
153
- --------------------
154
-