ruby-postgres 0.7.1.2005.12.21-mswin32 → 0.7.1.2006.04.05-mswin32
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.
- data/Makefile +3 -4
 - data/mkmf.log +12 -12
 - data/postgres.c +4 -5
 - data/postgres.o +0 -0
 - data/postgres.so +0 -0
 - data/ruby-postgres.gemspec +5 -2
 - data/tests/tc_postgres.rb +2 -2
 - metadata +44 -37
 
    
        data/Makefile
    CHANGED
    
    | 
         @@ -35,7 +35,7 @@ LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a 
     | 
|
| 
       35 
35 
     | 
    
         
             
            LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
         
     | 
| 
       36 
36 
     | 
    
         
             
            LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
         
     | 
| 
       37 
37 
     | 
    
         | 
| 
       38 
     | 
    
         
            -
            CFLAGS   =  - 
     | 
| 
      
 38 
     | 
    
         
            +
            CFLAGS   =  -O2 -pipe  -Wall  
         
     | 
| 
       39 
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 
40 
     | 
    
         
             
            CXXFLAGS = $(CFLAGS) 
         
     | 
| 
       41 
41 
     | 
    
         
             
            DLDFLAGS =   -Wl,--enable-auto-import,--export-all 
         
     | 
| 
         @@ -106,11 +106,10 @@ $(RUBYARCHDIR)/$(DLLIB): $(DLLIB) 
     | 
|
| 
       106 
106 
     | 
    
         
             
            	$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
         
     | 
| 
       107 
107 
     | 
    
         
             
            install-rb: pre-install-rb install-rb-default
         
     | 
| 
       108 
108 
     | 
    
         
             
            install-rb-default: pre-install-rb-default
         
     | 
| 
       109 
     | 
    
         
            -
            pre-install-rb 
     | 
| 
      
 109 
     | 
    
         
            +
            pre-install-rb: Makefile
         
     | 
| 
      
 110 
     | 
    
         
            +
            pre-install-rb-default: Makefile
         
     | 
| 
       110 
111 
     | 
    
         
             
            $(RUBYARCHDIR):
         
     | 
| 
       111 
112 
     | 
    
         
             
            	$(MAKEDIRS) $@
         
     | 
| 
       112 
     | 
    
         
            -
            $(RUBYLIBDIR):
         
     | 
| 
       113 
     | 
    
         
            -
            	$(MAKEDIRS) $@
         
     | 
| 
       114 
113 
     | 
    
         | 
| 
       115 
114 
     | 
    
         
             
            site-install: site-install-so site-install-rb
         
     | 
| 
       116 
115 
     | 
    
         
             
            site-install-so: install-so
         
     | 
    
        data/mkmf.log
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            have_library: checking for main() in -lpq... -------------------- yes
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 3 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"      -lmsvcrt-ruby18-static -lpq  -lwsock32  "
         
     | 
| 
       4 
4 
     | 
    
         
             
            checked program was:
         
     | 
| 
       5 
5 
     | 
    
         
             
            /* begin */
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
         @@ -13,7 +13,7 @@ int t() { main(); return 0; } 
     | 
|
| 
       13 
13 
     | 
    
         | 
| 
       14 
14 
     | 
    
         
             
            have_header: checking for libpq-fe.h... -------------------- yes
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
            "gcc -E -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 16 
     | 
    
         
            +
            "gcc -E -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe   conftest.c -o conftest.i"
         
     | 
| 
       17 
17 
     | 
    
         
             
            checked program was:
         
     | 
| 
       18 
18 
     | 
    
         
             
            /* begin */
         
     | 
| 
       19 
19 
     | 
    
         
             
            #include <libpq-fe.h>
         
     | 
| 
         @@ -23,7 +23,7 @@ checked program was: 
     | 
|
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
            have_header: checking for libpq/libpq-fs.h... -------------------- yes
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
       26 
     | 
    
         
            -
            "gcc -E -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 26 
     | 
    
         
            +
            "gcc -E -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe   conftest.c -o conftest.i"
         
     | 
| 
       27 
27 
     | 
    
         
             
            checked program was:
         
     | 
| 
       28 
28 
     | 
    
         
             
            /* begin */
         
     | 
| 
       29 
29 
     | 
    
         
             
            #include <libpq/libpq-fs.h>
         
     | 
| 
         @@ -33,7 +33,7 @@ checked program was: 
     | 
|
| 
       33 
33 
     | 
    
         | 
| 
       34 
34 
     | 
    
         
             
            have_library: checking for main() in -lcrypto... -------------------- no
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 36 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"     -lpq  -lmsvcrt-ruby18-static -lcrypto -lpq  -lwsock32  "
         
     | 
| 
       37 
37 
     | 
    
         
             
            c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lcrypto
         
     | 
| 
       38 
38 
     | 
    
         
             
            collect2: ld returned 1 exit status
         
     | 
| 
       39 
39 
     | 
    
         
             
            checked program was:
         
     | 
| 
         @@ -44,7 +44,7 @@ int main() { return 0; } 
     | 
|
| 
       44 
44 
     | 
    
         
             
            int t() { main(); return 0; }
         
     | 
| 
       45 
45 
     | 
    
         
             
            /* end */
         
     | 
| 
       46 
46 
     | 
    
         | 
| 
       47 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 47 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"     -lpq  -lmsvcrt-ruby18-static -lcrypto -lpq  -lwsock32  "
         
     | 
| 
       48 
48 
     | 
    
         
             
            c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lcrypto
         
     | 
| 
       49 
49 
     | 
    
         
             
            collect2: ld returned 1 exit status
         
     | 
| 
       50 
50 
     | 
    
         
             
            checked program was:
         
     | 
| 
         @@ -61,7 +61,7 @@ int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; } 
     | 
|
| 
       61 
61 
     | 
    
         | 
| 
       62 
62 
     | 
    
         
             
            have_library: checking for main() in -lssl... -------------------- no
         
     | 
| 
       63 
63 
     | 
    
         | 
| 
       64 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 64 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"     -lpq  -lmsvcrt-ruby18-static -lssl -lpq  -lwsock32  "
         
     | 
| 
       65 
65 
     | 
    
         
             
            c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lssl
         
     | 
| 
       66 
66 
     | 
    
         
             
            collect2: ld returned 1 exit status
         
     | 
| 
       67 
67 
     | 
    
         
             
            checked program was:
         
     | 
| 
         @@ -72,7 +72,7 @@ int main() { return 0; } 
     | 
|
| 
       72 
72 
     | 
    
         
             
            int t() { main(); return 0; }
         
     | 
| 
       73 
73 
     | 
    
         
             
            /* end */
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 75 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"     -lpq  -lmsvcrt-ruby18-static -lssl -lpq  -lwsock32  "
         
     | 
| 
       76 
76 
     | 
    
         
             
            c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lssl
         
     | 
| 
       77 
77 
     | 
    
         
             
            collect2: ld returned 1 exit status
         
     | 
| 
       78 
78 
     | 
    
         
             
            checked program was:
         
     | 
| 
         @@ -89,7 +89,7 @@ int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; } 
     | 
|
| 
       89 
89 
     | 
    
         | 
| 
       90 
90 
     | 
    
         
             
            have_func: checking for PQsetClientEncoding()... -------------------- yes
         
     | 
| 
       91 
91 
     | 
    
         | 
| 
       92 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 92 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"     -lpq  -lmsvcrt-ruby18-static -lpq  -lwsock32  "
         
     | 
| 
       93 
93 
     | 
    
         
             
            checked program was:
         
     | 
| 
       94 
94 
     | 
    
         
             
            /* begin */
         
     | 
| 
       95 
95 
     | 
    
         | 
| 
         @@ -102,7 +102,7 @@ int t() { PQsetClientEncoding(); return 0; } 
     | 
|
| 
       102 
102 
     | 
    
         | 
| 
       103 
103 
     | 
    
         
             
            have_func: checking for pg_encoding_to_char()... -------------------- yes
         
     | 
| 
       104 
104 
     | 
    
         | 
| 
       105 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 105 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"     -lpq  -lmsvcrt-ruby18-static -lpq  -lwsock32  "
         
     | 
| 
       106 
106 
     | 
    
         
             
            checked program was:
         
     | 
| 
       107 
107 
     | 
    
         
             
            /* begin */
         
     | 
| 
       108 
108 
     | 
    
         | 
| 
         @@ -115,7 +115,7 @@ int t() { pg_encoding_to_char(); return 0; } 
     | 
|
| 
       115 
115 
     | 
    
         | 
| 
       116 
116 
     | 
    
         
             
            have_func: checking for PQfreemem()... -------------------- yes
         
     | 
| 
       117 
117 
     | 
    
         | 
| 
       118 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 118 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"     -lpq  -lmsvcrt-ruby18-static -lpq  -lwsock32  "
         
     | 
| 
       119 
119 
     | 
    
         
             
            checked program was:
         
     | 
| 
       120 
120 
     | 
    
         
             
            /* begin */
         
     | 
| 
       121 
121 
     | 
    
         | 
| 
         @@ -128,7 +128,7 @@ int t() { PQfreemem(); return 0; } 
     | 
|
| 
       128 
128 
     | 
    
         | 
| 
       129 
129 
     | 
    
         
             
            have_func: checking for PQescapeString()... -------------------- yes
         
     | 
| 
       130 
130 
     | 
    
         | 
| 
       131 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 131 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"     -lpq  -lmsvcrt-ruby18-static -lpq  -lwsock32  "
         
     | 
| 
       132 
132 
     | 
    
         
             
            checked program was:
         
     | 
| 
       133 
133 
     | 
    
         
             
            /* begin */
         
     | 
| 
       134 
134 
     | 
    
         | 
| 
         @@ -141,7 +141,7 @@ int t() { PQescapeString(); return 0; } 
     | 
|
| 
       141 
141 
     | 
    
         | 
| 
       142 
142 
     | 
    
         
             
            have_func: checking for PQexecParams()... -------------------- yes
         
     | 
| 
       143 
143 
     | 
    
         | 
| 
       144 
     | 
    
         
            -
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  - 
     | 
| 
      
 144 
     | 
    
         
            +
            "gcc -o conftest -I. -Ic:/mingw/ruby/lib/ruby/1.8/i386-mingw32 -Ic:/apps/POSTGR~1/8.1/include  -O2 -pipe  conftest.c  -L"c:/apps/POSTGR~1/8.1/lib" -L"c:/mingw/ruby/lib"     -lpq  -lmsvcrt-ruby18-static -lpq  -lwsock32  "
         
     | 
| 
       145 
145 
     | 
    
         
             
            checked program was:
         
     | 
| 
       146 
146 
     | 
    
         
             
            /* begin */
         
     | 
| 
       147 
147 
     | 
    
         | 
    
        data/postgres.c
    CHANGED
    
    | 
         @@ -83,7 +83,7 @@ static VALUE pgresult_clear _((VALUE)); 
     | 
|
| 
       83 
83 
     | 
    
         
             
            static VALUE pgresult_result_with_clear _((VALUE));
         
     | 
| 
       84 
84 
     | 
    
         
             
            static VALUE pgresult_new _((PGresult*));
         
     | 
| 
       85 
85 
     | 
    
         | 
| 
       86 
     | 
    
         
            -
            static int translate_results =  
     | 
| 
      
 86 
     | 
    
         
            +
            static int translate_results = 0;
         
     | 
| 
       87 
87 
     | 
    
         | 
| 
       88 
88 
     | 
    
         
             
            /* Large Object support */
         
     | 
| 
       89 
89 
     | 
    
         
             
            typedef struct pglarge_object
         
     | 
| 
         @@ -195,7 +195,7 @@ pgconn_s_translate_results_set(self, fact) 
     | 
|
| 
       195 
195 
     | 
    
         
             
                VALUE self, fact;
         
     | 
| 
       196 
196 
     | 
    
         
             
            {
         
     | 
| 
       197 
197 
     | 
    
         
             
                translate_results = (fact == Qfalse || fact == Qnil) ? 0 : 1;
         
     | 
| 
       198 
     | 
    
         
            -
                return  
     | 
| 
      
 198 
     | 
    
         
            +
                return fact;
         
     | 
| 
       199 
199 
     | 
    
         
             
            }
         
     | 
| 
       200 
200 
     | 
    
         | 
| 
       201 
201 
     | 
    
         
             
            static VALUE format_array_element(VALUE obj);
         
     | 
| 
         @@ -600,7 +600,7 @@ pgconn_async_exec(obj, str) 
     | 
|
| 
       600 
600 
     | 
    
         | 
| 
       601 
601 
     | 
    
         
             
                Check_Type(str, T_STRING);
         
     | 
| 
       602 
602 
     | 
    
         | 
| 
       603 
     | 
    
         
            -
                while (result = PQgetResult(conn)) {
         
     | 
| 
      
 603 
     | 
    
         
            +
                while ((result = PQgetResult(conn))) {
         
     | 
| 
       604 
604 
     | 
    
         
             
                    PQclear(result);
         
     | 
| 
       605 
605 
     | 
    
         
             
                }
         
     | 
| 
       606 
606 
     | 
    
         | 
| 
         @@ -1235,10 +1235,9 @@ fetch_pgresult(result, row, column) 
     | 
|
| 
       1235 
1235 
     | 
    
         
             
                  return PARSE(rb_cDate, string);
         
     | 
| 
       1236 
1236 
     | 
    
         
             
                case TIMEOID:
         
     | 
| 
       1237 
1237 
     | 
    
         
             
                case TIMETZOID:
         
     | 
| 
       1238 
     | 
    
         
            -
                  return PARSE(rb_cTime, string);
         
     | 
| 
       1239 
1238 
     | 
    
         
             
                case TIMESTAMPOID:
         
     | 
| 
       1240 
1239 
     | 
    
         
             
                case TIMESTAMPTZOID:
         
     | 
| 
       1241 
     | 
    
         
            -
                  return PARSE( 
     | 
| 
      
 1240 
     | 
    
         
            +
                  return PARSE(rb_cTime, string);
         
     | 
| 
       1242 
1241 
     | 
    
         | 
| 
       1243 
1242 
     | 
    
         
             
                default:
         
     | 
| 
       1244 
1243 
     | 
    
         
             
                  return rb_tainted_str_new2(string);
         
     | 
    
        data/postgres.o
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/postgres.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/ruby-postgres.gemspec
    CHANGED
    
    | 
         @@ -21,9 +21,12 @@ SPEC = Gem::Specification.new do |s| 
     | 
|
| 
       21 
21 
     | 
    
         
             
                s.extensions      = 'extconf.rb'
         
     | 
| 
       22 
22 
     | 
    
         
             
              end
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
     | 
    
         
            -
               
     | 
| 
       25 
     | 
    
         
            -
                Dir['**/*'] 
     | 
| 
      
 24 
     | 
    
         
            +
              if File.exists? '_darcs'
         
     | 
| 
      
 25 
     | 
    
         
            +
                s.files           = Dir.chdir('_darcs/current') { Dir['**/*'] }
         
     | 
| 
      
 26 
     | 
    
         
            +
              else
         
     | 
| 
      
 27 
     | 
    
         
            +
                s.files           = Dir['**/*']
         
     | 
| 
       26 
28 
     | 
    
         
             
              end
         
     | 
| 
      
 29 
     | 
    
         
            +
              s.files.reject { |file| file =~ /\.gem$/ }
         
     | 
| 
       27 
30 
     | 
    
         | 
| 
       28 
31 
     | 
    
         
             
            end
         
     | 
| 
       29 
32 
     | 
    
         | 
    
        data/tests/tc_postgres.rb
    CHANGED
    
    | 
         @@ -1,9 +1,9 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'postgres'
         
     | 
| 
       2 
1 
     | 
    
         
             
            require 'test/unit'
         
     | 
| 
       3 
2 
     | 
    
         | 
| 
       4 
3 
     | 
    
         
             
            class PostgresTestCase < Test::Unit::TestCase
         
     | 
| 
       5 
4 
     | 
    
         | 
| 
       6 
5 
     | 
    
         
             
              def setup
         
     | 
| 
      
 6 
     | 
    
         
            +
                PGconn.translate_results = true
         
     | 
| 
       7 
7 
     | 
    
         
             
                @conn = PGconn.new('dbname' => 'template1')
         
     | 
| 
       8 
8 
     | 
    
         
             
              end
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
         @@ -33,7 +33,7 @@ EOT 
     | 
|
| 
       33 
33 
     | 
    
         
             
                assert_equal("12345I\000ITEST", tuple['bytea_value'])
         
     | 
| 
       34 
34 
     | 
    
         
             
                assert_equal(Date.parse('2005-11-30'), tuple['date_value'])
         
     | 
| 
       35 
35 
     | 
    
         
             
                assert_equal(Time.parse('12:00:00'), tuple['time_value'])
         
     | 
| 
       36 
     | 
    
         
            -
                assert_equal( 
     | 
| 
      
 36 
     | 
    
         
            +
                assert_equal(Time.parse('2005-11-30 12:00:00'), tuple['date_time_value'])
         
     | 
| 
       37 
37 
     | 
    
         
             
                assert_equal(1.5, tuple['float_value'])
         
     | 
| 
       38 
38 
     | 
    
         
             
                assert_equal(BigDecimal("12345.5678"), tuple['numeric_value'])
         
     | 
| 
       39 
39 
     | 
    
         
             
                assert_equal(1235, tuple['numeric_10_value'])
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
     | 
    
         
            -
            rubygems_version: 0.8. 
     | 
| 
      
 2 
     | 
    
         
            +
            rubygems_version: 0.8.11
         
     | 
| 
       3 
3 
     | 
    
         
             
            specification_version: 1
         
     | 
| 
       4 
4 
     | 
    
         
             
            name: ruby-postgres
         
     | 
| 
       5 
5 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       6 
     | 
    
         
            -
              version: 0.7.1. 
     | 
| 
       7 
     | 
    
         
            -
            date:  
     | 
| 
      
 6 
     | 
    
         
            +
              version: 0.7.1.2006.04.05
         
     | 
| 
      
 7 
     | 
    
         
            +
            date: 2006-04-05 00:00:00 -06:00
         
     | 
| 
       8 
8 
     | 
    
         
             
            summary: Ruby extension library providing an API to PostgreSQL
         
     | 
| 
       9 
9 
     | 
    
         
             
            require_paths: 
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
      
 10 
     | 
    
         
            +
            - .
         
     | 
| 
       11 
11 
     | 
    
         
             
            email: davelee.com@gmail.com
         
     | 
| 
       12 
12 
     | 
    
         
             
            homepage: http://ruby.scripting.ca/postgres/
         
     | 
| 
       13 
13 
     | 
    
         
             
            rubyforge_project: ruby-postgres
         
     | 
| 
         @@ -18,46 +18,53 @@ bindir: bin 
     | 
|
| 
       18 
18 
     | 
    
         
             
            has_rdoc: true
         
     | 
| 
       19 
19 
     | 
    
         
             
            required_ruby_version: !ruby/object:Gem::Version::Requirement 
         
     | 
| 
       20 
20 
     | 
    
         
             
              requirements: 
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
                   
     | 
| 
       24 
     | 
    
         
            -
                    version: 0.0.0
         
     | 
| 
      
 21 
     | 
    
         
            +
              - - ">"
         
     | 
| 
      
 22 
     | 
    
         
            +
                - !ruby/object:Gem::Version 
         
     | 
| 
      
 23 
     | 
    
         
            +
                  version: 0.0.0
         
     | 
| 
       25 
24 
     | 
    
         
             
              version: 
         
     | 
| 
       26 
25 
     | 
    
         
             
            platform: mswin32
         
     | 
| 
      
 26 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 27 
     | 
    
         
            +
            cert_chain: 
         
     | 
| 
       27 
28 
     | 
    
         
             
            authors: 
         
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
      
 29 
     | 
    
         
            +
            - Yukihiro Matsumoto, Eiji Matsumoto, Noboru Saitou, Dave Lee
         
     | 
| 
       29 
30 
     | 
    
         
             
            files: 
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
      
 31 
     | 
    
         
            +
            - ChangeLog
         
     | 
| 
      
 32 
     | 
    
         
            +
            - Contributors
         
     | 
| 
      
 33 
     | 
    
         
            +
            - doc
         
     | 
| 
      
 34 
     | 
    
         
            +
            - extconf.rb
         
     | 
| 
      
 35 
     | 
    
         
            +
            - libpq-compat.c
         
     | 
| 
      
 36 
     | 
    
         
            +
            - Makefile
         
     | 
| 
      
 37 
     | 
    
         
            +
            - MANIFEST
         
     | 
| 
      
 38 
     | 
    
         
            +
            - mkmf.log
         
     | 
| 
      
 39 
     | 
    
         
            +
            - postgres.c
         
     | 
| 
      
 40 
     | 
    
         
            +
            - postgres.o
         
     | 
| 
      
 41 
     | 
    
         
            +
            - postgres.so
         
     | 
| 
      
 42 
     | 
    
         
            +
            - README
         
     | 
| 
      
 43 
     | 
    
         
            +
            - README.ja
         
     | 
| 
      
 44 
     | 
    
         
            +
            - ruby-postgres.gemspec
         
     | 
| 
      
 45 
     | 
    
         
            +
            - sample
         
     | 
| 
      
 46 
     | 
    
         
            +
            - tests
         
     | 
| 
      
 47 
     | 
    
         
            +
            - type-oids.h
         
     | 
| 
      
 48 
     | 
    
         
            +
            - doc/postgres.html
         
     | 
| 
      
 49 
     | 
    
         
            +
            - doc/postgres.jp.html
         
     | 
| 
      
 50 
     | 
    
         
            +
            - sample/losample.rb
         
     | 
| 
      
 51 
     | 
    
         
            +
            - sample/psql.rb
         
     | 
| 
      
 52 
     | 
    
         
            +
            - sample/psqlHelp.rb
         
     | 
| 
      
 53 
     | 
    
         
            +
            - sample/test1.rb
         
     | 
| 
      
 54 
     | 
    
         
            +
            - sample/test2.rb
         
     | 
| 
      
 55 
     | 
    
         
            +
            - sample/test4.rb
         
     | 
| 
      
 56 
     | 
    
         
            +
            - tests/tc_postgres.rb
         
     | 
| 
       56 
57 
     | 
    
         
             
            test_files: []
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
       57 
59 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
       58 
61 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
       59 
63 
     | 
    
         
             
            executables: []
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
       60 
65 
     | 
    
         
             
            extensions: []
         
     | 
| 
      
 66 
     | 
    
         
            +
             
     | 
| 
       61 
67 
     | 
    
         
             
            requirements: 
         
     | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
            dependencies: []
         
     | 
| 
      
 68 
     | 
    
         
            +
            - PostgreSQL libpq library and headers
         
     | 
| 
      
 69 
     | 
    
         
            +
            dependencies: []
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     |