Hello community, here is the log from the commit of package rubygem-pg for openSUSE:Factory checked in at 2015-12-14 10:13:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-pg (Old) and /work/SRC/openSUSE:Factory/.rubygem-pg.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-pg" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-pg/rubygem-pg.changes 2015-09-08 17:47:24.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-pg.new/rubygem-pg.changes 2015-12-14 10:13:43.000000000 +0100 @@ -1,0 +2,16 @@ +Sat Nov 14 05:36:33 UTC 2015 - [email protected] + +- updated to version 0.18.4 + see installed History.rdoc + + == v0.18.4 [2015-11-13] Michael Granger <[email protected]> + + Enhancements: + - Fixing compilation problems with Microsoft Visual Studio 2008. GH #10 + - Avoid name clash with xcode and jemalloc. PR#22, PR#23 + + Bugfixes: + - Avoid segfault, when quote_ident or TextEncoder::Identifier + is called with Array containing non-strings. #226 + +------------------------------------------------------------------- Old: ---- pg-0.18.3.gem New: ---- pg-0.18.4.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-pg.spec ++++++ --- /var/tmp/diff_new_pack.kmIqKx/_old 2015-12-14 10:13:44.000000000 +0100 +++ /var/tmp/diff_new_pack.kmIqKx/_new 2015-12-14 10:13:44.000000000 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-pg -Version: 0.18.3 +Version: 0.18.4 Release: 0 %define mod_name pg %define mod_full_name %{mod_name}-%{version} ++++++ pg-0.18.3.gem -> pg-0.18.4.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ChangeLog new/ChangeLog --- old/ChangeLog 2015-09-03 23:03:40.000000000 +0200 +++ new/ChangeLog 2015-11-13 20:19:16.000000000 +0100 @@ -1,8 +1,115 @@ -2015-09-03 Michael Granger <[email protected]> +2015-11-13 Michael Granger <[email protected]> + + * .hgignore: + Ignore some build artifacts + [f4bd9e53ccab] [tip] + + * Rakefile: + Only use fivefish formatter when building from repo + [6161d8eeb3f1] + +2015-11-13 Lars Kanis <[email protected]> * History.rdoc: - Added recent fix to the History file - [f12dc2f1ce14] [tip] + Update History.rdoc regarding PR#22. + [e4a8a1d41104] + + * Merge ../ruby-pg.git.bare + [810c1e4dad4d] + +2015-10-08 Lars Kanis <[email protected]> + + * README.rdoc: + Fix link to appveyor CI tests in the README. + [604f4dd3d5bd] + +2015-11-04 Lars Kanis <[email protected]> + + * ext/pg_binary_encoder.c: + Merged in t-richards/ruby-pg/jemalloc-native-ext (pull request #22) + + Fix build against jemalloc 4.0.0 + [72168db5fb7b] + +2015-09-10 Tom Richards <[email protected]> + + * ext/pg_binary_encoder.c: + Fix build against jemalloc 4.0.0 + [fe05106909f7] <jemalloc-native-ext> + +2015-09-24 Lars Kanis <[email protected]> + + * History.rdoc: + Add latest changes to History.rdoc. + [11b978b08d63] + + * History.rdoc: + Add missing entry in History.rdoc. + + This fixes bitbucket issue #225 : https://bitbucket.org/ged/ruby- + pg/issues/225 + [132d674d999f] + + * Merge ../ruby-pg.git.bare + [479799a98cfa] + + * ext/pg_text_encoder.c, spec/pg/connection_spec.rb, + spec/pg/type_spec.rb: + Avoid segfault, when quote_ident is called with Array containing + non-strings. + + This fixes bitbucket issue #226 : https://bitbucket.org/ged/ruby- + pg/issues/226 + [4f0bd19e9111] + +2015-09-08 Lars Kanis <[email protected]> + + * Merge pull request #10 from PuzzleFlow/master + + Fixing compilation problems with Microsoft Visual Studio 2008. + [dfb62954f2d6] + +2015-09-08 jfali <[email protected]> + + * ext/extconf.rb, ext/pg_binary_decoder.c, ext/pg_binary_encoder.c, + ext/pg_text_decoder.c, ext/pg_text_encoder.c, ext/pg_type_map.c, + ext/pg_type_map_by_column.c: + Fixing compilation problems with Microsoft Visual Studio 2008. + - inttypes.h is not available in MSVC 2008 + - Structs members must be initialized implicitly + [fcf731d3dff7] + +2015-09-07 Lars Kanis <[email protected]> + + * README.rdoc: + Merge pull request #8 from gitter-badger/gitter-badge + + Add a Gitter chat badge to README.rdoc + [ab4d5656abce] + +2015-03-09 The Gitter Badger <[email protected]> + + * README.rdoc: + Added Gitter badge + [beb02a90f948] + +2015-09-03 Michael Granger <[email protected]> + + * .hgtags: + Added tag v0.18.3 for changeset 01c42c68797e + [4c8df76aff6f] + + * .hgsigs: + Added signature for changeset 57291f1e96b9 + [01c42c68797e] [v0.18.3] + + * .hoerc: + Exclude some generated files from the Manifest + [57291f1e96b9] + + * History.rdoc, lib/pg.rb: + Bump patch version, update history + [3b49541c9f12] 2015-09-01 Lars Kanis <[email protected]> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/History.rdoc new/History.rdoc --- old/History.rdoc 2015-09-03 23:03:40.000000000 +0200 +++ new/History.rdoc 2015-11-13 20:19:16.000000000 +0100 @@ -1,3 +1,14 @@ +== v0.18.4 [2015-11-13] Michael Granger <[email protected]> + +Enhancements: +- Fixing compilation problems with Microsoft Visual Studio 2008. GH #10 +- Avoid name clash with xcode and jemalloc. PR#22, PR#23 + +Bugfixes: +- Avoid segfault, when quote_ident or TextEncoder::Identifier + is called with Array containing non-strings. #226 + + == v0.18.3 [2015-09-03] Michael Granger <[email protected]> Enhancements: @@ -16,6 +27,7 @@ Enhancements: - Allow URI connection string (thanks to Chris Bandy) +- Allow Array type parameter to conn.quote_ident Bugfixes: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.rdoc new/README.rdoc --- old/README.rdoc 2015-09-03 23:03:40.000000000 +0200 +++ new/README.rdoc 2015-11-13 20:19:16.000000000 +0100 @@ -4,6 +4,8 @@ mirror :: https://github.com/ged/ruby-pg docs :: http://deveiate.org/code/pg +{<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] + == Description @@ -30,7 +32,7 @@ == Build Status {<img src="https://travis-ci.org/ged/ruby-pg.png?branch=master" alt="Build Status Travis-CI" />}[https://travis-ci.org/ged/ruby-pg] -{<img src="https://ci.appveyor.com/api/projects/status/at4g4swb2cd4xji7/branch/master?svg=true" alt="Build Status Appveyor" />}[https://ci.appveyor.com/api/projects/status/at4g4swb2cd4xji7/branch/master] +{<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] == Requirements diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Rakefile new/Rakefile --- old/Rakefile 2015-09-03 23:03:40.000000000 +0200 +++ new/Rakefile 2015-11-13 20:19:16.000000000 +0100 @@ -74,11 +74,6 @@ self.hg_sign_tags = true if self.respond_to?( :hg_sign_tags= ) self.check_history_on_release = true if self.respond_to?( :check_history_on_release= ) - self.spec_extras[:rdoc_options] = [ - '-f', 'fivefish', - '-t', 'pg: The Ruby Interface to PostgreSQL', - '-m', 'README.rdoc', - ] self.rdoc_locations << "deveiate:/usr/local/www/public/code/#{remote_rdoc_dir}" end @@ -142,6 +137,21 @@ end end + +# Use the fivefish formatter for docs generated from development checkout +if File.directory?( '.hg' ) + require 'rdoc/task' + + Rake::Task[ 'docs' ].clear + RDoc::Task.new( 'docs' ) do |rdoc| + rdoc.main = "README.rdoc" + rdoc.rdoc_files.include( "*.rdoc", "ChangeLog", "lib/**/*.rb", 'ext/**/*.{c,h}' ) + rdoc.generator = :fivefish + rdoc.title = "PG: The Ruby PostgreSQL Driver" + rdoc.rdoc_dir = 'doc' + end +end + # Make the ChangeLog update if the repo has changed since it was last built file '.hg/branch' do Files old/checksums.yaml.gz and new/checksums.yaml.gz differ Files old/checksums.yaml.gz.sig and new/checksums.yaml.gz.sig differ Files old/data.tar.gz.sig and new/data.tar.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/extconf.rb new/ext/extconf.rb --- old/ext/extconf.rb 2015-09-03 23:03:40.000000000 +0200 +++ new/ext/extconf.rb 2015-11-13 20:19:16.000000000 +0100 @@ -92,6 +92,7 @@ # unistd.h confilicts with ruby/win32.h when cross compiling for win32 and ruby 1.9.1 have_header 'unistd.h' +have_header 'inttypes.h' have_header 'ruby/st.h' or have_header 'st.h' or abort "pg currently requires the ruby/st.h header" checking_for "C99 variable length arrays" do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/pg_binary_decoder.c new/ext/pg_binary_decoder.c --- old/ext/pg_binary_decoder.c 2015-09-03 23:03:40.000000000 +0200 +++ new/ext/pg_binary_decoder.c 2015-11-13 20:19:16.000000000 +0100 @@ -1,12 +1,14 @@ /* * pg_column_map.c - PG::ColumnMap class extension - * $Id: pg_binary_decoder.c,v 185638b52684 2014/11/08 20:43:53 lars $ + * $Id: pg_binary_decoder.c,v fcf731d3dff7 2015/09/08 12:25:06 jfali $ * */ #include "pg.h" #include "util.h" +#ifdef HAVE_INTTYPES_H #include <inttypes.h> +#endif VALUE rb_mPG_BinaryDecoder; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/pg_binary_encoder.c new/ext/pg_binary_encoder.c --- old/ext/pg_binary_encoder.c 2015-09-03 23:03:40.000000000 +0200 +++ new/ext/pg_binary_encoder.c 2015-11-13 20:19:16.000000000 +0100 @@ -1,12 +1,14 @@ /* * pg_column_map.c - PG::ColumnMap class extension - * $Id: pg_binary_encoder.c,v ac23631c96d9 2014/10/14 11:50:21 lars $ + * $Id: pg_binary_encoder.c,v 72168db5fb7b 2015/11/04 16:13:42 lars $ * */ #include "pg.h" #include "util.h" +#ifdef HAVE_INTTYPES_H #include <inttypes.h> +#endif VALUE rb_mPG_BinaryEncoder; @@ -22,14 +24,14 @@ static int pg_bin_enc_boolean(t_pg_coder *conv, VALUE value, char *out, VALUE *intermediate) { - char bool; + char mybool; switch(value){ - case Qtrue : bool = 1; break; - case Qfalse : bool = 0; break; + case Qtrue : mybool = 1; break; + case Qfalse : mybool = 0; break; default : rb_raise( rb_eTypeError, "wrong data for binary boolean converter" ); } - if(out) *out = bool; + if(out) *out = mybool; return 1; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/pg_text_decoder.c new/ext/pg_text_decoder.c --- old/ext/pg_text_decoder.c 2015-09-03 23:03:40.000000000 +0200 +++ new/ext/pg_text_decoder.c 2015-11-13 20:19:17.000000000 +0100 @@ -1,6 +1,6 @@ /* * pg_text_decoder.c - PG::TextDecoder module - * $Id: pg_text_decoder.c,v b111c84b8445 2015/02/11 20:54:03 lars $ + * $Id: pg_text_decoder.c,v fcf731d3dff7 2015/09/08 12:25:06 jfali $ * */ @@ -30,7 +30,9 @@ #include "pg.h" #include "util.h" +#ifdef HAVE_INTTYPES_H #include <inttypes.h> +#endif VALUE rb_mPG_TextDecoder; static ID s_id_decode; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/pg_text_encoder.c new/ext/pg_text_encoder.c --- old/ext/pg_text_encoder.c 2015-09-03 23:03:40.000000000 +0200 +++ new/ext/pg_text_encoder.c 2015-11-13 20:19:17.000000000 +0100 @@ -1,6 +1,6 @@ /* * pg_text_encoder.c - PG::TextEncoder module - * $Id: pg_text_encoder.c,v b859963462b2 2015/03/13 17:39:35 lars $ + * $Id: pg_text_encoder.c,v 4f0bd19e9111 2015/09/24 18:55:11 lars $ * */ @@ -41,7 +41,9 @@ #include "pg.h" #include "util.h" +#ifdef HAVE_INTTYPES_H #include <inttypes.h> +#endif #include <math.h> VALUE rb_mPG_TextEncoder; @@ -493,6 +495,7 @@ for( i=0; i<nr_elems; i++){ VALUE entry = rb_ary_entry(value, i); + StringValue(entry); out = quote_identifier(entry, string, out); if( i < nr_elems-1 ){ out = pg_rb_str_ensure_capa( string, 1, out, NULL ); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/pg_type_map.c new/ext/pg_type_map.c --- old/ext/pg_type_map.c 2015-09-03 23:03:40.000000000 +0200 +++ new/ext/pg_type_map.c 2015-11-13 20:19:17.000000000 +0100 @@ -1,6 +1,6 @@ /* * pg_column_map.c - PG::ColumnMap class extension - * $Id: pg_type_map.c,v c99d26015e3c 2014/12/12 20:58:25 lars $ + * $Id: pg_type_map.c,v fcf731d3dff7 2015/09/08 12:25:06 jfali $ * */ @@ -54,12 +54,12 @@ } const struct pg_typemap_funcs pg_typemap_funcs = { - .fit_to_result = pg_typemap_fit_to_result, - .fit_to_query = pg_typemap_fit_to_query, - .fit_to_copy_get = pg_typemap_fit_to_copy_get, - .typecast_result_value = pg_typemap_result_value, - .typecast_query_param = pg_typemap_typecast_query_param, - .typecast_copy_get = pg_typemap_typecast_copy_get + pg_typemap_fit_to_result, + pg_typemap_fit_to_query, + pg_typemap_fit_to_copy_get, + pg_typemap_result_value, + pg_typemap_typecast_query_param, + pg_typemap_typecast_copy_get }; static VALUE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/pg_type_map_by_column.c new/ext/pg_type_map_by_column.c --- old/ext/pg_type_map_by_column.c 2015-09-03 23:03:40.000000000 +0200 +++ new/ext/pg_type_map_by_column.c 2015-11-13 20:19:17.000000000 +0100 @@ -1,6 +1,6 @@ /* * pg_column_map.c - PG::ColumnMap class extension - * $Id: pg_type_map_by_column.c,v d369d31e8fe3 2014/10/22 08:47:29 lars $ + * $Id: pg_type_map_by_column.c,v fcf731d3dff7 2015/09/08 12:25:06 jfali $ * */ @@ -162,12 +162,12 @@ } const struct pg_typemap_funcs pg_tmbc_funcs = { - .fit_to_result = pg_tmbc_fit_to_result, - .fit_to_query = pg_tmbc_fit_to_query, - .fit_to_copy_get = pg_tmbc_fit_to_copy_get, - .typecast_result_value = pg_tmbc_result_value, - .typecast_query_param = pg_tmbc_typecast_query_param, - .typecast_copy_get = pg_tmbc_typecast_copy_get + pg_tmbc_fit_to_result, + pg_tmbc_fit_to_query, + pg_tmbc_fit_to_copy_get, + pg_tmbc_result_value, + pg_tmbc_typecast_query_param, + pg_tmbc_typecast_copy_get }; static void diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/pg.rb new/lib/pg.rb --- old/lib/pg.rb 2015-09-03 23:03:40.000000000 +0200 +++ new/lib/pg.rb 2015-11-13 20:19:17.000000000 +0100 @@ -24,10 +24,10 @@ module PG # Library version - VERSION = '0.18.3' + VERSION = '0.18.4' # VCS revision - REVISION = %q$Revision: 3b49541c9f12 $ + REVISION = %q$Revision: da42b972b5ab $ class NotAllCopyDataRetrieved < PG::Error end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-09-03 23:03:40.000000000 +0200 +++ new/metadata 2015-11-13 20:19:16.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: pg version: !ruby/object:Gem::Version - version: 0.18.3 + version: 0.18.4 platform: ruby authors: - Michael Granger @@ -31,7 +31,7 @@ G8LHR7EjtPPmqCCunfyecJ6MmCNaiJCBxq2NYzyNmluPyHT8+0fuB5kccUVZm6CD xn3DzOkDE6NYbk8gC9rTsA== -----END CERTIFICATE----- -date: 2015-09-03 00:00:00.000000000 Z +date: 2015-11-13 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: hoe-mercurial @@ -309,11 +309,7 @@ metadata: {} post_install_message: rdoc_options: -- "-f" -- fivefish -- "-t" -- 'pg: The Ruby Interface to PostgreSQL' -- "-m" +- "--main" - README.rdoc require_paths: - lib @@ -329,7 +325,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.4.7 +rubygems_version: 2.4.5.1 signing_key: specification_version: 4 summary: Pg is the Ruby interface to the {PostgreSQL RDBMS}[http://www.postgresql.org/] Files old/metadata.gz.sig and new/metadata.gz.sig differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/pg/connection_spec.rb new/spec/pg/connection_spec.rb --- old/spec/pg/connection_spec.rb 2015-09-03 23:03:40.000000000 +0200 +++ new/spec/pg/connection_spec.rb 2015-11-13 20:19:17.000000000 +0100 @@ -1211,6 +1211,12 @@ expect( escaped ).to eq( expected.join(".") ) end + it "will raise a TypeError for invalid arguments to quote_ident" do + expect{ described_class.quote_ident( nil ) }.to raise_error(TypeError) + expect{ described_class.quote_ident( [nil] ) }.to raise_error(TypeError) + expect{ described_class.quote_ident( [['a']] ) }.to raise_error(TypeError) + end + describe "Ruby 1.9.x default_internal encoding" do it "honors the Encoding.default_internal if it's set and the synchronous interface is used" do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/pg/type_spec.rb new/spec/pg/type_spec.rb --- old/spec/pg/type_spec.rb 2015-09-03 23:03:40.000000000 +0200 +++ new/spec/pg/type_spec.rb 2015-11-13 20:19:17.000000000 +0100 @@ -206,6 +206,13 @@ expect( quoted_type.encode(['schema','table','col']) ).to eq( %["schema"."table"."col"] ) expect( quoted_type.encode(['A.','.B']) ).to eq( %["A.".".B"] ) expect( quoted_type.encode(%['A"."B']) ).to eq( %["'A"".""B'"] ) + expect( quoted_type.encode( nil ) ).to be_nil + end + + it "will raise a TypeError for invalid arguments to quote_ident" do + quoted_type = PG::TextEncoder::Identifier.new + expect{ quoted_type.encode( [nil] ) }.to raise_error(TypeError) + expect{ quoted_type.encode( [['a']] ) }.to raise_error(TypeError) end end
