pg 0.12.2-x86-mingw32 → 0.13.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/.hoerc +2 -0
  2. data/.tm_properties +12 -0
  3. data/ChangeLog +166 -59
  4. data/Contributors.rdoc +7 -0
  5. data/History.rdoc +29 -0
  6. data/LICENSE +12 -14
  7. data/Manifest.txt +15 -14
  8. data/{BSD → POSTGRES} +0 -0
  9. data/{README.OS_X.rdoc → README-OS_X.rdoc} +0 -0
  10. data/{README.windows.rdoc → README-Windows.rdoc} +0 -0
  11. data/README.ja.rdoc +1 -1
  12. data/README.rdoc +39 -27
  13. data/Rakefile +1 -5
  14. data/Rakefile.cross +2 -2
  15. data/ext/extconf.rb +8 -2
  16. data/ext/pg.c +232 -4297
  17. data/ext/pg.h +88 -23
  18. data/ext/pg_connection.c +3288 -0
  19. data/ext/pg_result.c +905 -0
  20. data/lib/1.8/pg_ext.so +0 -0
  21. data/lib/1.9/pg_ext.so +0 -0
  22. data/lib/pg.rb +26 -43
  23. data/lib/pg/connection.rb +58 -0
  24. data/lib/pg/constants.rb +11 -0
  25. data/lib/pg/exceptions.rb +11 -0
  26. data/lib/pg/result.rb +11 -0
  27. data/misc/openssl-pg-segfault.rb +1 -1
  28. data/sample/async_api.rb +16 -21
  29. data/sample/async_copyto.rb +1 -1
  30. data/sample/async_mixed.rb +56 -0
  31. data/sample/copyfrom.rb +1 -1
  32. data/sample/copyto.rb +1 -1
  33. data/sample/cursor.rb +1 -1
  34. data/sample/losample.rb +6 -6
  35. data/sample/notify_wait.rb +51 -22
  36. data/sample/test_binary_values.rb +4 -6
  37. data/spec/lib/helpers.rb +14 -10
  38. data/spec/{pgconn_spec.rb → pg/connection_spec.rb} +228 -60
  39. data/spec/{pgresult_spec.rb → pg/result_spec.rb} +31 -35
  40. data/spec/pg_spec.rb +22 -0
  41. metadata +52 -41
  42. data/GPL +0 -340
  43. data/ext/compat.c +0 -541
  44. data/ext/compat.h +0 -184
  45. data/sample/psql.rb +0 -1181
  46. data/sample/psqlHelp.rb +0 -158
  47. data/sample/test1.rb +0 -60
  48. data/sample/test2.rb +0 -44
  49. data/sample/test4.rb +0 -71
  50. data/spec/m17n_spec.rb +0 -170
data/.hoerc ADDED
@@ -0,0 +1,2 @@
1
+ ---
2
+ exclude: !ruby/regexp /\.(hg|DS_Store|rvm.*|irbrc|pryrc)|(coverage|manual|tmp\w*)\/|\.(bundle|so)$/
@@ -0,0 +1,12 @@
1
+ # Settings
2
+ projectDirectory = "$CWD"
3
+ windowTitle = "${CWD/^.*\///} «$TM_DISPLAYNAME»"
4
+ excludeInFileChooser = "{$exclude,.hg}"
5
+
6
+ TM_MAKE = 'rake'
7
+ TM_MAKE_FILE = '${projectDirectory}/Rakefile'
8
+
9
+ [ source ]
10
+ softTabs = false
11
+ tabSize = 4
12
+
data/ChangeLog CHANGED
@@ -1,8 +1,150 @@
1
+ 2012-02-09 Michael Granger <ged@FaerieMUD.org>
2
+
3
+ * misc/postgres/README.txt, misc/postgres/lib/postgres.rb:
4
+ Fix the Google group email and bump the patch version
5
+ [64aa4a38059e] [tip]
6
+
7
+ * .hgignore, misc/postgres/History.txt, misc/postgres/Manifest.txt,
8
+ misc/postgres/README.txt, misc/postgres/Rakefile,
9
+ misc/postgres/lib/postgres.rb:
10
+ Add a stub gem build for the deprecated 'postgres' gem
11
+ [62271bf75eac]
12
+
13
+ * .hgignore, misc/ruby-pg/History.txt, misc/ruby-pg/Manifest.txt, misc
14
+ /ruby-pg/README.txt, misc/ruby-pg/Rakefile, misc/ruby-
15
+ pg/lib/ruby/pg.rb:
16
+ Add a stub gem build for the deprecated 'ruby-pg' gem
17
+ [b7521150de9d]
18
+
19
+ * BSDL:
20
+ Add missing BSDL license file (fixes #108)
21
+ [4d629ff60589]
22
+
23
+ * History.rdoc:
24
+ Add the missing date to the History file
25
+ [29de189a4581]
26
+
27
+ * .hgtags:
28
+ Added tag v0.13.0 for changeset 7b2da7e0815c
29
+ [150ea5f80ee4]
30
+
31
+ * .hgsigs:
32
+ Added signature for changeset 9c262b875047
33
+ [7b2da7e0815c] [v0.13.0]
34
+
35
+ 2012-01-28 Michael Granger <ged@FaerieMUD.org>
36
+
37
+ * .hgsigs:
38
+ Added signature for changeset 0e7f0c2451e5
39
+ [9c262b875047]
40
+
41
+ * ext/extconf.rb:
42
+ Backed out the addition of `pg_config --libs` to the linked
43
+ libraries
44
+ [0e7f0c2451e5]
45
+
46
+ 2012-01-27 Michael Granger <ged@FaerieMUD.org>
47
+
48
+ * Manifest.txt, README-OS_X.rdoc, README-Windows.rdoc, readme-
49
+ os_x.rdoc, readme-windows.rdoc:
50
+ More case-corrections
51
+ [5732b34d5769]
52
+
53
+ 2012-01-27 Michael Granger <ged@faeriemud.org>
54
+
55
+ * postgres:
56
+ Merged in larskanis/ruby-pg (pull request #5)
57
+ [ad3e4338ad35]
58
+
59
+ 2012-01-27 Lars Kanis <kanis@comcard.de>
60
+
61
+ * Manifest.txt, POSTGRES, Rakefile, ext/extconf.rb, ext/pg.h,
62
+ postgres:
63
+ fix cross compilation of win32 binary gem, fix mixed case file
64
+ naming
65
+ [17151d677ad7]
66
+
67
+ 2012-01-26 Michael Granger <ged@FaerieMUD.org>
68
+
69
+ * .hgsigs:
70
+ Added signature for changeset b67309d3ccf2
71
+ [8f5629b33d76]
72
+
73
+ * .rvmrc, ext/pg_connection.c, spec/pg/connection_spec.rb:
74
+ Fix for Ruby 1.8, removed accidentally-committed encoding-testing
75
+ method.
76
+ [b67309d3ccf2]
77
+
78
+ 2012-01-24 Michael Granger <ged@FaerieMUD.org>
79
+
80
+ * History.rdoc, Manifest.txt, README.rdoc, Rakefile, lib/pg.rb:
81
+ Updated the History file, Manifest, README, added missing require.
82
+ [b2cd37832d02]
83
+
84
+ * .rvm.gems:
85
+ Removed rspec 2.8.1 -- not yet released, and 2.8.0 is now pulled in
86
+ via hoe-deveiate
87
+ [a4494f18a0d3]
88
+
89
+ * lib/pg/constants.rb:
90
+ Whitespace cleanup
91
+ [e1b146cd9c2f]
92
+
93
+ * sample/async_api.rb, sample/notify_wait.rb, sample/psql.rb,
94
+ sample/psqlHelp.rb, sample/test1.rb, sample/test2.rb,
95
+ sample/test4.rb, sample/test_binary_values.rb:
96
+ Cleaned up the sample/ directory
97
+ [287c71f3c89e]
98
+
99
+ * .rvm.gems:
100
+ Bump hoe-deveiate version in the rvm gemset
101
+ [59d4530b4e43]
102
+
103
+ * .rvm.gems, BSD, Contributors.rdoc, GPL, LICENSE, Manifest.txt,
104
+ README.OS_X.rdoc, README.ja.rdoc, README.rdoc, README.windows.rdoc,
105
+ Rakefile, postgres, readme-os_x.rdoc, readme-windows.rdoc:
106
+ Updated/simplified authors/license sections of the README, API doc
107
+ cleanup, updated license files (fixes #72).
108
+ [29a15971cd3a]
109
+
110
+ * ext/pg.c, ext/pg_connection.c, ext/pg_result.c, spec/lib/helpers.rb,
111
+ spec/pg/connection_spec.rb:
112
+ Fix for exception message encoding (#96)
113
+ [1cdad2ce8993]
114
+
115
+ * .pryrc, .tm_properties, Manifest.txt, README.rdoc, ext/compat.c,
116
+ ext/compat.h, ext/extconf.rb, ext/pg.c, ext/pg.h,
117
+ ext/pg_connection.c, ext/pg_result.c, lib/pg.rb,
118
+ lib/pg/connection.rb, lib/pg/constants.rb, lib/pg/exceptions.rb,
119
+ lib/pg/result.rb, misc/openssl-pg-segfault.rb, sample/async_api.rb,
120
+ sample/async_copyto.rb, sample/async_mixed.rb, sample/copyfrom.rb,
121
+ sample/copyto.rb, sample/cursor.rb, sample/losample.rb,
122
+ sample/notify_wait.rb, sample/psql.rb, sample/test1.rb,
123
+ sample/test2.rb, sample/test4.rb, sample/test_binary_values.rb,
124
+ spec/lib/helpers.rb, spec/m17n_spec.rb, spec/pg/connection_spec.rb,
125
+ spec/pg/result_spec.rb, spec/pg_spec.rb, spec/pgconn_spec.rb,
126
+ spec/pgresult_spec.rb:
127
+ Rearranging classes under the PG namespace to be a better Ruby
128
+ citizen
129
+ [f346861fbb8b]
130
+
131
+ 2012-01-19 Michael Granger <ged@FaerieMUD.org>
132
+
133
+ * .hoerc, .rvm.gems, .rvmrc:
134
+ Adding rvmrc and gemset
135
+ [dca3d7464a00]
136
+
137
+ 2012-01-13 Michael Granger <ged@FaerieMUD.org>
138
+
139
+ * Manifest.txt, sample/async_mixed.rb:
140
+ Adding an example of mixed synchronous/async API.
141
+ [3ba256ccee89]
142
+
1
143
  2012-01-03 Michael Granger <ged@FaerieMUD.org>
2
144
 
3
145
  * .hgtags:
4
146
  Added tag v0.12.2 for changeset 88bd78632f86
5
- [622bef3960c3] [tip]
147
+ [622bef3960c3]
6
148
 
7
149
  * .hgsigs:
8
150
  Added signature for changeset f3dfdb6929b7
@@ -30,6 +172,13 @@
30
172
  * Merged in larskanis/ruby-pg (pull request #4)
31
173
  [8d88c47ccc9b]
32
174
 
175
+ 2012-01-03 Lars Kanis <kanis@comcard.de>
176
+
177
+ * ext/extconf.rb, ext/pg.h:
178
+ Alternatively include 'st.h' instead of 'ruby/st.h'. This fixes
179
+ compilation on Ruby 1.8.
180
+ [0cf272cb383f]
181
+
33
182
  2012-01-03 Michael Granger <ged@FaerieMUD.org>
34
183
 
35
184
  * Merged with 6fc514ea2547
@@ -41,13 +190,6 @@
41
190
  Updating history file with the st.h change
42
191
  [935f29411410]
43
192
 
44
- 2012-01-03 Lars Kanis <kanis@comcard.de>
45
-
46
- * ext/extconf.rb, ext/pg.h:
47
- Alternatively include 'st.h' instead of 'ruby/st.h'. This fixes
48
- compilation on Ruby 1.8.
49
- [0cf272cb383f]
50
-
51
193
  2012-01-02 Michael Granger <ged@FaerieMUD.org>
52
194
 
53
195
  * .hgtags:
@@ -159,6 +301,22 @@
159
301
  patch (fixes #88).
160
302
  [31ff2758248a]
161
303
 
304
+ 2011-11-02 Lars Kanis <kanis@comcard.de>
305
+
306
+ * Rakefile.cross, ext/extconf.rb:
307
+ Add support for OpenSSL-Engine CAPI (windows crypto API)
308
+
309
+ Newer mingw versions (>=4.6) contain header files for CAPI, so that
310
+ OpenSSL uses them and links against libcrypt32.
311
+ [978a0512f806]
312
+
313
+ 2011-10-31 Lars Kanis <kanis@comcard.de>
314
+
315
+ * README.windows.rdoc, Rakefile, Rakefile.cross:
316
+ re-add mingw32 cross compilation tasks, updated to current
317
+ pg,openssl,ruby versions
318
+ [f0f572ef1b97]
319
+
162
320
  2011-10-10 Michael Granger <ged@FaerieMUD.org>
163
321
 
164
322
  * sample/cursor.rb:
@@ -777,22 +935,6 @@
777
935
  when client_encoding in the connection changes.
778
936
  [9d54bbc98488]
779
937
 
780
- 2010-01-27 COMCARD-NT\kanis <COMCARD-NT\kanis@c1170lx.comcard-nt.de>
781
-
782
- * spec/lib/helpers.rb:
783
- drop an recreate the test db for each test
784
- [bbe869c00d46] <setting_up_test_database_patch>
785
-
786
- 2010-01-26 kueche <kueche@eee>
787
-
788
- * ext/pg.c:
789
- same behavior for async_exec like exec
790
- [fdb088fca6e0] <async_exec_behavior_patch>
791
-
792
- * spec/lib/helpers.rb:
793
- improved test database setup
794
- [825e424a4b08] <setting_up_test_database_patch>
795
-
796
938
  2010-01-18 Michael Granger <ged@FaerieMUD.org>
797
939
 
798
940
  * ext/extconf.rb:
@@ -822,31 +964,12 @@
822
964
  Thanks to both Lars and Shun for all their help with this issue.
823
965
  [74fab32c2687]
824
966
 
825
- 2010-01-11 COMCARD-NT\kanis <COMCARD-NT\kanis@c1170lx.comcard-nt.de>
826
-
827
- * ext/pg.c:
828
- remaped to async_exec
829
- [df509c9a45c0] <always_use_async_exec>
830
-
831
- * merged from default
832
- [7f9623f8af4c] <workaround_broken_rb_thread_select>
833
-
834
967
  2010-01-06 Michael Granger <ged@FaerieMUD.org>
835
968
 
836
969
  * README:
837
970
  Rearranged the sections of the README.
838
971
  [f8dfc1b6c51c]
839
972
 
840
- 2010-01-08 COMCARD-NT\kanis <COMCARD-NT\kanis@c1170lx.comcard-nt.de>
841
-
842
- * ext/pg.c, ext/pg.h, spec/pgconn_spec.rb:
843
- reworked patch that should not block a second thread
844
- [01ad62c60c74] <workaround_broken_rb_thread_select>
845
-
846
- * ext/pg.c:
847
- merged with default
848
- [d8936a677dd0] <workaround_broken_rb_thread_select>
849
-
850
973
  2010-01-05 Michael Granger <ged@FaerieMUD.org>
851
974
 
852
975
  * README.OS_X:
@@ -885,16 +1008,6 @@
885
1008
  Closes #13. Thanks Lars!
886
1009
  [38a0d2a90664]
887
1010
 
888
- 2010-01-04 COMCARD-NT\kanis <COMCARD-NT\kanis@c1170lx.comcard-nt.de>
889
-
890
- * README.windows, Rakefile.local, ext/extconf.rb:
891
- win32 cross-compilation patch applied
892
- [b55949db8e2e] <cross-compilation-with-rake-compiler>
893
-
894
- * ext/pg.c:
895
- win32 workaround rb_thread_select() applied
896
- [78fbefffe863] <workaround_broken_rb_thread_select>
897
-
898
1011
  2010-01-03 Michael Granger <ged@FaerieMUD.org>
899
1012
 
900
1013
  * .irbrc, COPYING.txt, ChangeLog, MANIFEST, README, README.OS_X,
@@ -937,12 +1050,6 @@
937
1050
  Merged i17n-19-patches branch
938
1051
  [0997a0aa7624]
939
1052
 
940
- 2009-12-30 COMCARD-NT\kanis <COMCARD-NT\kanis@c1170lx.comcard-nt.de>
941
-
942
- * README.windows, Rakefile.local, ext/extconf.rb:
943
- static library building for cross compilation
944
- [065a842e7bf8] <i17n-19-patches>
945
-
946
1053
  2009-12-28 Michael Granger <ged@FaerieMUD.org>
947
1054
 
948
1055
  * .hgignore, ext/pg.c, spec/pgconn_spec.rb:
@@ -36,4 +36,11 @@ list.
36
36
  * Mahlon E. Smith <mahlon@martini.nu>
37
37
  * Lars Kanis <kanis@comcard.de>
38
38
  * Jason Yanowitz <me-bitbucket@jasonyanowitz.com>
39
+ * Charlie Savage <cfis@rubyforge.org>
40
+ * Rafał Bigaj <rafal@Bonifacy.intranet>
41
+ * Jason Yanowitz <me-bitbucket@jasonyanowitz.com>
42
+ * Greg Hazel <ghazel@gmail.com>
43
+ * Chris White <cwprogram@live.com>
44
+ * Aaron Patterson <aaron.patterson@gmail.com>
45
+ * Tim Felgentreff <timfelgentreff@gmail.com>
39
46
 
@@ -1,3 +1,32 @@
1
+ == v0.13.0 [2012-02-09] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Reorganization of modules/classes to be better Ruby citizens (with backward-compatible aliases):
4
+ - Created toplevel namespace 'PG' to correspond with the gem name.
5
+ - Renamed PGconn to PG::Connection (with ::PGconn alias)
6
+ - Renamed PGresult to PG::Result (with ::PGresult alias)
7
+ - Renamed PGError to PG::Error (with ::PGError alias)
8
+ - Declare all constants inside PG::Constants, then include them in
9
+ PG::Connection and PG::Result for backward-compatibility, and
10
+ in PG for convenience.
11
+ - Split the extension source up by class/module.
12
+ - Removed old compatibility code for PostgreSQL versions < 8.3
13
+
14
+ Documentation:
15
+ - Clarified licensing, updated to Ruby 1.9's license.
16
+ - Merged authors list, added some missing people to the Contributor's
17
+ list.
18
+ - Cleaned up the sample/ directory
19
+ - Making contact info a bit clearer, link to the Google+ page and
20
+ the mailing list
21
+
22
+ Enhancements:
23
+ - Added a convenience method: PG.connect -> PG::Connection.new
24
+
25
+ Bugfixes:
26
+ - Fixed LATIN5-LATIN10 Postgres<->Ruby encoding conversions
27
+
28
+
29
+
1
30
  == v0.12.2 [2012-01-03] Michael Granger <ged@FaerieMUD.org>
2
31
 
3
32
  - Fix for the 1.8.7 breakage introduced by the st.h fix for alternative Ruby
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
- Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.co.jp>.
2
- You can redistribute it and/or modify it under either the terms of the GPL
3
- (see COPYING.txt file), or the conditions below:
1
+ Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
2
+ You can redistribute it and/or modify it under either the terms of the
3
+ 2-clause BSDL (see the file BSDL), or the conditions below:
4
4
 
5
5
  1. You may make and give away verbatim copies of the source form of the
6
6
  software without restriction, provided that you duplicate all of the
@@ -17,33 +17,32 @@ You can redistribute it and/or modify it under either the terms of the GPL
17
17
  b) use the modified software only within your corporation or
18
18
  organization.
19
19
 
20
- c) rename any non-standard executables so the names do not conflict
21
- with standard executables, which must also be provided.
20
+ c) give non-standard binaries non-standard names, with
21
+ instructions on where to get the original software distribution.
22
22
 
23
23
  d) make other distribution arrangements with the author.
24
24
 
25
- 3. You may distribute the software in object code or executable
26
- form, provided that you do at least ONE of the following:
25
+ 3. You may distribute the software in object code or binary form,
26
+ provided that you do at least ONE of the following:
27
27
 
28
- a) distribute the executables and library files of the software,
28
+ a) distribute the binaries and library files of the software,
29
29
  together with instructions (in the manual page or equivalent)
30
30
  on where to get the original distribution.
31
31
 
32
32
  b) accompany the distribution with the machine-readable source of
33
33
  the software.
34
34
 
35
- c) give non-standard executables non-standard names, with
35
+ c) give non-standard binaries non-standard names, with
36
36
  instructions on where to get the original software distribution.
37
37
 
38
38
  d) make other distribution arrangements with the author.
39
39
 
40
40
  4. You may modify and include the part of the software into any other
41
41
  software (possibly commercial). But some files in the distribution
42
- are not written by the author, so that they are not under this terms.
42
+ are not written by the author, so that they are not under these terms.
43
43
 
44
- They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
45
- files under the ./missing directory. See each file for the copying
46
- condition.
44
+ For the list of those files and their copying conditions, see the
45
+ file LEGAL.
47
46
 
48
47
  5. The scripts and library files supplied as input to or produced as
49
48
  output from the software do not automatically fall under the
@@ -55,4 +54,3 @@ You can redistribute it and/or modify it under either the terms of the GPL
55
54
  IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
56
55
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
57
56
  PURPOSE.
58
-
@@ -1,43 +1,44 @@
1
1
  .gemtest
2
- BSD
2
+ .hoerc
3
+ .tm_properties
3
4
  ChangeLog
4
5
  Contributors.rdoc
5
- GPL
6
6
  History.rdoc
7
7
  LICENSE
8
8
  Manifest.txt
9
- README.OS_X.rdoc
9
+ POSTGRES
10
+ README-OS_X.rdoc
11
+ README-Windows.rdoc
10
12
  README.ja.rdoc
11
13
  README.rdoc
12
- README.windows.rdoc
13
14
  Rakefile
14
15
  Rakefile.cross
15
- ext/compat.c
16
- ext/compat.h
17
16
  ext/extconf.rb
18
17
  ext/pg.c
19
18
  ext/pg.h
19
+ ext/pg_connection.c
20
+ ext/pg_result.c
20
21
  ext/vc/pg.sln
21
22
  ext/vc/pg_18/pg.vcproj
22
23
  ext/vc/pg_19/pg_19.vcproj
23
24
  lib/pg.rb
25
+ lib/pg/connection.rb
26
+ lib/pg/constants.rb
27
+ lib/pg/exceptions.rb
28
+ lib/pg/result.rb
24
29
  misc/openssl-pg-segfault.rb
25
30
  sample/async_api.rb
26
31
  sample/async_copyto.rb
32
+ sample/async_mixed.rb
27
33
  sample/copyfrom.rb
28
34
  sample/copyto.rb
29
35
  sample/cursor.rb
30
36
  sample/losample.rb
31
37
  sample/notify_wait.rb
32
- sample/psql.rb
33
- sample/psqlHelp.rb
34
- sample/test1.rb
35
- sample/test2.rb
36
- sample/test4.rb
37
38
  sample/test_binary_values.rb
38
39
  spec/data/expected_trace.out
39
40
  spec/data/random_binary_data
40
41
  spec/lib/helpers.rb
41
- spec/m17n_spec.rb
42
- spec/pgconn_spec.rb
43
- spec/pgresult_spec.rb
42
+ spec/pg/connection_spec.rb
43
+ spec/pg/result_spec.rb
44
+ spec/pg_spec.rb