autocompl 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/lib/autocompl/repository.rb +11 -1
  3. data/lib/autocompl/version.rb +1 -1
  4. data/test/dummy/log/development.log +467 -0
  5. data/test/dummy/log/test.log +3 -0
  6. data/test/dummy/vendor/bundle/ruby/2.3.0/bin/console +23 -0
  7. data/test/dummy/vendor/bundle/ruby/2.3.0/cache/pg-0.19.0.gem +0 -0
  8. data/test/dummy/vendor/bundle/ruby/2.3.0/cache/pq-0.0.1.gem +0 -0
  9. data/test/dummy/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/pg-0.19.0/gem.build_complete +0 -0
  10. data/test/dummy/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/pg-0.19.0/gem_make.out +78 -0
  11. data/test/dummy/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/pg-0.19.0/mkmf.log +1346 -0
  12. data/test/dummy/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/pg-0.19.0/pg_ext.bundle +0 -0
  13. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/BSDL +22 -0
  14. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ChangeLog +6378 -0
  15. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/Contributors.rdoc +46 -0
  16. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/History.rdoc +363 -0
  17. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/LICENSE +56 -0
  18. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/Manifest.txt +85 -0
  19. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/POSTGRES +23 -0
  20. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/README-OS_X.rdoc +68 -0
  21. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/README-Windows.rdoc +56 -0
  22. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/README.ja.rdoc +14 -0
  23. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/README.rdoc +168 -0
  24. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/Rakefile +216 -0
  25. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/Rakefile.cross +301 -0
  26. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/Makefile +261 -0
  27. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/errorcodes.def +947 -0
  28. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/errorcodes.rb +45 -0
  29. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/errorcodes.txt +467 -0
  30. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/extconf.h +38 -0
  31. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/extconf.rb +112 -0
  32. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/gvl_wrappers.c +13 -0
  33. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/gvl_wrappers.h +257 -0
  34. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/gvl_wrappers.o +0 -0
  35. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg.c +667 -0
  36. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg.h +395 -0
  37. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg.o +0 -0
  38. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_binary_decoder.c +162 -0
  39. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_binary_decoder.o +0 -0
  40. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_binary_encoder.c +162 -0
  41. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_binary_encoder.o +0 -0
  42. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_coder.c +500 -0
  43. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_coder.o +0 -0
  44. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_connection.c +4102 -0
  45. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_connection.o +0 -0
  46. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_copy_coder.c +591 -0
  47. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_copy_coder.o +0 -0
  48. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_errors.c +95 -0
  49. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_errors.o +0 -0
  50. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_ext.bundle +0 -0
  51. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_result.c +1271 -0
  52. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_result.o +0 -0
  53. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_text_decoder.c +421 -0
  54. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_text_decoder.o +0 -0
  55. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_text_encoder.c +683 -0
  56. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_text_encoder.o +0 -0
  57. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map.c +159 -0
  58. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map.o +0 -0
  59. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_all_strings.c +116 -0
  60. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_all_strings.o +0 -0
  61. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_class.c +239 -0
  62. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_class.o +0 -0
  63. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_column.c +312 -0
  64. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_column.o +0 -0
  65. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_mri_type.c +284 -0
  66. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_mri_type.o +0 -0
  67. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_oid.c +355 -0
  68. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_oid.o +0 -0
  69. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_in_ruby.c +299 -0
  70. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_in_ruby.o +0 -0
  71. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/util.c +149 -0
  72. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/util.h +65 -0
  73. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/util.o +0 -0
  74. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/vc/pg.sln +26 -0
  75. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/vc/pg_18/pg.vcproj +216 -0
  76. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/vc/pg_19/pg_19.vcproj +209 -0
  77. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg.rb +64 -0
  78. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/basic_type_mapping.rb +426 -0
  79. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/coder.rb +83 -0
  80. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/connection.rb +271 -0
  81. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/constants.rb +11 -0
  82. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/exceptions.rb +11 -0
  83. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/result.rb +30 -0
  84. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/text_decoder.rb +51 -0
  85. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/text_encoder.rb +35 -0
  86. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/type_map_by_column.rb +15 -0
  87. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg_ext.bundle +0 -0
  88. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/array_insert.rb +20 -0
  89. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/async_api.rb +106 -0
  90. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/async_copyto.rb +39 -0
  91. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/async_mixed.rb +56 -0
  92. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/check_conn.rb +21 -0
  93. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/copyfrom.rb +81 -0
  94. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/copyto.rb +19 -0
  95. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/cursor.rb +21 -0
  96. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/disk_usage_report.rb +186 -0
  97. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/issue-119.rb +94 -0
  98. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/losample.rb +69 -0
  99. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/minimal-testcase.rb +17 -0
  100. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/notify_wait.rb +72 -0
  101. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/pg_statistics.rb +294 -0
  102. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/replication_monitor.rb +231 -0
  103. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/test_binary_values.rb +33 -0
  104. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/wal_shipper.rb +434 -0
  105. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/warehouse_partitions.rb +320 -0
  106. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/data/expected_trace.out +26 -0
  107. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/data/random_binary_data +0 -0
  108. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/helpers.rb +352 -0
  109. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/basic_type_mapping_spec.rb +305 -0
  110. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/connection_spec.rb +1676 -0
  111. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/result_spec.rb +449 -0
  112. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_by_class_spec.rb +138 -0
  113. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_by_column_spec.rb +222 -0
  114. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_by_mri_type_spec.rb +136 -0
  115. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_by_oid_spec.rb +149 -0
  116. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_in_ruby_spec.rb +164 -0
  117. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_spec.rb +22 -0
  118. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_spec.rb +777 -0
  119. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg_spec.rb +50 -0
  120. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/Gemfile +4 -0
  121. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/LICENSE.txt +22 -0
  122. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/README.md +76 -0
  123. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/Rakefile +1 -0
  124. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/bin/console +7 -0
  125. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/lib/pq.rb +99 -0
  126. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/pq.gemspec +29 -0
  127. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/spec/helpers.rb +10 -0
  128. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/spec/queue_spec.rb +84 -0
  129. data/test/dummy/vendor/bundle/ruby/2.3.0/specifications/pg-0.19.0.gemspec +63 -0
  130. data/test/dummy/vendor/bundle/ruby/2.3.0/specifications/pq-0.0.1.gemspec +49 -0
  131. metadata +253 -1
@@ -0,0 +1,85 @@
1
+ .gemtest
2
+ BSDL
3
+ ChangeLog
4
+ Contributors.rdoc
5
+ History.rdoc
6
+ LICENSE
7
+ Manifest.txt
8
+ POSTGRES
9
+ README-OS_X.rdoc
10
+ README-Windows.rdoc
11
+ README.ja.rdoc
12
+ README.rdoc
13
+ Rakefile
14
+ Rakefile.cross
15
+ ext/errorcodes.def
16
+ ext/errorcodes.rb
17
+ ext/errorcodes.txt
18
+ ext/extconf.rb
19
+ ext/gvl_wrappers.c
20
+ ext/gvl_wrappers.h
21
+ ext/pg.c
22
+ ext/pg.h
23
+ ext/pg_binary_decoder.c
24
+ ext/pg_binary_encoder.c
25
+ ext/pg_coder.c
26
+ ext/pg_connection.c
27
+ ext/pg_copy_coder.c
28
+ ext/pg_errors.c
29
+ ext/pg_result.c
30
+ ext/pg_text_decoder.c
31
+ ext/pg_text_encoder.c
32
+ ext/pg_type_map.c
33
+ ext/pg_type_map_all_strings.c
34
+ ext/pg_type_map_by_class.c
35
+ ext/pg_type_map_by_column.c
36
+ ext/pg_type_map_by_mri_type.c
37
+ ext/pg_type_map_by_oid.c
38
+ ext/pg_type_map_in_ruby.c
39
+ ext/util.c
40
+ ext/util.h
41
+ ext/vc/pg.sln
42
+ ext/vc/pg_18/pg.vcproj
43
+ ext/vc/pg_19/pg_19.vcproj
44
+ lib/pg.rb
45
+ lib/pg/basic_type_mapping.rb
46
+ lib/pg/coder.rb
47
+ lib/pg/connection.rb
48
+ lib/pg/constants.rb
49
+ lib/pg/exceptions.rb
50
+ lib/pg/result.rb
51
+ lib/pg/text_decoder.rb
52
+ lib/pg/text_encoder.rb
53
+ lib/pg/type_map_by_column.rb
54
+ sample/array_insert.rb
55
+ sample/async_api.rb
56
+ sample/async_copyto.rb
57
+ sample/async_mixed.rb
58
+ sample/check_conn.rb
59
+ sample/copyfrom.rb
60
+ sample/copyto.rb
61
+ sample/cursor.rb
62
+ sample/disk_usage_report.rb
63
+ sample/issue-119.rb
64
+ sample/losample.rb
65
+ sample/minimal-testcase.rb
66
+ sample/notify_wait.rb
67
+ sample/pg_statistics.rb
68
+ sample/replication_monitor.rb
69
+ sample/test_binary_values.rb
70
+ sample/wal_shipper.rb
71
+ sample/warehouse_partitions.rb
72
+ spec/data/expected_trace.out
73
+ spec/data/random_binary_data
74
+ spec/helpers.rb
75
+ spec/pg/basic_type_mapping_spec.rb
76
+ spec/pg/connection_spec.rb
77
+ spec/pg/result_spec.rb
78
+ spec/pg/type_map_by_class_spec.rb
79
+ spec/pg/type_map_by_column_spec.rb
80
+ spec/pg/type_map_by_mri_type_spec.rb
81
+ spec/pg/type_map_by_oid_spec.rb
82
+ spec/pg/type_map_in_ruby_spec.rb
83
+ spec/pg/type_map_spec.rb
84
+ spec/pg/type_spec.rb
85
+ spec/pg_spec.rb
@@ -0,0 +1,23 @@
1
+ PostgreSQL Database Management System
2
+ (formerly known as Postgres, then as Postgres95)
3
+
4
+ Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
5
+
6
+ Portions Copyright (c) 1994, The Regents of the University of California
7
+
8
+ Permission to use, copy, modify, and distribute this software and its
9
+ documentation for any purpose, without fee, and without a written agreement
10
+ is hereby granted, provided that the above copyright notice and this
11
+ paragraph and the following two paragraphs appear in all copies.
12
+
13
+ IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
14
+ DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING
15
+ LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS
16
+ DOCUMENTATION, EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE
17
+ POSSIBILITY OF SUCH DAMAGE.
18
+
19
+ THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
20
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
21
+ AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
22
+ ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
23
+ PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
@@ -0,0 +1,68 @@
1
+ = Compiling on MacOS X
2
+
3
+ The EnterpriseDB packages are the recommended PostgreSQL installations to use
4
+ with MacOS X. They eliminate most or all of the issues with getting 'pg'
5
+ installed, linked correctly, and running.
6
+
7
+ == Segfaults and SSL Support
8
+
9
+ If you need a custom installation of PostgreSQL, you should ensure that you
10
+ either compile it against the same version of OpenSSL as the OpenSSL extension
11
+ of the Ruby you'll be using, or compile it without SSL support. If you fail to
12
+ do this, you will likely see segfaults when you use 'pg' and the 'openssl'
13
+ extension at the same time. You can see what library it's linked against using
14
+ 'otool -L'; for example, on my 10.7 machine I use for 'pg' development:
15
+
16
+ $ otool -L /System/Library/Frameworks/Ruby.framework/Versions\
17
+ /1.8/usr/lib/ruby/1.8/universal-darwin11.0/openssl.bundle
18
+
19
+ /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/\
20
+ lib/ruby/1.8/universal-darwin11.0/openssl.bundle:
21
+ /System/Library/Frameworks/Ruby.framework/Versions/1.8/\
22
+ usr/lib/libruby.1.dylib (compatibility version 1.8.0, \
23
+ current version 1.8.7)
24
+ /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, \
25
+ current version 0.9.8)
26
+ /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, \
27
+ current version 0.9.8)
28
+ /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, \
29
+ current version 159.0.0)
30
+
31
+
32
+ == Dealing with Installation Problems
33
+
34
+ If you are building/installing pg on MacOS X, and the installation doesn't
35
+ work at first, here are a few things you can try.
36
+
37
+ === pg_config
38
+
39
+ The first thing you should do is ensure that the 'pg_config' tool that comes
40
+ with Postgres is in your path. If it isn't, or the one that's first in your
41
+ path isn't the one that was installed with the Postgres you want to build
42
+ against, you can specify the path to it with the --with-pg-config option.
43
+
44
+ For example, if you're using the Ruby binary that comes with OSX, and
45
+ PostgreSQL 9.0.x installed from MacPorts, do:
46
+
47
+ gem install -- --with-pg-config=/opt/local/lib/postgresql90/bin/pg_config
48
+
49
+ === ARCHFLAGS and Universal Binaries
50
+
51
+ OS X supports both architecture-specific binaries (e.g. i386), as well as
52
+ universal binaries (i.e. i386 & ppc). If Ruby is built as a universal binary
53
+ and PostgreSQL is not, you need to specify the path to the appropriate
54
+ pg_config binary or set the environment variable ARCHFLAGS appropriately.
55
+
56
+ Alternatively, if the build system can't figure out which architectures it
57
+ should include, you may need to set the 'ARCHFLAGS' environment variable
58
+ explicitly:
59
+
60
+ sudo env ARCHFLAGS='-arch x86_64' gem install pg
61
+
62
+ or, if you're building from source:
63
+
64
+ rake compile ARCHFLAGS="-arch x86_64"
65
+
66
+ Note that the recommended EnterpriseDB packages are correctly compiled as
67
+ universal binaries, and don't need any of these workarounds.
68
+
@@ -0,0 +1,56 @@
1
+ = Compiling 'pg' on MS Windows
2
+
3
+ In order to build this extension on MS Windows you will need a couple things.
4
+
5
+ First, a compiler. For the one click installer this means you should use
6
+ the DevKit or the compiler that comes with cygwin if you're building on that
7
+ platform.
8
+
9
+ If you've built Ruby yourself, you should use the same compiler to build
10
+ this library that you used to build Ruby.
11
+
12
+ Second, PostgreSQL. Be sure you installed it with the development header
13
+ files if you installed it using the standard PostgreSQL installer for
14
+ Windows. If you didn't, you can run the installer again, select "modify",
15
+ and then select the 'development headers' option to install them.
16
+
17
+ I recommend making sure that 'pg_config.exe' is in your PATH. The PostgreSQL
18
+ installer for Windows does not necessarily update your PATH when it installs
19
+ itself, so you may need to do this manually. This isn't strictly necessary,
20
+ however.
21
+
22
+ In order to build ruby-pg, just run 'rake'. If the pg_config.exe executable
23
+ is not in your PATH, you'll need to explicitly point ruby-pg to where your
24
+ PostgreSQL headers and libraries are with something like this:
25
+
26
+ rake --with-pg-dir=c:/progra~1/postgr~1/8.3
27
+
28
+ Adjust your path accordingly. BE SURE TO USE THE SHORT PATH NAMES! If you
29
+ try to use a path with spaces in it, the nmake.exe program will choke.
30
+
31
+
32
+ == Building binary 'pg' gems for MS Windows
33
+
34
+ Binary gems for windows can be built on Linux, OS-X and even on Windows
35
+ with the help of docker. This is how regular windows gems are built for
36
+ rubygems.org .
37
+
38
+ To do this, install boot2docker [on Windows](https://github.com/boot2docker/windows-installer/releases)
39
+ or [on OS X](https://github.com/boot2docker/osx-installer/releases) and make
40
+ sure it is started. A native Docker installation is best on Linux.
41
+
42
+ Then run:
43
+
44
+ rake gem:windows
45
+
46
+ This will download a docker image suited for building windows gems, and it
47
+ will download and build OpenSSL and PostgreSQL. Finally the gem is built
48
+ containing binaries for all supported ruby versions.
49
+
50
+
51
+ == Reporting Problems
52
+
53
+ If you have any problems you can submit them via
54
+ [the project's issue-tracker][bitbucket]. And submit questions, problems, or
55
+ solutions, so that it can be improved.
56
+
@@ -0,0 +1,14 @@
1
+ = pg
2
+
3
+ home :: https://bitbucket.org/ged/ruby-pg
4
+ mirror :: https://github.com/ged/ruby-pg
5
+ docs :: http://deveiate.org/code/pg
6
+
7
+
8
+ == Description
9
+
10
+ This file needs a translation of the English README. Pull requests, patches, or
11
+ volunteers gladly accepted.
12
+
13
+ Until such time, please accept my sincere apologies for not knowing Japanese.
14
+
@@ -0,0 +1,168 @@
1
+ = pg
2
+
3
+ home :: https://bitbucket.org/ged/ruby-pg
4
+ mirror :: https://github.com/ged/ruby-pg
5
+ docs :: http://deveiate.org/code/pg
6
+
7
+ {<img src="https://badges.gitter.im/Join%20Chat.svg" alt="Join the chat at https://gitter.im/ged/ruby-pg">}[https://gitter.im/ged/ruby-pg?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge]
8
+
9
+
10
+ == Description
11
+
12
+ Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/].
13
+
14
+ It works with {PostgreSQL 9.1 and later}[http://www.postgresql.org/support/versioning/].
15
+
16
+ A small example usage:
17
+
18
+ #!/usr/bin/env ruby
19
+
20
+ require 'pg'
21
+
22
+ # Output a table of current connections to the DB
23
+ conn = PG.connect( dbname: 'sales' )
24
+ conn.exec( "SELECT * FROM pg_stat_activity" ) do |result|
25
+ puts " PID | User | Query"
26
+ result.each do |row|
27
+ puts " %7d | %-16s | %s " %
28
+ row.values_at('procpid', 'usename', 'current_query')
29
+ end
30
+ end
31
+
32
+ == Build Status
33
+
34
+ {<img src="https://travis-ci.org/ged/ruby-pg.png?branch=master" alt="Build Status Travis-CI" />}[https://travis-ci.org/ged/ruby-pg]
35
+ {<img src="https://ci.appveyor.com/api/projects/status/at4g4swb2cd4xji7/branch/master?svg=true" alt="Build Status Appveyor" />}[https://ci.appveyor.com/project/ged/ruby-pg]
36
+
37
+
38
+ == Requirements
39
+
40
+ * Ruby 2.2
41
+ * PostgreSQL 9.1.x or later (with headers, -dev packages, etc).
42
+
43
+ It usually work with earlier versions of Ruby/PostgreSQL as well, but those are
44
+ not regularly tested.
45
+
46
+
47
+ == How To Install
48
+
49
+ Install via RubyGems:
50
+
51
+ gem install pg
52
+
53
+ You may need to specify the path to the 'pg_config' program installed with
54
+ Postgres:
55
+
56
+ gem install pg -- --with-pg-config=<path to pg_config>
57
+
58
+ If you're installing via Bundler, you can provide compile hints like so:
59
+
60
+ bundle config build.pg --with-pg-config=<path to pg_config>
61
+
62
+ See README-OS_X.rdoc for more information about installing under MacOS X, and
63
+ README-Windows.rdoc for Windows build/installation instructions.
64
+
65
+ There's also {a Google+ group}[http://goo.gl/TFy1U] and a
66
+ {mailing list}[http://groups.google.com/group/ruby-pg] if you get stuck, or just
67
+ want to chat about something.
68
+
69
+ If you want to install as a signed gem, the public certs of the gem signers
70
+ can be found in {the `certs` directory}[https://bitbucket.org/ged/ruby-pg/src/tip/certs/]
71
+ of the repository.
72
+
73
+
74
+ == Type Casts
75
+
76
+ Pg can optionally type cast result values and query parameters in Ruby or
77
+ native C code. This can speed up data transfers to and from the database,
78
+ because String allocations are reduced and conversions in (slower) Ruby code
79
+ can be omitted.
80
+
81
+ Very basic type casting can be enabled by:
82
+
83
+ conn.type_map_for_results = PG::BasicTypeMapForResults.new conn
84
+ # ... this works for result value mapping:
85
+ conn.exec("select 1, now(), '{2,3}'::int[]").values
86
+ # => [[1, 2014-09-21 20:51:56 +0200, [2, 3]]]
87
+
88
+ conn.type_map_for_queries = PG::BasicTypeMapForQueries.new conn
89
+ # ... and this for param value mapping:
90
+ conn.exec_params("SELECT $1::text, $2::text, $3::text", [1, 1.23, [2,3]]).values
91
+ # => [["1", "1.2300000000000000E+00", "{2,3}"]]
92
+
93
+ But Pg's type casting is highly customizable. That's why it's divided into
94
+ 2 layers:
95
+
96
+ === Encoders / Decoders (ext/pg_*coder.c, lib/pg/*coder.rb)
97
+
98
+ This is the lower layer, containing encoding classes that convert Ruby
99
+ objects for transmission to the DBMS and decoding classes to convert
100
+ received data back to Ruby objects. The classes are namespaced according
101
+ to their format and direction in PG::TextEncoder, PG::TextDecoder,
102
+ PG::BinaryEncoder and PG::BinaryDecoder.
103
+
104
+ It is possible to assign a type OID, format code (text or binary) and
105
+ optionally a name to an encoder or decoder object. It's also possible
106
+ to build composite types by assigning an element encoder/decoder.
107
+ PG::Coder objects can be used to set up a PG::TypeMap or alternatively
108
+ to convert single values to/from their string representation.
109
+
110
+ === PG::TypeMap and derivations (ext/pg_type_map*.c, lib/pg/type_map*.rb)
111
+
112
+ A TypeMap defines which value will be converted by which encoder/decoder.
113
+ There are different type map strategies, implemented by several derivations
114
+ of this class. They can be chosen and configured according to the particular
115
+ needs for type casting. The default type map is PG::TypeMapAllStrings.
116
+
117
+ A type map can be assigned per connection or per query respectively per
118
+ result set. Type maps can also be used for COPY in and out data streaming.
119
+ See PG::Connection#copy_data .
120
+
121
+ == Contributing
122
+
123
+ To report bugs, suggest features, or check out the source with Mercurial,
124
+ {check out the project page}[http://bitbucket.org/ged/ruby-pg]. If you prefer
125
+ Git, there's also a {Github mirror}[https://github.com/ged/ruby-pg].
126
+
127
+ After checking out the source, run:
128
+
129
+ $ rake newb
130
+
131
+ This task will install any missing dependencies, run the tests/specs, and
132
+ generate the API documentation.
133
+
134
+ The current maintainers are Michael Granger <ged@FaerieMUD.org> and
135
+ Lars Kanis <lars@greiz-reinsdorf.de>.
136
+
137
+
138
+ == Copying
139
+
140
+ Copyright (c) 1997-2016 by the authors.
141
+
142
+ * Jeff Davis <ruby-pg@j-davis.com>
143
+ * Guy Decoux (ts) <decoux@moulon.inra.fr>
144
+ * Michael Granger <ged@FaerieMUD.org>
145
+ * Lars Kanis <lars@greiz-reinsdorf.de>
146
+ * Dave Lee
147
+ * Eiji Matsumoto <usagi@ruby.club.or.jp>
148
+ * Yukihiro Matsumoto <matz@ruby-lang.org>
149
+ * Noboru Saitou <noborus@netlab.jp>
150
+
151
+ You may redistribute this software under the same terms as Ruby itself; see
152
+ https://www.ruby-lang.org/en/about/license.txt or the BSDL file in the source
153
+ for details.
154
+
155
+ Portions of the code are from the PostgreSQL project, and are distributed
156
+ under the terms of the PostgreSQL license, included in the file POSTGRES.
157
+
158
+ Portions copyright LAIKA, Inc.
159
+
160
+
161
+ == Acknowledgments
162
+
163
+ See Contributors.rdoc for the many additional fine people that have contributed
164
+ to this library over the years.
165
+
166
+ We are thankful to the people at the ruby-list and ruby-dev mailing lists.
167
+ And to the people who developed PostgreSQL.
168
+
@@ -0,0 +1,216 @@
1
+ #!/usr/bin/env rake
2
+
3
+ require 'rbconfig'
4
+ require 'pathname'
5
+ require 'tmpdir'
6
+
7
+ begin
8
+ require 'rake/extensiontask'
9
+ rescue LoadError
10
+ abort "This Rakefile requires rake-compiler (gem install rake-compiler)"
11
+ end
12
+
13
+ begin
14
+ require 'hoe'
15
+ rescue LoadError
16
+ abort "This Rakefile requires hoe (gem install hoe)"
17
+ end
18
+
19
+ require 'rake/clean'
20
+
21
+ # Build directory constants
22
+ BASEDIR = Pathname( __FILE__ ).dirname
23
+ SPECDIR = BASEDIR + 'spec'
24
+ LIBDIR = BASEDIR + 'lib'
25
+ EXTDIR = BASEDIR + 'ext'
26
+ PKGDIR = BASEDIR + 'pkg'
27
+ TMPDIR = BASEDIR + 'tmp'
28
+
29
+ DLEXT = RbConfig::CONFIG['DLEXT']
30
+ EXT = LIBDIR + "pg_ext.#{DLEXT}"
31
+
32
+ GEMSPEC = 'pg.gemspec'
33
+
34
+ TEST_DIRECTORY = BASEDIR + "tmp_test_specs"
35
+
36
+ CLOBBER.include( TEST_DIRECTORY.to_s )
37
+ CLEAN.include( PKGDIR.to_s, TMPDIR.to_s )
38
+
39
+ # Set up Hoe plugins
40
+ Hoe.plugin :mercurial
41
+ Hoe.plugin :signing
42
+ Hoe.plugin :deveiate
43
+ Hoe.plugin :bundler
44
+
45
+ Hoe.plugins.delete :rubyforge
46
+ Hoe.plugins.delete :compiler
47
+
48
+ load 'Rakefile.cross'
49
+
50
+
51
+ # Hoe specification
52
+ $hoespec = Hoe.spec 'pg' do
53
+ self.readme_file = 'README.rdoc'
54
+ self.history_file = 'History.rdoc'
55
+ self.extra_rdoc_files = Rake::FileList[ '*.rdoc' ]
56
+ self.extra_rdoc_files.include( 'POSTGRES', 'LICENSE' )
57
+ self.extra_rdoc_files.include( 'ext/*.c' )
58
+ self.license 'BSD-3-Clause'
59
+
60
+ self.developer 'Michael Granger', 'ged@FaerieMUD.org'
61
+ self.developer 'Lars Kanis', 'lars@greiz-reinsdorf.de'
62
+
63
+ self.dependency 'rake-compiler', '~> 0.9', :developer
64
+ self.dependency 'rake-compiler-dock', '~> 0.5', :developer
65
+ self.dependency 'hoe', '~> 3.12', :developer
66
+ self.dependency 'hoe-deveiate', '~> 0.6', :developer
67
+ self.dependency 'hoe-bundler', '~> 1.0', :developer
68
+ self.dependency 'rspec', '~> 3.0', :developer
69
+
70
+ self.spec_extras[:extensions] = [ 'ext/extconf.rb' ]
71
+
72
+ self.require_ruby_version( '>= 2.0.0' )
73
+
74
+ self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags= )
75
+ self.check_history_on_release = true if self.respond_to?( :check_history_on_release= )
76
+
77
+ self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}"
78
+ end
79
+
80
+ ENV['VERSION'] ||= $hoespec.spec.version.to_s
81
+
82
+ # Tests should pass before checking in
83
+ task 'hg:precheckin' => [ :check_history, :check_manifest, :spec, :gemspec ]
84
+
85
+ # Support for 'rvm specs'
86
+ task :specs => :spec
87
+
88
+ # Compile before testing
89
+ task :spec => :compile
90
+
91
+ # gem-testers support
92
+ task :test do
93
+ # rake-compiler always wants to copy the compiled extension into lib/, but
94
+ # we don't want testers to have to re-compile, especially since that
95
+ # often fails because they can't (and shouldn't have to) write to tmp/ in
96
+ # the installed gem dir. So we clear the task rake-compiler set up
97
+ # to break the dependency between :spec and :compile when running under
98
+ # rubygems-test, and then run :spec.
99
+ Rake::Task[ EXT.to_s ].clear if File.exist?(EXT.to_s)
100
+ Rake::Task[ :spec ].execute
101
+ end
102
+
103
+ desc "Turn on warnings and debugging in the build."
104
+ task :maint do
105
+ ENV['MAINTAINER_MODE'] = 'yes'
106
+ end
107
+
108
+ ENV['RUBY_CC_VERSION'] ||= '1.8.7:1.9.2:2.0.0'
109
+
110
+ # Rake-compiler task
111
+ Rake::ExtensionTask.new do |ext|
112
+ ext.name = 'pg_ext'
113
+ ext.gem_spec = $hoespec.spec
114
+ ext.ext_dir = 'ext'
115
+ ext.lib_dir = 'lib'
116
+ ext.source_pattern = "*.{c,h}"
117
+ ext.cross_compile = true
118
+ ext.cross_platform = CrossLibraries.map &:for_platform
119
+
120
+ ext.cross_config_options += CrossLibraries.map do |lib|
121
+ {
122
+ lib.for_platform => [
123
+ "--enable-windows-cross",
124
+ "--with-pg-include=#{lib.static_postgresql_incdir}",
125
+ "--with-pg-lib=#{lib.static_postgresql_libdir}",
126
+ # libpq-fe.h resides in src/interfaces/libpq/ before make install
127
+ "--with-opt-include=#{lib.static_postgresql_libdir}",
128
+ ]
129
+ }
130
+ end
131
+
132
+ # Add libpq.dll to windows binary gemspec
133
+ ext.cross_compiling do |spec|
134
+ spec.files << "lib/libpq.dll"
135
+ end
136
+ end
137
+
138
+
139
+ # Use the fivefish formatter for docs generated from development checkout
140
+ if File.directory?( '.hg' )
141
+ require 'rdoc/task'
142
+
143
+ Rake::Task[ 'docs' ].clear
144
+ RDoc::Task.new( 'docs' ) do |rdoc|
145
+ rdoc.main = "README.rdoc"
146
+ rdoc.rdoc_files.include( "*.rdoc", "ChangeLog", "lib/**/*.rb", 'ext/**/*.{c,h}' )
147
+ rdoc.generator = :fivefish
148
+ rdoc.title = "PG: The Ruby PostgreSQL Driver"
149
+ rdoc.rdoc_dir = 'doc'
150
+ end
151
+ end
152
+
153
+
154
+ # Make the ChangeLog update if the repo has changed since it was last built
155
+ file '.hg/branch' do
156
+ warn "WARNING: You need the Mercurial repo to update the ChangeLog"
157
+ end
158
+ file 'ChangeLog' do |task|
159
+ if File.exist?('.hg/branch')
160
+ $stderr.puts "Updating the changelog..."
161
+ begin
162
+ include Hoe::MercurialHelpers
163
+ content = make_changelog()
164
+ rescue NameError
165
+ abort "Packaging tasks require the hoe-mercurial plugin (gem install hoe-mercurial)"
166
+ end
167
+ File.open( task.name, 'w', 0644 ) do |fh|
168
+ fh.print( content )
169
+ end
170
+ else
171
+ touch 'ChangeLog'
172
+ end
173
+ end
174
+
175
+ # Rebuild the ChangeLog immediately before release
176
+ task :prerelease => 'ChangeLog'
177
+
178
+
179
+ desc "Stop any Postmaster instances that remain after testing."
180
+ task :cleanup_testing_dbs do
181
+ require 'spec/lib/helpers'
182
+ PgTestingHelpers.stop_existing_postmasters()
183
+ Rake::Task[:clean].invoke
184
+ end
185
+
186
+ desc "Update list of server error codes"
187
+ task :update_error_codes do
188
+ URL_ERRORCODES_TXT = "http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/errcodes.txt;hb=HEAD"
189
+
190
+ ERRORCODES_TXT = "ext/errorcodes.txt"
191
+ sh "wget #{URL_ERRORCODES_TXT.inspect} -O #{ERRORCODES_TXT.inspect} || curl #{URL_ERRORCODES_TXT.inspect} -o #{ERRORCODES_TXT.inspect}"
192
+
193
+ ruby 'ext/errorcodes.rb', 'ext/errorcodes.txt', 'ext/errorcodes.def'
194
+ end
195
+
196
+ file 'ext/pg_errors.c' => ['ext/errorcodes.def'] do
197
+ # trigger compilation of changed errorcodes.def
198
+ touch 'ext/pg_errors.c'
199
+ end
200
+
201
+ task :gemspec => GEMSPEC
202
+ file GEMSPEC => __FILE__
203
+ task GEMSPEC do |task|
204
+ spec = $hoespec.spec
205
+ spec.files.delete( '.gemtest' )
206
+ spec.signing_key = nil
207
+ spec.version = "#{spec.version.bump}.0.pre#{Time.now.strftime("%Y%m%d%H%M%S")}"
208
+ spec.cert_chain = [ 'certs/ged.pem' ]
209
+ File.open( task.name, 'w' ) do |fh|
210
+ fh.write( spec.to_ruby )
211
+ end
212
+ end
213
+
214
+ CLOBBER.include( '*.gemspec' )
215
+ task :default => :gemspec
216
+