diff options
| author | Utkarsh Gupta <utkarsh@debian.org> | 2020-02-05 06:00:01 -0500 |
|---|---|---|
| committer | git-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com> | 2020-02-05 16:49:52 +0000 |
| commit | 1b94f904ca8fd2b0d6841f1fc5d0a1d55a28ee2e (patch) | |
| tree | 3116ae2dbfe2f52da89cb2a5ea00b9cfbcb9379d | |
| parent | 428dc0854546a2dc3bffae38932f903eabbb2374 (diff) | |
0.10.17-1 (patches unapplied)import/0.10.17-1debian/siddebian/bullseyedebian/bookworm
Imported using git-ubuntu import.
Notes
Notes:
* New upstream version 0.10.17
* Update d/copyright
* Update d/control
* Drop d/compat file
* Add salsa-ci.yml
| -rw-r--r-- | ChangeLog.markdown | 5 | ||||
| -rw-r--r-- | debian/changelog | 10 | ||||
| -rw-r--r-- | debian/compat | 1 | ||||
| -rw-r--r-- | debian/control | 26 | ||||
| -rw-r--r-- | debian/copyright | 3 | ||||
| -rw-r--r-- | debian/salsa-ci.yml | 4 | ||||
| -rw-r--r-- | do_postgres.gemspec | 43 | ||||
| -rw-r--r-- | ext/do_postgres/do_common.c | 3 | ||||
| -rw-r--r-- | ext/do_postgres/do_postgres.c | 10 | ||||
| -rw-r--r-- | lib/do_postgres/version.rb | 2 | ||||
| -rw-r--r-- | metadata.yml | 149 | ||||
| -rw-r--r-- | tasks/compile.rake | 2 | ||||
| -rw-r--r-- | tasks/release.rake | 2 |
13 files changed, 90 insertions, 170 deletions
diff --git a/ChangeLog.markdown b/ChangeLog.markdown index 7c6f45c..2d9d48c 100644 --- a/ChangeLog.markdown +++ b/ChangeLog.markdown @@ -1,3 +1,8 @@ +## 0.10.17 2016-01-24 + +* Fix memory leak +* Fix bug with DateTime and wrong timezone offsets + ## 0.10.16 2015-05-17 * Fix compile issue with do\_postgres on stock OS X Ruby diff --git a/debian/changelog b/debian/changelog index fb0d05c..9a154c4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,13 @@ +ruby-dataobjects-postgres (0.10.17-1) unstable; urgency=medium + + * New upstream version 0.10.17 + * Update d/copyright + * Update d/control + * Drop d/compat file + * Add salsa-ci.yml + + -- Utkarsh Gupta <utkarsh@debian.org> Wed, 05 Feb 2020 06:00:01 -0500 + ruby-dataobjects-postgres (0.10.16-1) unstable; urgency=medium * Team upload diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7f8f011..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -7 diff --git a/debian/control b/debian/control index fe900f7..31c4723 100644 --- a/debian/control +++ b/debian/control @@ -1,27 +1,27 @@ Source: ruby-dataobjects-postgres +Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org> +Uploaders: Cédric Boutillier <boutil@debian.org>, + Utkarsh Gupta <utkarsh@debian.org> Section: ruby +Testsuite: autopkgtest-pkg-ruby Priority: optional -Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers@lists.alioth.debian.org> -Uploaders: Cédric Boutillier <boutil@debian.org> -Build-Depends: debhelper (>= 7.0.50~), +Build-Depends: debhelper-compat (= 12), gem2deb, - rake, - ruby-dataobjects (>= 0.10.16), - ruby-rspec, - libpq-dev (>= 9.3), + libpq-dev, postgresql-server-dev-all, -Standards-Version: 3.9.6 -Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-dataobjects-postgres.git -Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-dataobjects-postgres.git + rake, + ruby-dataobjects (>= 0.10.17), + ruby-rspec +Standards-Version: 4.5.0 +Vcs-Browser: https://salsa.debian.org/ruby-team/ruby-dataobjects-postgres +Vcs-Git: https://salsa.debian.org/ruby-team/ruby-dataobjects-postgres.git Homepage: https://github.com/datamapper/do -Testsuite: autopkgtest-pkg-ruby XS-Ruby-Versions: all Package: ruby-dataobjects-postgres Architecture: any XB-Ruby-Versions: ${ruby:Versions} -Depends: ruby | ruby-interpreter, - ruby-dataobjects (>= 0.10.16), +Depends: ruby-dataobjects (>= 0.10.17), ${misc:Depends}, ${shlibs:Depends} Description: PostgreSQL adapter for ruby-dataobjects diff --git a/debian/copyright b/debian/copyright index 23469e7..957470a 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,4 +1,4 @@ -Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: do_postgres Source: http://github.com/datamapper/do @@ -30,4 +30,3 @@ License: Expat CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..33c3a64 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff --git a/do_postgres.gemspec b/do_postgres.gemspec new file mode 100644 index 0000000..c72a98f --- /dev/null +++ b/do_postgres.gemspec @@ -0,0 +1,43 @@ +######################################################### +# This file has been automatically generated by gem2tgz # +######################################################### +# -*- encoding: utf-8 -*- +# stub: do_postgres 0.10.17 ruby lib +# stub: ext/do_postgres/extconf.rb + +Gem::Specification.new do |s| + s.name = "do_postgres".freeze + s.version = "0.10.17" + + s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= + s.require_paths = ["lib".freeze] + s.authors = ["Dirkjan Bussink".freeze] + s.date = "2016-01-24" + s.description = "Implements the DataObjects API for PostgreSQL".freeze + s.email = "d.bussink@gmail.com".freeze + s.extensions = ["ext/do_postgres/extconf.rb".freeze] + s.extra_rdoc_files = ["ChangeLog.markdown".freeze, "LICENSE".freeze, "README.markdown".freeze] + s.files = ["ChangeLog.markdown".freeze, "LICENSE".freeze, "README.markdown".freeze, "Rakefile".freeze, "ext/do_postgres/compat.h".freeze, "ext/do_postgres/do_common.c".freeze, "ext/do_postgres/do_common.h".freeze, "ext/do_postgres/do_postgres.c".freeze, "ext/do_postgres/error.h".freeze, "ext/do_postgres/extconf.rb".freeze, "ext/do_postgres/pg_config.h".freeze, "lib/do_postgres.rb".freeze, "lib/do_postgres/encoding.rb".freeze, "lib/do_postgres/transaction.rb".freeze, "lib/do_postgres/version.rb".freeze, "spec/command_spec.rb".freeze, "spec/connection_spec.rb".freeze, "spec/encoding_spec.rb".freeze, "spec/error/sql_error_spec.rb".freeze, "spec/reader_spec.rb".freeze, "spec/result_spec.rb".freeze, "spec/spec_helper.rb".freeze, "spec/typecast/array_spec.rb".freeze, "spec/typecast/bigdecimal_spec.rb".freeze, "spec/typecast/boolean_spec.rb".freeze, "spec/typecast/byte_array_spec.rb".freeze, "spec/typecast/class_spec.rb".freeze, "spec/typecast/date_spec.rb".freeze, "spec/typecast/datetime_spec.rb".freeze, "spec/typecast/float_spec.rb".freeze, "spec/typecast/integer_spec.rb".freeze, "spec/typecast/nil_spec.rb".freeze, "spec/typecast/other_spec.rb".freeze, "spec/typecast/range_spec.rb".freeze, "spec/typecast/string_spec.rb".freeze, "spec/typecast/time_spec.rb".freeze, "tasks/compile.rake".freeze, "tasks/release.rake".freeze, "tasks/retrieve.rake".freeze, "tasks/spec.rake".freeze] + s.rubyforge_project = "dorb".freeze + s.rubygems_version = "2.5.2.1".freeze + s.summary = "DataObjects PostgreSQL Driver".freeze + s.test_files = ["spec/command_spec.rb".freeze, "spec/connection_spec.rb".freeze, "spec/encoding_spec.rb".freeze, "spec/error/sql_error_spec.rb".freeze, "spec/reader_spec.rb".freeze, "spec/result_spec.rb".freeze, "spec/spec_helper.rb".freeze, "spec/typecast/array_spec.rb".freeze, "spec/typecast/bigdecimal_spec.rb".freeze, "spec/typecast/boolean_spec.rb".freeze, "spec/typecast/byte_array_spec.rb".freeze, "spec/typecast/class_spec.rb".freeze, "spec/typecast/date_spec.rb".freeze, "spec/typecast/datetime_spec.rb".freeze, "spec/typecast/float_spec.rb".freeze, "spec/typecast/integer_spec.rb".freeze, "spec/typecast/nil_spec.rb".freeze, "spec/typecast/other_spec.rb".freeze, "spec/typecast/range_spec.rb".freeze, "spec/typecast/string_spec.rb".freeze, "spec/typecast/time_spec.rb".freeze] + + if s.respond_to? :specification_version then + s.specification_version = 3 + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q<data_objects>.freeze, ["= 0.10.17"]) + s.add_development_dependency(%q<rake-compiler>.freeze, ["~> 0.7"]) + s.add_development_dependency(%q<rspec>.freeze, ["~> 2.5"]) + else + s.add_dependency(%q<data_objects>.freeze, ["= 0.10.17"]) + s.add_dependency(%q<rake-compiler>.freeze, ["~> 0.7"]) + s.add_dependency(%q<rspec>.freeze, ["~> 2.5"]) + end + else + s.add_dependency(%q<data_objects>.freeze, ["= 0.10.17"]) + s.add_dependency(%q<rake-compiler>.freeze, ["~> 0.7"]) + s.add_dependency(%q<rspec>.freeze, ["~> 2.5"]) + end +end diff --git a/ext/do_postgres/do_common.c b/ext/do_postgres/do_common.c index 04481e2..3e2fcbc 100644 --- a/ext/do_postgres/do_common.c +++ b/ext/do_postgres/do_common.c @@ -3,6 +3,9 @@ #include <math.h> #include <ctype.h> #include <time.h> +#ifndef _WIN32 +#include <sys/time.h> +#endif #include "do_common.h" diff --git a/ext/do_postgres/do_postgres.c b/ext/do_postgres/do_postgres.c index 3e8b770..1fe3a64 100644 --- a/ext/do_postgres/do_postgres.c +++ b/ext/do_postgres/do_postgres.c @@ -49,6 +49,9 @@ #include <math.h> #include <ctype.h> #include <time.h> +#ifndef _WIN32 +#include <sys/time.h> +#endif #include "error.h" #include "compat.h" @@ -283,13 +286,14 @@ PGresult * do_postgres_cCommand_execute_async(VALUE self, VALUE connection, PGco int socket_fd = PQsocket(db); rb_fdset_t rset; + rb_fd_init(&rset); + rb_fd_set(socket_fd, &rset); while (1) { - rb_fd_init(&rset); - rb_fd_set(socket_fd, &rset); retval = rb_thread_fd_select(socket_fd + 1, &rset, NULL, NULL, NULL); if (retval < 0) { + rb_fd_term(&rset); rb_sys_fail(0); } @@ -298,6 +302,7 @@ PGresult * do_postgres_cCommand_execute_async(VALUE self, VALUE connection, PGco } if (PQconsumeInput(db) == 0) { + rb_fd_term(&rset); rb_raise(eDO_ConnectionError, "%s", PQerrorMessage(db)); } @@ -306,6 +311,7 @@ PGresult * do_postgres_cCommand_execute_async(VALUE self, VALUE connection, PGco } } + rb_fd_term(&rset); data_objects_debug(connection, query, &start); return PQgetResult(db); } diff --git a/lib/do_postgres/version.rb b/lib/do_postgres/version.rb index 11d5dcd..fbaf2c8 100644 --- a/lib/do_postgres/version.rb +++ b/lib/do_postgres/version.rb @@ -1,5 +1,5 @@ module DataObjects module Postgres - VERSION = '0.10.16' + VERSION = '0.10.17' end end diff --git a/metadata.yml b/metadata.yml deleted file mode 100644 index dde340e..0000000 --- a/metadata.yml +++ /dev/null @@ -1,149 +0,0 @@ ---- !ruby/object:Gem::Specification -name: do_postgres -version: !ruby/object:Gem::Version - version: 0.10.16 -platform: ruby -authors: -- Dirkjan Bussink -autorequire: -bindir: bin -cert_chain: [] -date: 2015-05-17 00:00:00.000000000 Z -dependencies: -- !ruby/object:Gem::Dependency - name: data_objects - requirement: !ruby/object:Gem::Requirement - requirements: - - - '=' - - !ruby/object:Gem::Version - version: 0.10.16 - type: :runtime - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - '=' - - !ruby/object:Gem::Version - version: 0.10.16 -- !ruby/object:Gem::Dependency - name: rspec - requirement: !ruby/object:Gem::Requirement - requirements: - - - ~> - - !ruby/object:Gem::Version - version: '2.5' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - ~> - - !ruby/object:Gem::Version - version: '2.5' -- !ruby/object:Gem::Dependency - name: rake-compiler - requirement: !ruby/object:Gem::Requirement - requirements: - - - ~> - - !ruby/object:Gem::Version - version: '0.7' - type: :development - prerelease: false - version_requirements: !ruby/object:Gem::Requirement - requirements: - - - ~> - - !ruby/object:Gem::Version - version: '0.7' -description: Implements the DataObjects API for PostgreSQL -email: d.bussink@gmail.com -executables: [] -extensions: -- ext/do_postgres/extconf.rb -extra_rdoc_files: -- ChangeLog.markdown -- LICENSE -- README.markdown -files: -- ChangeLog.markdown -- LICENSE -- README.markdown -- Rakefile -- ext/do_postgres/compat.h -- ext/do_postgres/do_common.c -- ext/do_postgres/do_common.h -- ext/do_postgres/do_postgres.c -- ext/do_postgres/error.h -- ext/do_postgres/extconf.rb -- ext/do_postgres/pg_config.h -- lib/do_postgres.rb -- lib/do_postgres/encoding.rb -- lib/do_postgres/transaction.rb -- lib/do_postgres/version.rb -- spec/command_spec.rb -- spec/connection_spec.rb -- spec/encoding_spec.rb -- spec/error/sql_error_spec.rb -- spec/reader_spec.rb -- spec/result_spec.rb -- spec/spec_helper.rb -- spec/typecast/array_spec.rb -- spec/typecast/bigdecimal_spec.rb -- spec/typecast/boolean_spec.rb -- spec/typecast/byte_array_spec.rb -- spec/typecast/class_spec.rb -- spec/typecast/date_spec.rb -- spec/typecast/datetime_spec.rb -- spec/typecast/float_spec.rb -- spec/typecast/integer_spec.rb -- spec/typecast/nil_spec.rb -- spec/typecast/other_spec.rb -- spec/typecast/range_spec.rb -- spec/typecast/string_spec.rb -- spec/typecast/time_spec.rb -- tasks/compile.rake -- tasks/release.rake -- tasks/retrieve.rake -- tasks/spec.rake -homepage: -licenses: [] -metadata: {} -post_install_message: -rdoc_options: [] -require_paths: -- lib -required_ruby_version: !ruby/object:Gem::Requirement - requirements: - - - '>=' - - !ruby/object:Gem::Version - version: '0' -required_rubygems_version: !ruby/object:Gem::Requirement - requirements: - - - '>=' - - !ruby/object:Gem::Version - version: '0' -requirements: [] -rubyforge_project: dorb -rubygems_version: 2.0.14 -signing_key: -specification_version: 3 -summary: DataObjects PostgreSQL Driver -test_files: -- spec/command_spec.rb -- spec/connection_spec.rb -- spec/encoding_spec.rb -- spec/error/sql_error_spec.rb -- spec/reader_spec.rb -- spec/result_spec.rb -- spec/spec_helper.rb -- spec/typecast/array_spec.rb -- spec/typecast/bigdecimal_spec.rb -- spec/typecast/boolean_spec.rb -- spec/typecast/byte_array_spec.rb -- spec/typecast/class_spec.rb -- spec/typecast/date_spec.rb -- spec/typecast/datetime_spec.rb -- spec/typecast/float_spec.rb -- spec/typecast/integer_spec.rb -- spec/typecast/nil_spec.rb -- spec/typecast/other_spec.rb -- spec/typecast/range_spec.rb -- spec/typecast/string_spec.rb -- spec/typecast/time_spec.rb diff --git a/tasks/compile.rake b/tasks/compile.rake index 4c98217..6cfd106 100644 --- a/tasks/compile.rake +++ b/tasks/compile.rake @@ -70,7 +70,7 @@ begin ext.classpath = '../do_jdbc/lib/do_jdbc_internal.jar' ext.java_compiling do |gem| gem.add_dependency 'jdbc-postgres', '>=8.2' - gem.add_dependency 'do_jdbc', '0.10.16' + gem.add_dependency 'do_jdbc', '0.10.17' end end rescue LoadError diff --git a/tasks/release.rake b/tasks/release.rake index b590fc8..69c4dcb 100644 --- a/tasks/release.rake +++ b/tasks/release.rake @@ -3,7 +3,7 @@ task :build_all do `rake clean` `rake build` `rake java gem` - `rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0:2.1.5:2.2.0` + `rake cross native gem RUBY_CC_VERSION=1.8.7:1.9.3:2.0.0:2.1.8:2.2.4:2.3.0` end desc 'Release all gems (native, binaries for JRuby and Windows)' |
