do_postgres 0.10.6-x86-mswin32-60 → 0.10.7-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.10.7 2011-10-13
2
+
3
+ * Ruby 1.9.3 compatibility
4
+
1
5
  ## 0.10.6 2011-05-22
2
6
 
3
7
  Bugfixes
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'pathname'
2
2
  require 'rubygems'
3
3
  require 'bundler'
4
+ require 'rubygems/package_task'
4
5
  Bundler::GemHelper.install_tasks
5
6
 
6
7
  require 'rake'
@@ -185,11 +185,16 @@ VALUE data_objects_parse_date(const char *date) {
185
185
  return Qnil;
186
186
  }
187
187
 
188
+ #ifdef HAVE_NO_DATETIME_NEWBANG
189
+ return rb_funcall(rb_cDate, ID_NEW, 3, INT2NUM(year), INT2NUM(month), INT2NUM(day));
190
+ #else
191
+
188
192
  jd = data_objects_jd_from_date(year, month, day);
189
193
  ajd = (jd * 2) - 1; // Math from Date.jd_to_ajd
190
194
  rational = rb_funcall(rb_mKernel, ID_RATIONAL, 2, INT2NUM(ajd), INT2NUM(2));
191
195
 
192
196
  return rb_funcall(rb_cDate, ID_NEW_DATE, 3, rational, INT2NUM(0), INT2NUM(2299161));
197
+ #endif
193
198
  }
194
199
 
195
200
  VALUE data_objects_parse_time(const char *date) {
@@ -299,6 +304,11 @@ VALUE data_objects_parse_date_time(const char *date) {
299
304
  rb_raise(eDataError, "Couldn't parse date: %s", date);
300
305
  }
301
306
 
307
+ #ifdef HAVE_NO_DATETIME_NEWBANG
308
+ offset = data_objects_timezone_to_offset(hour_offset, minute_offset);
309
+ return rb_funcall(rb_cDateTime, ID_NEW, 7, INT2NUM(year), INT2NUM(month), INT2NUM(day),
310
+ INT2NUM(hour), INT2NUM(min), INT2NUM(sec), offset);
311
+ #else
302
312
  jd = data_objects_jd_from_date(year, month, day);
303
313
 
304
314
  /*
@@ -327,6 +337,7 @@ VALUE data_objects_parse_date_time(const char *date) {
327
337
  offset = data_objects_timezone_to_offset(hour_offset, minute_offset);
328
338
 
329
339
  return rb_funcall(rb_cDateTime, ID_NEW_DATE, 3, ajd, offset, INT2NUM(2299161));
340
+ #endif
330
341
  }
331
342
 
332
343
  VALUE data_objects_cConnection_character_set(VALUE self) {
@@ -1,6 +1,7 @@
1
1
  ENV["RC_ARCHS"] = "" if RUBY_PLATFORM =~ /darwin/
2
2
 
3
3
  require 'mkmf'
4
+ require 'date'
4
5
 
5
6
  # Allow for custom compiler to be specified.
6
7
  RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
@@ -22,6 +23,10 @@ end
22
23
 
23
24
  $CFLAGS << ' -UENABLE_NLS -DHAVE_GETTIMEOFDAY -DHAVE_CRYPT' if RUBY_PLATFORM =~ /mswin|mingw/
24
25
 
26
+ unless DateTime.respond_to?(:new!)
27
+ $CFLAGS << ' -DHAVE_NO_DATETIME_NEWBANG'
28
+ end
29
+
25
30
  dir_config('pgsql-server', config_value('includedir-server'), config_value('libdir'))
26
31
  dir_config('pgsql-client', config_value('includedir'), config_value('libdir'))
27
32
  dir_config('pgsql-win32') if RUBY_PLATFORM =~ /mswin|mingw/
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module DataObjects
2
2
  module Postgres
3
- VERSION = '0.10.6'
3
+ VERSION = '0.10.7'
4
4
  end
5
5
  end
data/tasks/compile.rake CHANGED
@@ -70,7 +70,7 @@ begin
70
70
  ext.classpath = '../do_jdbc/lib/do_jdbc_internal.jar'
71
71
  ext.java_compiling do |gem|
72
72
  gem.add_dependency 'jdbc-postgres', '>=8.2'
73
- gem.add_dependency 'do_jdbc', '0.10.6'
73
+ gem.add_dependency 'do_jdbc', '0.10.7'
74
74
  end
75
75
  end
76
76
  rescue LoadError
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: do_postgres
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 6
10
- version: 0.10.6
9
+ - 7
10
+ version: 0.10.7
11
11
  platform: x86-mswin32-60
12
12
  authors:
13
13
  - Dirkjan Bussink
@@ -15,27 +15,25 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-29 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-03-29 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- type: :runtime
23
21
  requirement: &id001 !ruby/object:Gem::Requirement
24
22
  none: false
25
23
  requirements:
26
24
  - - "="
27
25
  - !ruby/object:Gem::Version
28
- hash: 59
26
+ hash: 57
29
27
  segments:
30
28
  - 0
31
29
  - 10
32
- - 6
33
- version: 0.10.6
34
- name: data_objects
30
+ - 7
31
+ version: 0.10.7
35
32
  version_requirements: *id001
33
+ name: data_objects
36
34
  prerelease: false
35
+ type: :runtime
37
36
  - !ruby/object:Gem::Dependency
38
- type: :development
39
37
  requirement: &id002 !ruby/object:Gem::Requirement
40
38
  none: false
41
39
  requirements:
@@ -46,11 +44,11 @@ dependencies:
46
44
  - 2
47
45
  - 5
48
46
  version: "2.5"
49
- name: rspec
50
47
  version_requirements: *id002
48
+ name: rspec
51
49
  prerelease: false
52
- - !ruby/object:Gem::Dependency
53
50
  type: :development
51
+ - !ruby/object:Gem::Dependency
54
52
  requirement: &id003 !ruby/object:Gem::Requirement
55
53
  none: false
56
54
  requirements:
@@ -61,9 +59,10 @@ dependencies:
61
59
  - 0
62
60
  - 7
63
61
  version: "0.7"
64
- name: rake-compiler
65
62
  version_requirements: *id003
63
+ name: rake-compiler
66
64
  prerelease: false
65
+ type: :development
67
66
  description: Implements the DataObjects API for PostgreSQL
68
67
  email: d.bussink@gmail.com
69
68
  executables: []
@@ -117,7 +116,6 @@ files:
117
116
  - tasks/spec.rake
118
117
  - lib/do_postgres/1.8/do_postgres.so
119
118
  - lib/do_postgres/1.9/do_postgres.so
120
- has_rdoc: true
121
119
  homepage:
122
120
  licenses: []
123
121
 
@@ -174,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
172
  requirements: []
175
173
 
176
174
  rubyforge_project: dorb
177
- rubygems_version: 1.5.2
175
+ rubygems_version: 1.8.6
178
176
  signing_key:
179
177
  specification_version: 3
180
178
  summary: DataObjects PostgreSQL Driver