do_postgres 0.10.3-x86-mswin32-60 → 0.10.4.rc1-x86-mswin32-60

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,9 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
4
- require 'data_objects/spec/typecast/time_spec'
4
+ require 'data_objects/spec/shared/typecast/time_spec'
5
5
 
6
6
  describe 'DataObjects::Postgres with Time' do
7
- behaves_like 'supporting Time'
7
+ it_should_behave_like 'supporting Time'
8
+ it_should_behave_like 'supporting sub second Time'
8
9
  end
data/tasks/compile.rake CHANGED
@@ -3,67 +3,64 @@ begin
3
3
  require 'rake/extensiontask'
4
4
  require 'rake/javaextensiontask'
5
5
 
6
- # Hack to avoid "allocator undefined for Proc" issue when unpacking Gems:
7
- # gemspec provided by Jeweler uses Rake::FileList for files, test_files and
8
- # extra_rdoc_files, and procs cannot be marshalled.
9
6
  def gemspec
10
- @clean_gemspec ||= eval("#{Rake.application.jeweler.gemspec.to_ruby}") # $SAFE = 3\n
7
+ @clean_gemspec ||= Gem::Specification::load(File.expand_path('../../do_postgres.gemspec', __FILE__))
11
8
  end
12
9
 
13
- Rake::ExtensionTask.new('do_postgres', gemspec) do |ext|
10
+ unless JRUBY
11
+ Rake::ExtensionTask.new('do_postgres', gemspec) do |ext|
14
12
 
15
- postgres_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', 'pgsql'))
13
+ postgres_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', 'pgsql'))
16
14
 
17
- ext.lib_dir = "lib/#{gemspec.name}"
15
+ ext.lib_dir = "lib/#{gemspec.name}"
18
16
 
19
- # automatically add build options to avoid need of manual input
20
- if RUBY_PLATFORM =~ /mswin|mingw/ then
21
- ext.config_options << "--with-pgsql-server-include=#{postgres_lib}/include/server"
22
- ext.config_options << "--with-pgsql-client-include=#{postgres_lib}/include"
23
- ext.config_options << "--with-pgsql-win32-include=#{postgres_lib}/include/server/port/win32"
24
- ext.config_options << "--with-pgsql-client-lib=#{postgres_lib}/lib"
25
- else
26
- ext.cross_compile = true
27
- ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
28
- ext.cross_config_options << "--with-pgsql-server-include=#{postgres_lib}/include/server"
29
- ext.cross_config_options << "--with-pgsql-client-include=#{postgres_lib}/include"
30
- ext.cross_config_options << "--with-pgsql-win32-include=#{postgres_lib}/include/server/port/win32"
31
- ext.cross_config_options << "--with-pgsql-client-lib=#{postgres_lib}/lib"
17
+ # automatically add build options to avoid need of manual input
18
+ if RUBY_PLATFORM =~ /mswin|mingw/ then
19
+ ext.config_options << "--with-pgsql-server-include=#{postgres_lib}/include/server"
20
+ ext.config_options << "--with-pgsql-client-include=#{postgres_lib}/include"
21
+ ext.config_options << "--with-pgsql-win32-include=#{postgres_lib}/include/server/port/win32"
22
+ ext.config_options << "--with-pgsql-client-lib=#{postgres_lib}/lib"
23
+ else
24
+ ext.cross_compile = true
25
+ ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
26
+ ext.cross_config_options << "--with-pgsql-server-include=#{postgres_lib}/include/server"
27
+ ext.cross_config_options << "--with-pgsql-client-include=#{postgres_lib}/include"
28
+ ext.cross_config_options << "--with-pgsql-win32-include=#{postgres_lib}/include/server/port/win32"
29
+ ext.cross_config_options << "--with-pgsql-client-lib=#{postgres_lib}/lib"
32
30
 
33
- ext.cross_compiling do |gemspec|
34
- gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
31
+ ext.cross_compiling do |gemspec|
32
+ gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
35
33
 
36
- ======================================================================================================
34
+ ======================================================================================================
37
35
 
38
- You've installed the binary version of #{gemspec.name}.
39
- It was built using PostgreSQL version #{BINARY_VERSION}.
40
- It's recommended to use the exact same version to avoid potential issues.
36
+ You've installed the binary version of #{gemspec.name}.
37
+ It was built using PostgreSQL version #{BINARY_VERSION}.
38
+ It's recommended to use the exact same version to avoid potential issues.
41
39
 
42
- At the time of building this gem, the necessary DLL files where available
43
- in the following download:
40
+ At the time of building this gem, the necessary DLL files where available
41
+ in the following download:
44
42
 
45
- http://wwwmaster.postgresql.org/redir/107/h/binary/v#{BINARY_VERSION}/win32/postgresql-#{BINARY_VERSION}-1-binaries-no-installer.zip
43
+ http://wwwmaster.postgresql.org/redir/107/h/binary/v#{BINARY_VERSION}/win32/postgresql-#{BINARY_VERSION}-1-binaries-no-installer.zip
46
44
 
47
- You can put the following files available in this package in your Ruby bin
48
- directory, for example C:\\Ruby\\bin
45
+ You can put the following files available in this package in your Ruby bin
46
+ directory, for example C:\\Ruby\\bin
49
47
 
50
- - lib\\libpq.dll
51
- - bin\\ssleay32.dll
52
- - bin\\libeay32.dll
53
- - bin\\libintl-8.dll
54
- - bin\\libiconv-2.dll
55
- - bin\\krb5_32.dll
56
- - bin\\comerr32.dll
57
- - bin\\k5sprt32.dll
58
- - bin\\gssapi32.dll
48
+ - lib\\libpq.dll
49
+ - bin\\ssleay32.dll
50
+ - bin\\libeay32.dll
51
+ - bin\\libintl-8.dll
52
+ - bin\\libiconv-2.dll
53
+ - bin\\krb5_32.dll
54
+ - bin\\comerr32.dll
55
+ - bin\\k5sprt32.dll
56
+ - bin\\gssapi32.dll
59
57
 
60
- ======================================================================================================
58
+ ======================================================================================================
61
59
 
62
- POST_INSTALL_MESSAGE
60
+ POST_INSTALL_MESSAGE
61
+ end
63
62
  end
64
-
65
63
  end
66
-
67
64
  end
68
65
 
69
66
  Rake::JavaExtensionTask.new('do_postgres', gemspec) do |ext|
data/tasks/spec.rake CHANGED
@@ -1,23 +1,12 @@
1
- require 'rake/testtask'
1
+ require 'rspec/core/rake_task'
2
2
 
3
- spec_defaults = lambda do |spec|
4
- spec.libs << 'lib' << 'spec'
5
- spec.pattern = 'spec/**/*_spec.rb'
6
- spec.verbose = true
3
+ RSpec::Core::RakeTask.new(:spec => [:clean, :compile]) do |spec|
4
+ spec.pattern = './spec/**/*_spec.rb'
5
+ spec.skip_bundler = true
7
6
  end
8
7
 
9
- Rake::TestTask.new(:spec => [ :clean, :compile ], &spec_defaults)
10
- Rake::TestTask.new(:spec_no_compile, &spec_defaults)
11
-
12
- begin
13
- require 'rcov/rcovtask'
14
- Rcov::RcovTask.new do |spec|
15
- spec.libs << 'spec'
16
- spec.pattern = 'spec/**/*_spec.rb'
17
- spec.verbose = true
18
- end
19
- rescue LoadError
20
- task :rcov do
21
- abort 'RCov is not available. In order to run rcov, you must: gem install rcov'
22
- end
8
+ RSpec::Core::RakeTask.new(:rcov => [:clean, :compile]) do |rcov|
9
+ rcov.pattern = "./spec/**/*_spec.rb"
10
+ rcov.rcov = true
11
+ rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
23
12
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: do_postgres
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
5
- prerelease: false
4
+ hash: 977940494
5
+ prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 10
9
- - 3
10
- version: 0.10.3
9
+ - 4
10
+ - rc1
11
+ version: 0.10.4.rc1
11
12
  platform: x86-mswin32-60
12
13
  authors:
13
14
  - Dirkjan Bussink
@@ -15,55 +16,55 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-01-30 00:00:00 +01:00
19
+ date: 2011-03-29 00:00:00 +02:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
- name: data_objects
23
- prerelease: false
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
26
  - - "="
28
27
  - !ruby/object:Gem::Version
29
- hash: 49
28
+ hash: 977940494
30
29
  segments:
31
30
  - 0
32
31
  - 10
33
- - 3
34
- version: 0.10.3
32
+ - 4
33
+ - rc1
34
+ version: 0.10.4.rc1
35
35
  type: :runtime
36
+ name: data_objects
37
+ prerelease: false
36
38
  version_requirements: *id001
37
39
  - !ruby/object:Gem::Dependency
38
- name: bacon
39
- prerelease: false
40
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- hash: 13
45
+ hash: 9
46
46
  segments:
47
- - 1
48
- - 1
49
- version: "1.1"
47
+ - 2
48
+ - 5
49
+ version: "2.5"
50
50
  type: :development
51
+ name: rspec
52
+ prerelease: false
51
53
  version_requirements: *id002
52
54
  - !ruby/object:Gem::Dependency
53
- name: rake-compiler
54
- prerelease: false
55
55
  requirement: &id003 !ruby/object:Gem::Requirement
56
56
  none: false
57
57
  requirements:
58
- - - "="
58
+ - - ~>
59
59
  - !ruby/object:Gem::Version
60
- hash: 3
60
+ hash: 5
61
61
  segments:
62
62
  - 0
63
63
  - 7
64
- - 0
65
- version: 0.7.0
64
+ version: "0.7"
66
65
  type: :development
66
+ name: rake-compiler
67
+ prerelease: false
67
68
  version_requirements: *id003
68
69
  description: Implements the DataObjects API for PostgreSQL
69
70
  email: d.bussink@gmail.com
@@ -72,14 +73,25 @@ executables: []
72
73
  extensions: []
73
74
 
74
75
  extra_rdoc_files:
75
- - README.markdown
76
76
  - ChangeLog.markdown
77
77
  - LICENSE
78
+ - README.markdown
78
79
  files:
80
+ - ChangeLog.markdown
81
+ - LICENSE
82
+ - README.markdown
83
+ - Rakefile
84
+ - ext/do_postgres/compat.h
85
+ - ext/do_postgres/do_common.c
86
+ - ext/do_postgres/do_common.h
87
+ - ext/do_postgres/do_postgres.c
88
+ - ext/do_postgres/error.h
89
+ - ext/do_postgres/extconf.rb
90
+ - ext/do_postgres/pg_config.h
91
+ - lib/do_postgres.rb
79
92
  - lib/do_postgres/encoding.rb
80
93
  - lib/do_postgres/transaction.rb
81
94
  - lib/do_postgres/version.rb
82
- - lib/do_postgres.rb
83
95
  - spec/command_spec.rb
84
96
  - spec/connection_spec.rb
85
97
  - spec/encoding_spec.rb
@@ -105,51 +117,42 @@ files:
105
117
  - tasks/release.rake
106
118
  - tasks/retrieve.rake
107
119
  - tasks/spec.rake
108
- - ext/do_postgres/extconf.rb
109
- - ext/do_postgres/do_postgres.c
110
- - ext/do_postgres/compat.h
111
- - ext/do_postgres/error.h
112
- - ext/do_postgres/pg_config.h
113
- - LICENSE
114
- - Rakefile
115
- - ChangeLog.markdown
116
- - README.markdown
117
120
  - lib/do_postgres/1.8/do_postgres.so
118
121
  - lib/do_postgres/1.9/do_postgres.so
119
- has_rdoc: false
122
+ has_rdoc: true
120
123
  homepage:
121
124
  licenses: []
122
125
 
123
126
  post_install_message: |+
124
127
 
125
- ======================================================================================================
128
+ ======================================================================================================
126
129
 
127
- You've installed the binary version of do_postgres.
128
- It was built using PostgreSQL version 8.3.13.
129
- It's recommended to use the exact same version to avoid potential issues.
130
+ You've installed the binary version of do_postgres.
131
+ It was built using PostgreSQL version 8.3.15.
132
+ It's recommended to use the exact same version to avoid potential issues.
130
133
 
131
- At the time of building this gem, the necessary DLL files where available
132
- in the following download:
134
+ At the time of building this gem, the necessary DLL files where available
135
+ in the following download:
133
136
 
134
- http://wwwmaster.postgresql.org/redir/107/h/binary/v8.3.13/win32/postgresql-8.3.13-1-binaries-no-installer.zip
137
+ http://wwwmaster.postgresql.org/redir/107/h/binary/v8.3.15/win32/postgresql-8.3.15-1-binaries-no-installer.zip
135
138
 
136
- You can put the following files available in this package in your Ruby bin
137
- directory, for example C:\Ruby\bin
139
+ You can put the following files available in this package in your Ruby bin
140
+ directory, for example C:\Ruby\bin
138
141
 
139
- - lib\libpq.dll
140
- - bin\ssleay32.dll
141
- - bin\libeay32.dll
142
- - bin\libintl-8.dll
143
- - bin\libiconv-2.dll
144
- - bin\krb5_32.dll
145
- - bin\comerr32.dll
146
- - bin\k5sprt32.dll
147
- - bin\gssapi32.dll
142
+ - lib\libpq.dll
143
+ - bin\ssleay32.dll
144
+ - bin\libeay32.dll
145
+ - bin\libintl-8.dll
146
+ - bin\libiconv-2.dll
147
+ - bin\krb5_32.dll
148
+ - bin\comerr32.dll
149
+ - bin\k5sprt32.dll
150
+ - bin\gssapi32.dll
148
151
 
149
- ======================================================================================================
152
+ ======================================================================================================
150
153
 
151
- rdoc_options:
152
- - --charset=UTF-8
154
+ rdoc_options: []
155
+
153
156
  require_paths:
154
157
  - lib
155
158
  required_ruby_version: !ruby/object:Gem::Requirement