dbd-jdbc 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -28,7 +28,7 @@ Rake::Task['manifest'].invoke # Always regen manifest, so Hoe has up-to-date lis
28
28
 
29
29
  begin
30
30
  require 'hoe'
31
- Hoe.new("dbd-jdbc", "0.1.3") do |p|
31
+ Hoe.new("dbd-jdbc", "0.1.4") do |p|
32
32
  p.rubyforge_name = "jruby-extras"
33
33
  p.url = "http://kenai.com/projects/dbd-jdbc"
34
34
  p.author = "Chad Johnson"
@@ -49,7 +49,7 @@ module DBI
49
49
  include_class 'java.util.HashMap'
50
50
  include_class 'java.util.Collections'
51
51
 
52
- VERSION = "0.1.3"
52
+ VERSION = "0.1.4"
53
53
  DESCRIPTION = "JDBC DBD driver for JRuby"
54
54
 
55
55
  #
@@ -106,8 +106,12 @@ module DBI::DBD::Jdbc::TypeConversions
106
106
  cal.set(Calendar::HOUR_OF_DAY, dbitime.hour)
107
107
  cal.set(Calendar::MINUTE, dbitime.min)
108
108
  cal.set(Calendar::SECOND, dbitime.sec)
109
- # According to the Ruby Docs usec is microsecond - java wants milli
110
- cal.set(Calendar::MILLISECOND , (dbitime.usec / 1000) ) if dbitime.respond_to? :usec
109
+
110
+ if dbitime.respond_to? :strftime
111
+ cal.set(Calendar::MILLISECOND, dbitime.strftime('%L').to_i)
112
+ else
113
+ cal.set(Calendar::MILLISECOND, 0)
114
+ end
111
115
  end
112
116
 
113
117
  def get_calendar(jdbctype)
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbd-jdbc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
- - Chad Johnson
7
+ - Chad Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-06 00:00:00 -05:00
12
+ date: 2009-12-03 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -20,41 +20,43 @@ executables: []
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
- - README.txt
23
+ - README.txt
24
24
  files:
25
- - lib/dbd/jdbc/database.rb
26
- - lib/dbd/jdbc/driver.rb
27
- - lib/dbd/jdbc/statement.rb
28
- - lib/dbd/jdbc/type_conversion.rb
29
- - lib/dbd/Jdbc.rb
30
- - Rakefile
31
- - README.txt
25
+ - lib/dbd/Jdbc.rb
26
+ - lib/dbd/jdbc/database.rb
27
+ - lib/dbd/jdbc/driver.rb
28
+ - lib/dbd/jdbc/statement.rb
29
+ - lib/dbd/jdbc/type_conversion.rb
30
+ - Rakefile
31
+ - README.txt
32
32
  has_rdoc: true
33
33
  homepage: http://kenai.com/projects/dbd-jdbc
34
+ licenses: []
35
+
34
36
  post_install_message:
35
37
  rdoc_options:
36
- - --main
37
- - README.txt
38
+ - --main
39
+ - README.txt
38
40
  require_paths:
39
- - lib
41
+ - lib
40
42
  required_ruby_version: !ruby/object:Gem::Requirement
41
43
  requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- version: "0"
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: "0"
45
47
  version:
46
48
  required_rubygems_version: !ruby/object:Gem::Requirement
47
49
  requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: "0"
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: "0"
51
53
  version:
52
54
  requirements: []
53
55
 
54
56
  rubyforge_project: jruby-extras
55
- rubygems_version: 1.3.1
57
+ rubygems_version: 1.3.5
56
58
  signing_key:
57
- specification_version: 2
59
+ specification_version: 3
58
60
  summary: JDBC driver for DBI, originally by Kristopher Schmidt and Ola Bini
59
61
  test_files: []
60
62