[DRE-commits] [ruby-dataobjects-postgres] 01/05: Imported Upstream version 0.10.14
Cédric Boutillier
boutil at moszumanska.debian.org
Fri Apr 18 12:52:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to annotated tag debian/0.10.14-1
in repository ruby-dataobjects-postgres.
commit 07d54d621e520d28f4f5b5b98af415827c640924
Author: Cédric Boutillier <boutil at debian.org>
Date: Thu Apr 10 09:46:02 2014 +0200
Imported Upstream version 0.10.14
---
ChangeLog.markdown | 5 ++
checksums.yaml.gz | Bin 271 -> 269 bytes
ext/do_postgres/do_common.c | 2 +-
ext/do_postgres/do_postgres.c | 8 ++++
lib/do_postgres/version.rb | 2 +-
metadata.yml | 109 ++++++++++++++++++++++--------------------
tasks/compile.rake | 2 +-
7 files changed, 74 insertions(+), 54 deletions(-)
diff --git a/ChangeLog.markdown b/ChangeLog.markdown
index 9b71d36..7e14ece 100644
--- a/ChangeLog.markdown
+++ b/ChangeLog.markdown
@@ -1,3 +1,8 @@
+## 0.10.14 2014-02-13
+
+* Don't do DNS lookup in transaction loading
+* Set datestyle to ISO
+
## 0.10.13 2013-05-27
* Fix segfault on invalid API usage
diff --git a/checksums.yaml.gz b/checksums.yaml.gz
index e50b56e..7428368 100644
Binary files a/checksums.yaml.gz and b/checksums.yaml.gz differ
diff --git a/ext/do_postgres/do_common.c b/ext/do_postgres/do_common.c
index 6f3d526..f997ca4 100644
--- a/ext/do_postgres/do_common.c
+++ b/ext/do_postgres/do_common.c
@@ -193,7 +193,7 @@ VALUE data_objects_parse_date(const char *date) {
}
VALUE data_objects_parse_time(const char *date) {
- static char const* const _fmt_datetime = "%4d-%2d-%2d %2d:%2d:%2d%7lf";
+ static char const* const _fmt_datetime = "%4d-%2d-%2d%*c%2d:%2d:%2d%7lf";
int year = 0, month = 0, day = 0, hour = 0, min = 0, sec = 0, usec = 0;
double subsec = 0;
diff --git a/ext/do_postgres/do_postgres.c b/ext/do_postgres/do_postgres.c
index ed40b86..282fa20 100644
--- a/ext/do_postgres/do_postgres.c
+++ b/ext/do_postgres/do_postgres.c
@@ -440,6 +440,7 @@ void do_postgres_full_connect(VALUE self, PGconn *db) {
const char *backslash_off = "SET backslash_quote = off";
const char *standard_strings_on = "SET standard_conforming_strings = on";
const char *warning_messages = "SET client_min_messages = warning";
+ const char *date_format = "SET datestyle = ISO";
VALUE r_options;
r_options = rb_str_new2(backslash_off);
@@ -463,6 +464,13 @@ void do_postgres_full_connect(VALUE self, PGconn *db) {
rb_warn("%s", PQresultErrorMessage(result));
}
+ r_options = rb_str_new2(date_format);
+ result = do_postgres_cCommand_execute(Qnil, self, db, r_options);
+
+ if (PQresultStatus(result) != PGRES_COMMAND_OK) {
+ rb_warn("%s", PQresultErrorMessage(result));
+ }
+
VALUE encoding = rb_iv_get(self, "@encoding");
#ifdef HAVE_PQSETCLIENTENCODING
VALUE pg_encoding = rb_hash_aref(data_objects_const_get(mDO_PostgresEncoding, "MAP"), encoding);
diff --git a/lib/do_postgres/version.rb b/lib/do_postgres/version.rb
index 822957f..004e012 100644
--- a/lib/do_postgres/version.rb
+++ b/lib/do_postgres/version.rb
@@ -1,5 +1,5 @@
module DataObjects
module Postgres
- VERSION = '0.10.13'
+ VERSION = '0.10.14'
end
end
diff --git a/metadata.yml b/metadata.yml
index 3556f40..02fe593 100644
--- a/metadata.yml
+++ b/metadata.yml
@@ -1,57 +1,67 @@
---- !ruby/object:Gem::Specification
+--- !ruby/object:Gem::Specification
name: do_postgres
-version: !ruby/object:Gem::Version
- version: 0.10.13
+version: !ruby/object:Gem::Version
+ version: 0.10.14
platform: ruby
-authors:
+authors:
- Dirkjan Bussink
autorequire:
bindir: bin
cert_chain: []
-
-date: 2013-05-27 00:00:00 Z
-dependencies:
-- !ruby/object:Gem::Dependency
+date: 2014-02-13 00:00:00.000000000 Z
+dependencies:
+- !ruby/object:Gem::Dependency
name: data_objects
- prerelease: false
- requirement: &id001 !ruby/object:Gem::Requirement
- requirements:
- - - "="
- - !ruby/object:Gem::Version
- version: 0.10.13
+ requirement: !ruby/object:Gem::Requirement
+ requirements:
+ - - '='
+ - !ruby/object:Gem::Version
+ version: 0.10.14
type: :runtime
- version_requirements: *id001
-- !ruby/object:Gem::Dependency
- name: rspec
prerelease: false
- requirement: &id002 !ruby/object:Gem::Requirement
- requirements:
- - - ~>
- - !ruby/object:Gem::Version
- version: "2.5"
+ version_requirements: !ruby/object:Gem::Requirement
+ requirements:
+ - - '='
+ - !ruby/object:Gem::Version
+ version: 0.10.14
+- !ruby/object:Gem::Dependency
+ name: rspec
+ requirement: !ruby/object:Gem::Requirement
+ requirements:
+ - - "~>"
+ - !ruby/object:Gem::Version
+ version: '2.5'
type: :development
- version_requirements: *id002
-- !ruby/object:Gem::Dependency
- name: rake-compiler
prerelease: false
- requirement: &id003 !ruby/object:Gem::Requirement
- requirements:
- - - ~>
- - !ruby/object:Gem::Version
- version: "0.7"
+ 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
- version_requirements: *id003
+ 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 at gmail.com
executables: []
-
-extensions:
+extensions:
- ext/do_postgres/extconf.rb
-extra_rdoc_files:
+extra_rdoc_files:
- ChangeLog.markdown
- LICENSE
- README.markdown
-files:
+files:
- ChangeLog.markdown
- LICENSE
- README.markdown
@@ -94,31 +104,28 @@ files:
- tasks/spec.rake
homepage:
licenses: []
-
metadata: {}
-
post_install_message:
rdoc_options: []
-
-require_paths:
+require_paths:
- lib
-required_ruby_version: !ruby/object:Gem::Requirement
- requirements:
- - &id004
- - ">="
- - !ruby/object:Gem::Version
- version: "0"
-required_rubygems_version: !ruby/object:Gem::Requirement
- requirements:
- - *id004
+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.3
+rubygems_version: 2.2.0.preview.1
signing_key:
specification_version: 3
summary: DataObjects PostgreSQL Driver
-test_files:
+test_files:
- spec/command_spec.rb
- spec/connection_spec.rb
- spec/encoding_spec.rb
diff --git a/tasks/compile.rake b/tasks/compile.rake
index a884e4c..06f2fc5 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.13'
+ gem.add_dependency 'do_jdbc', '0.10.14'
end
end
rescue LoadError
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-dataobjects-postgres.git
More information about the Pkg-ruby-extras-commits
mailing list